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

Zhengtao Yao, Runhao Li, Xupeng Chen, Jiayi Cheng, Chenqian Le, Michael Yue, Jesson Wang, Siheng Wang, Guang Yang, Haoyan Xu, Chenhao Wei, Zhengqing Yuan, Youran Shen, Yanfang Ye, Junhao DongarXiv 2026

TL;DR

PreDiff-LM introduces a hybrid attention mechanism that successfully adapts pretrained autoregressive (AR) language models into discrete masked diffusion models. By keeping prompt tokens causal while opening up bidirectional attention for target tokens, it accelerates training convergence by 44x and significantly improves text generation and infilling quality over standard diffusion baselines.

What Problem Does This Paper Address?

Autoregressive (AR) language models excel at left-to-right text generation but struggle with tasks requiring global context, like text infilling, editing, or iterative refinement. Discrete masked diffusion language models (LMs) offer a promising bidirectional alternative, but training them from scratch is computationally prohibitive.

While recent work attempts to reuse pretrained AR weights to initialize diffusion models, it hits a major roadblock: an attention-pattern mismatch. AR weights are trained under strict causal (left-to-right) attention. If you suddenly apply a uniform bidirectional mask during diffusion denoising, you disrupt the internal representations of the prompt, leading to degraded performance. PreDiff-LM tackles this exact problem: how should information flow change when causal weights are reused for masked denoising?

Methods

The authors propose PreDiff-LM, which uses an asymmetric Hybrid Causal-Bidirectional Attention Mask to bridge the gap between AR pretraining and diffusion denoising.

Overview of PreDiff-LM's problem, mechanism, and results.
  • Hybrid Attention Mask: Instead of applying a uniform bidirectional mask everywhere, PreDiff-LM splits the sequence. Prompt tokens retain their pretrained causal attention pattern, ensuring their representations remain stable. Target tokens can attend to the entire prompt and to each other bidirectionally, enabling full context utilization during denoising. Crucially, target tokens are blocked from influencing prompt tokens.
  • Self-Conditioning: During training, the model passes its preliminary soft token predictions back into a second refinement pass, reducing contradictions when multiple tokens are masked simultaneously.
  • Mask-Rate Time Embedding & Cosine Schedule: The noise level (mask rate) is injected via a sinusoidal embedding, and a cosine schedule focuses training on the most informative moderate mask rates.
  • Confidence-Aware Unmasking (CAU): An "easy-first" iterative decoding strategy that unmasks the highest-confidence tokens first during inference.

Datasets

The model is trained and evaluated on WikiText-103 and OpenWebText (for multi-domain training). Cross-dataset zero-shot transfer is evaluated on LM1B, PG-19, CodeParrot, LAMBADA, PTB, and C4. Downstream zero-shot tasks include LAMBADA, HellaSwag, PIQA, and WinoGrande.

Key Insights and Ideas

  • Asymmetry Matters: Prompts are fixed conditioning variables, whereas targets are latent variables undergoing reconstruction. Treating them identically (either fully causal or fully bidirectional) harms performance.
  • Complementary Adaptations: Changing the attention structure (information flow) and changing the training objective (loss function) are orthogonal improvements. Combining hybrid attention with objective adaptation (DiffuGPT-style) yields the best results.
  • Massive Training Efficiency: Initializing with pretrained AR weights acts as a massive shortcut, reducing the optimization steps needed to reach decent perplexity thresholds by orders of magnitude.

Key Results

44x Faster Training

PreDiff-LM reaches a perplexity (PPL) below 50 in just 8K steps, compared to 350K steps for MDLM trained from scratch.

Pretrained initialization sharply reduces the training steps required to reach PPL 50.

State-of-the-Art Diffusion Performance

On WikiText-103, PreDiff-LM-M achieves an unconditional perplexity of 28.7 (improving over 34.1 for uniform bidirectional attention) and a MAUVE score of 0.78. When combined with objective adaptation, PPL drops further to 26.9.

Superior Infilling

For text infilling (50% contiguous gap), PreDiff-LM scores 14.8 BLEU-4, outperforming dedicated infilling models (ILM at 11.5) and standard diffusion models (MDLM at 9.8).

The AR Gap

While PreDiff-LM represents a massive leap for diffusion models, a compute-matched, fine-tuned AR model still performs better at smaller scales (18.9 PPL vs 28.7 PPL), though this gap narrows significantly as the model scales up to 783M parameters.

Perplexity across model scale, showing the narrowing gap between PreDiff-LM and fine-tuned AR controls.

Limitations and Future Work

  • Inference Latency: Parallel denoising doesn't automatically mean faster wall-clock time. At 32 denoising steps, PreDiff-LM is slower than optimized AR decoding (with KV-caching or speculative decoding). It offers a tunable speed-quality trade-off rather than an outright speed advantage.
  • Scale Limitations: A fully matched fine-tuned AR control was unavailable at the largest scale (1.56B parameters), leaving the exact crossover point uncertain.
  • Untested on Scratch Models: The hybrid mask's utility is motivated purely by transferring causal weights; its impact on models trained entirely from scratch remains an open question.

Summary updated

BibTeX
@misc{yao2026prediff,
  author = {Zhengtao Yao and Runhao Li and Xupeng Chen and Jiayi Cheng and Chenqian Le and Michael Yue and Jesson Wang and Siheng Wang and Guang Yang and Haoyan Xu and Chenhao Wei and Zhengqing Yuan and Youran Shen and Yanfang Ye and Junhao Dong},
  title = {{PreDiff-LM: Pretrained Discrete Masked Diffusion Language Modeling with Hybrid Attention}},
  year = {2026},
  eprint = {2607.25157},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.25157},
}
Figure