mlsanityData to 14 Oct 2026

A Transformer-Based Approach for Smart Invocation of Automatic Code Completion

arXiv 2405.14753 ↗First posted 23 May 2024cs.SE cs.AI cs.HCcited by 5

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

  1. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  2. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  3. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
  4. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
  5. 2023The Impact of AI on Developer Productivity: Evidence from GitHub Copilotcited by 274
  6. 2022Efficient Training of Language Models to Fill in the Middlecited by 255
  7. 2022Grounded Copilot: How Programmers Interact with Code-Generating Modelscited by 218
  8. 2020Auto-Sklearn 2.0: Hands-free AutoML via Meta-Learningcited by 174
  9. 2021The Low-Rank Simplicity Bias in Deep Networkscited by 154
  10. 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 119
  11. 2023CodeBERTScore: Evaluating Code Generation with Pretrained Models of Codecited by 102
  12. 2019Gmail Smart Compose: Real-Time Assisted Writingcited by 98
12 more
  1. 2022Productivity Assessment of Neural Code Completioncited by 98
  2. 2022Reading Between the Lines: Modeling User Behavior and Costs in AI-Assisted Programmingcited by 91
  3. 2022Out of the BLEU: how should we assess quality of the Code Generation models?cited by 65
  4. 2023"It's Weird That it Knows What I Want": Usability and Interactions with Copilot for Novice Programmerscited by 64
  5. 2023ICE-Score: Instructing Large Language Models to Evaluate Codecited by 52
  6. 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 50
  7. 2024Language Models for Code Completion: A Practical Evaluationcited by 39
  8. 2023Investigating and Designing for Trust in AI-powered Code Generation Toolscited by 34
  9. 2023Navigating the Complexity of Generative AI Adoption in Software Engineeringcited by 32
  10. 2022Extreme Compression for Pre-trained Transformers Made Simple and Efficientcited by 19
  11. 2022Don't Complete It! Preventing Unhelpful Code Completion for Productive and Sustainable Neural Code Completion Systemscited by 13
  12. 2023On the Impact of Language Selection for Training and Evaluating Programming Language Modelscited by 4

Built on by

Cited by year

Citing papers per year: 2025: 5.

5 papers.