Masked diffusion language models have emerged as an alternative to autoregressive models, enabling parallel token generation. However, standard masked diffusion language models use a shared noise schedule across positions without explicitly encoding which positions should be resolved first. Many tasks exhibit a natural priority among positions: document titles and section headings can guide the generation of body text, while Sudoku cells determined directly from the initial clues can help resolve more difficult cells. To incorporate this notion of priority (or hierarchy) among token positions, we introduce the Hierarchical Masked Diffusion Language Model (HMDLM), which augments each token position with a hierarchy level available as part of the training data, and requires zero or minimal additional annotations. It factors generation into two passes: the first predicts a hierarchy distribution over masked positions, the second predicts token distributions conditioned on it. Giving each hierarchy level its own noise schedule induces a soft, controllable preference for revealing higher-priority positions earlier while keeping decoding fully parallel. Our formulation is mathematically grounded, and we re-derive the forward and reverse processes and the NELBO for this factorization. Our evaluation shows that for the task of language generation on LM1B, HMDLM reduces perplexity by more than 1.5 points over Anchored Diffusion Language Model (ADLM), a recently proposed strong diffusion baseline; on WikiHow, we see a drop in perplexity of up to 4.4 pts on ADLM and up to 7 pts against MDLM. An LLM judge on WikiHow prefers HMDLM generations (the two variants combined) more than 2× as often as the baseline. On the task of solving Sudoku puzzles requiring multi-step reasoning, it improves solution accuracy by up to 8.6% absolute points over existing diffusion baselines.
Figures & tables
Figure 1: HMDLM inference example. Positions i=0,3,5 are masked in (xt,ht) . Step t : Stage 1 reveals ht−15=1 , then Stage 2 predicts xt−15=ball . Step t−1 : Stage 1 reveals ht−20=0 and ht−23=0 , then Stage 2 predicts xt−20=The and xt−23=the .
Model
PPL ( ↓ )
33B tokens
Diffusion BERT ( He et al., 2023 )
≤63.78
SEDD ( Lou et al., 2024 )
≤32.79
MDLM ( Sahoo et al., 2024 )
≤27.04
ADLM ( Rout et al., 2025 )
≤26.40
HMDLM
≤24.30
Table 1: Test perplexities (PPL ↓ ) on LM1B. Best value is bolded.
Model
Gen. PPL ( ↓ )
MAUVE ⋆ ( ↑ )
Entropy
MDLM
177.94±0.82
0.66±0.03
6.022±0.003
HMDLM
83.35±0.83
0.76±0.06
5.876±0.014
Table 2: LM1B generative evaluation on 65 B checkpoints. Mean ± std over 3 seeds.
L
MDLM
HMDLM-P †
ADLM
HMDLM-F ‡
256
24.60±0.22
23.89±0.11
22.05±0.21
17.62±0.12
512
21.04±0.06
21.76±0.15
20.15±0.10
16.64±0.06
1024
22.65±0.04
22.58±0.04
20.92±0.05
16.90±0.09
Table 3: Model PPL ( ↓ ) across sequence lengths on WikiHow. Best value is in bold.
Gen. PPL
MAUVE ( ↑ )
Entropy
Model
256
512
1024
256
512
1024
256
512
1024
Gold
25.2
21.0
20.8
1.00
1.00
1.00
5.86
6.42
6.70
MDLM
76.0
67.4
62.7
0.33
0.11
0.12
6.47
7.10
7.60
ADLM
84.0
82.1
93.81
0.40
0.21
0.08
6.49
7.17
7.77
HMDLM-P
23.1
17.6
14.6
0.38
0.13
0.07
5.91
6.26
6.45
HMDLM-F
29.2
25.4
19.92
0.52
0.41
0.20
5.98
6.60
6.83
Table 4: Generative evaluation on WikiHow across sequence lengths L∈{256,512,1024} . HMDLM-P/F: position-/frequency-based hierarchy. Gold is the reference data.
Table 6: Sudoku-hard test set ( 18 k puzzles). Results are from 6 M-parameter models trained for 100 k steps with T=81 and confidence-based sampling. Mean ± std over 3 sampling seeds.
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
Model
g1
ρ=1−g1/3
Steps
Extra steps (epochs)
L=512
MDLM
–
1.000
28,650
–
HMDLM (summary)
22.34%
0.926
30,955
+2,305 ( +2.40 )
HMDLM ( τ=1 )
30.82%
0.897
31,930
+3,280 ( +3.41 )
L=1024
MDLM
–
1.000
41,137
–
Appendix
Table 7: Step-matched training budgets on WikiHow at context lengths 512 and 1024. g1 is the fraction of tokens at level 1. Under the summary rule, level 1 is the article summary. Under the count rule ( τ=1 ), level 1 is any token occurring at most once in its own sample.