Full text not available for this paper

Summary (Overview)

  • Revisits the widely cited "16×" compute gap between diffusion language models (DLMs) and autoregressive language models (ARMs), showing that this figure substantially overstates the pretraining cost of DLMs.
  • Identifies three methodological flaws in the original SMDM study (Nie et al., 2025): scoring with the evidence lower bound (ELBO) instead of exact likelihood, training full-sequence decoder-only models instead of block diffusion, and using an outdated FLOP count.
  • Proposes a revised protocol incorporating exact likelihood evaluation (DUEL), block diffusion training (BD3LM), an encoder–decoder architecture (E2D2), and a sweep over practical block sizes b∈{4,8,16,32}b \in \{4, 8, 16, 32\}.
  • Reduces the compute multiple from 17.8× to 3.0× through a combination of exact likelihood scoring, block diffusion, encoder–decoder architecture, and smaller block sizes.
  • Trains ~1,700 models across ten model variants—the largest compute-matched scaling analysis of diffusion language models to date.

Introduction and Theoretical Foundation

Background

Masked diffusion models (MDMs) have emerged as the leading non-autoregressive alternative for language modeling, offering fast parallel generation—about 2.5× the generation throughput of ARMs at comparable accuracy, with commercial systems reporting up to 10×. However, their training efficiency has been widely believed to be far worse than ARMs, primarily due to the influential IsoFLOP study by Nie et al. (2025) (SMDM), which concluded that an MDM needs ~16× the training FLOPs of an ARM to reach the same validation perplexity.

Theoretical Foundation

The paper identifies three key methodological issues with the original 16× measurement:

1. ELBO vs. Exact Likelihood. The SMDM study scored MDMs using the negative evidence lower bound (ELBO):

LELBO(x1:n)=Et∼U(0,1)Ez1:nt∼qt(⋅∣x1:n)[1t∑ℓ:zℓt=m−log⁡pθ(xℓ∣z1:nt)]≥−log⁡pθ(x1:n)\mathcal{L}_{\text{ELBO}}(x_{1:n}) = \mathbb{E}_{t \sim U(0,1)} \mathbb{E}_{z^t_{1:n} \sim q_t(\cdot|x_{1:n})} \left[ \frac{1}{t} \sum_{\ell: z^t_\ell = m} -\log p_\theta(x_\ell | z^t_{1:n}) \right] \geq -\log p_\theta(x_{1:n})

This is only an upper bound on the negative log-likelihood (NLL) and scores the model under uniformly random token orders it never uses at inference. The paper instead uses DUEL (Turok et al., 2026), which computes the exact NLL under the model's actual decoding order (top-1 confidence rule). Under a deterministic unmasking rule π\pi, the exact likelihood factorizes as:

pθπ(x1:n)=∏i=1npθ(xσi∣xσ<i)p^\pi_\theta(x_{1:n}) = \prod_{i=1}^{n} p_\theta(x_{\sigma_i} | x_{\sigma_{<i}})

2. Full-sequence vs. Block Diffusion. Nearly all large-scale DLMs now use block-wise factorization (BD3LM; Arriola et al., 2025) with block sizes between 4 and 32, rather than operating over the full sequence. Block diffusion partitions x1:nx_{1:n} into contiguous blocks of bb tokens, factorizes autoregressively over blocks, and models each block with a masked diffusion model conditioned on the clean prefix.

3. Decoder-only vs. Encoder–Decoder Architecture. The encoder–decoder architecture (E2D2; Arriola et al., 2026) separates the processing of clean and noised tokens, splitting an LL-layer transformer into an LencL_{\text{enc}}-layer encoder and an Ldec=L−LencL_{\text{dec}} = L - L_{\text{enc}}-layer decoder, offering computationally cheaper training than the decoder-only network.

Methodology

Revised Scaling Law Protocol

The paper makes three advances and two corrections to the SMDM protocol:

