Building a Unified Inline Code Editing Model for GitHub Copilot
Source
arxiv.org
Author
Microsoft CodeAI Team, Microsoft VS Code Team, Julia Gong, Benjamin Liggett, Shengjie Ma, Ulugbek Abdullaev, Zhehui Liao, Benjamin Steenhoek, Gaurav Mittal, Fuhui Fang, Satarupa Guha, Hang Zhao, Anand Mooga, Cheng Long, Benjamin Simmonds, Soojin Choi, Luciana Abud, Nathan Halstead, Alexandru Dima, Yu Hu, Elsie Nallipogu
Date
Why it matters
Shows how Copilot moved from several sequential edit models to one that outputs anchored diff patches, covering cursor, nearby, and distant edits in a single call. Useful design evidence for anyone building inline editing features.
Key takeaways · AI-distilled
The old pipeline queried completion, nearby-edit and long-distance models in a fixed order, so it could not express one intent spanning distant locations and favored completion even when a correction would serve better.
Because one response can carry several anchored diff patches, the editor ClientThe program that sends a request to a server and receives its response.Full definition → can serve later edits from a cache without another ModelA computational system that uses learned patterns to produce an output from information supplied to it.Full definition → call.
TrainingThe process that adjusts a model using examples and a measure of how well it performs.Full definition → ran in two phases, first unifying next-edit and long-distance prediction, then adding completion. Multi-edit training data was synthesized from single-edit data via model pseudolabeling and edit-history playback.
In online A/B tests in GitHub Copilot, phase 1 cut time to display by 6.77% and output TokenA piece of text, such as a word, part of a word or a punctuation mark, that a language model represents as numbers and handles as a unit.Full definition → by 58.93% against the three-model baseline.
Phase 2's 3-in-1 model, with client changes to how outputs are presented, cut dismissed suggestions per user by 10.06% versus the 2-in-1 model paired with the separate completion model.
Terms in this piece · Glossary
Model — A computational system that uses learned patterns to produce an output from information supplied to it.
Client — The program that sends a request to a server and receives its response.
Training — The process that adjusts a model using examples and a measure of how well it performs.
Token — A piece of text, such as a word, part of a word or a punctuation mark, that a language model represents as numbers and handles as a unit.