mlsanityData to 7 Oct 2026

Improving Code Autocompletion with Transfer Learning

arXiv 2105.05991 ↗First posted 12 May 2021cs.SE cs.LGcited by 6

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  5. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  6. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  7. 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 754
  8. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  9. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  10. 2018The Natural Language Decathlon: Multitask Learning as Question Answeringcited by 235
  11. 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 123
  12. 2020Code Prediction by Feeding Trees to Transformerscited by 70
12 more
  1. 2021Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Taskscited by 70
  2. 2018Generative Code Modeling with Graphscited by 59
  3. 2017Code Completion with Neural Attention and Pointer Networkscited by 49
  4. 2021Applying CodeBERT for Automated Program Repair of Java Simple Bugscited by 44
  5. 2020Trex: Learning Execution Semantics from Micro-Traces for Binary Similaritycited by 34
  6. 2021CodeTrans: Towards Cracking the Language of Silicon's Code Through Self-Supervised Deep Learning and High Performance Computingcited by 28
  7. 2021Traceability Transformed: Generating more Accurate Links with Pre-Trained BERT Modelscited by 20
  8. 2020Learning Autocompletion from Real-World Datasetscited by 19
  9. 2020Sequence Model Design for Code Completion in the Modern IDEcited by 8
  10. 2019On the Feasibility of Transfer-learning Code Smells using Deep Learningcited by 7
  11. 2020A Simple Approach for Handling Out-of-Vocabulary Identifiers in Deep Learning for Source Codecited by 6
  12. 2019Maybe Deep Neural Networks are the Best Choice for Modeling Source Codecited by 5

Built on by

Cited by year

Citing papers per year: 2022: 1; 2023: 3; 2024: 2.

6 papers.