Research map / Large language models / Retrieval and knowledge
ReACC: A Retrieval-Augmented Code Completion Framework
Shuai Lu, Nan Duan, Hojae Han, Daya Guo, Seung-won Hwang, Alexey Svyatkovskiy
Microsoft Research Asia · Seoul National University · Sun Yat-sen University · Microsoft
Read the paperPlace an idea next to itCheck your own paper ↗
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 |
|---|---|---|---|
| add query truncation when training the dense retriever (ablation) | ReACC-dense · PY150 | exact match: 43.93 -> 45.32 | Improved |
| add identifier renaming augmentation (ablation) | ReACC-dense · PY150 | exact match: 44.91 -> 45.32 | Improved |
| add dead code insertion augmentation (ablation) | ReACC-dense · PY150 | exact match: 45.11 -> 45.32 | Improved |
| append API usage sequence to retriever input (ablation) | ReACC-dense · PY150 | exact match: 44.77 -> 45.32 | Improved |
| use fragment alignment (next fragment of retrieved code) (ablation) | ReACC-dense generator · PY150 | exact match: 45.08 -> 45.32 | Improved |
| add retrieved external code to CodeGPT-adapted | CodeGPT-adapted · PY150 line-level | exact match: 42.37 -> 46.26 (hybrid) | Improved |
| add retrieved external code to CodeGPT-adapted | CodeGPT-adapted · JavaCorpus line-level | exact match: 30.60 -> 30.70 (hybrid) | Improved |
| use ReACC retrieval instead of eWASH extended context | X-CodeGPT · New PY150 test set | exact match: 39.41 -> 40.15 (hybrid) | Improved |
| use hybrid instead of BM25 or dense retriever (ablation) | ReACC · PY150 new test set | exact match: 40.24 (bm25) vs 40.15 (hybrid) | Hurt |
| use dense retriever instead of BM25 in algorithm domain (ablation) | ReACC · CodeNet Python completion | exact match: 55.88 -> 64.21 | Improved |
| use ReACC retriever instead of BM25 for partial code clone retrieval | retriever · CodeNet clone detection (Python) | MAP@100: 10.32 -> 9.60 | Hurt |
| use ReACC retriever instead of BM25 for partial code clone retrieval | retriever · CodeNet clone detection (Python) | Precision: 23.17 -> 27.04 | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- CodeT5-base — CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation (EMNLP 2021) · better on 1 of 1 shared result
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in retrieval-augmented reasoning
How can retrieval-augmented reasoning cut its extra LLM calls, storage and dependence on retrieval and LLM-built structures?
- Multi-step retrieval needs extra LLM calls and slows inference. · 22 papers state it
- Tested on English, or English and one other language, only. · 15 papers state it
- Graphs, trees and memories built by LLMs or parsers pass on their errors. · 12 papers state it
Closest papers by meaning
- Repoformer: Selective Retrieval for Repository-Level Code Completion (ICML 2024 · similarity 0.92)
- CodeRAG: Finding Relevant and Necessary Knowledge for Retrieval-Augmented Repository-Level Code Completion (EMNLP 2025 · similarity 0.91)
- AIRCoder: Adaptive Integration of Multi-dimensional Retrieval for Repository-level Code Completion (ACL 2026 · similarity 0.91)
- Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completion (ACL 2024 · similarity 0.90)
- Fast and Focused: Interactive Repository-Level Fill-in-the-Middle Code Completion with Hybrid Structural Retrieval (EMNLP 2026 · similarity 0.90)
- CoRNStack: High-Quality Contrastive Data for Better Code Retrieval and Reranking (ICLR 2025 · similarity 0.88)
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.