Manuscript Offprint

arXiv:2610.30066

Looped Uniform Diffusion Language Models

Saiteja Utpala, Chieh-Hsin Lai, Yuki Mitsufuji, Praneeth Vepakomma

Abstract

Uniform diffusion language models (UDLMs) generate text by iteratively denoising sequences of ordinary vocabulary tokens, any of which may be corrupted and subsequently revised. During training, UDLMs must denoise from a context that may itself be unreliable, whereas masked diffusion language models (MDLMs) always condition on a clean context. This challenging training objective makes UDLMs more FLOP-intensive to train than MDLMs, but it yields stronger downstream reasoning performance. Recently, selective looping, which recursively applies a few early Transformer layers within each denoising step, has been shown to improve training efficiency in MDLMs under an iso-FLOP budget. We investigate looping in UDLMs while keeping the training objective and sampler unchanged. We find that looping significantly improves training efficiency: looped UDLMs reach the validation NLL of a non-looped UDLM trained on about 0.5 trillion tokens with up to 2.8×2.8\times fewer training FLOPs on OpenWebText and 3.3×3.3\times fewer on FineWeb-Edu. We also find that, at a matched NFE budget, looped UDLMs reach up to 9.8% lower generation perplexity than the non-looped UDLM, with most gains achieved at moderate loop counts. Finally, we study different loop-count distributions and find that sampling smaller loop counts more frequently during training improves inference efficiency: on downstream tasks, this strategy uses 12% fewer loops than uniform loop-count sampling without degrading accuracy.

1 Introduction

Discrete diffusion language models (dLLMs) generate text by starting from a corrupted sequence and denoising many positions in parallel (Austin et al., 2021; Lou et al., 2024; Sahoo et al., 2024; Nie et al., 2025; Lai et al., 2025). The forward process decides whether the denoiser knows which tokens are corrupted. Masked diffusion language models (MDLMs) replace corrupted tokens with a dedicated mask symbol, so the corrupted positions are always known. Under the standard absorbing-state reverse process, unmasked tokens are never changed (Sahoo et al., 2024; Shi et al., 2024; Ou et al., 2025; Zheng et al., 2025). Uniform diffusion language models (UDLMs) instead replace tokens with random tokens from the vocabulary, so every position holds an ordinary token that gives no sign of being corrupted (Austin et al., 2021; Schiff et al., 2025; Sahoo et al., 2025; Hong et al., 2026). Because of this, the reverse process can revise any position at any denoising step. The distinction is becoming more important as uniform diffusion is scaled to billion-parameter language models for reasoning (DiffusionGemma Team et al., 2026; Sahoo et al., 2026a).

Denoising in UDLMs is harder than in MDLMs because the denoiser must predict corrupted tokens from a context that may itself be corrupted. If a token does not fit its context, either the token or one of its neighbors was corrupted, and the denoiser has to work out which. At each position it therefore predicts two things. The first is the probability that the observed token was retained, which depends on the noise level and on how well the token agrees with its context. The second is the clean token itself, in case it was replaced. Both are read from the model's contextual prediction of the clean token, so refining that prediction

Figure

Figure 1: Looping saves training compute on OWT and FineWeb-Edu. Best validation NLL so far against training FLOPs for uniform (left) and FLOP-proportional (right) looping, on OWT (top) and FineWeb-Edu (bottom).

should improve both. The most straightforward way to refine it is to scale up the model by adding layers, but this increases the parameter count. Another way is looping, which spends more computation on the same noisy sequence by reusing existing layers, without adding parameters (Dehghani et al., 2019; Lan et al., 2020; Giannou et al., 2023; Geiping et al., 2025). Lee et al. (2026) recently showed that selectively looping a small block of early-middle layers improves training efficiency in MDLMs, where unresolved positions are explicitly identified. Whether looping also helps UDLMs, where the denoiser cannot tell which positions are corrupted, remains open. We therefore ask: How useful is looping for UDLM denoising, and how does the loop-count distribution affect training and inference?

To investigate this question, we integrate looping into UDLMs while keeping the training objective and sampler unchanged, using DUO ++^{++} (Deschenaux et al., 2026), the most efficient recipe for training UDLMs in the literature. Besides the uniform loop-count distribution used in prior work on looped masked diffusion (Lee et al., 2026), we study two alternatives: FLOP-proportional sampling, which gives each loop count the same expected share of training FLOPs, so smaller loop counts are sampled more often, and noise-proportional sampling, which assigns larger loop counts to noisier inputs. At inference, we consider fixed looping, which uses the same loop count at every denoising step, and adaptive looping, which halts once the relative change in the hidden state between consecutive iterations falls below a threshold.

