arXiv AI By Xijia Tao, Ziru Liu, Shansan Gong, Jiacheng Ye, Kecheng Chen, Zirui Wu, Lin Zheng, Xinyu Fu, Rui Liu, Lingpeng Kong

How Should Diffusion Language Models Edit Code?

Read the original on arXiv AI →

The Flow has not summarised this story yet — read it at arXiv AI.

arXiv AI
Oct 26

DELA: Learning Controllable Edits for Diffusion Language Models

DELA introduces a plug‑in framework for diffusion language models that enables explicit draft‑level editing using four actions: Insert, Delete, Remask, and Stop. The system separates high‑level edit control from token‑level generation by employing a frozen diffusion language model and a two‑phase decoding process that first drafts append‑only content and then refines the full draft. Training the controller through a staged curriculum and rollout‑based preferences yields up to 5.5 percentage‑point improvements on mathematical reasoning and code generation tasks compared to direct diffusion decoding.

By Xinsong Feng, Chenan Wang, Leshu Tang, Johnny Liu, Dong Li, Da Li, Haipeng Chen
arXiv Computation and Language
Sep 3

Knowledge Editing for Masked Diffusion Language Models

The paper investigates whether the locate‑then‑edit approach for knowledge editing, previously applied only to autoregressive language models, can be transferred to masked diffusion models (MDMs). It finds that the optimal edit location—an early‑to‑mid‑layer MLP at the last subject token—remains the same for both model types, but that MDMs suffer a sharper decline in performance when editing longer, multi‑token facts. By incorporating intermediate partially‑unmasked states into the edit optimization, the authors restore multi‑token editing performance in MDMs.

By Haewon Park, Yohan Jo
arXiv Machine Learning
6d ago

What Does Weight-Space Programming Add to Diffusion Editing? Program Construction versus Score-Guided Refinement

The paper investigates weight‑space programming (WSP) for diffusion concept editing, where a language model generates executable weight updates that define training contexts, preservation constraints, and update directions. Experiments on 24 TIMED test edits for Stable Diffusion 1.4 show that the preregistered rewrite pipeline offers no advantage over a strong shared‑panel baseline, but exploratory one‑shot Astra programs improve fresh‑scene VLM joint success by +10.0 points, while CLIP relative match remains unchanged. Further probing and rewriting of Astra programs raises CLIP by +6.2 points but reduces joint success by -9.7, indicating that program construction and score‑guided revision should be treated as distinct stages in a WSP pipeline.

By Zitian Gao, Jingyi Xu, Ziqi Han, Chengkai Lei, Ye Liu, Liangliang Shi
arXiv AI
Oct 15

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

Diff Diffusion is a diffusion-inspired large language model framework designed for efficient code editing. It predicts edit paths from an original snippet to its revised form by representing denoising as structured edit operations, and uses multi-stage training and efficient parallel decoding to focus computation on changed regions. The approach matches or outperforms autoregressive baselines while achieving up to 2.78× faster inference and a 39.0% reduction in median model latency in production.

By Xiaolong Xu, Hao Jiang, Bo Jiang, Zhiwen Deng, Ningyuan Sun, Bingzhou Chen, Jin Chen, Chenxing Wei