On the Importance of Hidden-State
Refinement
in Masked Diffusion Language Models

Two fields of fine violet and mint curves connected by threads, illustrating hidden-state reuse across two steps.
Previous stepCurrent step

Linhao Zhong1,*Bozhen Fang1,*Xuehao Wang1Zekai Luo1Liyang Li1Hourong Li1Chenchen Jing2Hao Chen1

1 Zhejiang University, State Lab of CAD & CG

2 Zhejiang University of Technology

* Equal contribution

Cross-step recurrent refinement

Each denoising step produces hidden states as well as token predictions. CSRR saves the final block’s state so the first block can attend to it on the next step.

Diagram comparing the token-level denoising trajectory with hidden-state refinement across layers and steps.
The recurrent pathThe previous step’s detached final state enters block 1 after self-attention and before its feed-forward network. The first denoising step runs without memory.

How hidden states evolve

We traced LLaDA-8B-Instruct across 64 denoising steps on ten GSM8K examples to measure how much its representations change across layers and steps.

Across layers

0.930

Mean cosine similarity between adjacent layers. Deeper layers also become more predictive of the final tokens.

Plots of adjacent-layer cosine similarity, similarity by layer pair and relative update magnitude.

Across steps

0.96–0.99

Approximate range of mean final-block cosine similarity between consecutive steps. This alignment motivates reusing the previous state.

Mean cosine similarity of final-block states for consecutive denoising steps.

Reasoning benchmarks

Compare baseline and jointly trained CSRR with the same generation length and number of forward evaluations (NFE). The paper reports the best recurrent scale for each setting.

LLaDA-8B-Base · 128 tokens · 128 NFE
BenchmarkBaselineCSRRGain (pp)
Countdown6.25%18.36%+12.11
GSM8K16.68%37.38%+20.70
SVAMP52.00%71.33%+19.33

Transfer to Dream

At 256 tokens and 128 NFE, CSRR improves accuracy on all three reasoning tasks for both Dream-7B-Base and Dream-7B-Instruct.

View Dream results

Inference cost

CSRR adds 0.82% parameters. On the measured LLaDA-8B-Instruct prompt, 256 tokens at 128 NFE took 2.969 s with the baseline and 3.082 s with CSRR.

View cost comparison

Open original image