RepoQA: Evaluating Long Context Code Understanding
Not on the map. Why?
Abstract (arXiv)
Recent advances have been improving the context windows of Large Language Models (LLMs). To quantify the real long-context capabilities of LLMs, evaluators such as the popular Needle in a Haystack have been developed to test LLMs over a large chunk of raw texts. While effective, current evaluations overlook the insight of how LLMs work with long-context code, i.e., repositories. To this end, we initiate the RepoQA benchmark to evaluate LLMs on long-context code understanding. Traditional needle testers ask LLMs to directly retrieve the answer from the context without necessary deep understanding. In RepoQA, we built our initial task, namely Searching Needle Function (SNF), which exercises LLMs to search functions given their natural-language description, i.e., LLMs cannot find the desired function if they cannot understand the description and code. RepoQA is multilingual and comprehensive: it includes 500 code search tasks gathered from 50 popular repositories across 5 modern programming languages. By evaluating 26 general and code-specific LLMs on RepoQA, we show (i) there is still a small gap between the best open and proprietary models; (ii) different models are good at different languages; and (iii) models may understand code better without comments.
Key facts. Cited by 35 papers in the map (data through 7 Oct 2026). Builds on 9 of its 19 references that are in the map. First posted on arXiv 10 Jun 2024.
Builds on
9 of 19 references.
References · 9
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 800
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
- 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 360
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
- 2023ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understandingcited by 175
- 2024Can't Remember Details in Long Documents? You Need Some R&Rcited by 10
Built on by
Citing papers per year: 2024: 6; 2025: 17; 2026: 12.
35 papers.
Sort:
By area:
- 2026GLM-5: from Vibe Coding to Agentic Engineeringcited by 502
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
- 2025Context Length Alone Hurts LLM Performance Despite Perfect Retrievalcited by 118
- 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methodscited by 59
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 38
- 2025EnvBench: A Benchmark for Automated Environment Setupcited by 36
- 2024On Leakage of Code Generation Evaluation Datasetscited by 29
- 2025SoRFT: Issue Resolving with Subtask-oriented Reinforced Fine-Tuningcited by 27
- 2025One ruler to measure them all: Benchmarking multilingual long-context language modelscited by 18
- 2025Exploring the Potential of Diffusion Large Language Models in Code Generationcited by 16
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasetscited by 15
23 more
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025BLASST: Dynamic BLocked Attention Sparsity via Softmax Thresholdingcited by 12
- 2024Scaling Granite Code Models to 128K Contextcited by 9
- 2026SciCoQA: Quality Assurance for Scientific Paper--Code Alignmentcited by 9
- 2026AgentLongBench: A Controllable Long Benchmark For Long-Contexts Agents via Environment Rolloutscited by 8
- 2025RANGER -- Repository-Level Agent for Graph-Enhanced Retrievalcited by 7
- 2025Delta Attention: Fast and Accurate Sparse Attention Inference by Delta Correctioncited by 6
- 2025AttnTrace: Contextual Attribution of Prompt Injection and Knowledge Corruptioncited by 5
- 2026Can Vision-Language Models Handle Long-Context Code? An Empirical Study on Visual Compressioncited by 5
- 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Modelscited by 5
- 2024Repository Structure-Aware Training Makes SLMs Better Issue Resolvercited by 4
- 2025XOXO: Stealthy Cross-Origin Context Poisoning Attacks against AI Coding Assistantscited by 4
- 2024Retrieval Or Holistic Understanding? Dolce: Differentiate Our Long Context Evaluation Taskscited by 3
- 2024PRISM: Efficient Long-Range Reasoning With Short-Context LLMscited by 3
- 2025Sense and Sensitivity: Examining the Influence of Semantic Recall on Long Context Code Understandingcited by 2
- 2025SciCUEval: A Comprehensive Dataset for Evaluating Scientific Context Understanding in Large Language Modelscited by 2
- 2026LensVLM: Selective Context Expansion for Compressed Visual Representation of Textcited by 2
- 2026RepoProbe: Benchmarking Architecture-Aware Repository Comprehension with Checklistscited by 2
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modelingcited by 1
- 2026On Problems of Implicit Context Compression for Software Engineering Agentscited by 0
- 2026Understanding Axes of Difficulty For Long Context Tasks Via PredicateLongBenchcited by 0
- 2026Talking to Itself While Coding: What Makes Comments Help Code Generation?cited by 0
- 2026Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmarkcited by 0
- 2026Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmark23 Sep 2026
- 2026Talking to Itself While Coding: What Makes Comments Help Code Generation?8 Sep 2026
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modeling5 Aug 2026
- 2026RepoProbe: Benchmarking Architecture-Aware Repository Comprehension with Checklists5 Aug 2026
- 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Models28 Jul 2026
- 2026Understanding Axes of Difficulty For Long Context Tasks Via PredicateLongBench9 Jul 2026
- 2026On Problems of Implicit Context Compression for Software Engineering Agents11 May 2026
- 2026LensVLM: Selective Context Expansion for Compressed Visual Representation of Text7 May 2026
- 2026GLM-5: from Vibe Coding to Agentic Engineering17 Feb 2026
- 2026Can Vision-Language Models Handle Long-Context Code? An Empirical Study on Visual Compression31 Jan 2026
- 2026AgentLongBench: A Controllable Long Benchmark For Long-Contexts Agents via Environment Rollouts28 Jan 2026
- 2026SciCoQA: Quality Assurance for Scientific Paper--Code Alignment19 Jan 2026
23 more
- 2025BLASST: Dynamic BLocked Attention Sparsity via Softmax Thresholding12 Dec 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Kimi Linear: An Expressive, Efficient Attention Architecture30 Oct 2025
- 2025Context Length Alone Hurts LLM Performance Despite Perfect Retrieval6 Oct 2025
- 2025LongCodeZip: Compress Long Context for Code Language Models1 Oct 2025
- 2025RANGER -- Repository-Level Agent for Graph-Enhanced Retrieval27 Sep 2025
- 2025Exploring the Potential of Diffusion Large Language Models in Code Generation14 Sep 2025
- 2025AttnTrace: Contextual Attribution of Prompt Injection and Knowledge Corruption5 Aug 2025
- 2025SciCUEval: A Comprehensive Dataset for Evaluating Scientific Context Understanding in Large Language Models21 May 2025
- 2025Sense and Sensitivity: Examining the Influence of Semantic Recall on Long Context Code Understanding19 May 2025
- 2025Delta Attention: Fast and Accurate Sparse Attention Inference by Delta Correction16 May 2025
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasets21 Mar 2025
- 2025EnvBench: A Benchmark for Automated Environment Setup18 Mar 2025
- 2025XOXO: Stealthy Cross-Origin Context Poisoning Attacks against AI Coding Assistants18 Mar 2025
- 2025One ruler to measure them all: Benchmarking multilingual long-context language models3 Mar 2025
- 2025SoRFT: Issue Resolving with Subtask-oriented Reinforced Fine-Tuning27 Feb 2025
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb 2025
- 2024Repository Structure-Aware Training Makes SLMs Better Issue Resolver26 Dec 2024
- 2024PRISM: Efficient Long-Range Reasoning With Short-Context LLMs25 Dec 2024
- 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methods13 Dec 2024
- 2024Retrieval Or Holistic Understanding? Dolce: Differentiate Our Long Context Evaluation Tasks10 Sep 2024
- 2024Scaling Granite Code Models to 128K Context18 Jul 2024
- 2024On Leakage of Code Generation Evaluation Datasets10 Jul 2024
- 2026GLM-5: from Vibe Coding to Agentic Engineeringcited by 502
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2026SciCoQA: Quality Assurance for Scientific Paper--Code Alignmentcited by 9
- 2026AgentLongBench: A Controllable Long Benchmark For Long-Contexts Agents via Environment Rolloutscited by 8
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modelingcited by 1
- 2026On Problems of Implicit Context Compression for Software Engineering Agentscited by 0
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modeling5 Aug 2026
- 2026On Problems of Implicit Context Compression for Software Engineering Agents11 May 2026
- 2026GLM-5: from Vibe Coding to Agentic Engineering17 Feb 2026
- 2026AgentLongBench: A Controllable Long Benchmark For Long-Contexts Agents via Environment Rollouts28 Jan 2026
- 2026SciCoQA: Quality Assurance for Scientific Paper--Code Alignment19 Jan 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2025SoRFT: Issue Resolving with Subtask-oriented Reinforced Fine-Tuningcited by 27
- 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Modelscited by 5
- 2024PRISM: Efficient Long-Range Reasoning With Short-Context LLMscited by 3
- 2026Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmarkcited by 0
- 2026Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmark23 Sep 2026
- 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Models28 Jul 2026
- 2025SoRFT: Issue Resolving with Subtask-oriented Reinforced Fine-Tuning27 Feb 2025
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb 2025
- 2024PRISM: Efficient Long-Range Reasoning With Short-Context LLMs25 Dec 2024
- 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methodscited by 59
- 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methods13 Dec 2024
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
- 2025Context Length Alone Hurts LLM Performance Despite Perfect Retrievalcited by 118
- 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 38
- 2025EnvBench: A Benchmark for Automated Environment Setupcited by 36
- 2024On Leakage of Code Generation Evaluation Datasetscited by 29
- 2025One ruler to measure them all: Benchmarking multilingual long-context language modelscited by 18
- 2025Exploring the Potential of Diffusion Large Language Models in Code Generationcited by 16
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasetscited by 15
- 2025BLASST: Dynamic BLocked Attention Sparsity via Softmax Thresholdingcited by 12
- 2024Scaling Granite Code Models to 128K Contextcited by 9
- 2025RANGER -- Repository-Level Agent for Graph-Enhanced Retrievalcited by 7
- 2025Delta Attention: Fast and Accurate Sparse Attention Inference by Delta Correctioncited by 6
12 most cited of 20 All 20 (JSON)
- 2026Talking to Itself While Coding: What Makes Comments Help Code Generation?8 Sep 2026
- 2026RepoProbe: Benchmarking Architecture-Aware Repository Comprehension with Checklists5 Aug 2026
- 2026Understanding Axes of Difficulty For Long Context Tasks Via PredicateLongBench9 Jul 2026
- 2025BLASST: Dynamic BLocked Attention Sparsity via Softmax Thresholding12 Dec 2025
- 2025Kimi Linear: An Expressive, Efficient Attention Architecture30 Oct 2025
- 2025Context Length Alone Hurts LLM Performance Despite Perfect Retrieval6 Oct 2025
- 2025LongCodeZip: Compress Long Context for Code Language Models1 Oct 2025
- 2025RANGER -- Repository-Level Agent for Graph-Enhanced Retrieval27 Sep 2025
- 2025Exploring the Potential of Diffusion Large Language Models in Code Generation14 Sep 2025
- 2025SciCUEval: A Comprehensive Dataset for Evaluating Scientific Context Understanding in Large Language Models21 May 2025
- 2025Sense and Sensitivity: Examining the Influence of Semantic Recall on Long Context Code Understanding19 May 2025
- 2025Delta Attention: Fast and Accurate Sparse Attention Inference by Delta Correction16 May 2025
12 newest of 20 All 20 (JSON)