· Masked / discrete diffusion · Source

PreDiff-LM: Pretrained Discrete Masked Diffusion Language Modeling with Hybrid Attention

SourceFull paper

Article overview

Verdict

A compelling way to adapt causal transformers into masked diffusion LMs: it clearly improves over diffusion baselines, accelerates training, and supports infilling and control, but does not match autoregressive models under matched conditions, and some gains depend on data and evaluation settings.

Main idea

PreDiff-LM preserves causal computation for the prompt while allowing bidirectional attention among target tokens during iterative denoising. It adds self-conditioning, mask-rate conditioning, and confidence-aware unmasking.

Mechanism

State: prompt tokens, partially masked target tokens, and mask rate. Architecture: causal attention for the prompt; prompt and target interact, while target tokens attend bidirectionally to one another; add mask-token, sinusoidal-time, and self-conditioning projections, about 9M parameters for GPT-2 Medium, with a tied LM head. Training: feed a masked sequence with mask-rate conditioning; project a preliminary soft prediction into a refined pass. Inference: compute probabilities under a cosine schedule, then first unmask positions with the highest maximum token probability, increasing the number unmasked per step. Gradient-guided denoising provides control. Reproduction: (1) start from a pretrained causal transformer; (2) add the projections and hybrid mask; (3) train with the diffusion objective, self-conditioning, and mask-rate conditioning; (4) use the cosine schedule; (5) perform confidence-ranked iterative unmasking; (6) evaluate PPL, MAUVE, infilling, and control under matched conditions. Exact hyperparameters, the full objective formula, and gradient-guidance details are absent from the records.

What this is useful for

The method is most useful with pretrained causal backbones when infilling, controllable generation, or rapid convergence to usable diffusion quality is needed. It is supported on GPT-2 and Llama-3.2, text benchmarks, and multi-domain mixtures; quality improves with added OpenWebText and degrades with longer sequences or greater domain distance.

Risks / not proven

Matched fine-tuned AR remains stronger in PPL and benchmark quality. Thirty-two-step diffusion is slower than optimized AR, and latency depends on hardware and step count. Long generations can loop, WikiText-only training produces invalid code, and the hybrid mask is untested for models trained from scratch. Llama results without matched AR controls and the small human audit limit generalization.

Full abstract

Discrete masked diffusion language models support bidirectional generation and infilling, but adapting pretrained autoregressive (AR) transformers requires reconciling causal pretraining with bidirectional denoising. We study this problem at the level of attention rather than claiming AR-weight reuse itself as novel. PreDiff-LM preserves causal attention within the observed prompt while allowing full bidirectional attention within the masked target. Under a matched GPT-2 Medium, WikiText-103, 90K-step setup, this hybrid mask improves unconditional perplexity from 34.1 to 28.7 and MAUVE from 0.71 to 0.78 over uniform bidirectional attention with the same AR initialization. Attention adaptation also composes with a DiffuGPT-style objective adaptation, reaching 26.9 perplexity. Pretrained initialization reduces the steps required to reach perplexity below 50 from about 350K to 8K, although a compute-matched fine-tuned AR model remains stronger at equal scale (18.9 versus 28.7). Beyond perplexity, PreDiff-LM improves repetition, distributional quality, four zero-shot downstream tasks, and human preference over prior diffusion baselines. The results position hybrid attention as a complementary mechanism for adapting pretrained causal backbones, while making explicit the remaining quality and inference-efficiency gaps to optimized AR models.

Source

BibTeX · RIS · Markdown · JSON