mlsanityData to 7 Oct 2026

On the Impacts of Contexts on Repository-Level Code Generation

arXiv 2406.11927 ↗First posted 17 Jun 2024cs.SE cs.AIcited by 21

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

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2021Program Synthesis with Large Language Modelscited by 3,509
  5. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  6. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  7. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  8. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  9. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  10. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  11. 2021Measuring Coding Challenge Competence With APPScited by 879
  12. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
29 more
  1. 2023StarCoder: may the source be with you!cited by 790
  2. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
  3. 2024Yi: Open Foundation Models by 01.AIcited by 706
  4. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
  5. 2022A Systematic Evaluation of Large Language Models of Codecited by 360
  6. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
  7. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
  8. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
  9. 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 278
  10. 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 242
  11. 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
  12. 2023SantaCoder: don't reach for the stars!cited by 169
  13. 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
  14. 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
  15. 2018Mapping Language to Code in Programmatic Contextcited by 104
  16. 2022Execution-Based Evaluation for Open-Domain Code Generationcited by 89
  17. 2022Efficient Long-Text Understanding with Short-Text Modelscited by 71
  18. 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
  19. 2022CoCoMIC: Code Completion By Jointly Modeling In-file and Cross-file Contextcited by 64
  20. 2023No Need to Lift a Finger Anymore? Assessing the Quality of Code Generation by ChatGPTcited by 45
  21. 2022Execution-based Evaluation for Data Science Code Generation Modelscited by 31
  22. 2024CodeBenchGen: Creating Scalable Execution-based Code Generation Benchmarkscited by 23
  23. 2023Exploring Continual Learning for Code Generation Modelscited by 22
  24. 2023CodeTF: One-stop Transformer Library for State-of-the-art Code LLMscited by 21
  25. 2023The Vault: A Comprehensive Multilingual Dataset for Advancing Code Understanding and Generationcited by 20
  26. 2024Analyzing the Performance of Large Language Models on Code Summarizationcited by 19
  27. 2024Stable Code Technical Reportcited by 16
  28. 2023Better Language Models of Code through Self-Improvementcited by 14
  29. 2021An Empirical Study of Automated Unit Test Generation for Pythoncited by 10

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 9; 2026: 12.

21 papers.

Sort:

By area:

  1. 2025Agent Laboratory: Using LLM Agents as Research Assistantscited by 405
  2. 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyondcited by 22
  3. 2025Agent READMEs: An Empirical Study of Context Files for Agentic Codingcited by 21
  4. 2025On the Use of Agentic Coding Manifests: An Empirical Study of Claude Codecited by 14
  5. 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
  6. 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
  7. 2025Automatically Benchmarking LLM Code Agents through Agent-Driven Annotation and Evaluationcited by 9
  8. 2026EvoCode-Bench: Evaluating Coding Agents in Multi-Turn Iterative Interactionscited by 6
  9. 2026When the Specification Emerges: Benchmarking Faithfulness Loss in Long-Horizon Coding Agentscited by 5
  10. 2025Exploring the Challenges and Opportunities of AI-assisted Codebase Generationcited by 4
  11. 2026Repository Intelligence Graph: Deterministic Architectural Map for LLM Code Assistantscited by 4
  12. 2025CoreCodeBench: Decoupling Code Intelligence via Fine-Grained Repository-Level Taskscited by 3
9 more
  1. 2026Revealing the Learning Dynamics of Long-Context Continual Pre-trainingcited by 1
  2. 2026Beyond "What to Retrieve": Uncertainty in Retrieval-Augmented Code Generationcited by 1
  3. 2026Toward Executable Repository-Level Code Generation via Environment Alignmentcited by 0
  4. 2026BootstrapAgent: Distilling Repository Setup into Reusable Agent Knowledgecited by 0
  5. 2026Rethinking Code Performance Benchmarks for LLMscited by 0
  6. 2026Generation of Web Apps with Agentic IDEs: An Empirical Assessmentcited by 0
  7. 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generationcited by 0
  8. 2026FeatLens: Feature-Guided Dynamic Code Graph Construction and Retrieval for Repository-Level Code Generationcited by 0
  9. 2026SWE-Prometheus: Measuring Engineering Governance Improvements in Real-World Repositoriescited by 0