Main findings. We summarize our observations as follows:

  1. Looping makes UDLM training more compute-efficient. Looped UDLMs reach the validation NLL of a non-looped UDLM trained on about 0.5 trillion tokens with up to 2.8×2.8 \times fewer training FLOPs on OpenWebText (Gokaslan & Cohen, 2019) and 3.3×3.3 \times fewer on FineWeb-Edu (Penedo et al., 2024).

  2. Looping helps at inference. Looped UDLMs reach up to 9.8% lower generative perplexity than the non-looped UDLM at the same number of denoising steps, with most of the gain captured at moderate loop counts. On seven out-of-domain datasets, looping at inference lowers the zero-shot perplexity of the non-looped UDLM by 11.5% on average.

FORWARD PROCESS + TRAIN

x1:L←batch(qdata)x^{1:L} \leftarrow \text{batch}(q_{\text{data}}) t∼U[0,1],ϵ∼N(0,I)t \sim \mathcal{U}[0,1], \epsilon \sim \mathcal{N}(0,I) wt←α~tx1:L+1−α~t2ϵw_t \leftarrow \tilde{\alpha}_t x^{1:L} + \sqrt{1-\tilde{\alpha}_t^2} \epsilon αt←T(α~t)\alpha_t \leftarrow \mathcal{T}(\tilde{\alpha}_t) zt1:L←argmaxjwt,jz_t^{1:L} \leftarrow \text{argmax}_j w_{t,j} yt←TopKSoftmaxτ,k(wt)y_t \leftarrow \text{TopKSoftmax}_{\tau,k}(\mathbf{w}_t) x^←LOOPEDDENOISE(yt,t,S)\hat{\mathbf{x}} \leftarrow \text{LOOPEDDENOISE}(y_t, t, S) Ltok←L−1∑ℓfDuo(ztℓ,x^ℓ,αt;xℓ)\mathcal{L}_{\text{tok}} \leftarrow L^{-1} \sum_{\ell} f_{\text{Duo}}(z_t^\ell, \hat{\mathbf{x}}^\ell, \alpha_t; \mathbf{x}^\ell)

REVERSE PROCESS

z1ℓ∼iidCat(1/K)z_1^\ell \stackrel{\text{iid}}{\sim} \text{Cat}(1/K) for n=N,…,1n = N, \ldots, 1: t←tn,s←tn−1t \leftarrow t_n, s \leftarrow t_{n-1} x^←LOOPEDDENOISE(zt1:L,t,S(t))\hat{\mathbf{x}} \leftarrow \text{LOOPEDDENOISE}(z_t^{1:L}, t, S(t)) rθℓ←q0∣t(⋅∣ztℓ,xℓ←x^ℓ)r_\theta^\ell \leftarrow q_{0|t}(\cdot | z_t^\ell, \mathbf{x}^\ell \leftarrow \hat{\mathbf{x}}^\ell) ppredℓ←qs∣t(⋅∣ztℓ,xℓ←x^ℓ)p_{\text{pred}}^\ell \leftarrow q_{s|t}(\cdot | z_t^\ell, \mathbf{x}^\ell \leftarrow \hat{\mathbf{x}}^\ell) pcorℓ←αsrθℓ+(1−αs)up_{\text{cor}}^\ell \leftarrow \alpha_s r_\theta^\ell + (1-\alpha_s) \mathbf{u} pΨℓ←κtppredℓ+(1−κt)pcorℓp_{\Psi}^\ell \leftarrow \kappa_t p_{\text{pred}}^\ell + (1-\kappa_t) p_{\text{cor}}^\ell zsℓ∼Cat(pΨℓ)z_s^\ell \sim \text{Cat}(p_{\Psi}^\ell)

LOOPEDDENOISE(yt,t,S\mathbf{y}_t, t, S)

et←Eθ(yt),h(0)←Hθ(et,t)\mathbf{e}_t \leftarrow E_\theta(\mathbf{y}_t), \quad \mathbf{h}^{(0)} \leftarrow H_\theta(\mathbf{e}_t, t) for r=0,…,S−1r = 0, \ldots, S-1: h(r+1)←Mθ(h(r),t)\mathbf{h}^{(r+1)} \leftarrow M_\theta(\mathbf{h}^{(r)}, t) return x^=softmax(Tθ(h(S)))\hat{\mathbf{x}} = \text{softmax}(T_\theta(\mathbf{h}^{(S)}))

Figure 2: Looped UDLM pipeline. Left: forward process and training. Right: reverse process with the Ψ\Psi sampler. L is the sequence length, K the vocabulary size, and S the number of loop iterations.

  1. Loops mainly refine predictions at replaced tokens. Extra loop iterations mostly improve the predicted clean token at replaced positions, not the choice of which tokens to keep. The gain is largest at intermediate noise.

  2. Adaptive looping saves loop iterations without losing accuracy. On ten zero-shot multiple-choice tasks, adaptive looping matches the accuracy of twelve fixed loop iterations while running 26.0% fewer of them with uniform sampling and 34.8% fewer with FLOP-proportional sampling.

References (52)