Research map / Large language models / Agents, code and math
On the Impacts of Contexts on Repository-Level Code Generation
Nam Le Hai, Dung Manh Nguyen, Nghi D. Q. Bui
Hanoi University of Science and Technology · FPT Software AI Center
Read the paperPlace an idea next to itCheck your own paper ↗
12measured effects
9improved
1no clear effect
2hurt
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use full dependency context instead of medium or small context (ablation) | pretrained and instruction-tuned code LLMs · RepoExec | pass@1: CodeLlama-13b-Python 38.65 (full) vs 35.66 (small) vs 32.96 (medium) | Improved |
| use small context instead of medium context (BasePrompt) (ablation) | CodeLlama-13b-Python · RepoExec | pass@1: 32.96 -> 35.66 | Improved |
| add multi-round debugging with error logs (3 rounds) | GPT-3.5 · RepoExec | pass@1: 27.04 -> 41.97 | Improved |
| add multi-round debugging with error logs (3 rounds) | WizardCoder · RepoExec | pass@1: 34.37 -> 42.54 | Improved |
| add multi-round debugging with error logs (3 rounds) | CodeLlama-13b-Python · RepoExec | pass@1: 39.44 -> 39.44 | No clear effect |
| instruction-tune on dependency dataset (DepIT) | StarCoder · RepoExec (full context) | DIR: 58.67 -> 69.80 | Improved |
| instruction-tune on dependency dataset (DepIT) | CodeLlama-13b-Python · RepoExec (full context) | pass@1: 38.65 -> 38.85 | Improved |
| instruction-tune on dependency dataset (DepIT) | phi-2 · RepoExec (small context) | DIR: 44.54 -> 70.30 | Improved |
| use pretrained model instead of instruction-tuned model (BasePrompt) (ablation) | code LLMs of similar size · RepoExec | pass@k: e.g. CodeLlama-13b-Python 38.65 vs CodeLlama-13b-Instruct 28.56 pass@1 | Improved |
| use InstructPrompt instead of BasePrompt (ablation) | GPT-3.5 · RepoExec (full context) | DIR: 63.59 -> 40.55 | Hurt |
| add coverage enhancement to test generation (ablation) | RepoExec tests · RepoExec | line coverage: 92.46 -> 96.25 | Improved |
| add coverage enhancement to test generation (ablation) | code LLMs · RepoExec | pass@1: drop of over 5% | Hurt |
Open problems in code generation benchmarks
Do code benchmarks and methods hold beyond Python, small test sets and leaked data?
- Tested on Python or a few languages, so other languages are untested. · 25 papers state it
- Benchmarks are small, with a few dozen to a few hundred problems. · 14 papers state it
- Iterative or multi-step methods cost more tokens, latency and compute. · 12 papers state it
Closest papers by meaning
- DependEval: Benchmarking LLMs for Repository Dependency Understanding (ACL 2025 · similarity 0.92)
- Turning the Tide: Repository-based Code Reflection (EMNLP 2025 · similarity 0.91)
- DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositories (ACL 2024 · similarity 0.89)
- Hierarchical Context Pruning: Optimizing Real-World Code Completion with Repository-Level Pretrained Code LLMs (AAAI 2025 · similarity 0.87)
- Repoformer: Selective Retrieval for Repository-Level Code Completion (ICML 2024 · similarity 0.87)
- RepoMirage: Probing Repository Context Reasoning in Code Agents with Perturbations (NeurIPS 2026 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.