paper-with-me

Papers

Code-QA-Bench: Separating Code Reasoning from Documentation Memorization in Repository-Level QA

2026-05-28 · Jun Zhang, JianYing Qu, Hanwen Du, Zhongkai Sun, Yehua Yang, Qiao Zhao 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 $\approx$ documented on code-derivable tasks, validating the design. The framework is open-source and applicable to any well-documented Python repository.

📄 PDF Abstract BibTeX arXiv:2605.29277

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

GraphSkill: Documentation-Guided Hierarchical Retrieval-Augmented Coding for Complex Graph Reasoning

2026-02-20 · Fali Wang, Chenglin Weng, Xianren Zhang, Siyuan Hong 외 arxiv

The growing demand for automated graph algorithm reasoning has attracted increasing attention in the large language model (LLM) community. Recent LLM-based graph reasoning methods typically decouple task descriptions fro…

Code Generation

Evaluating Repository-level Software Documentation via Question Answering and Feature-Driven Development

2026-04-08 · Xinchen Wang, Ruida Hu, Cuiyun Gao, Pengfei Gao 외 arxiv

Software documentation is crucial for repository comprehension. While Large Language Models (LLMs) advance documentation generation from code snippets to entire repositories, existing benchmarks have two key limitations:…

Question Answering

Generation-Augmented Query Expansion For Code Retrieval

2022-12-20 · Dong Li, Yelong Shen, Ruoming Jin, Yi Mao 외

Pre-trained language models have achieved promising success in code retrieval tasks, where a natural language documentation query is given to find the most relevant existing code snippet. However, existing models focus o…

Code GenerationRetrieval

Path-Lock Expert: Separating Reasoning Mode in Hybrid Thinking via Architecture-Level Separation

2026-04-29 · Shouren Wang, Wang Yang, Chuang Ma, Debargha Ganguly 외 arxiv

Hybrid-thinking language models expose explicit think and no-think modes, but current designs do not separate them cleanly. Even in no-think mode, models often emit long and self-reflective responses, causing reasoning l…

Testing the Effect of Code Documentation on Large Language Model Code Understanding

2024-04-03 · William Macke, Michael Doyle

Large Language Models (LLMs) have demonstrated impressive abilities in recent years with regards to code generation and understanding. However, little work has investigated how documentation and other code properties aff…

Code GenerationLanguage ModelingLanguage ModellingLarge Language Model