跳到正文
HuggingFace Daily Papers(社區熱門論文)·· 2026-10-13AI 評分43

Diff Diffusion:以擴散模型預測編輯路徑,提升程式碼編輯效率

Diff Diffusion: Predicting Edit Paths with Diffusion Models for Efficient Code Editing

AI 導讀

Diff Diffusion 提出一種以擴散模型預測編輯路徑的程式碼編輯 LLM 框架,將去噪表示為結構化編輯操作,並採用多階段訓練及高效平行解碼。該方法在公開編輯補全基準測試中達到或超越自回歸基線,推理速度提升 2.78 倍;在生產環境,模型 P50 延遲降低 39.0%。

正文

Published on Oct 13

Authors:

,

,

,

,

,

,

Abstract

Diffusion large language models (dLLMs) are appealing for code generation because they can update many tokens in parallel, yet many are optimized for sequence synthesis rather than edit prediction. This setting is poorly matched to modern AI-assisted IDEs, where edit prediction must infer the next code change from recent edits, the current file, and cursor-local context. Such changes are usually sparse and preserve most source tokens, so regenerating a full code segment wastes computation. We propose Diff Diffusion, a diffusion-inspired LLM framework for code editing that predicts edit paths from an original snippet to its revised form. Diff Diffusion represents denoising as structured edit operations, and combines this formulation with multi-stage training and efficient parallel decoding. By focusing computation on changed regions, Diff Diffusion supports accurate low-latency edits and multi-position parallel modification. Across public edit-completion benchmarks, edit-prediction evaluations, and online validation, Diff Diffusion matches or leads autoregressive baselines while delivering 2.78 times faster inference on public edit-completion benchmarks and a 39.0% P50 model-latency reduction in production. This work provides a new modeling perspective for AI applications that require high accuracy and low latency.

View arXiv page View PDF Add to collection

Get this paper in your agent:

hf papers read 2610.17831

Don't have the latest CLI?

curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2610.17831 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2610.17831 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2610.17831 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.

來源:HuggingFace Daily Papers(社區熱門論文) · huggingface.co