aifollow.news
返回 Rohan Paul
Rohan Paul· @rohanpaul_ai · X· · 原发布时间 AI 评分54

微软论文提出用单一模型统一处理 Copilot 的三类代码建议

AI 导读

微软论文介绍了一种让单一模型以差异补丁生成代码补全、邻近编辑和远处编辑建议的方法。与原先的三模型方案相比,首个合并模型在实时 A/B 测试中将建议显示时间缩短 6.77%、输出 token 数减少 58.93%;最终三合一模型单独使用时,被忽略的建议增加 12.24%,经客户端调整后则减少 10.06%。

原帖引用 · 原文

@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.

来源:Rohan Paul · x.com

论文
发现内容有误?提交纠错