MRG-Bench: Evaluating and Exploring the Requirements of Context for Repository-Level Code Generation
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have demonstrated impressive capabilities in code generation. However, current evaluation datasets suffer from issues such as the lack of runnable test cases, deviation from the distribution of real-world code, and the ability to evaluate only the Python language. These limitations undermine the credibility of the evaluation results. To address these limitations, we introduce MRG-Bench (Multi-language Repository-level Code Generation Benchmark), a novel dataset that provides a more accurate evaluation of LLMs in practical repository-level code generation tasks. MRG-Bench has three main features: (1) practical data sourced from real-world code repositories that align to the practical distribution, (2) multiple programming languages support, including Python, Java, and Go, and (3) project-level runnable test cases to assess the quality of the generated code. Based on MRG-Bench, we conducted extensive experiments including large language models, long-context models, and RAG-related methods. These evaluation results demonstrate that current repository-level code generation techniques suffer from significant performance deficiencies. To further investigate why models fail, we designed novel experiments to annotate the underlying causes of generation errors. The results explicitly show that the majority of methods suffer from "difficulty in understanding user requirements," failing to comprehend their assigned tasks accurately. Moreover, the impact of different repository-level contexts on this issue exhibits significant disparities across different programming languages, suggesting that, in practice, specialized contextual information needs to be designed for different languages.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). First posted on arXiv 5 Aug 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
- 2025RPG: A Repository Planning Graph for Unified and Scalable Codebase Generationcited by 19
- 2026DocRetriever: A Plug-and-Play Framework for Multimodal Document Retrieval with Comprehensive Benchmarkcited by 0
- 2026Compact Documentation for Coding Agents: A Benchmark, an Optimizer, and Why It Does Not Transfercited by 0
- 2026Compact Documentation for Coding Agents: A Benchmark, an Optimizer, and Why It Does Not Transfer25 Sep 2026
- 2026DocRetriever: A Plug-and-Play Framework for Multimodal Document Retrieval with Comprehensive Benchmark28 May 2026
- 2025RPG: A Repository Planning Graph for Unified and Scalable Codebase Generation19 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositories
- 2026MRCoder: An Efficient Context Selecting Approach for Repository-Level Code Generation ↗
- 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?
- 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositories
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approaches
- 2025Holistic Evaluation of State-of-the-Art LLMs for Code Generation
- 2026ReCUBE: Evaluating Repository-Level Context Utilization in Code Generation
- 2024Can Language Models Replace Programmers for Coding? REPOCOD Says 'Not Yet'