Advances:

  1. Exact likelihood evaluation: All diffusion models scored with DUEL under the top-1 confidence unmasking rule; ELBO also computed with 128-particle Monte-Carlo for comparison.
  2. Block diffusion: Models trained at block sizes b∈{4,8,16,32}b \in \{4, 8, 16, 32\}, chosen based on the roofline model for GPU compute-bound serving.
  3. Encoder–decoder architecture: E2D2 models trained at the same four block sizes, with decoder-depth sweeps at every grid point.

Corrections:

  1. Exact FLOP counting: Instead of the coarse 6N6N rule (Kaplan et al., 2020), the paper counts actual training FLOPs including output head and attention score computation. Per-sample training FLOPs:

    • ARM: 6Pn+6dL⋅n(n+1)+6dVn6Pn + 6dL \cdot n(n+1) + 6dVn
    • MDM: 6Pn+12dL⋅n2+6dVn6Pn + 12dL \cdot n^2 + 6dVn
    • BD3LM: 12Pn+12dL(n2+nb)+6dVn12Pn + 12dL(n^2 + nb) + 6dVn
    • E2D2: 6Pencn+6dLenc(n2+nb)+6Pdecn+12dLdec⋅nb+6dLdec(n2−nb)+6dVn6P_{\text{enc}}n + 6dL_{\text{enc}}(n^2 + nb) + 6P_{\text{dec}}n + 12dL_{\text{dec}} \cdot nb + 6dL_{\text{dec}}(n^2 - nb) + 6dVn
  2. In-range compute multiple readout: Compute multiples read within the measured range of the scaling laws rather than by extrapolation.

Training Setup

  • Architecture: LLaMA-style transformers, 19M–2.1B non-embedding parameters
  • Data: SlimPajama, sequence length 2048, batch of 256×2048 tokens
  • Optimizer: AdamW (β=(0.9,0.95)\beta = (0.9, 0.95), weight decay 0.1, gradient clipping at 1.0), peak LR 4×10−44 \times 10^{-4}, linear warm-up over 1% of steps, cosine decay to 1/10 of peak
  • Budgets: Five budgets {6×1018,1019,3×1019,6×1019,1020}\{6 \times 10^{18}, 10^{19}, 3 \times 10^{19}, 6 \times 10^{19}, 10^{20}\} FLOPs
  • Total: ~1,700 trained models, ~136k B200 GPU hours

Fitting Procedure

For each variant and budget, a centered parabola is fitted in log⁡10N\log_{10} N space to find the compute-optimal NLL L∗(C)L^*(C). Across budgets, the power law is fitted:

L∗(C)=aCαL^*(C) = aC^\alpha

The compute multiple is read by finding the compute at which the ARM's fitted law reaches the diffusion variant's L∗L^* at 102010^{20} FLOPs.

Empirical Validation / Results

Main Scaling Law Results

Table 1: Fitted laws L∗(C)=aCαL^*(C) = aC^\alpha and compute multiples

VariantaαMultiple
ARM40.95−0.0618—
MDM (ELBO)49.93−0.062317.8
MDM57.87−0.065912.8
BD3LM b=3255.54−0.06549.6
E2D2 b=3247.79−0.06247.8
BD3LM b=1655.56−0.06577.8
E2D2 b=1649.26−0.06346.3
BD3LM b=854.34−0.06565.9
E2D2 b=848.52−0.06354.6
BD3LM b=452.99−0.06554.1
E2D2 b=445.50−0.06273.0

Key findings:

  • ELBO baseline: 17.8× multiple, comparable to the original 16× figure
  • Exact likelihood (DUEL): Reduces multiple to 12.8×—about a third of the gap is an evaluation artifact
  • Block diffusion: BD3LM reduces to 9.6× at b=32, 7.8× at b=16, 5.9× at b=8
  • Encoder–decoder: E2D2 further reduces to 7.8× at b=32, 6.3× at b=16, 4.6× at b=8, and 3.0× at b=4

Table 2: Compute multiples at 10²⁰ FLOPs—DUEL vs. ELBO

MDMBD3LM 32BD3LM 16BD3LM 8BD3LM 4E2D2 32E2D2 16E2D2 8E2D2 4
DUEL12.89.67.85.94.17.86.34.63.0
ELBO17.816.513.610.16.312.09.87.14.2

