arXiv:2610.32096cs.AIOct 2026

Manuscript Offprint

arXiv:2610.32096

DELA: Learning Controllable Edits for Diffusion Language Models

Xinsong Feng, Chenan Wang, Leshu Tang, Johnny Liu, Dong Li, Da Li, Haipeng Chen

ABSTRACT

Diffusion language models (DLMs) support bidirectional denoising and iterative refinement, but generation remains largely controlled by token-level masking schedules. This leaves draft-level refinement implicit and limits explicit control over when to insert missing content, delete redundant spans, revisit uncertain regions, or stop editing. We introduce Diffusion Editing Language Adapter (DELA), a plug-in framework that enables controllable draft refinement with a frozen DLM. DELA operates on clean, variable-length drafts using four explicit editing actions: INSERT, DELETE, REMASK, and STOP. The controller determines when and where to edit the draft, while the frozen DLM fills masked regions through denoising, separating high-level edit control from token-level generation. A naive single-phase editor would be computationally expensive because arbitrary interior edits can disrupt prefix stability and limit reliable KV-cache reuse. To address this, DELA uses a two-phase decoding procedure: a fast, append-only drafting phase that supports KV-cache reuse, followed by a global refinement phase that enables targeted non-monotonic edits to the full draft. We train the controller using a staged curriculum that begins with learning local edit priors from synthetic recovery tasks and mined actions that improve draft quality. Subsequent stages refine edit selection through rollout-based outcome preferences and alignment with downstream task feedback. Experiments on mathematical reasoning and code generation show that DELA achieves gains of up to 5.5 percentage points over direct diffusion decoding while keeping the backbone frozen. DELA thus provides a modular approach to explicit draft-level control in diffusion language models.

1 INTRODUCTION

Diffusion language models (DLMs) offer a compelling alternative to autoregressive generation by enabling bidirectional context modeling and iterative refinement (Li et al., 2022; Austin et al., 2021; Campbell et al., 2022; Lou et al., 2023; Gat et al., 2024). Building on this paradigm, masked DLMs have improved generation quality, scalability, and theoretical understanding (Shi et al., 2024; Sahoo et al., 2024; Ou et al., 2025; Zheng et al., 2025; Nie et al., 2025; Ye et al., 2025). Complementary work has explored reasoning-oriented post-training (Zhao et al., 2025; Tang et al., 2026) and adaptive inference-time decoding (Kim et al., 2025; Wang et al., 2025; Ben-Hamu et al., 2025). Despite this progress, scalable masked DLMs still largely control generation through token-level denoising schedules, leaving draft-level refinement implicit.

This limitation is important because many generation errors are structural rather than purely lexical. A draft may omit a reasoning step, contain redundant content, include an inconsistent span, or already be correct. Effective refinement therefore requires deciding where to intervene, which edit to apply, and when to stop, rather than only choosing which masked positions to reveal. Prior non-autoregressive and edit-based methods show that insertion, deletion, and iterative refinement are useful abstractions (Lee et al., 2018; Ghazvininejad et al., 2019; Stern et al., 2019; Gu et al., 2019). However, masked denoising alone does not provide a controllable policy for refining clean variable-length drafts.

Recent variable-length diffusion and flow models address these limitations by modifying the generative process through edit operations, insertion expectations, expansion/deletion transitions, or deletion-insertion dynamics (Havasi et al., 2025; Kim et al., 2026; Wu et al., 2026b; Ding et al., 2026). These approaches are powerful, but they typically make structural editing part of the learned generative dynamics. Adopting them therefore often requires changing the model architecture, training objective, or backbone parameters, which can be costly at scale and limits the reuse of pretrained DLMs. We therefore ask: Can we equip an existing diffusion language model with controllable draft-level refinement without modifying or retraining its denoising backbone?

We introduce Diffusion Editing Language Adapter (DELA), a plug-in framework that equips a frozen DLM with controllable draft-level refinement. DELA keeps the diffusion backbone fixed during both training and inference, and trains only a lightweight edit controller over clean drafts. The controller issues four actions—INSERT, DELETE, REMASK, and STOP—while the frozen backbone realizes masked content through conditional denoising. This design decouples high-level edit control from token-level generation.

The design of DELA follows a broader principle in modern model adaptation: reuse a strong pretrained generator and adapt its behavior through a lightweight control or alignment layer, rather than retraining the entire model. In DELA, the frozen DLM provides token-level denoising ability, while the edit controller learns how to use this ability to improve a clean draft. Directly learning such a policy from downstream rewards is inefficient because the action space is heterogeneous, the value of an edit is observed only after denoising, and useful feedback may require multi-step refinement. DELA therefore uses a staged curriculum. It first learns executable edit primitives from synthetic recovery tasks, then strengthens the warm start through mined improving-action distillation. Later stages use rollout-labeled candidate preferences and downstream task feedback to train outcome-aware edit selection. At inference time, DELA selects among a small set of executable edit candidates without task labels or rollout evaluation.

DELA also addresses the computational cost of structural editing. A naive single-phase editor would allow INSERT, DELETE, and REMASK throughout generation, but arbitrary interior edits make the sequence non-monotonic, break prefix stability, prevent reliable KV-cache reuse, and require repeated processing of changing full drafts. DELA instead uses a two-phase generation process. A fast drafting phase first constructs an initial draft through append-only masked-block insertion, preserving cache-friendly monotonic growth while allowing local remasking within each newly generated block. A global refinement phase then applies the full action space to the completed draft, enabling targeted insertion, deletion, remasking, and stopping. Thus, DELA is not a new diffusion backbone, but a lightweight draft-conditioned editing layer for controlling an already trained denoising model.

Our main contributions are as follows. (1) We formulate draft-level refinement for DLMs as a plug-in control problem and propose DELA, an edit-controller framework that refines clean variable-length drafts via INSERT, DELETE, REMASK, and STOP actions while keeping the denoising backbone fixed. (2) We introduce a two-phase decoding procedure that combines cache-friendly append-only drafting with targeted non-monotonic refinement, avoiding global editing throughout generation. (3) We develop a staged controller-learning curriculum that starts with synthetic edit recovery, strengthens the warm start with mined improving-action distillation, and uses rollout-labeled preferences and downstream feedback for outcome-aware edit selection. (4) We show that DELA improves mathematical reasoning and code generation by up to 5.5 percentage points while keeping the diffusion backbone fixed, demonstrating the effectiveness of explicit draft-level edit control.

References (43)