跳到正文
𝕏 Rohan Paul(x.com)·· 2 小時前精選品質評分66
重點導讀

Copilot 原本要用不同模型處理程式補全、附近修改和遠處修改,一次建議得呼叫好幾次模型。

  • Microsoft 的研究訓練出一個模型,把每項修改寫成差異補丁,標出要改的位置和內容。
  • 一份回覆也能包含好幾項修改,後續修改可從快取取得。與原本的三個模型相比,第一版整合模型讓建議顯示時間縮短 6.77%,輸出 token 減少 58.93%。單靠最終整合模型時,被使用者忽略的建議增加 12.24%。
  • 調整使用者端後,這個比例改為下降 10.06%。

AI 伴隨問答

自備 Key 深度分析

針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:

推薦理由

這項研究比較 Copilot 用一個模型與三個模型處理程式補全和編輯的結果,並呈現回應速度、輸出 token 數與使用者忽略建議比例的變化。

Rohan Paul
Rohan Paul@rohanpaul_ai
·2 小時前
𝕏

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.

推文來源 · X (Twitter)在 X 參與討論

讀者討論

理性交流 · 即時討論