scimeatlas

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

ACL 2022Large language models › Retrieval and knowledgeapproach: Retrieval-augmented reasoningopen problems in this approach262 citations (OpenAlex)

Microsoft Research Asia · Seoul National University · Sun Yat-sen University · Microsoft

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
11improved
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 changedWhereMeasuredEffect
add query truncation when training the dense retriever (ablation)ReACC-dense · PY150exact match: 43.93 -> 45.32Improved
add identifier renaming augmentation (ablation)ReACC-dense · PY150exact match: 44.91 -> 45.32Improved
add dead code insertion augmentation (ablation)ReACC-dense · PY150exact match: 45.11 -> 45.32Improved
append API usage sequence to retriever input (ablation)ReACC-dense · PY150exact match: 44.77 -> 45.32Improved
use fragment alignment (next fragment of retrieved code) (ablation)ReACC-dense generator · PY150exact match: 45.08 -> 45.32Improved
add retrieved external code to CodeGPT-adaptedCodeGPT-adapted · PY150 line-levelexact match: 42.37 -> 46.26 (hybrid)Improved
add retrieved external code to CodeGPT-adaptedCodeGPT-adapted · JavaCorpus line-levelexact match: 30.60 -> 30.70 (hybrid)Improved
use ReACC retrieval instead of eWASH extended contextX-CodeGPT · New PY150 test setexact match: 39.41 -> 40.15 (hybrid)Improved
use hybrid instead of BM25 or dense retriever (ablation)ReACC · PY150 new test setexact match: 40.24 (bm25) vs 40.15 (hybrid)Hurt
use dense retriever instead of BM25 in algorithm domain (ablation)ReACC · CodeNet Python completionexact match: 55.88 -> 64.21Improved
use ReACC retriever instead of BM25 for partial code clone retrievalretriever · CodeNet clone detection (Python)MAP@100: 10.32 -> 9.60Hurt
use ReACC retriever instead of BM25 for partial code clone retrievalretriever · CodeNet clone detection (Python)Precision: 23.17 -> 27.04Improved

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.

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?

All 5 open problems and what was already tried →

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