Dynamic Infilling Anchors for Format-Constrained Generation in Diffusion Large Language Models
SourceFull paper
Article overview
Verdict
DIA is a promising training-free method for format-constrained generation in diffusion LLMs: it substantially improves structural correctness and sometimes accuracy, but gains depend on the task and settings, and MATH does not show convincing accuracy superiority.
Main idea
Dynamic Infilling Anchors first plans response boundaries dynamically by predicting end anchors, then infills content between the fixed anchors.
Mechanism
Representation: the masked response is divided into blocks bounded by semantic anchors; anchors specify the roles and boundaries of response parts. The architecture has two stages: (1) one-step end-anchor prediction for each block; the block expands by Δ=4 tokens until an anchor or partial anchor appears above confidence threshold C or a length limit is reached; redundant tokens are truncated and end anchors completed; (2) with boundaries fixed, content between anchors is iteratively diffusion-denoised. C controls truncation certainty, while Δ controls reasoning-space expansion; larger Δ generally improves accuracy but reduces format adherence. Reported settings include thresholds 0.065/0.05, maximum new lengths of 256/512 tokens, and 512 diffusion steps for GSM8K/MATH. No training is required; target signals, conditioning details, and sampling specifics beyond iterative denoising are not provided. Reproduction plan: 1) define fixed anchors and masked blocks; 2) run one-step end-anchor prediction; 3) expand blocks by Δ until the threshold or limit is reached; 4) truncate excess tokens and fix anchors; 5) run 512 denoising steps between anchors; 6) measure format, accuracy, latency, and out-of-anchor failures.
What this is useful for
The method is useful for diffusion LLM tasks requiring strict boundaries, JSON, or structured reasoning, especially in zero-shot generation without additional training. It fits settings where anchor roles can be specified manually and additional iterative processing is acceptable.
Risks / not proven
DIA depends on manually specified anchors and confidence thresholds; dynamic length adjustment adds overhead. More reasoning space can reduce format adherence, and case studies show risks of out-of-anchor text, incomplete generation, loops, and hallucinations. Generalization beyond the reported models, tasks, and settings is not established.
Full abstract
Diffusion large language models (dLLMs) offer bidirectional attention and parallel generation, enabling them to exploit global context and naturally support format-constrained tasks like parseable JSON or reasoning templates. While straightforward fixed anchors can enforce such constraints, they often impose rigid spans, leading to truncated reasoning or redundant content. To overcome this, we propose Dynamic Infilling Anchors (DIA), a training-free method that dynamically estimates end-anchor positions to adjust generation length before iterative infilling. This flexible mechanism ensures structural correctness and semantic coherence, avoiding the inefficiencies of fixed-span methods. Experiments on reasoning benchmarks demonstrate that DIA substantially improves format compliance and answer accuracy, achieving significant zero-shot gains on GSM8K and MATH. These results establish DIA as a robust pathway toward reliable, structure-aware generation.