All You Need Is Logs: Improving Code Completion by Learning from Anonymous IDE Usage Logs
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
- 2020IntelliCode Compose: Code Generation Using Transformercited by 227
- 2018CatBoost: gradient boosting with categorical features supportcited by 208
- 2019Pythia: AI-assisted Code Completion Systemcited by 55
- 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 50
- 2020Fast and Memory-Efficient Neural Code Completioncited by 38
- 2020Learning Autocompletion from Real-World Datasetscited by 20
- 2022To What Extent do Deep Learning-based Code Recommenders Generate Predictions by Cloning Code from the Training Set?cited by 11
- 2020Sequence Model Design for Code Completion in the Modern IDEcited by 8
- 2020Towards Full-line Code Completion with Neural Language Modelscited by 6
- 2020Recommendation of Move Method Refactoring Using Path-Based Representation of Codecited by 4
- 2021The IntelliJ Platform: a Framework for Building Plugins and Mining Software Datacited by 3
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 4; 2026: 1.
9 papers.
- 2024Language Models for Code Completion: A Practical Evaluationcited by 39
- 2023From Commit Message Generation to History-Aware Commit Message Completioncited by 16
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2024Full Line Code Completion: Bringing AI to Desktopcited by 4
- 2025Understanding and supporting how developers prompt for LLM-powered code editing in practicecited by 1
- 2026WISP: Waste- and Interference-Suppressed Distributed Speculative LLM Serving at the Edge via Dynamic Drafting and SLO-Aware Batchingcited by 1
- 2024FDI: Attack Neural Code Generation Systems through User Feedback Channelcited by 0
- 2025Structure-Aware Corpus Construction and User-Perception-Aligned Metrics for Large-Language-Model Code Completioncited by 0
- 2025TreeRanker: Fast and Model-agnostic Ranking System for Code Suggestions in IDEscited by 0
- 2026WISP: Waste- and Interference-Suppressed Distributed Speculative LLM Serving at the Edge via Dynamic Drafting and SLO-Aware Batching15 Jan 2026
- 2025TreeRanker: Fast and Model-agnostic Ranking System for Code Suggestions in IDEs4 Aug 2025
- 2025Structure-Aware Corpus Construction and User-Perception-Aligned Metrics for Large-Language-Model Code Completion19 May 2025
- 2025Understanding and supporting how developers prompt for LLM-powered code editing in practice28 Apr 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2024FDI: Attack Neural Code Generation Systems through User Feedback Channel8 Aug 2024
- 2024Full Line Code Completion: Bringing AI to Desktop14 May 2024
- 2024Language Models for Code Completion: A Practical Evaluation25 Feb 2024
- 2023From Commit Message Generation to History-Aware Commit Message Completion15 Aug 2023