AI Paper Atlas

Research map / Large language models / Language, safety and interpretability

Pragmatic Code Autocomplete

Gabriel Poesia, Noah Goodman

AAAI 2021Large language models › Language, safety and interpretabilityapproach: Text generation and evaluation metrics2 citations (OpenAlex)

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 changedWhereMeasuredEffect
use contextual line inference rather than a non-contextual language modelPragmatic autocomplete · Python test reconstructiontop-1 accuracy: 0.746 -> 0.908Improved
use contextual line inference rather than a non-contextual language modelPragmatic autocomplete · Java test reconstructiontop-1 accuracy: 0.817 -> 0.942Improved
use contextual line inference rather than a non-contextual language modelPragmatic autocomplete · JavaScript test reconstructiontop-1 accuracy: 0.736 -> 0.880Improved
add 5 previous lines as context (ablation)Pragmatic autocomplete · Python test reconstructiontop-1 accuracy: 0.908 -> 0.942Improved
add 3 previous lines as context (ablation)Pragmatic autocomplete · Java test reconstructiontop-1 accuracy: 0.942 -> 0.963Improved
add 5 previous lines as context (ablation)Pragmatic autocomplete · JavaScript test reconstructiontop-1 accuracy: 0.880 -> 0.931Improved
extend context from 5 to 7 previous lines (ablation)Pragmatic autocomplete · JavaScript test reconstructiontop-1 accuracy: 0.931 -> 0.926Hurt
adapt abbreviations to a repository and fine-tune the model (ablation)Pragmatic autocomplete · 30 Python repositoriesmedian compression: 13.8% -> 17.7%Improved
adapt the abbreviations without fine-tuning the model (ablation)Pragmatic autocomplete · 30 Python repositoriesmedian accuracy: 93.5% -> 75.7%Hurt
fine-tune after adapting abbreviations (ablation)Pragmatic autocomplete · 30 Python repositoriesmedian accuracy: 75.7% -> 91%Improved
add pragmatic autocomplete to VSCode autocompleteVSCode autocomplete · User study, last two snippetskeystrokes relative to no autocomplete: 88.3% -> 83.8%Improved
add pragmatic autocomplete to typing without autocompleteCode typing · User study, last snippettyping speed relative to no autocomplete: +7.4%Improved

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy