Improving Code Autocompletion with Transfer Learning
Not on the map. Why?
Abstract (arXiv)
Software language models have achieved promising results predicting code completion usages, and several industry studies have described successful IDE integrations. Recently, accuracy in autocompletion prediction improved 12.8% from training on a real-world dataset collected from programmers' IDE activity. But what if limited examples of IDE autocompletion in the target programming language are available for model training? In this paper, we investigate the efficacy of pretraining autocompletion models on non-IDE, non-autocompletion, and different-language example code sequences. We find that these unsupervised pretrainings improve model accuracy by over 50% on very small fine-tuning datasets and over 10% on 50k labeled examples. We confirm the real-world impact of these pretrainings in an online setting through A/B testing on thousands of IDE autocompletion users, finding that pretraining is responsible for increases of up to 6.63% autocompletion usage.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 24 of its 32 references that are in the map. First posted on arXiv 12 May 2021.
Builds on
24 of 32 references.
References · 24
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 754
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2018The Natural Language Decathlon: Multitask Learning as Question Answeringcited by 235
- 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 123
- 2020Code Prediction by Feeding Trees to Transformerscited by 70
12 more
- 2021Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Taskscited by 70
- 2018Generative Code Modeling with Graphscited by 59
- 2017Code Completion with Neural Attention and Pointer Networkscited by 49
- 2021Applying CodeBERT for Automated Program Repair of Java Simple Bugscited by 44
- 2020Trex: Learning Execution Semantics from Micro-Traces for Binary Similaritycited by 34
- 2021CodeTrans: Towards Cracking the Language of Silicon's Code Through Self-Supervised Deep Learning and High Performance Computingcited by 28
- 2021Traceability Transformed: Generating more Accurate Links with Pre-Trained BERT Modelscited by 20
- 2020Learning Autocompletion from Real-World Datasetscited by 19
- 2020Sequence Model Design for Code Completion in the Modern IDEcited by 8
- 2019On the Feasibility of Transfer-learning Code Smells using Deep Learningcited by 7
- 2020A Simple Approach for Handling Out-of-Vocabulary Identifiers in Deep Learning for Source Codecited by 6
- 2019Maybe Deep Neural Networks are the Best Choice for Modeling Source Codecited by 5
Built on by
Citing papers per year: 2022: 1; 2023: 3; 2024: 2.
6 papers.
- 2022Productivity Assessment of Neural Code Completioncited by 97
- 2023AI-assisted Code Authoring at Scale: Fine-tuning, deploying, and mixed methods evaluationcited by 20
- 2024Multi-line AI-assisted Code Authoringcited by 13
- 2024RAMBO: Enhancing RAG-based Repository-Level Method Body Completioncited by 10
- 2023Cross-lingual Transfer in Programming Languages: An Extensive Empirical Studycited by 4
- 2023xASTNN: Improved Code Representations for Industrial Practicecited by 2
- 2024RAMBO: Enhancing RAG-based Repository-Level Method Body Completion23 Sep 2024
- 2024Multi-line AI-assisted Code Authoring6 Feb 2024
- 2023Cross-lingual Transfer in Programming Languages: An Extensive Empirical Study25 Oct 2023
- 2023AI-assisted Code Authoring at Scale: Fine-tuning, deploying, and mixed methods evaluation20 May 2023
- 2023xASTNN: Improved Code Representations for Industrial Practice13 Mar 2023
- 2022Productivity Assessment of Neural Code Completion13 May 2022