Empowering Masked Diffusion Models to Self-Correct with Leave-One-Out Transformers

Cornell University
NeurIPS 2026

Abstract

Masked diffusion models (MDMs) have emerged as a promising paradigm for language modeling, enabling parallel token generation with competitive performance. Yet standard MDMs suffer from two fundamental limitations: (1) inability to revise tokens, and (2) sparse training signal. We revisit hollow transformers, which address both limitations by predicting each token from its surrounding context, independently of the input at that position. We introduce the Leave-One-Out Transformer (LOOT), a more efficient and expressive architecture that advances hollow transformers through two complementary advances. First, we redesign the merging mechanism to enable frequent interaction between left and right contexts, substantially improving predictive performance over prior hollow transformers. Second, we derive a lower-variance estimator of the MDM NELBO that supervises all tokens and improves validation perplexity. Together, these advances yield a competitive standalone diffusion language model capable of effective self-correction during inference. On LM1B, LOOT matches the strongest dense-supervision MDM baseline in validation perplexity. On OpenWebText, LOOT achieves higher MAUVE and better generation quality-diversity tradeoffs than prior remasking methods, using 8× fewer forward evaluations and 3.5× fewer inference FLOPs.

Limitations of Masked Diffusion Models

Masked diffusion models (MDMs) generate text by progressively replacing [MASK] tokens with model predictions. Standard MDMs face two limitations:

  • No self-correction. Once a token is unmasked, it remains fixed, so errors cannot be corrected and propagate through the rest of the generation process.
  • Sparse training signal. The training loss is computed only on masked positions, leaving visible tokens without direct supervision.

Idea: Leave-One-Out Prediction

Predict each token from its surrounding context, independently of the input at that position, modeling the conditional distributions \( p_\theta(x_i \mid \mathbf{x}_{-i}) \) at every position \(i\). This addresses both limitations at once: every position can contribute to training, and the same predictions can be used to correct previously generated tokens at inference time.

Dependencies of output tokens on input tokens in causal, bidirectional, and leave-one-out models
Dependencies of output tokens on input tokens in causal, bidirectional, and leave-one-out models. Unlike MDM, the output of LOOT at index \(i\) does not depend on the input at index \(i\), enabling loss optimization even on unmasked tokens.

Leave-One-Out Transformer (LOOT) Architecture

has seen input i
what output i reads
p_theta(x_i | x_{-i})
for all positions, in one pass

LOOT represents each sequence with three parallel streams of hidden states:

  • Forward stream: encodes left context, with a standard left-to-right causal mask.
  • Backward stream: encodes right context, with a right-to-left causal mask.
  • Output stream: computes the leave-one-out conditional, merging the left and right contexts at every layer.

Efficient Merging with Sliding-Window Attention

Each output query attends to two separate sets: backward states to its right, forward states to its left. Concatenating the two streams into one key tensor, query \(i\) reads one contiguous window of \(N-1\) keys, starting at key \(i\).

Ordinary sliding-window attention: no custom kernels.

  • 2 FlashAttention calls per layer
  • Shared weights: same parameter count as a standard MDM
  • 2.24× the FLOPs of a standard MDM pass

LOOT Training Objective

Models satisfying the leave-one-out property allow us to derive a lower-variance estimator of the MDM NELBO, without the diverging NELBO weights of MDM under the standard log-linear noise schedule.

MDM NELBO
MDM NELBO
LOOT NELBO
LOOT NELBO

Results: Sampling and Self-Correction

A trained LOOT model predicts the full set of leave-one-out conditionals \(\{p_\theta(x_i \mid \mathbf{x}_{-i})\}_{i=1}^{N}\) in a single forward pass, so it admits classical sampling techniques, such as Gibbs and Metropolis-style methods, for effective self-correction at inference time. Each correction step is one model evaluation regardless of how many tokens are revised.

SAMPLE Unmasking

A recorded sampling run of the released LOOT model on OpenWebText (124 of the 1,024 tokens of one sample): 256 unmasking steps, then 256 self-correction steps with blocked Gibbs (top-p 0.9). Tokens in green differ from the sample before self-correction.

LOOT at 256 NFE
vs. ReMDM at 2,048 NFE
  • 8× fewer forward passes
  • 3.5× fewer FLOPs
  • MAUVE 0.408 vs. 0.348
  • Gen. PPL 20.1 vs. 31.2

Quality-diversity frontiers. Generative perplexity (↓) against sample entropy (↑) over a temperature sweep on OpenWebText (top-\(p = 0.9\)). LOOT self-correction at 256 and 512 NFE matches or exceeds ReMDM at 2,048 NFE across the full frontier, with 3.5× and 1.7× fewer inference FLOPs after accounting for the 2.2× cost of a LOOT forward pass.

Generative perplexity against sample entropy: LOOT at 256 and 512 NFE versus ReMDM at 2048 NFE

Results: Language Modeling

We evaluate LOOT against discrete diffusion baselines on LM1B (sequence length 128) and OpenWebText (sequence length 1,024). On LM1B, LOOT improves over MDLM by 0.78 perplexity and matches PGM, the strongest prior dense-supervision baseline; on OpenWebText it reaches 26.83, behind MDLM (25.20) and PGM (26.57). The ablation shows LOOT’s two improvements over prior hollow transformers: frequent merging of bidirectional context (merge once 41.07 → merge every layer 36.23), and the LOOT NELBO in place of the half-and-half loss of prior work (39.35 → 36.23).

Validation perplexity
MethodLM1BOpenWebText
SEDD Absorb32.7126.81
MDLM31.8025.20
PGM31.0426.57
UDLM†36.7130.52
Duo†33.6827.14
LOOT (ours)†31.0226.83
† self-correcting model
Hollow transformer ablation (PPL)
ModelLM1B
DiT + MDLM loss39.80
Merge once41.07
Merge every 3 layers37.91
Merge every 2 layers37.23
Merge every layer (LOOT)36.23
LOOT + half-and-half loss39.35

BibTeX

@inproceedings{zalouk2026empowering,
  title         = {Empowering Masked Diffusion Models to Self-Correct with Leave-One-Out Transformers},
  author        = {Zalouk, Sofian and Counathe, Vincent and J{\"u}nger, Paul and Cao, Daniel and Zlotnick, Daniel and Weinberger, Kilian Q. and De Sa, Christopher},
  booktitle     = {Advances in Neural Information Processing Systems},
  year          = {2026},
  eprint        = {2611.19127},
  archivePrefix = {arXiv}
}