On the Importance of Hidden-State Refinement in Masked Diffusion Language Models
Organizations: Zhejiang University, State Lab of CAD & CG · Zhejiang University of Technology
Abstract
Masked diffusion language models (MDLMs) generate text by iteratively denoising masked or corrupted token sequences, allowing token predictions to condition on bidirectional context and update multiple positions in parallel. While each denoising step produces a rich layer-wise hidden-state trajectory, prior work typically focuses only on token-level information and discards these continuous hidden states, leaving their refinement dynamics underexplored. In this work, we analyze hidden-state dynamics in MDLMs and find clear evidence of layer-wise and cross-step refinement: smooth evolution across adjacent layers, greater predictive power in deeper layers, gradual degradation under transformer block removal, and strong final-state alignment across consecutive denoising steps. Motivated by these observations, we propose Cross-Step Recurrent Refinement (CSRR), a mechanism that carries hidden-state information across denoising steps to enhance generation. Extensive experiments show that CSRR improves text generation quality, highlighting the critical role of continuous hidden-state refinement in MDLMs. Project page: https://zhongzero.github.io/Recurrent-DLLM/
Figures & tables
| NFE/Gen Len | Method | Countdown | GSM8K | SVAMP | |||
|---|---|---|---|---|---|---|---|
| 128 | 256 | 128 | 256 | 128 | 256 | ||
| LLaDA-8B-Base | |||||||
| Baseline | 7.42 | 10.16 | 17.06 | 60.88 | 48.00 | 77.67 | |
| CSRR (module only) | 15.23 ( +7.81 ) | 13.67 ( +3.51 ) | 19.03 ( +1.97 ) | 63.38 ( +2.50 ) | 56.33 ( +8.33 ) | 76.67 ( -1.00 ) | |
| CSRR | 17.58 ( +10.16 ) | 17.58 ( +7.42 ) | 33.59 ( +16.53 ) | 70.66 ( +9.78 ) | 66.67 ( +18.67 ) | 81.00 ( +3.33 ) | |
| Baseline | 6.25 | 11.72 | 16.68 | 64.75 | 52.00 | 80.33 | |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| NFE/Gen Len | Method | Countdown | GSM8K | SVAMP | |||
|---|---|---|---|---|---|---|---|
| 128 | 256 | 128 | 256 | 128 | 256 | ||
| LLaDA-8B-Base | |||||||
| Baseline | 7.42 | 10.16 | 17.06 | 60.88 | 48.00 | 77.67 | |
| CSRR ( ) | 15.23 ( +7.81 ) | 17.58 ( +7.42 ) | 33.43 ( +16.37 ) | 70.66 ( +9.78 ) | 64.33 ( +16.33 ) | 81.00 ( +3.33 ) | |
| Baseline | 6.25 | 11.72 | 16.68 | 64.75 | 52.00 | 80.33 | |
| CSRR ( ) | 18.36 ( +12.11 ) | 21.88 ( +10.16 ) | 37.38 ( +20.70 ) | 79.23 ( +14.48 ) | 70.00 ( +18.00 ) | 82.67 ( +2.34 ) | |
| NFE/Gen Len | Method | Countdown | GSM8K | SVAMP | |||
|---|---|---|---|---|---|---|---|
| 128 | 256 | 128 | 256 | 128 | 256 | ||
| LLaDA-8B-Base | |||||||
| Baseline | 8.59 | 7.81 | 15.62 | 52.92 | 52.67 | 70.33 | |
| CSRR | 17.19 ( +8.60 ) | 19.53 ( +11.72 ) | 28.35 ( +12.73 ) | 66.19 ( +13.27 ) | 60.67 ( +8.00 ) | 71.67 ( +1.34 ) | |
| Baseline | 7.03 | 10.94 | 16.45 | 62.85 | 53.33 | 78.67 | |
| CSRR | 22.66 ( +15.63 ) | 21.48 ( +10.54 ) | 29.87 ( +13.42 ) | 74.98 ( +12.13 ) | 70.33 ( +17.00 ) | 81.67 ( +3.00 ) | |
Masked Diffusion Models
Masked diffusion models generate sequences by repeatedly predicting and revising masked tokens, using bidirectional context for parallel sampling.
See all 208 papers