{"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/leave-no-document-behind-benchmarking-long","title":"Leave No Document Behind: Benchmarking Long-Context LLMs with Extended Multi-Doc QA","arxiv_id":"2406.17419","date":"2024-06-25","proceeding":null,"authors":["Minzheng Wang","Longze Chen","Cheng Fu","Shengyi Liao","Xinghua Zhang","Bingli Wu","Haiyang Yu","Nan Xu","Lei Zhang","Run Luo","Yunshui Li","Min Yang","Fei Huang","Yongbin Li"],"abstract":"Long-context modeling capabilities have garnered widespread attention, leading to the emergence of Large Language Models (LLMs) with ultra-context windows. Meanwhile, benchmarks for evaluating long-context LLMs are gradually catching up. However, existing benchmarks employ irrelevant noise texts to artificially extend the length of test cases, diverging from the real-world scenarios of long-context applications. To bridge this gap, we propose a novel long-context benchmark, Loong, aligning with realistic scenarios through extended multi-document question answering (QA). Unlike typical document QA, in Loong's test cases, each document is relevant to the final answer, ignoring any document will lead to the failure of the answer. Furthermore, Loong introduces four types of tasks with a range of context lengths: Spotlight Locating, Comparison, Clustering, and Chain of Reasoning, to facilitate a more realistic and comprehensive evaluation of long-context understanding. Extensive experiments indicate that existing long-context language models still exhibit considerable potential for enhancement. Retrieval augmented generation (RAG) achieves poor performance, demonstrating that Loong can reliably assess the model's long-context modeling capabilities.","url_abs":"https://arxiv.org/abs/2406.17419v2","url_pdf":"https://arxiv.org/pdf/2406.17419v2.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":"leave-no-document-behind-benchmarking-long","repo_url":"https://github.com/mozerwang/loong","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"benchmarking","task_name":"Benchmarking"},{"task_slug":"long-context-understanding","task_name":"Long-Context Understanding"},{"task_slug":"question-answering","task_name":"Question Answering"},{"task_slug":"rag","task_name":"RAG"},{"task_slug":"retrieval-augmented-generation","task_name":"Retrieval-augmented Generation"}],"methods":[],"datasets_introduced":[{"slug":"loong","name":"Loong","full_name":"Loong"}],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2406.17419","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.17419"}},"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/mozerwang/loong","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/MozerWang/Loong","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":6,"unverified":2},"by_repo_kind":{"official":{"samples":8,"ran":6,"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":0,"samples":[{"code_sha256_prefix":"0f267f51086f55f7","entry":"continue_gen","repo":"MozerWang/Loong","repo_kind":"official","path":"src/utils/util.py","file_url":"https://github.com/MozerWang/Loong/blob/HEAD/src/utils/util.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0f267f51086f55f7"}},{"code_sha256_prefix":"2de377da8e0f3e4b","entry":"count_lines","repo":"MozerWang/Loong","repo_kind":"official","path":"src/utils/util.py","file_url":"https://github.com/MozerWang/Loong/blob/HEAD/src/utils/util.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2de377da8e0f3e4b"}},{"code_sha256_prefix":"02bbb0545f754a36","entry":"extract_number","repo":"MozerWang/Loong","repo_kind":"official","path":"src/utils/metric.py","file_url":"https://github.com/MozerWang/Loong/blob/HEAD/src/utils/metric.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"02bbb0545f754a36"}},{"code_sha256_prefix":"c02d809b6cb29b4c","entry":"failure_prompts","repo":"MozerWang/Loong","repo_kind":"official","path":"src/utils/metric.py","file_url":"https://github.com/MozerWang/Loong/blob/HEAD/src/utils/metric.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c02d809b6cb29b4c"}},{"code_sha256_prefix":"8581c9fc4e680d08","entry":"get_content","repo":"MozerWang/Loong","repo_kind":"official","path":"src/utils/prompt.py","file_url":"https://github.com/MozerWang/Loong/blob/HEAD/src/utils/prompt.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8581c9fc4e680d08"}},{"code_sha256_prefix":"eea848762af9fe85","entry":"get_contents","repo":"MozerWang/Loong","repo_kind":"official","path":"src/utils/prompt.py","file_url":"https://github.com/MozerWang/Loong/blob/HEAD/src/utils/prompt.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"eea848762af9fe85"}},{"code_sha256_prefix":"08724221f8dab062","entry":"cal_metric","repo":"MozerWang/Loong","repo_kind":"official","path":"src/utils/metric.py","file_url":"https://github.com/MozerWang/Loong/blob/HEAD/src/utils/metric.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"08724221f8dab062"}},{"code_sha256_prefix":"c62f3f6d440ecf4d","entry":"get_doc_str","repo":"MozerWang/Loong","repo_kind":"official","path":"src/utils/prompt.py","file_url":"https://github.com/MozerWang/Loong/blob/HEAD/src/utils/prompt.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c62f3f6d440ecf4d"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}