All You Need Is Logs: Improving Code Completion by Learning from Anonymous IDE Usage Logs
Vitaliy Bibaev, Alexey Kalina, Vadim Lomshakov, Yaroslav Golubev, Alexander Bezzubov, Nikita Povarov, and Timofey Bryksin
November, 2022. Published in the proceedings of ESEC/FSE'22 (A*).
Abstract. Integrated Development Environments (IDE) are designed to make users more productive, as well as to make their work more comfortable. To achieve this, a lot of diverse tools are embedded into IDEs, and the developers of IDEs can employ anonymous usage logs to collect the data about how they are being used to improve them. A particularly important component that this can be applied to is code completion, since improving code completion using statistical learning techniques is a well-established research area.
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.
Paper Pre-printCiting publications
- Enterprise specific code generation using generative artificial intelligence
I Ostrovsky, MS De JONG, MN Rabe · US Patent … · 2026 - Evaluating package-level scoping strategies for repository-level code completion in Pharo
O Abedelkader, S Ducasse, G Polito, O Zaitsev · Journal of Computer … · 2026 - WISP: waste-and interference-suppressed distributed speculative LLM serving at the edge via dynamic drafting and SLO-aware batching
X Li, J Fan, Q Wang, D Spatharakis, S Ghafouri · Proceedings of the … · 2026 - Towards an understanding of context utilization in code intelligence
Y Wang, K Duan, D Zheng, E Shi, F Zhang · ACM Computing … · 2026 - Observing fine-grained changes in Jupyter notebooks during development time
S Titov, K Grotov, C Sarasua, Y Golubev · Journal of Systems and … · 2026 - Structure-Aware Corpus Construction and User-Perception-Aligned Metrics for Large-Language-Model Code Completion
Liu, Dengfeng, Zhai, Jucai, Jiang, Xiaoguang, Li, Ziqun, Yu, Qianjin, Liu, Feng, Ye, Rui, Liu, Huang, Yang, Zhiguo, Du, Yongsheng, Tan, Fang · 2025 - Enhancing Large Language Model Integration in Integrated Development Environments
D Cipollone · Proceedings of the 33rd ACM International Conference … · 2025 - Understanding and supporting how developers prompt for LLM-powered code editing in practice
D Nam, A Omran, A Murillo, S Thakur, A Araujo · arXiv preprint arXiv … · 2025 - Ai-powered software development: A systematic review of recommender systems for programmers
E Mavridou, E Vrochidou, T Kalampokas, V Kanakaris · Computers · 2025 - Tratto: A neuro-symbolic approach to deriving axiomatic test oracles
D Molinelli, A Martin-Lopez, E Zackrone · Proceedings of the … · 2025 - Full line code completion: Bringing ai to desktop
A Semenkin, V Bibaev, Y Sokolov · 2025 IEEE/ACM 47th … · 2025 - TreeRanker: Fast and Model-agnostic Ranking System for Code Suggestions in IDEs
D Cipollone, E Bogomolov · 2025 40th IEEE/ACM … · 2025 - Fdi: Attack neural code generation systems through user feedback channel
Z Sun, X Du, X Luo, F Song, D Lo, L Li · Proceedings of the 33rd ACM … · 2024 - Language models for code completion: A practical evaluation
M Izadi, J Katzy, T Van Dam, M Otten · Proceedings of the … · 2024 - In-IDE code generation models-a literature review
V Rebeca · 2023 - How practitioners expect code completion?
C Wang, J Hu, C Gao, Y Jin, T Xie, H Huang · Proceedings of the 31st … · 2023 - From commit message generation to history-aware commit message completion
A Eliseeva, Y Sokolov, E Bogomolov · 2023 38th IEEE/ACM … · 2023 - A User Evaluation of UniXcoder Using Statement Completion in a Real-World Setting
J de Weerdt · 2022 - User evaluation of incoder based on statement completion
M Otten · Bachelor's Thesis, Delft University of Technology · 2022
