AI Paper Atlas

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

EMNLP 2023Large language models › Retrieval and knowledgeapproach: RAG robustness and evaluationopen problems in this approach761 citations (OpenAlex)

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 changedWhereMeasuredEffect
use RepoCoder iterative retrieval-generation instead of In-File completionGPT-3.5-Turbo · RepoEval line completionEM: 40.56 -> 56.81 (2 iterations)Improved
use 2 RepoCoder iterations instead of one retrieval (vanilla RAG)GPT-3.5-Turbo · RepoEval line completionEM: 55.31 -> 56.81Improved
use 2 RepoCoder iterations instead of one retrieval (vanilla RAG)GPT-3.5-Turbo · RepoEval function body completionpass rate: 38.34 -> 42.63Improved
use RepoCoder instead of In-File completionGPT-3.5-Turbo · RepoEval function body completionpass rate: 23.32 -> 42.63Improved
increase RepoCoder iterations beyond two (ablation)GPT-3.5-Turbo · RepoEval function body completionpass 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 completionEM: 57.00 -> 56.63Hurt
replace sparse Jaccard retriever with dense UniXcoder retriever (ablation)RepoCoder · RepoEval line completionEM: 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 completionEM: 56.81 -> 57.75Improved
use GT-Code (retrieve ground-truth API usage examples) instead of RepoCoder Iter-2GPT-3.5-Turbo · RepoEval API subsetEM: 55.07 -> 55.54No clear effect
add a second iteration (query with model prediction) for retrievalGPT-3.5-Turbo · RepoEval API subsetrecall of ground-truth API examples: 86.04 -> 90.34Improved
restrict retrieval to only the specific file locations (imported, same directory, similar import/name) (ablation)RepoCoder · RepoEval line and APIperformanceHurt
use RepoCoder where repository has little code duplicationRepoCoder · RepoEval (line/API, GPT-3.5-Turbo)EM gainMixed

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy