One model. Three kinds of edits. The full story behind how we built it.
In part one and part two of our blog series, we described how we unified three separate code editing models (completions, next edit suggestions, and long-distance next edit suggestions) into a single model behind the new GitHub Copilot inline suggestions experience. The full details of that unification process are now published on arXiv in our technical report, Building a Unified Inline Code Editing Model for GitHub Copilot.
Inside the technical report
The report follows the full journey of unifying nearby and long-distance edits and bringing code completion into the same model, sharing both the resulting approaches and the iterative process and experiments that led us to them. It covers the details behind data bootstrapping and curation, supervised fine-tuning, reinforcement learning and grader design, offline and online A/B evaluation, model selection, and more. We also present several ablation experiments along the way on the training recipe and end-to-end experience in the editor. The report closes by analyzing our process and results from several quantitative perspectives and sharing future directions.
Read the full report on arXiv.
Try it out
The unified Inline Suggestions experience is available now for paid GitHub Copilot users in VS Code. Update to the latest version of VS Code, then make sure next edit suggestions are enabled.
Give it a try the next time you are in the editor, whether you're working on a refactor or writing a new function. We hope you enjoy the tab-tab-tab experience and we'd love to hear your feedback!
Contributors and acknowledgments
The unified inline suggestions model for GitHub Copilot is the result of a collaboration among many people at Microsoft. Below, we list the core contributors and the broader groups of collaborators who made this work possible.
Core contributors
Model Training, Data Curation, and Evaluation
Julia Gong, Benjamin Liggett, Shengjie Ma, Yu Hu, Elsie Nallipogu
Client Engineering
Ulugbek Abdullaev, Alexandru Dima
Science Product Management
Zhehui Liao, Luciana Abud, Nathan Halstead
Contributors
Benjamin Steenhoek, Gaurav Mittal, Fuhui Fang, Satarupa Guha, Hang Zhao, Anand Mooga, Cheng Long, Benjamin Simmonds, Soojin Choi
Acknowledgments
We thank the following collaborators whose insights and support made this work possible.
Science Tooling and Data Pipelines
Kevin Merchant, Sarah Widder, Abhijith Chatra, Suman Bhagavathula, Maoliang Huang, KwangJe Cho, Carl Brochu, Baoping Zhang, Shubhangi Thakur, Martin Valle, Farzad Eskafi
Experimentation, Product, and Review
Cindy Chiu, Amy Hartwig, Nick Trogh, Brigit Murtaugh, John Mogensen, Rahul Pandita, Mario Rodriguez, Kai Maetzel
Platform and Infrastructure
Jesten Herrild, Joel Dunham, Joseph Leinsdorf, Alejandro Oviedo Cruz, Boshi Lian, Shuhan Yan, Shiven Raina, Vidur Vatsalya, Vijetha Vijayendran, Meng Lan, Eddie Ailijiang, Ming Liu, Dharmesh Guna, Mostafa Elzoghbi
We extend deep gratitude to the VS Code and GitHub Copilot developer community for the ongoing feedback that pushes us to deliver the best possible experiences for builders worldwide.
Happy coding! 💙