On the Impacts of Contexts on Repository-Level Code Generation
Not on the map. Why?
Abstract (arXiv)
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 critical importance of leveraging repository-level contexts to generate executable and functionally correct code. We present RepoExec, a novel benchmark designed to evaluate repository-level code generation, with a focus on three key aspects: executability, functional correctness through comprehensive test case generation, and accurate utilization of cross-file contexts. Our study examines a controlled scenario where developers specify essential code dependencies (contexts), challenging models to integrate them effectively. Additionally, we introduce an instruction-tuned dataset that enhances CodeLLMs' ability to leverage dependencies, along with a new metric, Dependency Invocation Rate (DIR), to quantify context utilization. Experimental results reveal that while pretrained LLMs demonstrate superior performance in terms of correctness, instruction-tuned models excel in context utilization and debugging capabilities. RepoExec offers a comprehensive evaluation framework for assessing code functionality and alignment with developer intent, thereby advancing the development of more reliable CodeLLMs for real-world applications. The dataset and source code are available at https://github.com/FSoft-AI4Code/RepoExec.
Key facts. Cited by 21 papers in the map (data through 7 Oct 2026). Builds on 41 of its 73 references that are in the map. First posted on arXiv 17 Jun 2024.
Builds on
41 of 73 references.
References · 41
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
29 more
- 2023StarCoder: may the source be with you!cited by 790
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
- 2024Yi: Open Foundation Models by 01.AIcited by 706
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
- 2022A Systematic Evaluation of Large Language Models of Codecited by 360
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 278
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 242
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
- 2023SantaCoder: don't reach for the stars!cited by 169
- 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
- 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
- 2018Mapping Language to Code in Programmatic Contextcited by 104
- 2022Execution-Based Evaluation for Open-Domain Code Generationcited by 89
- 2022Efficient Long-Text Understanding with Short-Text Modelscited by 71
- 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
- 2022CoCoMIC: Code Completion By Jointly Modeling In-file and Cross-file Contextcited by 64
- 2023No Need to Lift a Finger Anymore? Assessing the Quality of Code Generation by ChatGPTcited by 45
- 2022Execution-based Evaluation for Data Science Code Generation Modelscited by 31
- 2024CodeBenchGen: Creating Scalable Execution-based Code Generation Benchmarkscited by 23
- 2023Exploring Continual Learning for Code Generation Modelscited by 22
- 2023CodeTF: One-stop Transformer Library for State-of-the-art Code LLMscited by 21
- 2023The Vault: A Comprehensive Multilingual Dataset for Advancing Code Understanding and Generationcited by 20
- 2024Analyzing the Performance of Large Language Models on Code Summarizationcited by 19
- 2024Stable Code Technical Reportcited by 16
- 2023Better Language Models of Code through Self-Improvementcited by 14
- 2021An Empirical Study of Automated Unit Test Generation for Pythoncited by 10
Built on by
Citing papers per year: 2025: 9; 2026: 12.
21 papers.
Sort:
By area:
- 2025Agent Laboratory: Using LLM Agents as Research Assistantscited by 405
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyondcited by 22
- 2025Agent READMEs: An Empirical Study of Context Files for Agentic Codingcited by 21
- 2025On the Use of Agentic Coding Manifests: An Empirical Study of Claude Codecited by 14
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2025Automatically Benchmarking LLM Code Agents through Agent-Driven Annotation and Evaluationcited by 9
- 2026EvoCode-Bench: Evaluating Coding Agents in Multi-Turn Iterative Interactionscited by 6
- 2026When the Specification Emerges: Benchmarking Faithfulness Loss in Long-Horizon Coding Agentscited by 5
- 2025Exploring the Challenges and Opportunities of AI-assisted Codebase Generationcited by 4
- 2026Repository Intelligence Graph: Deterministic Architectural Map for LLM Code Assistantscited by 4
- 2025CoreCodeBench: Decoupling Code Intelligence via Fine-Grained Repository-Level Taskscited by 3
9 more
- 2026Revealing the Learning Dynamics of Long-Context Continual Pre-trainingcited by 1
- 2026Beyond "What to Retrieve": Uncertainty in Retrieval-Augmented Code Generationcited by 1
- 2026Toward Executable Repository-Level Code Generation via Environment Alignmentcited by 0
- 2026BootstrapAgent: Distilling Repository Setup into Reusable Agent Knowledgecited by 0
- 2026Rethinking Code Performance Benchmarks for LLMscited by 0
- 2026Generation of Web Apps with Agentic IDEs: An Empirical Assessmentcited by 0
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generationcited by 0
- 2026FeatLens: Feature-Guided Dynamic Code Graph Construction and Retrieval for Repository-Level Code Generationcited by 0
- 2026SWE-Prometheus: Measuring Engineering Governance Improvements in Real-World Repositoriescited by 0
- 2026SWE-Prometheus: Measuring Engineering Governance Improvements in Real-World Repositories24 Sep 2026
- 2026FeatLens: Feature-Guided Dynamic Code Graph Construction and Retrieval for Repository-Level Code Generation22 Sep 2026
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generation1 Sep 2026
- 2026Generation of Web Apps with Agentic IDEs: An Empirical Assessment21 Aug 2026
- 2026Beyond "What to Retrieve": Uncertainty in Retrieval-Augmented Code Generation27 Jul 2026
- 2026Rethinking Code Performance Benchmarks for LLMs8 Jul 2026
- 2026EvoCode-Bench: Evaluating Coding Agents in Multi-Turn Iterative Interactions22 May 2026
- 2026BootstrapAgent: Distilling Repository Setup into Reusable Agent Knowledge15 May 2026
- 2026Toward Executable Repository-Level Code Generation via Environment Alignment4 Apr 2026
- 2026Revealing the Learning Dynamics of Long-Context Continual Pre-training3 Apr 2026
- 2026When the Specification Emerges: Benchmarking Faithfulness Loss in Long-Horizon Coding Agents17 Mar 2026
- 2026Repository Intelligence Graph: Deterministic Architectural Map for LLM Code Assistants15 Jan 2026
9 more
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Agent READMEs: An Empirical Study of Context Files for Agentic Coding17 Nov 2025
- 2025Automatically Benchmarking LLM Code Agents through Agent-Driven Annotation and Evaluation28 Oct 2025
- 2025On the Use of Agentic Coding Manifests: An Empirical Study of Claude Code18 Sep 2025
- 2025Exploring the Challenges and Opportunities of AI-assisted Codebase Generation11 Aug 2025
- 2025CoreCodeBench: Decoupling Code Intelligence via Fine-Grained Repository-Level Tasks4 Jul 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyond26 Mar 2025
- 2025Agent Laboratory: Using LLM Agents as Research Assistants8 Jan 2025
- 2025Agent Laboratory: Using LLM Agents as Research Assistantscited by 405
- 2025Agent READMEs: An Empirical Study of Context Files for Agentic Codingcited by 21
- 2025On the Use of Agentic Coding Manifests: An Empirical Study of Claude Codecited by 14
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025Automatically Benchmarking LLM Code Agents through Agent-Driven Annotation and Evaluationcited by 9
- 2026EvoCode-Bench: Evaluating Coding Agents in Multi-Turn Iterative Interactionscited by 6
- 2026When the Specification Emerges: Benchmarking Faithfulness Loss in Long-Horizon Coding Agentscited by 5
- 2026Repository Intelligence Graph: Deterministic Architectural Map for LLM Code Assistantscited by 4
- 2026Generation of Web Apps with Agentic IDEs: An Empirical Assessmentcited by 0
- 2026SWE-Prometheus: Measuring Engineering Governance Improvements in Real-World Repositoriescited by 0
- 2026SWE-Prometheus: Measuring Engineering Governance Improvements in Real-World Repositories24 Sep 2026
- 2026Generation of Web Apps with Agentic IDEs: An Empirical Assessment21 Aug 2026
- 2026EvoCode-Bench: Evaluating Coding Agents in Multi-Turn Iterative Interactions22 May 2026
- 2026When the Specification Emerges: Benchmarking Faithfulness Loss in Long-Horizon Coding Agents17 Mar 2026
- 2026Repository Intelligence Graph: Deterministic Architectural Map for LLM Code Assistants15 Jan 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Agent READMEs: An Empirical Study of Context Files for Agentic Coding17 Nov 2025
- 2025Automatically Benchmarking LLM Code Agents through Agent-Driven Annotation and Evaluation28 Oct 2025
- 2025On the Use of Agentic Coding Manifests: An Empirical Study of Claude Code18 Sep 2025
- 2025Agent Laboratory: Using LLM Agents as Research Assistants8 Jan 2025
- 2026Rethinking Code Performance Benchmarks for LLMscited by 0
- 2026Rethinking Code Performance Benchmarks for LLMs8 Jul 2026
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2025Exploring the Challenges and Opportunities of AI-assisted Codebase Generationcited by 4
- 2025CoreCodeBench: Decoupling Code Intelligence via Fine-Grained Repository-Level Taskscited by 3
- 2026Revealing the Learning Dynamics of Long-Context Continual Pre-trainingcited by 1
- 2026Toward Executable Repository-Level Code Generation via Environment Alignmentcited by 0
- 2026BootstrapAgent: Distilling Repository Setup into Reusable Agent Knowledgecited by 0
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generationcited by 0
- 2026FeatLens: Feature-Guided Dynamic Code Graph Construction and Retrieval for Repository-Level Code Generationcited by 0
- 2026FeatLens: Feature-Guided Dynamic Code Graph Construction and Retrieval for Repository-Level Code Generation22 Sep 2026
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generation1 Sep 2026
- 2026BootstrapAgent: Distilling Repository Setup into Reusable Agent Knowledge15 May 2026
- 2026Toward Executable Repository-Level Code Generation via Environment Alignment4 Apr 2026
- 2026Revealing the Learning Dynamics of Long-Context Continual Pre-training3 Apr 2026
- 2025Exploring the Challenges and Opportunities of AI-assisted Codebase Generation11 Aug 2025
- 2025CoreCodeBench: Decoupling Code Intelligence via Fine-Grained Repository-Level Tasks4 Jul 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025