· unclassified · Source

Adaptive Block Diffusion: Resolving Training-Inference Mismatch in Diffusion Language Models

SourceFull paper

Article overview

Verdict

ABD is a credible way to train one diffusion language model for multiple block sizes: when inference configurations are covered during training, it preserves parallel decoding and competitive quality with specialized models. Guarantees do not extend beyond the training-distribution support, and configuration selection and weighting remain critical.

Main idea

Instead of training at one fixed block size, ABD randomly samples a prefix length and denoising-window size and trains on that configuration. This aligns training with multiple inference regimes without architectural changes.

Mechanism

The state is a token sequence partitioned by random boundaries into blocks; tokens in the selected window are noised, while the clean prefix provides conditioning. At each step a segmentation is sampled, cumulative boundaries are converted to block IDs, and one segmentation is broadcast across the batch. The attention mask for [noisy tokens | clean tokens] permits attention within the current noisy block, access to earlier clean blocks, and block-causal attention among clean tokens. ABDBoundaryManager implements this dynamically with flex attention rather than materializing a full mask. The objective is integrated denoising risk over the configuration distribution; the records do not specify the exact MDLM target, noise schedule, or sampling procedure. Reproduction: 1) perform MDLM pretraining; 2) define the block-size distribution; 3) sample a segmentation each step; 4) construct the described mask and train on the sampled window; 5) evaluate only covered configurations. The stated schedule is 250k MDLM pretraining steps plus 750k ABD finetuning steps, with sizes {1,2,4,…,128} weighted proportionally to 2^-k.

What this is useful for

The method is useful when one model must support different tradeoffs among granularity, parallelism, and decoding cost, including arbitrary boundaries and KV caching. It is most appropriate when the expected operating configurations are known well enough to cover with the training distribution.

Risks / not proven

Configurations outside the training support have no quality guarantee. Uneven weights bias performance toward frequently sampled block sizes, and coverage quality affects results. Inference-policy selection remains unresolved, and finite-sample guarantees are absent. The records also omit the exact MDLM objective, noise schedule, and a complete protocol for computational comparison.

Full abstract

Diffusion Language Models (DLMs) are typically trained under fixed context structures, restricting denoising to predetermined token subsets. This creates a mismatch between training and inference, where models must operate over arbitrary configurations, leading to degradation off the training grid. We propose Adaptive Block Diffusion (ABD), which resolves this mismatch by optimizing denoising risk over a distribution of prefix-window configurations. By treating the configuration as a stochastic variable, ABD trains a single model over the full configuration space without architectural changes. We show that generalization across decoding strategies is governed by the support of the training distribution, and that ABD guarantees denoising optimality for any inference policy whose configurations are covered during training. Empirically, ABD exhibits structural invariance across decoding scales, avoiding off-grid collapse and recovering a monotonic relationship between block size and perplexity, while matching or outperforming fixed-block specialists at their target scales.

Source

Paper resources

Project

BibTeX · RIS · Markdown · JSON