A Transformer-Based Approach for Smart Invocation of Automatic Code Completion
Not on the map. Why?
Abstract (arXiv)
Transformer-based language models are highly effective for code completion, with much research dedicated to enhancing the content of these completions. Despite their effectiveness, these models come with high operational costs and can be intrusive, especially when they suggest too often and interrupt developers who are concentrating on their work. Current research largely overlooks how these models interact with developers in practice and neglects to address when a developer should receive completion suggestions. To tackle this issue, we developed a machine learning model that can accurately predict when to invoke a code completion tool given the code context and available telemetry data. To do so, we collect a dataset of 200k developer interactions with our cross-IDE code completion plugin and train several invocation filtering models. Our results indicate that our small-scale transformer model significantly outperforms the baseline while maintaining low enough latency. We further explore the search space for integrating additional telemetry data into a pre-trained transformer directly and obtain promising results. To further demonstrate our approach's practical potential, we deployed the model in an online environment with 34 developers and provided real-world insights based on 74k actual invocations.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 24 of its 47 references that are in the map. First posted on arXiv 23 May 2024.
Builds on
24 of 47 references.
References · 24
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
- 2023The Impact of AI on Developer Productivity: Evidence from GitHub Copilotcited by 274
- 2022Efficient Training of Language Models to Fill in the Middlecited by 255
- 2022Grounded Copilot: How Programmers Interact with Code-Generating Modelscited by 218
- 2020Auto-Sklearn 2.0: Hands-free AutoML via Meta-Learningcited by 174
- 2021The Low-Rank Simplicity Bias in Deep Networkscited by 154
- 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 119
- 2023CodeBERTScore: Evaluating Code Generation with Pretrained Models of Codecited by 102
- 2019Gmail Smart Compose: Real-Time Assisted Writingcited by 98
12 more
- 2022Productivity Assessment of Neural Code Completioncited by 98
- 2022Reading Between the Lines: Modeling User Behavior and Costs in AI-Assisted Programmingcited by 91
- 2022Out of the BLEU: how should we assess quality of the Code Generation models?cited by 65
- 2023"It's Weird That it Knows What I Want": Usability and Interactions with Copilot for Novice Programmerscited by 64
- 2023ICE-Score: Instructing Large Language Models to Evaluate Codecited by 52
- 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 50
- 2024Language Models for Code Completion: A Practical Evaluationcited by 39
- 2023Investigating and Designing for Trust in AI-powered Code Generation Toolscited by 34
- 2023Navigating the Complexity of Generative AI Adoption in Software Engineeringcited by 32
- 2022Extreme Compression for Pre-trained Transformers Made Simple and Efficientcited by 19
- 2022Don't Complete It! Preventing Unhelpful Code Completion for Productive and Sustainable Neural Code Completion Systemscited by 13
- 2023On the Impact of Language Selection for Training and Evaluating Programming Language Modelscited by 4
Built on by
Citing papers per year: 2025: 5.
5 papers.
- 2025Human-AI Experience in Integrated Development Environments: A Systematic Literature Reviewcited by 5
- 2025Intuition to Evidence: Measuring AI's True Impact on Developer Productivitycited by 5
- 2025Optimizing LLM Code Suggestions: Feedback-Driven Timing with Lightweight State Boundscited by 2
- 2025Pre-Filtering Code Suggestions using Developer Behavioral Telemetry to Optimize LLM-Assisted Programmingcited by 2
- 2025Evaluating Large Language Models for Functional and Maintainable Code in Industrial Settings: A Case Study at ASMLcited by 0
- 2025Pre-Filtering Code Suggestions using Developer Behavioral Telemetry to Optimize LLM-Assisted Programming24 Nov 2025
- 2025Optimizing LLM Code Suggestions: Feedback-Driven Timing with Lightweight State Bounds24 Nov 2025
- 2025Intuition to Evidence: Measuring AI's True Impact on Developer Productivity24 Sep 2025
- 2025Evaluating Large Language Models for Functional and Maintainable Code in Industrial Settings: A Case Study at ASML15 Sep 2025
- 2025Human-AI Experience in Integrated Development Environments: A Systematic Literature Review8 Mar 2025