paper-with-me

홈 › Papers

ReCUBE: Evaluating Repository-Level Context Utilization in Code Generation

2026-03-26 · Jiseung Hong, Benjamin G. Ascoli, Jinho D. Choi arxiv

Large Language Models (LLMs) have recently emerged as capable coding assistants that operate over large codebases through either agentic exploration or full-context generation. Existing benchmarks capture a broad range of coding capabilities, such as resolving GitHub issues, but none of them directly isolate and measure how effectively LLMs leverage repository-level context during code generation. To address this, we introduce ReCUBE, a benchmark in which LLMs reconstruct a masked file within a real-world repository, using all remaining source files, dependency specifications, and documentation as their only source of context. ReCUBE evaluates reconstructed code with usage-aware test cases that simulate both internal module logic and external cross-file integration, reflecting real-world software usage patterns. We further propose the Caller-Centric Exploration (CCE) toolkit, a set of dependency graph-based tools that can be integrated into agentic frameworks to guide agents toward the most relevant caller files during repository exploration. Experiments across eight models in four settings show that repository-level context utilization remains highly challenging even for state-of-the-art models, with GPT-5 achieving only 37.57% strict pass rate in the full-context setting. Agents augmented with our CCE toolkit consistently outperform all baselines across all evaluated models, with improvements of up to 7.56% in strict pass rate. We release our benchmark, code, and evaluation framework as open source for the NLP research community.

📄 PDF Abstract BibTeX arXiv:2603.25770

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

On the Impacts of Contexts on Repository-Level Code Generation

2024-06-17 · Nam Le Hai, Dung Manh Nguyen, Nghi D. Q. Bui

CodeLLMs have gained widespread adoption for code generation tasks, yet their capacity to handle repository-level code generation with complex contextual dependencies remains underexplored. Our work underscores the criti…

Code Generation

Code Summarization Beyond Function Level

2025-02-23 · Vladimir Makharev, Vladimir Ivanov

Code summarization is a critical task in natural language processing and software engineering, which aims to generate concise descriptions of source code. Recent advancements have improved the quality of these summaries,…

Code SummarizationFew-Shot LearningIn-Context LearningPrompt Engineering+1

RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generation

2023-03-22 · Fengji Zhang, Bei Chen, Yue Zhang, Jacky Keung 외

The task of repository-level code completion is to continue writing the unfinished code based on a broader context of the repository. While for automated code completion tools, it is difficult to utilize the useful infor…

Code CompletionLanguage ModelingLanguage ModellingRetrieval

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

Topical: Learning Repository Embeddings from Source Code using Attention

2022-08-19 · Agathe Lherondelle, Varun Babbar, Yash Satsangi, Fran Silavong 외

This paper presents Topical, a novel deep neural network for repository level embeddings. Existing methods, reliant on natural language documentation or naive aggregation techniques, are outperformed by Topical's utiliza…