Research map / Large language models / Language, safety and interpretability
Pragmatic Code Autocomplete
Gabriel Poesia, Noah Goodman
Stanford University
Read the paperPlace an idea next to itCheck your own paper ↗
12measured effects
10improved
2hurt
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use contextual line inference rather than a non-contextual language model | Pragmatic autocomplete · Python test reconstruction | top-1 accuracy: 0.746 -> 0.908 | Improved |
| use contextual line inference rather than a non-contextual language model | Pragmatic autocomplete · Java test reconstruction | top-1 accuracy: 0.817 -> 0.942 | Improved |
| use contextual line inference rather than a non-contextual language model | Pragmatic autocomplete · JavaScript test reconstruction | top-1 accuracy: 0.736 -> 0.880 | Improved |
| add 5 previous lines as context (ablation) | Pragmatic autocomplete · Python test reconstruction | top-1 accuracy: 0.908 -> 0.942 | Improved |
| add 3 previous lines as context (ablation) | Pragmatic autocomplete · Java test reconstruction | top-1 accuracy: 0.942 -> 0.963 | Improved |
| add 5 previous lines as context (ablation) | Pragmatic autocomplete · JavaScript test reconstruction | top-1 accuracy: 0.880 -> 0.931 | Improved |
| extend context from 5 to 7 previous lines (ablation) | Pragmatic autocomplete · JavaScript test reconstruction | top-1 accuracy: 0.931 -> 0.926 | Hurt |
| adapt abbreviations to a repository and fine-tune the model (ablation) | Pragmatic autocomplete · 30 Python repositories | median compression: 13.8% -> 17.7% | Improved |
| adapt the abbreviations without fine-tuning the model (ablation) | Pragmatic autocomplete · 30 Python repositories | median accuracy: 93.5% -> 75.7% | Hurt |
| fine-tune after adapting abbreviations (ablation) | Pragmatic autocomplete · 30 Python repositories | median accuracy: 75.7% -> 91% | Improved |
| add pragmatic autocomplete to VSCode autocomplete | VSCode autocomplete · User study, last two snippets | keystrokes relative to no autocomplete: 88.3% -> 83.8% | Improved |
| add pragmatic autocomplete to typing without autocomplete | Code typing · User study, last snippet | typing speed relative to no autocomplete: +7.4% | Improved |
Closest papers by meaning
- Long-Range Modeling of Source Code Files with eWASH: Extended Window Access by Syntax Hierarchy (EMNLP 2021 · similarity 0.83)
- SemCoder: Training Code Language Models with Comprehensive Semantics Reasoning (NeurIPS 2024 · similarity 0.81)
- Zero and Few-shot Semantic Parsing with Ambiguous Inputs (ICLR 2024 · similarity 0.81)
- Generating Pragmatic Examples to Train Neural Program Synthesizers (ICLR 2024 · similarity 0.81)
- BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructions (ICLR 2025 · similarity 0.81)
- CursorCore: Assist Programming through Aligning Anything (ICML 2025 · similarity 0.81)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
