[Paper Review] Control Models for In-IDE Code Completion
The paper introduces trigger (boosting-based or transformer) and filter control models to smartly gate LLM-powered code completions in JetBrains IDEs, achieving ~20% inference savings and improved completion quality in offline and online evaluations across multiple languages.
We introduce control models for LLM-powered code completion in JetBrains IDEs: ML classifiers which trigger inference and filter the generated suggestions to better align them with users and reduce unnecessary requests. To this end, we evaluate boosting- and transformer-based architectures on an offline dataset of real code completions with n=98 users. We further evaluate the offline classification performance of our boosting-based approach on a range of syntactically diverse languages; and perform an A/B study in a production environment where they improve completion efficiency and quality metrics. With this study, we hope to demonstrate the potential in using auxiliary models for smarter in-IDE integration of LLM-driven features, highlight fruitful future directions, and open problems.
Motivation & Objective
- Motivate the need for aligning LLM-driven code completion with developer flow and reduce unnecessary in-IDE inferences.
- Propose two control-models architecture (trigger and filter) to gate and refine completions using in-IDE telemetry and code context.
- Evaluate boosting-based and transformer-based control models offline and online in production settings.
- Demonstrate potential improvements in completion efficiency and quality, and discuss future directions and challenges.
Proposed method
- Develop two models: a trigger classifier to decide when to infer a completion and a filter classifier to decide which generated completions to show.
- Compare gradient-boosting (CatBoost) tabular models with transformer-based classifiers that incorporate code context.
- Use offline datasets with multilingual code contexts (Kotlin, Python, PHP, C#) and in-IDE telemetry to train and evaluate models.
- Evaluate via offline metrics such as Symbols Completed (RoCC), Accept Rate (AR), and Cancel Rate (CR), and through online A/B experiments in production.
- Analyze impact of different false-negative rates (FNR) and percentage of generations filtered on completion quality metrics.

Experimental results
Research questions
- RQ1RQ1: How does boosting-based trigger/filter performance compare to transformer-based approaches in offline classification?
- RQ2RQ2: How do boosting-based control models perform offline across languages (Kotlin, Python, PHP, C#) in terms of inference savings and metrics?
- RQ3RQ3: How do boosting-based control models perform online in production as measured by user-facing metrics in A/B tests?
Key findings
- Boosting-based control models can reduce around 20% of inference requests while improving completion quality metrics in offline analyses.
- Transformer-based models offer strong contextual filtering but may lag boosting models in Accept/Cancel rate improvements due to fewer shown completions.
- Boosting models show language-dependent effects; for some languages, increasing trigger control substantially impacts metrics differently (e.g., Kotlin vs PHP).
- Online A/B results show filter models improve Accept Rate and Cancel Rate but reduce Ratio of Completed Code, while trigger models reduce completions by ~20% without a statistically significant drop in generation counts in some settings.
- Offline results indicate that transformer models can provide deeper context benefits but face latency and privacy challenges in deployment.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.