{"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/ada-leval-evaluating-long-context-llms-with","title":"Ada-LEval: Evaluating long-context LLMs with length-adaptable benchmarks","arxiv_id":"2404.06480","date":"2024-04-09","proceeding":null,"authors":["Chonghua Wang","Haodong Duan","Songyang Zhang","Dahua Lin","Kai Chen"],"abstract":"Recently, the large language model (LLM) community has shown increasing interest in enhancing LLMs' capability to handle extremely long documents. As various long-text techniques and model architectures emerge, the precise and detailed evaluation of models' long-text capabilities has become increasingly important. Existing long-text evaluation benchmarks, such as L-Eval and LongBench, construct long-text test sets based on open-source datasets, focusing mainly on QA and summarization tasks. These datasets include test samples of varying lengths (from 2k to 32k+) entangled together, making it challenging to assess model capabilities across different length ranges. Moreover, they do not cover the ultralong settings (100k+ tokens) that the latest LLMs claim to achieve. In this paper, we introduce Ada-LEval, a length-adaptable benchmark for evaluating the long-context understanding of LLMs. Ada-LEval includes two challenging subsets, TSort and BestAnswer, which enable a more reliable evaluation of LLMs' long context capabilities. These benchmarks support intricate manipulation of the length of test cases, and can easily produce text samples up to 128k tokens. We evaluate 4 state-of-the-art closed-source API models and 6 open-source models with Ada-LEval. The evaluation results demonstrate the limitations of current LLMs, especially in ultra-long-context settings. Our code is available at https://github.com/open-compass/Ada-LEval.","url_abs":"https://arxiv.org/abs/2404.06480v2","url_pdf":"https://arxiv.org/pdf/2404.06480v2.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":"ada-leval-evaluating-long-context-llms-with","repo_url":"https://github.com/open-compass/ada-leval","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"answer-selection","task_name":"Answer Selection"},{"task_slug":"long-context-understanding","task_name":"Long-Context Understanding"},{"task_slug":"question-answering","task_name":"Question Answering"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2404.06480","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2404.06480"}},"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/open-compass/ada-leval","reach":{"status":"ok"}}],"summary":{"ran":5},"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":5,"samples":[{"code_sha256_prefix":"a868f0afe2141be4","entry":"GPT_context_window","repo":"open-compass/ada-leval","repo_kind":"official","path":"ada_leval/api.py","file_url":"https://github.com/open-compass/ada-leval/blob/HEAD/ada_leval/api.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a868f0afe2141be4"}},{"code_sha256_prefix":"e8277b4e02292cbe","entry":"cn_string","repo":"open-compass/ada-leval","repo_kind":"official","path":"ada_leval/smp.py","file_url":"https://github.com/open-compass/ada-leval/blob/HEAD/ada_leval/smp.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e8277b4e02292cbe"}},{"code_sha256_prefix":"a94c49bf751fef5b","entry":"d2df","repo":"open-compass/ada-leval","repo_kind":"official","path":"ada_leval/smp.py","file_url":"https://github.com/open-compass/ada-leval/blob/HEAD/ada_leval/smp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a94c49bf751fef5b"}},{"code_sha256_prefix":"a50476e2d7c30009","entry":"get_logger","repo":"open-compass/ada-leval","repo_kind":"official","path":"ada_leval/util.py","file_url":"https://github.com/open-compass/ada-leval/blob/HEAD/ada_leval/util.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a50476e2d7c30009"}},{"code_sha256_prefix":"27bd620b8b50c5ae","entry":"timestr","repo":"open-compass/ada-leval","repo_kind":"official","path":"ada_leval/smp.py","file_url":"https://github.com/open-compass/ada-leval/blob/HEAD/ada_leval/smp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"27bd620b8b50c5ae"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}