Research map / Large language models / Retrieval and knowledge
RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generation
Fengji Zhang, Bei Chen, Yue Zhang, Jacky Keung, Jin Liu, Daoguang Zan, Yi Mao, Jian-Guang Lou, Weizhu Chen
Microsoft · Wuhan University · City University of Hong Kong
Read the paperPlace an idea next to itCheck your own paper ↗
12measured effects
6improved
3no clear effect
2hurt
1mixed
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 RepoCoder iterative retrieval-generation instead of In-File completion | GPT-3.5-Turbo · RepoEval line completion | EM: 40.56 -> 56.81 (2 iterations) | Improved |
| use 2 RepoCoder iterations instead of one retrieval (vanilla RAG) | GPT-3.5-Turbo · RepoEval line completion | EM: 55.31 -> 56.81 | Improved |
| use 2 RepoCoder iterations instead of one retrieval (vanilla RAG) | GPT-3.5-Turbo · RepoEval function body completion | pass rate: 38.34 -> 42.63 | Improved |
| use RepoCoder instead of In-File completion | GPT-3.5-Turbo · RepoEval function body completion | pass rate: 23.32 -> 42.63 | Improved |
| increase RepoCoder iterations beyond two (ablation) | GPT-3.5-Turbo · RepoEval function body completion | pass rate: 42.63 -> 41.82 (3 iter), 42.36 (4 iter) | No clear effect |
| increase RepoCoder iterations from 3 to 4 (ablation) | GPT-3.5-Turbo · RepoEval line completion | EM: 57.00 -> 56.63 | Hurt |
| replace sparse Jaccard retriever with dense UniXcoder retriever (ablation) | RepoCoder · RepoEval line completion | EM: best-iteration EM 57.00 (sparse) vs 56.31 (dense) | No clear effect |
| use ground-truth code instead of model prediction to build the retrieval query (Oracle) | RepoCoder · RepoEval line completion | EM: 56.81 -> 57.75 | Improved |
| use GT-Code (retrieve ground-truth API usage examples) instead of RepoCoder Iter-2 | GPT-3.5-Turbo · RepoEval API subset | EM: 55.07 -> 55.54 | No clear effect |
| add a second iteration (query with model prediction) for retrieval | GPT-3.5-Turbo · RepoEval API subset | recall of ground-truth API examples: 86.04 -> 90.34 | Improved |
| restrict retrieval to only the specific file locations (imported, same directory, similar import/name) (ablation) | RepoCoder · RepoEval line and API | performance | Hurt |
| use RepoCoder where repository has little code duplication | RepoCoder · RepoEval (line/API, GPT-3.5-Turbo) | EM gain | Mixed |
Closest papers by meaning
- Repoformer: Selective Retrieval for Repository-Level Code Completion (ICML 2024 · similarity 0.92)
- RepoBench: Benchmarking Repository-Level Code Auto-Completion Systems (ICLR 2024 · similarity 0.92)
- Hierarchical Context Pruning: Optimizing Real-World Code Completion with Repository-Level Pretrained Code LLMs (AAAI 2025 · similarity 0.89)
- RepoAudit: An Autonomous LLM-Agent for Repository-Level Code Auditing (ICML 2025 · similarity 0.86)
- Repo2Run: Automated Building Executable Environment for Code Repository at Scale (NeurIPS 2025 · similarity 0.86)
- RepoMirage: Probing Repository Context Reasoning in Code Agents with Perturbations (NeurIPS 2026 · similarity 0.86)
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.
