{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/longgenbench-long-context-generation","title":"LongGenBench: Long-context Generation Benchmark","arxiv_id":"2410.04199","date":"2024-10-05","proceeding":null,"authors":["Xiang Liu","Peijie Dong","Xuming Hu","Xiaowen Chu"],"abstract":"Current long-context benchmarks primarily focus on retrieval-based tests, requiring Large Language Models (LLMs) to locate specific information within extensive input contexts, such as the needle-in-a-haystack (NIAH) benchmark. Long-context generation refers to the ability of a language model to generate coherent and contextually accurate text that spans across lengthy passages or documents. While recent studies show strong performance on NIAH and other retrieval-based long-context benchmarks, there is a significant lack of benchmarks for evaluating long-context generation capabilities. To bridge this gap and offer a comprehensive assessment, we introduce a synthetic benchmark, LongGenBench, which allows for flexible configurations of customized generation context lengths. LongGenBench advances beyond traditional benchmarks by redesigning the format of questions and necessitating that LLMs respond with a single, cohesive long-context answer. Upon extensive evaluation using LongGenBench, we observe that: (1) both API accessed and open source models exhibit performance degradation in long-context generation scenarios, ranging from 1.2% to 47.1%; (2) different series of LLMs exhibit varying trends of performance degradation, with the Gemini-1.5-Flash model showing the least degradation among API accessed models, and the Qwen2 series exhibiting the least degradation in LongGenBench among open source models.","url_abs":"https://arxiv.org/abs/2410.04199v3","url_pdf":"https://arxiv.org/pdf/2410.04199v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"longgenbench-long-context-generation","repo_url":"https://github.com/dominic789654/longgenbench","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":null}],"tasks":[{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"retrieval","task_name":"Retrieval"}],"methods":[{"method_slug":"focus","method_name":"Focus"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2410.04199","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2410.04199"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/dominic789654/longgenbench","reach":null}],"summary":{"ran_draft_wrong":4,"ran_violates":2},"by_repo_kind":{"official":{"samples":5,"ran":5,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":6,"samples":[{"code_sha256_prefix":"cf6841a6599707b0","entry":"extract_ans","repo":"dominic789654/longgenbench","repo_kind":"official","path":"longgenbench_GSM8K_openai.py","file_url":"https://github.com/dominic789654/longgenbench/blob/HEAD/longgenbench_GSM8K_openai.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cf6841a6599707b0"}},{"code_sha256_prefix":"6ab745408cb8648b","entry":"format_subject","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"6ab745408cb8648b"}},{"code_sha256_prefix":"18cd596af05d6cef","entry":"parse_pred_ans","repo":"dominic789654/longgenbench","repo_kind":"official","path":"longgenbench_GSM8K_openai.py","file_url":"https://github.com/dominic789654/longgenbench/blob/HEAD/longgenbench_GSM8K_openai.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"18cd596af05d6cef"}},{"code_sha256_prefix":"f8323cff84047eca","entry":"parse_pred_ans","repo":"dominic789654/longgenbench","repo_kind":"official","path":"longgenbench_MMLU_openai.py","file_url":"https://github.com/dominic789654/longgenbench/blob/HEAD/longgenbench_MMLU_openai.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f8323cff84047eca"}},{"code_sha256_prefix":"09fbc17b3ceebd85","entry":"test_answer","repo":"dominic789654/longgenbench","repo_kind":"official","path":"longgenbench_GSM8K_openai.py","file_url":"https://github.com/dominic789654/longgenbench/blob/HEAD/longgenbench_GSM8K_openai.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"09fbc17b3ceebd85"}},{"code_sha256_prefix":"1a0df6d93a9464f3","entry":"test_answer","repo":"dominic789654/longgenbench","repo_kind":"official","path":"longgenbench_MMLU_openai.py","file_url":"https://github.com/dominic789654/longgenbench/blob/HEAD/longgenbench_MMLU_openai.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1a0df6d93a9464f3"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}