Reproduce “A Transformer-Based Approach for Smart Invocation of Automatic Code Completion” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Aral de Moor, Arie van Deursen, Maliheh Izadi
This paper presents a transformer-based approach for the 'smart invocation' of AI code completion tools, aiming to determine when to automatically suggest completions by integrating both code context and user behavior telemetry. The proposed JonBERTa models reduce workflow disruptions and improve user experience by showing suggestions only when likely to be helpful, achieving a good balance of acceptance rate and code quality in real-world evaluations.
Key insights
- Integrating developer telemetry data with code context significantly improves the ability of models to intelligently decide when to invoke code completions, surpassing models using code context alone.
- Offline evaluation metrics alone do not fully capture real-world developer experience, emphasizing the need for online evaluations to understand practical effectiveness and user behavior.
- A carefully designed tokenization strategy, centered around the cursor position and preserving the balance of prefix/suffix code, is crucial for effectively leveraging code context in smart invocation models.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.