R.I.P.
👻
Ghosted
ReACC: A Retrieval-Augmented Code Completion Framework
March 15, 2022 · 🏛 Annual Meeting of the Association for Computational Linguistics
"No code URL or promise found in abstract"
"HuggingFace models found (backfill)"
Evidence collected by the PWNC Scanner
Authors
Shuai Lu, Nan Duan, Hojae Han, Daya Guo, Seung-won Hwang, Alexey Svyatkovskiy
arXiv ID
2203.07722
Category
cs.SE: Software Engineering
Cross-listed
cs.AI,
cs.CL
Citations
201
Venue
Annual Meeting of the Association for Computational Linguistics
Repository
https://huggingface.co/microsoft/reacc-py-retriever
Last Checked
9 days ago
Abstract
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.
Community Contributions
Found the code? Know the venue? Think something is wrong? Let us know!
📜 Similar Papers
In the same crypt — Software Engineering
R.I.P.
👻
Ghosted
Microservices: yesterday, today, and tomorrow
📚
📚
The Cartographer
A Survey of Machine Learning for Big Code and Naturalness
R.I.P.
👻
Ghosted
An Overview on Smart Contracts: Challenges, Advances and Platforms
R.I.P.
👻
Ghosted
Slither: A Static Analysis Framework For Smart Contracts
R.I.P.
👻
Ghosted