Optimal Decoder Depth

The optimal decoder fraction depends on the block size alone, following the empirical rule:

Ldec∗/L≈0.556+0.043log⁡2bL^*_{\text{dec}}/L \approx 0.556 + 0.043 \log_2 b

This rule is near-optimal: at 90 of 104 grid points with b∈{8,16,32}b \in \{8, 16, 32\}, the DUEL of the rounded prediction lies within 5 m-nats of the best split found by the sweep.

Held-out Budget Validation

At a held-out budget of 3×10203 \times 10^{20} FLOPs (three times larger than the largest fitted budget), the gap between variants persists:

  • ARM–E2D2 gap at b=16: 261.6 m-nats measured vs. 257 predicted
  • ARM–E2D2 gap at b=32: 296.8 m-nats measured vs. 294 predicted

All variants show a common upward deviation of ~1.1% from pure power-law extrapolation, suggesting a mild misspecification (small irreducible term), but the gap between variants is insensitive to this.

Downstream Benchmarks

Table 3: DUEL vs. ELBO accuracy difference (mean ± s.d. over five budgets)

b=4b=8b=16b=32
MDM+0.4 ± 0.1
BD3LM+1.0 ± 0.4+0.9 ± 0.2+0.9 ± 0.2+0.8 ± 0.2
E2D2+1.0 ± 0.5+1.1 ± 0.4+1.0 ± 0.3+1.0 ± 0.2

DUEL yields statistically significantly higher accuracy than the ELBO for every diffusion variant. The order in benchmark accuracy broadly matches the order in NLL: ARM > E2D2 b=4 > E2D2 b=32 > BD3LM b=32 > MDM, confirming that likelihood improvements carry over to downstream accuracy.

Theoretical and Practical Implications

Implications for DLM Pretraining

  1. The 16× figure is substantially overstated: The true compute gap between DLMs and ARMs is between 3.0× and 12.8× depending on the design choices, making pretraining DLMs from scratch far more viable than previously assumed.

  2. Evaluation methodology matters: Using the ELBO instead of exact likelihood under the model's decoding order inflates the apparent gap by about a third. DUEL is both theoretically better (exact likelihood under deployment conditions) and empirically better (higher downstream accuracy).

  3. Architecture design choices are crucial: The encoder–decoder architecture (E2D2) consistently outperforms decoder-only models at matched compute, suggesting that the conceptual split between encoding and decoding is beneficial for diffusion language models.

  4. Block size is a key hyperparameter: Smaller block sizes reduce the compute gap, with practical implications for serving (block sizes 8–32 put GPU compute units to use during decoding).

Practical Guidance

  • Optimal decoder depth rule: Practitioners can use Ldec∗/L≈0.556+0.043log⁡2bL^*_{\text{dec}}/L \approx 0.556 + 0.043 \log_2 b to set the encoder–decoder split without expensive sweeps.
  • Exact FLOP accounting: The 6N6N rule distorts scaling law comparisons across variants; attention score computation accounts for 5–30% of training FLOPs and differs markedly across variants.

Conclusion

This paper revisits the scaling laws of diffusion language models and demonstrates that the widely cited 16× compute gap to ARMs substantially overstates the pretraining cost. Through a revised protocol incorporating exact likelihood evaluation (DUEL), block diffusion training (BD3LM), encoder–decoder architecture (E2D2), and a sweep over practical block sizes, the compute multiple is reduced from 17.8× to as low as 3.0× (E2D2 at b=4). The paper also provides an empirical rule for optimal decoder depth, validates results at a held-out budget, and shows that likelihood improvements carry over to downstream accuracy.

Future directions include:

  • Fitting scaling laws with an irreducible term (the consistent miss at the held-out budget suggests one is present)
  • Exploring other unmasking rules beyond top-1 confidence
  • Hyperparameter tuning at every scale (the paper keeps the SMDM recipe for consistency)
  • Extending the held-out budget validation to b=8 and other block sizes

Limitations: single fixed random seed, only top-1 confidence sampler tested, single learning-rate and batch-size configuration, pure power-law fits without irreducible term.

Related papers