paper-with-me

홈 › Papers

ReACC: A Retrieval-Augmented Code Completion Framework

2022-03-15 · ACL 2022 5 · Shuai Lu, Nan Duan, Hojae Han, Daya Guo, Seung-won Hwang, Alexey Svyatkovskiy

Code completion, which aims to predict the following code token(s) according to the code context, can improve the productivity of software development. Recent work has proved that statistical language modeling with transformers can greatly improve the performance in the code completion task via learning from large-scale source code datasets. However, current approaches focus only on code context within the file or project, i.e. internal context. Our distinction is utilizing "external" context, inspired by human behaviors of copying from the related code snippets when writing code. Specifically, we propose a retrieval-augmented code completion framework, leveraging both lexical copying and referring to code with similar semantics by retrieval. We adopt a stage-wise training approach that combines a source code retriever and an auto-regressive language model for programming language. We evaluate our approach in the code completion task in Python and Java programming languages, achieving a state-of-the-art performance on CodeXGLUE benchmark.

📄 PDF Abstract BibTeX arXiv:2203.07722

Code (1)

celbree/reacc 공식 구현 pytorch

Tasks

Code CompletionLanguage ModelingLanguage ModellingRetrieval

Similar Papers 제목 키워드 기반

CodeRAG: Finding Relevant and Necessary Knowledge for Retrieval-Augmented Repository-Level Code Completion

2025-09-19 · Sheng Zhang, Yifan Ding, Shuquan Lian, Shun Song 외 arxiv

Repository-level code completion automatically predicts the unfinished code based on the broader information from the repository. Recent strides in Code Large Language Models (code LLMs) have spurred the development of r…

Code Completion

Repoformer: Selective Retrieval for Repository-Level Code Completion

2024-03-15 · Di wu, Wasi Uddin Ahmad, Dejiao Zhang, Murali Krishna Ramanathan 외

Recent advances in retrieval-augmented generation (RAG) have initiated a new era in repository-level code completion. However, the invariable use of retrieval in existing methods exposes issues in both efficiency and rob…

Code CompletionRAGRetrievalRetrieval-augmented Generation+1

RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generation

2023-03-22 · Fengji Zhang, Bei Chen, Yue Zhang, Jacky Keung 외

The task of repository-level code completion is to continue writing the unfinished code based on a broader context of the repository. While for automated code completion tools, it is difficult to utilize the useful infor…

Code CompletionLanguage ModelingLanguage ModellingRetrieval

Benefit from Reference: Retrieval-Augmented Cross-modal Point Cloud Completion

2025-07-19 · Hongye Hou, Liu Zhan, Yang Yang arxiv

Completing the whole 3D structure based on an incomplete point cloud is a challenging task, particularly when the residual point cloud lacks typical structural characteristics. Recent methods based on cross-modal learnin…

Point Cloud CompletionCross-Modal RetrievalPoint Clouds

AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion

2026-01-27 · Tianyue Jiang, Yanli Wang, Yanlin Wang, Daya Guo 외 arxiv

Repository-level code completion remains a challenging task for existing code large language models (code LLMs) due to their limited understanding of repository-specific context and domain knowledge. While retrieval-augm…

Reinforcement LearningCode Completion