mlsanityData to 14 Oct 2026

All You Need Is Logs: Improving Code Completion by Learning from Anonymous IDE Usage Logs

arXiv 2205.10692 ↗First posted 21 May 2022cs.SE cs.LGcited by 9

Not on the map. Why?

Abstract (arXiv)

In this work, we propose an approach for collecting completion usage logs from the users in an IDE and using them to train a machine learning based model for ranking completion candidates. We developed a set of features that describe completion candidates and their context, and deployed their anonymized collection in the Early Access Program of IntelliJ-based IDEs. We used the logs to collect a dataset of code completions from users, and employed it to train a ranking CatBoost model. Then, we evaluated it in two settings: on a held-out set of the collected completions and in a separate A/B test on two different groups of users in the IDE. Our evaluation shows that using a simple ranking model trained on the past user behavior logs significantly improved code completion experience. Compared to the default heuristics-based ranking, our model demonstrated a decrease in the number of typing actions necessary to perform the completion in the IDE from 2.073 to 1.832. The approach adheres to privacy requirements and legal constraints, since it does not require collecting personal information, performing all the necessary anonymization on the client's side. Importantly, it can be improved continuously: implementing new features, collecting new data, and evaluating new models - this way, we have been using it in production since the end of 2020.

Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 11 of its 48 references that are in the map. First posted on arXiv 21 May 2022.

Builds on

11 of 48 references.

References · 11

  1. 2020IntelliCode Compose: Code Generation Using Transformercited by 227
  2. 2018CatBoost: gradient boosting with categorical features supportcited by 208
  3. 2019Pythia: AI-assisted Code Completion Systemcited by 55
  4. 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 50
  5. 2020Fast and Memory-Efficient Neural Code Completioncited by 38
  6. 2020Learning Autocompletion from Real-World Datasetscited by 20
  7. 2022To What Extent do Deep Learning-based Code Recommenders Generate Predictions by Cloning Code from the Training Set?cited by 11
  8. 2020Sequence Model Design for Code Completion in the Modern IDEcited by 8
  9. 2020Towards Full-line Code Completion with Neural Language Modelscited by 6
  10. 2020Recommendation of Move Method Refactoring Using Path-Based Representation of Codecited by 4
  11. 2021The IntelliJ Platform: a Framework for Building Plugins and Mining Software Datacited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 1; 2024: 3; 2025: 4; 2026: 1.

9 papers.