mlsanityData to 7 Oct 2026

RepoQA: Evaluating Long Context Code Understanding

arXiv 2406.06025 ↗First posted 10 Jun 2024cs.SE cs.CL cs.LGcited by 35

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

  1. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  2. 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 800
  3. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  4. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
  5. 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 360
  6. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
  7. 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
  8. 2023ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understandingcited by 175
  9. 2024Can't Remember Details in Long Documents? You Need Some R&Rcited by 10

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 6; 2025: 17; 2026: 12.

35 papers.

Sort:

By area:

  1. 2026GLM-5: from Vibe Coding to Agentic Engineeringcited by 502
  2. 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
  3. 2025Context Length Alone Hurts LLM Performance Despite Perfect Retrievalcited by 118
  4. 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methodscited by 59
  5. 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
  6. 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 38
  7. 2025EnvBench: A Benchmark for Automated Environment Setupcited by 36
  8. 2024On Leakage of Code Generation Evaluation Datasetscited by 29
  9. 2025SoRFT: Issue Resolving with Subtask-oriented Reinforced Fine-Tuningcited by 27
  10. 2025One ruler to measure them all: Benchmarking multilingual long-context language modelscited by 18
  11. 2025Exploring the Potential of Diffusion Large Language Models in Code Generationcited by 16
  12. 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasetscited by 15
23 more
  1. 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
  2. 2025BLASST: Dynamic BLocked Attention Sparsity via Softmax Thresholdingcited by 12
  3. 2024Scaling Granite Code Models to 128K Contextcited by 9
  4. 2026SciCoQA: Quality Assurance for Scientific Paper--Code Alignmentcited by 9
  5. 2026AgentLongBench: A Controllable Long Benchmark For Long-Contexts Agents via Environment Rolloutscited by 8
  6. 2025RANGER -- Repository-Level Agent for Graph-Enhanced Retrievalcited by 7
  7. 2025Delta Attention: Fast and Accurate Sparse Attention Inference by Delta Correctioncited by 6
  8. 2025AttnTrace: Contextual Attribution of Prompt Injection and Knowledge Corruptioncited by 5
  9. 2026Can Vision-Language Models Handle Long-Context Code? An Empirical Study on Visual Compressioncited by 5
  10. 2026RepoReasoner: Evaluating Repository-Level Code Reasoning Ability of Long-Context Language Modelscited by 5
  11. 2024Repository Structure-Aware Training Makes SLMs Better Issue Resolvercited by 4
  12. 2025XOXO: Stealthy Cross-Origin Context Poisoning Attacks against AI Coding Assistantscited by 4
  13. 2024Retrieval Or Holistic Understanding? Dolce: Differentiate Our Long Context Evaluation Taskscited by 3
  14. 2024PRISM: Efficient Long-Range Reasoning With Short-Context LLMscited by 3
  15. 2025Sense and Sensitivity: Examining the Influence of Semantic Recall on Long Context Code Understandingcited by 2
  16. 2025SciCUEval: A Comprehensive Dataset for Evaluating Scientific Context Understanding in Large Language Modelscited by 2
  17. 2026LensVLM: Selective Context Expansion for Compressed Visual Representation of Textcited by 2
  18. 2026RepoProbe: Benchmarking Architecture-Aware Repository Comprehension with Checklistscited by 2
  19. 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modelingcited by 1
  20. 2026On Problems of Implicit Context Compression for Software Engineering Agentscited by 0
  21. 2026Understanding Axes of Difficulty For Long Context Tasks Via PredicateLongBenchcited by 0
  22. 2026Talking to Itself While Coding: What Makes Comments Help Code Generation?cited by 0
  23. 2026Can LLMs Reason About Runtime Behavior? A Repository-Level Dynamic Benchmarkcited by 0