Code-QA-Bench: Separating Code Reasoning from Documentation Memorization in Repository-Level QA
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
We present Code-QA-Bench, a fully automated framework for synthesizing repository-level code understanding benchmarks that separates genuine code comprehension from documentation recall and pretraining memorization. The framework makes two methodological contributions: (1) an answer-first generation pipeline where a tool-equipped agent explores source code to produce verified gold answers before deriving questions, ensuring every task is grounded in real code structure; and (2) a three-condition experimental design evaluating agents under closed-book (no repository), code-only (documentation removed), and documented (full repository) conditions, with deltas directly quantifying documentation utility and memorization. We generate 528 code-derivable and 100 doc-dependent tasks across 10 Python repositories from SWE-Bench, scored by an LLM judge on accuracy, completeness, and specificity. Experiments on four frontier models reveal that code access is the dominant factor (+0.23 mean gain over closed-book), documentation provides modest additional benefit (+0.071 on doc-dependent tasks), and code-only ≈ documented on code-derivable tasks, validating the design. The framework is open-source and applicable to any well-documented Python repository.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 17 of its 33 references that are in the map. First posted on arXiv 28 May 2026.
Builds on
17 of 33 references.
Closest ancestors · 3
Same direction, newest first
- 2026From Laboratory to Real-World Applications: Benchmarking Agentic Code Reasoning at the Repository Level7 Jan
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code12 Mar
- 2024CodeMind: Evaluating Large Language Models for Code Reasoning15 Feb
Other references · 14
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2024From Crowdsourced Data to High-Quality Benchmarks: Arena-Hard and BenchBuilder Pipelinecited by 484
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2024SWE-Bench+: Enhanced Coding Benchmark for LLMscited by 95
- 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
- 2024Prompting Large Language Models to Tackle the Full Software Development Lifecycle: A Case Studycited by 40
- 2025SWE-QA: Can Language Models Answer Repository-level Code Questions?cited by 37
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026SWE-QA: A Dataset and Benchmark for Complex Code Understanding
- 2026Compact Documentation for Coding Agents: A Benchmark, an Optimizer, and Why It Does Not Transfer
- 2026FastCode: Fast and Cost-Efficient Code Understanding and Reasoning
- 2026DeepRepoQA: Code Repository Question Answering with Deep Agent Exploration
- 2024CRQBench: A Benchmark of Code Reasoning Questions
- 2024On The Importance of Reasoning for Context Retrieval in Repository-Level Code Editing
- 2025CodeReviewQA: The Code Review Comprehension Assessment for Large Language Models
- 2026Remember Your Trace: Memory-Guided Long-Horizon Agentic Framework for Consistent and Hierarchical Repository-Level Code Documentation