aifollow.news
Back Rohan Paul
Rohan Paul· @rohanpaul_ai · X· · Original publication time AI score54

Microsoft paper describes one model for three types of Copilot code suggestionsMachine translation

AI introduction

A Microsoft paper describes a model that produces code completions, nearby edits and far-away edits as diff patches. In live A/B tests against the three-model setup, the first merged model reduced time to display by 6.77% and output tokens by 58.93%. The final three-in-one model alone increased dismissed suggestions by 12.24%, but client changes turned that into a 10.06% decrease.

Original post · Original

@rohanpaul_ai

New Microsoft paper shows that a single model can handle code completion, nearby edits, and far-away edits in Copilot by writing every suggestion as a diff patch. And cuts output tokens by 58.93% with no measurable quality loss.

Copilot used to call separate models for completing code, editing nearby lines, and editing far away, in a fixed order. That cost several model calls per suggestion.

They trained 1 model that outputs a list of diff patches, each saying where to edit and what to change. Several edits fit in 1 response, so later ones come from a cache.

In live A/B tests against the 3-model setup, the 1st merged model cut time to display by 6.77% and output tokens by 58.93%. The final 3-in-1 model alone raised dismissed suggestions by 12.24%, but client changes turned that into a 10.06% drop.

Source: Rohan Paul · x.com

Research
Found an error? Send a correction