Manuscript Offprint

arXiv:2609.07160

In-Place Instruction Following in Diffusion Language Models

Zheng Nie, Zherui Li, Jiaming Zhang, Kun Wang, Zhenhong Zhou, Yufei Guo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Diffusion Large Language Models (dLLMs) generate text via bidirectional iterative denoising, naturally supporting user-specified constraints anchored at arbitrary output positions, a paradigm known as In-place Prompting (IPP). We formalize this as the In-place Instruction Following (IIF) task and construct IIF-BENCH, a hierarchical benchmark spanning literal, style, and discourse-function constraints, paired with a rubric-based local-global evaluation protocol. An inference-time attention-bias probe suggests that vanilla dLLMs often under-prioritize constraint spans during denoising. We then propose GRAFT, an IPP-oriented post-training framework combining constraint-aware SFT and preference optimization. On four representative dLLMs, GRAFT raises the average IIF score from 57.75 to 73.10 (↑15.35 points), with absolute gains of 15.91 and 15.57 points on literal and discourse-function constraints, while preserving general generation ability. Our code and data are available at: https://anonymous.4open.science/r/Graft-36B5.

1 Introduction

The rapid development of Large Language Models (LLMs) has significantly enhanced the instruction-following capabilities of natural language generation systems (Radford et al., 2019; Zhao et al., 2025b; Zhou et al., 2023a; Lou et al., 2024). Currently, mainstream LLMs still primarily rely on prefix-based prompting as their mode of interaction: users specify task requirements (Brown et al., 2020; Son et al., 2024), format constraints (Liu et al., 2024; Zhang et al., 2026), or preference descriptions (Li et al., 2024; Zhao et al., 2025a) in the input prompt, after which the model generates a complete response from left to right. While this paradigm is well-suited for general open-ended generation, many real-world scenarios require models to satisfy local constraints at specific positions in the output, such as preserving a given phrase (Zhou et al., 2023a; Pyatkin et al., 2026), performing localized style transfer (Mai et al., 2023; Chen, 2024), or inserting a transition or rebuttal at a designated location (Lai et al., 2024; Tao et al., 2024). For standard autoregressive (AR) LLMs, such arbitrary-position control typically requires additional constrained decoding (Beurer-Kellner et al., 2024; Banerjee et al., 2025), infilling-oriented training (Bavarian et al., 2022; Roziere et al., 2023; Ren et al., 2024), or multi-round editing processes (Ge et al., 2024; Tian et al., 2025), rather than being a native capability of their prefix-to-suffix generation interface.

The recent development of Diffusion Large Language Models (dLLMs) offers a natural opportunity to move beyond prefix-only interaction (Nie et al., 2025; Ye et al., 2025; Bie et al., 2025). Unlike autoregressive (AR) LLMs, dLLMs generate from a masked canvas through iterative bidirectional denoising, allowing fixed tokens or structured constraints to be anchored at arbitrary positions in the output sequence (Arriola et al., 2025; Yang et al., 2025). This paradigm, known as In-place Prompting (IPP) (Lee et al., 2025; Jin et al., 2025), is important not merely as an alternative decoding format, but as a new user-facing control interface: users can specify what must happen where in the output, enabling localized editing, structured generation, precise phrase preservation, and position-specific discourse control without relying on constrained decoding or multi-round rewriting (Zhang et al., 2026). Although recent studies have used similar anchoring mechanisms for reasoning, safety, and template infilling (Jin et al., 2025; Horvitz et al., 2025; Zhang et al., 2025; Lee et al., 2025; Li et al., 2026b), they mostly treat in-place spans as internal algorithmic devices rather than as an explicit instruction-following capability. This leaves open a central question: can dLLMs reliably execute user-specified in-place constraints while preserving natural boundary transitions and global semantic consistency?

To answer this question, we define the In-place Instruction Following (IIF) task. Given a user instruction and an incomplete output canvas containing a fixed in-place constraint, IIF requires the model to generate the surrounding spans while preserving the constraint, connecting it naturally to the context, and maintaining global consistency with the user intent. We further construct IIF-BENCH, a hierarchical IIF benchmark covering explanatory, knowledge-intensive, and creative generation scenarios across three progressive levels: ① literal constraints, ② style constraints, and ③ discourse-function constraints. To evaluate this capability, we further design a rubric-based fine-grained local-global evaluation protocol that jointly assesses local constraint execution, boundary coherence, global consistency, and fluency, and cross-validates automatic judgments with LLM-as-a-judge, a specialized reward model, and human evaluation.

Building on IIF-BENCH, we introduce an inference-time attention-bias probe to diagnose how dLLMs use in-place constraints during denoising. The probe requires no parameter updates and selectively increases attention to the IPP span. We find that moderate attention bias improves in-place constraint following, while overly strong bias harms generation quality, suggesting that IIF failures are partly caused by insufficient prioritization of the constraint span rather than a complete lack of linguistic capability. Motivated by this finding, we propose an IPP-oriented post-training framework called Guided Refinement via Anchor-aware Focus Tuning (GRAFT). GRAFT first establishes basic IIF capability through constraint-aware Supervised Fine-Tuning, which treats in-place spans as fixed conditioning variables rather than generation targets. It then applies constraint-aware preference optimization to improve the balance among local execution, boundary coherence, and global consistency.

The experimental results validate the effectiveness of GRAFT framework. On 4 representative dLLMs, GRAFT improves the average overall IIF score from 57.75 to 73.10 (↑15.35 points), with absolute gains of 15.91 and 15.57 points on literal and discourse-function constraints, respectively. Further analysis shows that the model achieves stable improvements in local constraint execution, boundary coherence, and global consistency, while incurring only a minor impact on general generation ability. These results demonstrate that GRAFT can effectively enhance the in-place instruction-following capability of dLLMs, providing a viable path toward coordinating localized constraints with global semantic consistency. Our contributions are summarized as follows:

  • Task and benchmark. We formalize the IIF task and construct IIF-BENCH, a hierarchical benchmark covering literal, style, and discourse-function constraints.

  • Fine-grained evaluation. We design a fine-grained evaluation protocol and use an attention bias probe to analyze a key bottleneck of dLLMs in following in-place constraints.

  • GRAFT. We propose GRAFT, an IPP-oriented post-training framework that improves in-place constraint following while mitigating the conflict between local constraints and global consistency.

References (45)