Manuscript Offprint
arXiv:2610.30066Looped Uniform Diffusion Language Models
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 fewer training FLOPs on OpenWebText and 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 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:
-
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 fewer training FLOPs on OpenWebText (Gokaslan & Cohen, 2019) and fewer on FineWeb-Edu (Penedo et al., 2024).
-
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
REVERSE PROCESS
for :
LOOPEDDENOISE()
for : return
Figure 2: Looped UDLM pipeline. Left: forward process and training. Right: reverse process with the sampler. L is the sequence length, K the vocabulary size, and S the number of loop iterations.
-
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.
-
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.
2.1 Uniform diffusion language models
A UDLM corrupts a sequence by replacing some of its tokens with random tokens from the vocabulary (Austin et al., 2021; Schiff et al., 2025). Let be a clean sequence of tokens from a vocabulary of size , represented as one-hot vectors in . At time , each token is retained with probability and otherwise replaced by a uniformly drawn token:
Here denotes a categorical distribution with probabilities . So gives clean data and gives nearly uniform noise. A corrupted position can even draw its original token again, and no marker shows which positions were corrupted. Equation 1 corrupts positions independently, while the clean tokens can depend on each other.
To generate, a denoiser uses the entire noisy sequence to predict a clean-token distribution at every position, , where is the -category probability simplex. These contextual predictions are used in the known Bayesian reverse transitions to a less noisy time . Each transition updates all positions in parallel. DUO (Sahoo et al.,
- improves UDLM training convergence, and DUO (Deschenaux et al., 2026) further improves on DUO by reducing peak memory, as we review next.
2.2 Duo and DUO
A categorical token records only the winning vocabulary entry. To provide richer training inputs, DUO (Sahoo et al., 2025) obtains each noisy token from an auxiliary Gaussian vector. For a single token, suppressing the position index,
With , the winning token follows exactly the UDLM marginal in Equation 1. The correspondence holds only for the marginals at each time. The Gaussian and categorical diffusion trajectories remain different. While the hard token defines the corruption target, the denoiser receives the positionwise soft inputs , where is a temperature. These retain the margins between competing tokens that arg max discards, and the hard-token limit is recovered as . DUO uses these soft inputs as a curriculum for the first half of training and hard tokens for the second half. This lowers gradient variance, and the model converges about twice as fast (Sahoo et al., 2025). DUO (Deschenaux et al., 2026) approximates the soft inputs with only the largest Gaussian entries and an estimate of the remaining softmax mass, so that the curriculum can be used with large vocabularies. In practice already works well, reducing peak memory by 33% and training time by 25% relative to DUO (Deschenaux et al., 2026).
Both methods use the inherited UDLM rate-based loss, always evaluated at the hard corruption target . During the curriculum, the denoiser computes its contextual predictions from the soft inputs. Afterwards, it receives the hard tokens:
Here compares the true and predicted reverse-transition rates at position . With hard denoiser inputs, this is the token-normalized negative evidence lower bound (NELBO), an upper bound on negative log-likelihood. Soft inputs give a biased curriculum surrogate. The exact rate and derivation appear in Appendix A.
Categorical sampling. Generation uses hard categorical tokens rather than Gaussian inputs. The denoiser’s clean-token predictions are substituted into the UDLM Bayesian posterior to obtain an ancestral predictor . A corrector re-noises the inferred clean-token distribution instead. The -sampler (Deschenaux et al., 2026) mixes them:
The update is applied in parallel across positions and repeated toward clean time. Figure 2 summarizes both pipelines. Our work changes only the denoiser computation, leaving the loss and sampler unchanged.
3 Looped Uniform Diffusion Models
The corruption process of UDLMs makes training challenging, because tokens must be predicted from an unreliable context. Concretely, a UDLM needs more training FLOPs than an MDLM to reach the same validation NLL (Sahoo et al., 2026b). Recent works have shown that looping, which repeatedly applies a shared set of Transformer layers, adds depth without adding parameters (Dehghani et al., 2019; Giannou et al., 2023; Geiping et al., 2025) and improves the training efficiency of masked diffusion language models at matched training FLOPs (Lee et al., 2026). Motivated by this, we study the effect of looping on the training efficiency and downstream performance of UDLMs, keeping the corruption process, the DUO objective, and the sampler unchanged. §3.1 quantifies the uncertainty created by uniform corruption, and §3.2 introduces the looped UDLM denoiser and the loop-count distributions used to train it.
3.1 Unmarked corruption and latent reliability
An exact reliability decomposition. Both MDLMs and UDLMs can be described by a keep-or-replace corruption kernel:
where is a replacement distribution independent of the clean token, possibly supported on an augmented vocabulary. In absorbing MDLMs , and in UDLMs is uniform over the ordinary vocabulary. Let be the latent reliability indicator, which is 1 for a retained token and 0 otherwise. For an observed token , let denote the distribution of the clean token given the rest of the noisy sequence, referred to as the contextual prediction. A retained token equals its clean value and a replaced one carries no information about it, so Bayes' rule gives
(6)
for . The clean-token posterior is thus a mixture of a point mass on the observed token and the contextual prediction, weighted by the retention probability . For UDLMs, and
so retention is not marked in the input: even at a fixed diffusion time, it has to be inferred from how well the token fits its context. For MDLMs, the same weight is 1 for an ordinary token and 0 for a mask. Because is computed from positions that may themselves have been replaced, these judgments are coupled across positions (Hong et al., 2026). Appendix A.3 gives the derivations, and related identities appear in Gourevitch et al. (2026).
What the DUO denoiser estimates. The UDLM NELBO (Equation 3) depends on the denoiser output only through , and with hard inputs it is minimized at (Appendix A.3). A trained DUO denoiser therefore estimates the contextual prediction, and Equation 7 turns its output into an estimated retention probability . Since additional loop iterations change only , we use the decomposition in Equation 6 to understand how looping helps in §5.3.
3.2 Looped denoiser and loop-count training
We loop a slice of middle blocks of the DUO denoiser and draw a random loop count at every training step. Besides uniform sampling, we introduce two new loop-count distributions: one that balances training FLOPs across loop counts, and one that ties the loop count to the noise level.
Architecture. The DUO denoiser is a Diffusion Transformer (DiT) (Peebles & Xie, 2023) with n time-conditioned blocks, which we split into a head of blocks, a slice of middle blocks with blocks, and a tail of blocks that also holds the output projection. The input follows the conventions of §2.2: soft or top-k inputs during the curriculum and hard tokens otherwise. It is embedded once by , passed through the head, looped through the middle slice for S iterations, and mapped to clean-token predictions by the tail:
(8)
The slice uses the same weights at every pass, so looping adds depth but no parameters. With S passes the network has blocks, and S = 1 is the original network. The noisy input stays fixed during the loop and changes only between diffusion steps (Figure 2).

(a) where to loop and how deep to train

(b) noise-proportional distribution
Figure 3: Design choices behind the looped models. (a) NLL at S = 8 for each starting block of the looped slice (left) and best NLL for each training cap (right). Purple marks the setting used in the paper. (b) All six noise-proportional evaluations are worse than uniform and FLOP-proportional at the same FLOPs.
Stochastic loop-count training. At each optimizer step, we sample a loop count S from a distribution over , unroll the slice S times, and backpropagate the DUO objective (Equation 3) through every iteration. This gives one model that can be run with different loop counts at inference, either fixed or chosen adaptively at each diffusion step ( ). The choice of matters for the training budget, because the modeled per-sequence training cost grows with the loop count:
where is the non-looped cost and is the cost of one block in the looped slice (Appendix C).
(a) Uniform. LoopMDM (Lee et al., 2026) samples , and we use this as our default with . Each loop count is then trained equally often. Since a step with more loops costs more (Equation 9), most of the training FLOPs go to large loop counts, even though the inference gains level off at moderate loop counts ( ).
(b) FLOP-proportional. To balance training FLOPs instead of update counts, we sample each loop count with probability inversely proportional to its cost,
which adds no tunable parameter beyond the architecture-defined costs and , and reduces to uniform sampling when . Under , the expected cost of a training step is the harmonic mean of , . Uniform sampling gives the arithmetic mean instead. Since the harmonic mean is smaller than the arithmetic mean for , .
(c) Noise-proportional. We also study a noise-proportional distribution to test the hypothesis that noisier inputs benefit from more loop iterations, since their observed tokens provide less direct information about the clean sequence. We split into G consecutive groups of equal size, from small to large loop counts. Using antithetic time sampling, we sort the training microbatches into G equal bands of increasing noise, and band b draws S uniformly from (Figure 8b,c, Appendix B). The marginal distribution of loop counts remains uniform, so this distribution matches uniform sampling in expected training FLOPs while isolating the effect of this particular coupling between noise and loop count.
Ancestral -sampler
(a) Baseline (no looping)
(b) Uniform
(c) FLOP-proportional

Figure 4: Generation quality and diversity. Generative perplexity (top) and unigram entropy (bottom) against NFE. Dashed lines are S = 1 and solid lines are S = 6. Looping lowers generative perplexity at the same NFE without lowering entropy.
4 Experimental Setup
Model and datasets. All models use the 170M-parameter DUO small DiT (12 blocks, width 768, sequence length 1,024, GPT-2 tokenizer) with its efficient curriculum. Looped models replay blocks 1–2 with , a choice justified by the ablation in Figure 3a. We train on two datasets: OpenWebText (OWT) (Gokaslan & Cohen, 2019) and the sample-10BT subset of FineWeb-Edu (Penedo et al., 2024). On both, the final 100k documents are held out for validation. Following DUO (Deschenaux et al., 2026), the non-looped baseline is trained for 1M optimizer steps with a batch size of 512. We train with sequence packing following Raffel et al. (2020), and Appendix D gives more details.
Iso-FLOP budgets. We compare runs at the same training FLOPs. After a given number of steps, a run has used step FLOPs, where sequences and is the training cost per sequence at the run's mean loop count (Appendix C). The cost relative to the baseline, , depends only on the loop-count distribution (Table 3). We use the Chinchilla convention, and the Kaplan variant only rescales the axis (Figure 9). The FLOPs of the baseline's 1M steps buy 655,420 steps for the uniform run and 688,915 for the FLOP-proportional run. On average, a training step runs 6.50 loop iterations with uniform or noise-proportional sampling, and 5.72 with FLOP-proportional sampling. Every 5k optimizer steps, we record validation NLL at . The noise-proportional run is also scored with each noise band at a low, middle, or high loop count from the band it was trained on (Appendix B). None of its evaluations reaches the other two frontiers (Figure 3b).
Looping at inference. At inference the loop count is a free parameter. We run checkpoints at and also with adaptive looping (Lee et al., 2026), which picks separately for each sequence. A sequence keeps looping until its hidden state barely moves, i.e., until , and never goes past .
Evaluation. All inference results use OWT checkpoints, evaluated along three axes: (a) generative perplexity (Gen. PPL) under GPT-2 Large and unigram entropy of generated samples, across numbers of function evaluations (NFE, i.e., denoiser calls) (§5.2), (b) zero-
| Dataset | Baseline | Fixed looping | Adaptive looping | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Uniform | FLOP-prop. | Uniform | FLOP-prop. | ||||||
| PTB | 94.86 | 85.18 | 84.01 | 83.97 | 85.47 | 85.19 | 85.55 | 85.14 | 85.43 |
| WikiText-103 | 34.46 | 31.70 | 31.39 | 31.31 | 31.65 | 31.46 | 31.44 | 31.75 | 31.71 |
| LM1B | 74.21 | 71.16 | 70.59 | 70.38 | 70.35 | 70.05 | 70.15 | 71.22 | 70.47 |
| LAMBADA | 51.83 | 48.02 | 47.76 | 47.70 | 46.38 | 46.33 | 46.45 | 48.21 | 46.56 |
| AG News | 69.95 | 59.21 | 57.93 | 57.31 | 59.88 | 58.77 | 58.35 | 58.68 | 59.63 |
| PubMed | 44.91 | 38.91 | 38.30 | 37.95 | 39.16 | 38.52 | 38.11 | 38.82 | 39.23 |
| arXiv | 39.78 | 35.02 | 34.47 | 34.13 | 35.27 | 34.71 | 34.37 | 34.97 | 35.31 |
| Average | 58.57 | 52.74 | 52.06 | 51.82 | 52.59 | 52.15 | 52.06 | 52.68 | 52.62 |
Table 1: Zero-shot perplexity (↓). Mean over five seeds. Adaptive looping uses and . Bold marks the best value in each row. Appendix G gives results and standard deviations.
shot perplexity on seven out-of-domain datasets (5.3), and (c) downstream accuracy on ten multiple-choice tasks (5.4). Appendices F–H give the full protocols.
5 Results
Where to loop. On OpenWebText (50k steps, one seed), two-block slices starting anywhere in blocks 1–5 perform about equally, late slices with a short tail are clearly worse, and raising beyond 12 gives no further gain (Figure 3a, Appendix E). All looped models therefore loop blocks 1–2 with .
5.1 Looping is training-compute efficient
We compare each looped run with the non-looped baseline at matched training FLOPs on both datasets (Figure 1, with per-step curves in Figure 10). Both looped runs stay below the baseline at every budget, and the savings are larger on FineWeb-Edu than on OpenWebText. Evaluating at , or 12 gives nearly the same curve, so a few loop iterations capture almost all of the gain. FLOP-proportional sampling closely matches the final NLL of uniform sampling (3.159 vs. 3.154 on OpenWebText and 3.122 vs. 3.119 on FineWeb-Edu), and it is better at (3.289 vs. 3.306), the loop count it trains on most often.
Finding 1. Looping improves training efficiency in UDLMs. Across OpenWebText and FineWeb-Edu, both looped models reach the non-looped baseline's validation NLL with fewer training FLOPs.
Noise-proportional sampling has the same per-step cost as uniform sampling, so the two runs are iso-FLOP at every step. We stopped it after 16 epochs of OpenWebText. Besides fixed loop counts, we score it with band-consistent evaluation, which scores each noise band only at loop counts it was trained on (Appendix B). None of these six evaluations reaches the uniform or FLOP-proportional frontier (Figure 3b), and the other two distributions reach its best NLL with roughly less compute.
Finding 2. The noise-proportional distribution offers no benefit. At matched OpenWebText training FLOPs, assigning deeper loops to noisier inputs underperforms uniform and FLOP-proportional sampling (the best result trails FLOP-proportional by +0.029 NLL). This is consistent with Figure 6b, where the loop gain at inference peaks at intermediate diffusion times rather than at the noisiest inputs.
Uniform looping
FLOP-proportional looping
(a) Stops by noise level

(b) Gain kept at the stop
(c) Stops by task (mean )
Figure 5: Where adaptive looping stops ( , ). (a) Stopping loop count of single denoiser calls on the eight datasets at each diffusion time, with triangles at the mean. (b) Share of the NLL gain from S = 1 to 12 kept at the adaptive stop (filled) and at a fixed loop count with the same average cost (open). The top row gives the total gain of the uniform checkpoint. (c) Stopping loop counts over all noise levels for each evaluation.
5.2 Looping at inference improves generation
We sample from each checkpoint with the ancestral and samplers across NFE budgets and compare loop counts at matched NFE (Figure 4, Appendix F). Looping lowers Gen. PPL without reducing entropy. With ancestral sampling the gain is small at the lowest NFE and largest at 128–1,024 NFE. With the -sampler it is smaller and shrinks at large NFE, where the sampler alone already gives low Gen. PPL. These comparisons fix NFE, not FLOPs: costs the inference FLOPs of and costs , while or 8 already gives most of the gain. Adaptive looping averages about 5.5 loop iterations, slightly cheaper than fixed , and matches or beats it at most sampler–NFE points.
Finding 3. Looping at inference matters more than maximizing depth. At matched NFE, looped models reach up to 9.8% lower Gen. PPL than the non-looped baseline, with most gains by S = 6–8. Adaptive looping retains comparable quality with fewer loop iterations.
5.3 Looping at inference improves zero-shot likelihood
We bound the perplexity of each checkpoint on seven out-of-domain datasets (Table 1). Run at S = 1, both looped checkpoints are worse than the non-looped baseline on every dataset (Table 10), so loop training alone does not give the gain. Looping at inference reverses this: every fixed S > 1 and adaptive looping beat the baseline on every dataset. Unlike generation, likelihood keeps improving with depth, and S = 12 is the best loop count of the uniform checkpoint on every dataset.
Adaptive looping stops where looping stops helping. On single denoiser calls (Figure 5a), both checkpoints stop early at low and high noise and loop longest at intermediate diffusion times. This tracks where looping helps: the NLL gain from S = 1 to 12 is several times larger at t = 0.5–0.7 than at t = 0.1 or 0.9. At the stop, adaptive looping keeps 88%–98% of the S = 12 gain and matches or beats a fixed loop count with the same average cost at every (Figure 5b). Generation stops earliest and MCQ scoring latest (Figure 5c). On zero-shot likelihood, adaptive looping stays close to S = 6 while skipping 10%–28% of loop iterations (Appendix G).
Looping mostly improves the prediction at replaced tokens. We apply the decomposition of §3.1 to single denoiser calls, scoring after each loop iteration (Appendix G). The NLL
(a) retention probability

(b) where the gain comes from
(c) gain vs. local context
Figure 6: Where the loop gain comes from. Single denoiser calls of the uniform checkpoint, averaged over eight datasets. (a) Brier score of the retention probability (Equation 7) relative to S = 1. (b) Perplexity reduction from S = 1 to 12, split into the terms of Equation 6. (c) Reduction at replaced tokens against the number of replaced neighbours within four positions.
splits into three terms: keeping retained tokens, overwriting replaced tokens, and predicting the clean token at replaced positions. Which tokens to keep is largely settled without looping: at , already separates retained from replaced tokens (AUROC ), and extra loop iterations improve it further mainly at small (Figure 6a). Instead, 93%–94% of the perplexity reduction from to 12 comes from better contextual prediction at replaced tokens, peaking at intermediate (Figure 6b). For , this gain is largest when a replaced token's neighbourhood is partly corrupted and smaller when nearly all neighbours are replaced (Figure 6c). The FLOP-proportional checkpoint shows the same pattern.
Finding 4. Out-of-domain likelihood needs looping at inference. Loop-trained checkpoints at S = 1 underperform the non-looped baseline, whereas looping them at inference improves the likelihood bound. Most of this gain comes from better contextual prediction at replaced tokens.
5.4 Looping improves zero-shot accuracy
We evaluate on ten zero-shot multiple-choice tasks (Figure 7a, Appendix H). The FLOP-proportional checkpoint beats the uniform one at every matched loop policy, and looping at inference raises its accuracy above its own S = 1. With adaptive looping it matches fixed S = 12 with about a third fewer loop iterations. Gains are largest on HellaSwag, OpenBookQA, PIQA, and BoolQ and negligible on MathQA and WinoGrande. The FLOP-proportional checkpoint also beats the uniform one on FineWeb-Edu (Table 14).
The FLOP-proportional checkpoint stops looping earlier. FLOP-proportional sampling puts more weight on small loop counts ( ), so its slice may need fewer iterations. Under adaptive looping on MCQ, it runs 12% fewer loop iterations than the uniform checkpoint (7.82 vs. 8.89, Table 13) while being more accurate. On matched inputs, it also reaches a lower NLL at the stopping point (Figure 7b,c). The saving is concentrated at low and intermediate noise and disappears on the noisiest inputs, which still get deep computation. Generation and zero-shot likelihood show the same, smaller shift (Figure 5c).
The trade-off is sample quality. At matched loop counts, the FLOP-proportional checkpoint has a higher Gen. PPL than the uniform one at most points, with nearly unchanged entropy, and the gap widens with more loop iterations (Table 6).
Uniform looping FLOP-proportional looping adaptive O fixed S
adaptive, dense-equiv.
(a) Accuracy vs. loop iterations

(b) FLOP-prop. stops earlier
(c) At no NLL cost
Figure 7: Adaptive looping on multiple-choice tasks. (a) Average accuracy on the ten tasks against loop iterations, over five seeds. Ticks show the dense-equivalent cost of adaptive looping. (b, c) Loop count and NLL at the adaptive stop on 64 sequences, with 95% bands. FLOP-proportional stops earlier at low and middle noise levels with no higher NLL.
Finding 5. Depth allocation produces task-dependent trade-offs. FLOP-proportional training improves zero-shot MCQ accuracy, and the resulting checkpoint stops earlier under adaptive looping, reaching 35.38% macro accuracy, comparable to fixed S = 12 with 34.8% fewer loop iterations. However, its Gen. PPL is 1.55% higher on average than that of the uniform checkpoint at matched loop counts.
6 Related Work
Discrete diffusion language models. Discrete diffusion models use structured categorical corruption (Austin et al., 2021; Hoogeboom et al., 2021), with much of the literature focusing on masked diffusion (Sahoo et al., 2024; Shi et al., 2024; Ou et al., 2025; Lou et al., 2024; Nie et al., 2025). UDLMs instead corrupt tokens into ordinary vocabulary tokens, allowing previously generated tokens to be revised (Schiff et al., 2025; Sahoo et al., 2025; 2026b). Existing acceleration methods largely reduce the number of denoising steps through improved sampling or distillation (Song et al., 2023; Kim et al., 2024; Hu et al., 2026; Peng et al., 2025; Israel et al., 2025; Luxembourg et al., 2025; Dang et al., 2025). Our work instead studies recurrent computation within each denoising step, leaving the diffusion objective and sampler unchanged.
Looped transformers. Shared-weight recurrence increases effective depth without adding parameters, building on Universal Transformers, equilibrium models, and parameter-shared architectures (Dehghani et al., 2019; Bai et al., 2019; Lan et al., 2020; Giannou et al., 2023). Recent work studies iterative computation, test-time scaling, and the quality-compute trade-offs of recurrent depth (Saunshi et al., 2025; Geiping et al., 2025; Zhu et al., 2025; McLeish et al., 2025; Prairie et al., 2026; Schwethelm et al., 2026). We investigate these questions in UDLM denoisers, including how recurrent depth should be sampled during training.
Looped diffusion denoisers. Closest to our work, Lee et al. (2026) study recurrent depth in masked diffusion, while related approaches explore recursive blocks and fixed-point formulations (Carballo-Castro et al., 2026; Miele et al., 2026). In standard absorbing masked diffusion, revealed tokens remain fixed, whereas UDLMs must denoise observations of uncertain reliability and can revise any token between diffusion steps. We study whether recurrence remains effective under this different corruption structure, and how its computation should be allocated.
Recurrence across denoising steps. Self-conditioning reuses clean-token predictions across diffusion steps (Chen et al., 2023; Strudel et al., 2022; Dieleman et al., 2022). Related approaches propagate latent states across steps or introduce additional denoising recursion (Jo et al., 2026; Suleymanzade et al., 2026; Yoo et al., 2026; Cameron et al., 2026). Our approach instead loops a slice of transformer blocks within each denoiser evaluation, updating hidden representations while keeping the noisy sequence and diffusion time fixed. These directions are complementary.
7 Discussion and Conclusion
We studied the effect of looping in UDLMs by repeating a two-block slice of the denoiser and training it with random loop counts. Looped models reach the validation NLL of the non-looped baseline with up to fewer training FLOPs on OpenWebText and fewer on FineWeb-Edu. We show that at inference, looping lowers generative perplexity by up to 9.8% at the same NFE and zero-shot perplexity by 11.5% on average. With adaptive looping, the model needs 26–35% fewer loop iterations on multiple-choice tasks and keeps the same accuracy. Training on lower loop counts more often helps further: on the same tasks, the model needs 12% fewer loop iterations than with uniform sampling, without degrading accuracy. We plan to extend this study by comparing how looping helps masked and uniform diffusion, especially on reasoning tasks.
Acknowledgments
We thank Sanghyun Lee and Chunsan Hong for helpful correspondence and for sharing details of the experimental setup of Lee et al. (2026). We are grateful to AWS and Modal for generously providing compute through their research grants.
References
Jacob Austin, Daniel D Johnson, Jonathan Ho, Daniel Tarlow, and Rianne Van Den Berg. Structured denoising diffusion models in discrete state-spaces. Advances in neural information processing systems, 34:17981–17993, 2021. Cited on pages 1, 3, 11, and 18.
Shaojie Bai, J. Zico Kolter, and Vladlen Koltun. Deep equilibrium models. In Advances in Neural Information Processing Systems, 2019. Cited on page 11.
Chris Cameron, Wangzheng Wang, Nikita Ivanov, Ashmita Bhattacharyya, Didier Chételat, and Yingxue Zhang. One step forward and k steps back: Better reasoning with denoising recursion models, 2026. URL https://arxiv.org/abs/2604.18839. Cited on page 12.
Alba Carballo-Castro, Julianna Piskorz, Paulius Rauba, Mihaela van der Schaar, and Pascal Frossard. Recursive scaling in masked diffusion models, 2026. Cited on page 11.
Ting Chen, Ruixiang Zhang, and Geoffrey Hinton. Analog bits: Generating discrete data using diffusion models with self-conditioning. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=3dp1VhKu4Qn. Cited on page 11.
Meihua Dang, Jiaqi Han, Minkai Xu, Kai Xu, Akash Srivastava, and Stefano Ermon. Inference-time scaling of diffusion language models with particle gibbs sampling. arXiv preprint arXiv:2507.08390, 2025. Cited on page 11.
Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Łukasz Kaiser. Universal transformers. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=HyzdRiR9Y7. Cited on pages 2, 4, and 11.
Justin Deschenaux, Caglar Gulcehre, and Subham Sekhar Sahoo. The diffusion duality, chapter II: -samplers. arXiv preprint arXiv:2602.21185, 2026. Cited on pages 2, 4, 7, 19, and 26.
Sander Dieleman, Laurent Sartran, Arman Roshannai, Nikolay Savinov, Yaroslav Ganin, Pierre H. Richemond, Arnaud Doucet, Robin Strudel, Chris Dyer, Conor Durkan, et al. Continuous diffusion for categorical data, 2022. URL https://arxiv.org/abs/2211.15089. Cited on page 11.
DiffusionGemma Team, Adrien Ali Taïga, James Assiene, Daniele Calandriello, Rahma Chaabouni, João Gante, Tamara von Glehn, Nate Keating, Chris Knutsen, Martin Kukla, Tianlin Liu, Ivan Lobov, Ofir Nabati, João Gabriel Oliveira, Nicolas Perez-Nieves, Nastasia Prutianova, Bobak Shahriari, Jean Tarbouriech, Pavel Tyletski, Çağlar Ünlü, Cindy Wu, Glenn Cameron, Jerome Connor, Sertan Girgin, Maarten Grootendorst, Alon Levkovitch, Eliya Nachmani, Omar Sanseviero, Piotr Stanczyk, Quentin Berthet, Andrew Campbell, Clément Crepy, Valentin De Bortoli, Arnaud Doucet, Romuald Elie, Alexandre Galashov, Klaus Greff, Alexis Jacq, David Ruhe, Yu-Han Wu, Sebastian Flennerhag, Brendan O'Donoghue, George Scrivener, and Shantanu Thakoor. Diffusionemma technical report, 2026. URL https://arxiv.org/abs/2608.00146. Cited on page 1.
Leo Gao, Jonathan Tow, Baber Abbasi, Stella Biderman, Sid Black, Anthony DiPofi, Charles Foster, Laurence Golding, Jeffrey Hsu, Alain Le Noac'h, Haonan Li, Kyle McDonell, Niklas Muennighoff, Chris Ociepa, Jason Phang, Laria Reynolds, Hailey Schoelkopf, Aviya Skowron, Lintang Sutawika, Eric Tang, Anish Thite, Ben Wang, Kevin Wang, and Andy Zou. The language model evaluation harness, 2024. URL https://zenodo.org/records/12608602. Cited on page 25.
Jonas Geiping, Sean McLeish, Neel Jain, John Kirchenbauer, Siddharth Singh, Brian R. Bartoldson, Bhavya Kailkhura, Abhinav Bhatele, and Tom Goldstein. Scaling up test-time compute with latent reasoning: A recurrent depth approach. In Advances in Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=S3GhJooWIC. Cited on pages 2, 4, and 11.
Angeliki Giannou, Shashank Rajput, Jy-yong Sohn, Kangwook Lee, Jason D Lee, and Dimitris Papailiopoulos. Looped transformers as programmable computers. In International Conference on Machine Learning, pp. 11398–11442. PMLR, 2023. Cited on pages 2, 4, and 11.
Aaron Gokaslan and Vanya Cohen. Openwebtext corpus. http://Skylion007.github.io/OpenWebTextCorpus, 2019. Cited on pages 2, 7, and 22.
Samson Gourevitch, Yazid Janati, Dario Shariatian, Umut Simsekli, Eric Moulines, Eric P Xing, and Alain Durmus. Uniform diffusion models revisited: Leave-one-out denoiser and absorbing state reformulation. arXiv preprint arXiv:2605.22765, 2026. Cited on page 5.
Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, et al. Training compute-optimal large language models. arXiv preprint arXiv:2203.15556, 2022. Cited on pages 21 and 22.
Chunsan Hong, Chieh-Hsin Lai, Satoshi Hayakawa, Yuhta Takida, Jong Chul Ye, and Yuki Mitsufuji. Does uniform discrete diffusion need time? arXiv preprint arXiv:2609.30977, 2026. Cited on pages 1 and 5.
Emiel Hoogeboom, Didrik Nielsen, Priyank Jaini, Patrick Forré, and Max Welling. Argmax flows and multinomial diffusion: Learning categorical distributions. Advances in neural information processing systems, 34:12454–12465, 2021. Cited on page 11.
Zheyuan Hu, Chieh-Hsin Lai, Yuki Mitsufuji, and Stefano Ermon. Cmt: Mid-training for efficient learning of consistency, mean flow, and flow-map models. In International Conference on Learning Representations, volume 2026, pp. 155363–155404, 2026. Cited on page 11.
Daniel Israel, Guy Van den Broeck, and Aditya Grover. Accelerating diffusion llms via adaptive parallel decoding. arXiv preprint arXiv:2506.00413, 2025. Cited on page 11.
Mingyu Jo, Jaesik Yoon, Justin Deschenaux, Caglar Gulcehre, and Sungjin Ahn. Loopholing discrete diffusion: Deterministic bypass of the sampling wall, 2026. Cited on page 12.
Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020. Cited on page 22.
Dongjun Kim, Chieh-Hsin Lai, WeiHsiang Liao, Naoki Murata, Yuhta Takida, Toshimitsu Uesaka, Yutong He, Yuki Mitsufuji, and Stefano Ermon. Consistency trajectory models: Learning probability flow ode trajectory of diffusion. In International Conference on Learning Representations, volume 2024, pp. 44493–44525, 2024. Cited on page 11.
Chieh-Hsin Lai, Yang Song, Dongjun Kim, Yuki Mitsufuji, and Stefano Ermon. The principles of diffusion models. arXiv preprint arXiv:2510.21890, 2025. Cited on page 1.
Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. ALBERT: A lite BERT for self-supervised learning of language representations. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=H1eA7AEtvS. Cited on pages 2 and 11.
Sanghyun Lee, Chunsan Hong, Seungryong Kim, Jonghyun Lee, Jongho Park, and Dongmin Park. Looped diffusion language models. In Advances in Neural Information Processing Systems, 2026. URL https://arxiv.org/abs/2605.26106. Cited on pages 2, 4, 6, 7, 11, and 12.
Aaron Lou, Chenlin Meng, and Stefano Ermon. Discrete diffusion modeling by estimating the ratios of the data distribution. In International Conference on Machine Learning, 2024. Cited on pages 1, 11, and 18.
Omer Luxembourg, Haim Permuter, and Eliya Nachmani. Plan for speed: Dilated scheduling for masked diffusion language models. arXiv preprint arXiv:2506.19037, 2025. Cited on page 11.
Sean McLeish, Ang Li, John Kirchenbauer, Dayal Singh Kalra, Brian R Bartoldson, Bhavya Kailkhura, Avi Schwarzschild, Jonas Geiping, Tom Goldstein, and Micah Goldblum. Teaching pretrained language models to think deeper with retrofitted recurrence. arXiv preprint arXiv:2511.07384, 2025. Cited on page 11.
Andrea Miele, Yiming Qin, Alba Carballo-Castro, Justin Deschenaux, and Pascal Frossard. Fixed-point masked generative modeling, 2026. URL https://arxiv.org/abs/2605.31215. Cited on page 11.
Shen Nie, Fengqi Zhu, Zebin You, Xiaolu Zhang, Jingyang Ou, Jun Hu, Jun Zhou, Yankai Lin, Ji-Rong Wen, and Chongxuan Li. Large language diffusion models. arXiv preprint arXiv:2502.09992, 2025. Cited on pages 1 and 11.
Jingyang Ou, Shen Nie, Kaiwen Xue, Fengqi Zhu, Jiacheng Sun, Zhenguo Li, and Chongxuan Li. Your absorbing discrete diffusion secretly models the conditional distributions of clean data. In International Conference on Learning Representations, 2025. Cited on pages 1 and 11.
Tim Pearce and Jinyeop Song. Reconciling kaplan and chinchilla scaling laws. Transactions on Machine Learning Research, 2024. Cited on page 22.
William Peebles and Saining Xie. Scalable diffusion models with transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 4195–4205, 2023. Cited on pages 5 and 21.
Guilherme Penedo, Hynek Kydliček, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro Von Werra, Thomas Wolf, et al. The fineweb datasets: Decanting the web for the finest text data at scale. Advances in Neural Information Processing Systems, 37:30811–30849, 2024. Cited on pages 2, 7, and 22.
Fred Zhangzhi Peng, Zachary Bezemek, Sawan Patel, Jarrid Rector-Brooks, Sherwood Yao, Avishek Joey Bose, Alexander Tong, and Pranam Chatterjee. Path planning for masked diffusion model sampling. arXiv preprint arXiv:2502.03540, 2025. Cited on page 11.
Hayden Prairie, Zachary Novack, Taylor Berg-Kirkpatrick, and Daniel Y Fu. Parcae: Scaling laws for stable looped language models. arXiv preprint arXiv:2604.12946, 2026. Cited on page 11.
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of machine learning research, 21(140):1–67, 2020. Cited on page 7.
Subham S Sahoo, Marianne Arriola, Yair Schiff, Aaron Gokaslan, Edgar Marroquin, Justin T Chiu, Alexander Rush, and Volodymyr Kuleshov. Simple and effective masked diffusion language models. Advances in Neural Information Processing Systems, 37:130136–130184, 2024. Cited on pages 1, 11, and 18.
Subham Sekhar Sahoo, Justin Deschenaux, Aaron Gokaslan, Guanghan Wang, Justin Chiu, and Volodymyr Kuleshov. The diffusion duality. In International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=9P9Y8F0S0k. Cited on pages 1, 3, 4, 11, and 19.
Subham Sekhar Sahoo, Lingjie Chen, Khiem Pham, Jonathan Geuter, Chaitanya Dwivedi, Varad Pimpalkhute, Yash Akhauri, Alexander Moreno, Mikhail Yurochkin, Zhenting Wang, Mostafa Elhoushi, Nolan Dey, Shane Bergsma, Joel Hestness, John Thickstun, Eric Xing, and Zhengzhong Liu. Unlocking lossless speedups in llms via discrete diffusion, 2026a. URL https://arxiv.org/abs/2609.04010. Cited on page 1.
Subham Sekhar Sahoo, Jean-Marie Lemercier, Zhihan Yang, Justin Deschenaux, Jingyu Liu, John Thickstun, and Ante Jukic. Scaling beyond masked diffusion language models. arXiv preprint arXiv:2602.15014, 2026b. Cited on pages 4 and 11.
Nikunj Saunshi, Nishanth Dikkala, Zhiyuan Li, Sanjiv Kumar, and Sashank J. Reddi. Reasoning with latent thoughts: On the power of looped transformers. In International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=din0lGfZFd. Cited on page 11.
Yair Schiff, Subham Sekhar Sahoo, Hao Phung, Guanghan Wang, Sam Boshar, Hugo Dallatorre, Bernardo P de Almeida, Alexander M Rush, Thomas Pierrot, and Volodymyr Kuleshov. Simple guidance mechanisms for discrete diffusion models. In International Conference on Learning Representations (ICLR), 2025. Cited on pages 1, 3, 11, and 18.
Kristian Schwethelm, Daniel Rueckert, and Georgios Kaissis. How much is one recurrence worth? iso-depth scaling laws for looped language models, 2026. URL https://arxiv.org/abs/2604.21106. Cited on page 11.
Jiaxin Shi, Kehang Han, Zhe Wang, Arnaud Doucet, and Michalis Titsias. Simplified and generalized masked diffusion for discrete data. In Advances in Neural Information Processing Systems, volume 37, pp. 103131–103167, 2024. Cited on pages 1 and 11.
Yang Song, Prafulla Dhariwal, Mark Chen, and Ilya Sutskever. Consistency models. In International Conference on Machine Learning (ICML), 2023. Cited on page 11.
Robin Strudel, Corentin Tallec, Florent Altché, Yilun Du, Yaroslav Ganin, Arthur Mensch, Will Grathwohl, Nikolay Savinov, Sander Dieleman, Laurent Sifre, et al. Self-conditioned embedding diffusion for text generation, 2022. URL https://arxiv.org/abs/2211.04236. Cited on page 11.
Ayhan Suleymanzade, Chanhyuk Lee, Floor Eijkelboom, Nicholas M. Boffi, İsmail İlkan Ceylan, and Jinwoo Kim. Thinking with looped flows, 2026. URL https://arxiv.org/abs/2609.11801. Cited on page 12.
Jaehoon Yoo, Wonjung Kim, Floor Eijkelboom, Chanhyuk Lee, Nicholas M. Boffi, Seunghoon Hong, and Jinwoo Kim. Self-conditioned flow map language models via fixed-point flows, 2026. URL https://arxiv.org/abs/2607.00714. Cited on page 12.
Kaiwen Zheng, Yongxin Chen, Hanzi Mao, Ming-Yu Liu, Jun Zhu, and Qinsheng Zhang. Masked diffusion models are secretly time-agnostic masked models and exploit inaccurate categorical sampling. In International Conference on Learning Representations, volume 2025, pp. 63186–63227, 2025. Cited on page 1.
Rui-Jie Zhu, Zixuan Wang, Kai Hua, Tianyu Zhang, Ziniu Li, Haoran Que, Boyi Wei, Zixin Wen, Fan Yin, He Xing, et al. Scaling latent reasoning via looped language models, 2025. URL https://arxiv.org/abs/2510.25741. Cited on page 11.
Appendix Contents
A Technical primer: discrete diffusion, UDLMs, Duo, and Duo++ 18
A.1 Notation 18
A.2 Sequence model and independence assumptions 18
A.3 Latent reliability under keep-or-replace corruption 20
B Loop-count distributions 20
C FLOP accounting convention 21
D Training configuration and optimization 22
E Loop architecture selection ablations 23
F Generation results 24
G Zero-shot likelihood results 25
H Multiple-choice results 25
A Technical primer: discrete diffusion, UDLMs, DUO, and DUO++
This section provides more details about DUO/DUO++ and their training objectives summarized in §2.
A.1 Notation
is the -th one-hot vector, is the set of one-hot vectors, and is the -class simplex. Superscripts index positions and subscripts index vocabulary entries. Time runs from clean data ( ) to noise ( ), and is the less noisy time. is the nonincreasing noise schedule. is the all-ones vector, is the uniform distribution, is the elementwise product, and matrices act on column probability vectors. is the negative evidence lower bound.
A.2 Sequence model and independence assumptions
Clean tokens are not assumed independent. Corruption is independent across positions given the clean sequence, and the reverse model factorizes given the noisy sequence:
Each reverse factor attends to the whole of , so only the tokens sampled within one reverse step are independent. The forward process is Markov per position, , and we assume is differentiable and all probabilities inside logarithms are positive.
Discrete diffusion language models. A D3PM (Austin et al., 2021) uses a column-stochastic transition , where is the probability of moving from token to , and a cumulative kernel with . Bayes' rule gives
In the clean-token parameterization the reverse kernel substitutes the denoiser output for the unknown clean token, . Summing the resulting posterior KLs over positions and times gives the diffusion term of the NELBO. An absorbing gives MDLMs (Sahoo et al., 2024).
Uniform diffusion language models. UDLMs (Schiff et al., 2025; Lou et al., 2024) use
Substituting into Equation 12,
Continuous-time loss. As the number of steps grows, the prior and reconstruction terms vanish and the loss becomes the rate (Schiff et al., 2025). Given , let
Then
where . The of Equation 3 is an implementation of this same integrand.
The Diffusion Duality and DUO. DUO draws a Gaussian latent with signal coefficient and , and sets , where returns the largest coordinate of as a one-hot vector. With , the standard-normal density and CDF and ,
where is the probability that the shifted clean coordinate beats all K - 1 competitors. Then (Sahoo et al., 2025)
where is the distribution of for . Hence any statistic of the hard state has the same expectation under the Gaussian draw and under the UDLM marginal at . This holds for one-time marginals only, not for distributions over full trajectories. With for a temperature , the curriculum objective is
The target stays the hard state, and only the denoiser input is softened. As , almost surely, and the objective is the NELBO only in this limit with sampled over all of . Otherwise it is a surrogate.
DUO : top-k curriculum. DUO (Deschenaux et al., 2026) samples only the largest k of the K - 1 unshifted competitors. For independent ,
which gives descending Gaussian order statistics. The shifted clean coordinate is sampled separately and inserted at its rank if it exceeds . The denoiser input mixes only the retained embeddings. In the softmax normalizer, the clean coordinate is added exactly if it is not retained, and each remaining zero-mean coordinate or of them) is replaced by the truncated moment
With a polynomial approximation of , the curriculum costs rather than per token.
Ψ-sampling. With the earlier-time marginal, the clean-conditioned Ψ-kernel (Deschenaux et al., 2026) and its marginal property are
(20)
where is a mixing weight. is ancestral sampling and redraws from the earlier marginal. The learned sampler replaces by the prediction:
(21)
It recovers the exact kernel only for a perfect prediction.
A.3 Latent reliability under keep-or-replace corruption
We derive Equation 6 for the general keep-or-replace kernel in Equation 5. Fix a time with and a position . The auxiliary variable records which branch was sampled at that time. It does not identify an event along a continuous-time trajectory. For an observed symbol , conditioning on the other noisy positions and on gives
Here is the contextual clean-token probability from §3.1. For a symbol outside the clean vocabulary, such as , we set it to zero. Normalizing these two probabilities gives . If the token was retained, the clean value equals the observation, and if it was replaced, that observation is independent of the clean value given the other noisy positions. Marginalizing over these branches proves Equation 6. For an ordinary observed token, it also gives
showing why retention and correctness are different events. With absorbing masking, the retention probability is one for an ordinary observed token and zero for the mask. With uniform replacement, , yielding Equation 7.
What the DUO denoiser estimates. Condition on with . The local loss in Equation 15 is a generalized KL divergence between the ratios and , and enters it linearly, so its expectation over the clean token is minimized at . Because is the probability of observing from , and depends on the clean sequence only through ,
The predicted ratios match these for every only if is proportional to . Both vectors sum to , so the minimizer is : the denoiser targets the contextual prediction, not the clean-token posterior, and Equation 7 turns its output into the retention probability. In particular, , which is times the normalizer of Equation 14 with replaced by . The argument assumes hard inputs. The soft inputs of the DUO curriculum carry additional confidence information, so there the output need not equal .
Dependence across positions in UDLMs. The auxiliary branch indicators are sampled independently before observing the noisy sequence, but their posterior need not factorize. Let be the set of retained positions. For UDLM corruption with , the joint probability of this retention pattern and the observation is , where the data term is the probability that the clean tokens in match the observed values (one when is empty). Dropping the factor common to all subsets,
Dependencies among clean tokens can therefore couple posterior retention judgments even though the forward corruption is independent across positions given the clean sequence.
B Loop-count distributions
Figure 8 shows the three loop-count distributions of §3.2. In uniform and FLOP-proportional training, all GPUs share one loop count per optimizer step. The FLOP-proportional probabilities depend only on (Equation 10).

(c) Loop counts per GPU

Figure 8: Loop-count sampling. (a) Loop-count distributions. (b) Noise-proportional ranges. (c) Loop counts per GPU.
In noise-proportional training, we draw the diffusion times of the global batch antithetically and sort them before sharding. Each of the 32 micro-batches (4 GPUs × 8 accumulation steps) then gets a narrow range of (Figure 8c). We group them into four bands. Bands 1 to 4 sample from , , , and . The average loop count stays at 6.5, as in uniform sampling. At evaluation, we sort validation sequences into the same bands and use a loop count from each band's training range.
C FLOP accounting convention
For the iso-FLOP comparisons in §4, we count a multiply-add as two FLOPs and the backward pass as twice the forward pass, so one training step costs .
Forward FLOPs. We extend the count of Hoffmann et al. (2022, Appendix F) to the DiT denoiser (Peebles & Xie, 2023). The model has blocks of width , MLP width , AdaLN conditioning width , timestep-frequency width , vocabulary , and sequence length . Table 2 lists each term. With executed blocks, the forward cost is
where is the cost of one block.
For the non-looped small baseline (), this gives and GFLOP per sequence under Chinchilla, and under Kaplan, on both OWT and FineWeb-Edu. This is close to the 6ND estimate of 1041.9 GFLOP (, ), which skips the attention scores.
Looping. Looping runs shared blocks times, so with the same number of parameters. Each extra loop adds the cost of blocks, so a training step at
| Component | Forward FLOPs | Counted |
|---|---|---|
| input embedding | 2LVd | once |
| Q, K, V projections | per block | |
| per block | ||
| attention output | per block | |
| MLP () | per block | |
| AdaLN modulation | 12dc | per block |
| timestep MLP | once | |
| final AdaLN | 4dc | once |
| output logits | 2LdV | once |
Table 2: Forward FLOPs per sequence. Vocab terms, not counted under Kaplan.
| Distribution | Steps | |||
|---|---|---|---|---|
| Chinchilla | Kaplan | |||
| uniform | 6.500 | 655,420 | ||
| FLOP-prop. | 5.724 | 688,915 | ||
| noise-prop. | 6.500 | 655,420* | ||
Table 3: Cost of looped training. Mean loop count, cost per step relative to the baseline, and looped steps matching a 1M-step baseline under Chinchilla. *Noise-proportional is trained on OWT only and stopped after about 273k steps.

..... non-looped baseline ( steps) --- looped, eval --- looped, eval --- looped, eval --- looped, eval
Figure 9: Training curves under the Kaplan FLOP convention (Chinchilla version in Figure 1).
loop count costs , with and (Equation 9). Averaged over the loop-count distribution, the cost per step depends only on the mean loop count,
For the small model with , , , , and , we get under Chinchilla and under Kaplan. With the global batch fixed, a baseline budget of steps equals looped steps (Table 3).
Chinchilla and Kaplan conventions. Scaling-law papers count compute in two ways (Pearce & Song, 2024). Chinchilla (Hoffmann et al., 2022) counts all parameters. Kaplan (Kaplan et al., 2020) does not count the input embedding and the output layer, so it removes the two vocab terms in Table 2. Our main results use Chinchilla, which Pearce & Song (2024) recommend for small models. Figure 9 shows the same curves under Kaplan. Without the vocab terms the baseline step is cheaper but a looped block costs the same. This makes looping relatively costlier (Table 3).
D Training configuration and optimization
Every run uses the same configuration (Table 4). Figure 10 shows the training curves.
Pretraining datasets. We train on OpenWebText (OWT) (Gokaslan & Cohen, 2019) and on the sample-10BT configuration of FineWeb-Edu (Penedo et al., 2024) (9,672,101 documents, nominally 10B tokens). In both cases we hold out the last 100,000 documents for validation and train on the rest. We tokenize with the GPT-2 tokenizer (), put an EOS between documents, and pack the stream into 1,024-token sequences made of BOS, 1,022 payload tokens, and EOS. Packing is done separately for each batch of 1,000 documents, and the leftover tokens of each batch are discarded. An epoch has 8.94B training tokens

baseline (S = 1) uniform FLOP-proportional noise-proportional
Figure 10: Validation NLL and training loss by loop-count distribution on OWT (top) and FineWeb-Edu (bottom). There is no noise-proportional run on FineWeb-Edu. Left: exact validation NLL against optimizer step. Right: EMA-smoothed training loss (NELBO). The dashed line marks the end of the curriculum at step .
on OWT and 9.86B on FineWeb-Edu, which is 17,053 and 18,815 optimizer steps with 512 sequences per batch.
Curriculum and Gumbel sampling. We use the DUO++ efficient curriculum: the diffusion transformation operator is approximated by a degree-9 polynomial (poly9), fit from its 150-term series over the curriculum window, and the tempered softmax input is simulated from its top-k = 2 entries. For the first optimizer steps, training uses this relaxed curriculum loss with Gumbel-softmax temperature and log-SNR window (the code’s parameterization of the curriculum window). After that, training switches to the exact discrete NELBO, which causes the training-loss regime change in Figure 10. Diffusion time is drawn with antithetic (stratified) sampling and . Importance sampling and change-of-variables are off. The noise-proportional distribution builds its per-shard noise bands from this same stratification ( 3.2).
E Loop architecture selection ablations
We train with the setup of Appendix D, sampling and looping two contiguous blocks, for 50k steps with seed 1. First we move the slice start from block 0 to block 10 with , then fix the slice at blocks 1–2 and try (Table 5). Looping early blocks works best, with blocks 1–2 giving the lowest NLL, and NLL stops improving at .
| Model | |
|---|---|
| Architecture | DiT |
| Hidden size | 768 |
| Attention heads | 12 |
| Blocks | 12 |
| Time-embedding size | 128 |
| MLP ratio | 4 |
| Dropout | 0.1 |
| Embeddings (input, output) | untied |
| Sequence length | 1,024 |
| Vocabulary | GPT-2 (50,257) |
| Compute | |
| GPUs | H100 |
| Batch size | 512 |
| Precision | bf16 |
| Validation interval | 5,000 steps |
| Diffusion | |
|---|---|
| Objective | DUO ELBO |
| Time | continuous, antithetic |
| Parameterization | mean |
| Curriculum | first 500k steps |
| Temperature | |
| Log-SNR range | [-3.55, -1.85] |
| Top-k | 2 |
| approximation | degree-9 polynomial |
| Optimization | |
| Optimizer | AdamW, |
| Learning rate | |
| Warmup | 2,500 steps, then constant |
| Weight decay | 0 |
| Gradient clipping | 1.0 |
| EMA decay | 0.9999 |
Table 4: Training configuration for pretraining on OWT and FineWeb-Edu.
| Looped blocks | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| (a) Position sweep at | |||||||||
| 0–1 | 0 | 10 | 12 | 3.539 | 3.456 | 3.449 | 3.454 | - | 3.475 |
| 1–2 | 1 | 9 | 12 | 3.548 | 3.425 | 3.416 | 3.420 | - | 3.447 |
| 2–3 | 2 | 8 | 12 | 3.567 | 3.433 | 3.423 | 3.426 | - | 3.451 |
| 3–4 | 3 | 7 | 12 | 3.548 | 3.428 | 3.418 | 3.421 | - | 3.447 |
| 4–5 | 4 | 6 | 12 | 3.548 | 3.433 | 3.423 | 3.426 | - | 3.455 |
| 5–6 | 5 | 5 | 12 | 3.554 | 3.430 | 3.420 | 3.424 | - | 3.455 |
| 6–7 | 6 | 4 | 12 | 3.551 | 3.440 | 3.431 | 3.436 | - | 3.473 |
| 7–8 | 7 | 3 | 12 | 3.565 | 3.455 | 3.447 | 3.454 | - | 3.498 |
| 8–9 | 8 | 2 | 12 | 3.560 | 3.465 | 3.459 | 3.467 | - | 3.513 |
| 9–10 | 9 | 1 | 12 | 3.595 | 3.491 | 3.485 | 3.495 | - | 3.541 |
| 10–11 | 10 | 0 | 12 | 3.578 | 3.499 | 3.495 | 3.504 | - | 3.530 |
| (b) Training-cap sweep at blocks 1–2 | |||||||||
| 1–2 | 1 | 9 | 4 | 3.491 | 3.453 | 3.460 | 3.497 | - | 3.677 |
| 1–2 | 1 | 9 | 8 | 3.519 | 3.425 | 3.422 | 3.433 | - | 3.492 |
| 1–2 | 1 | 9 | 12 | 3.548 | 3.425 | 3.416 | 3.420 | - | 3.447 |
| 1–2 | 1 | 9 | 16 | 3.614 | 3.435 | 3.424 | 3.416 | 3.417 | 3.431 |
Table 5: Choice of looped blocks and training cap (↓). Validation NLL after 50k steps on OWT with the uniform loop-count distribution. Each run loops two consecutive blocks, with blocks before them and after. Bold marks the best loop count in each row, and the shaded row is the setting used in the paper.
F Generation results
For each setting we draw 512 samples of 1,024 tokens with nucleus sampling (), using both the ancestral and the sampler. Generative perplexity is computed with GPT-2 Large and measures sample quality, and unigram entropy measures diversity. Table 6 gives the generative perplexity and Table 7 the entropy behind Figure 4.
| NFE | Base | Uniform | FLOP-proportional | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| - | Adaptive | Adaptive | |||||||||
| Ancestral | |||||||||||
| 32 | 45.54 | 43.91 | 42.59 | 42.60 | 43.02 | 44.82 | 42.65 | 42.92 | 43.60 | ||
| 64 | 40.40 | 39.87 | 37.98 | 37.60 | 37.98 | 40.42 | 38.16 | 38.75 | 39.21 | 38.39 | |
| 128 | 38.17 | 38.63 | 35.61 | 35.22 | 35.58 | 39.06 | 36.55 | 36.35 | 37.50 | 36.66 | |
| 256 | 37.52 | 37.49 | 34.23 | 34.42 | 34.07 | 36.50 | 34.37 | 34.67 | 34.95 | 34.56 | |
| 512 | 36.94 | 37.44 | 34.17 | 33.98 | 34.16 | 36.91 | 34.59 | 33.89 | 34.58 | 34.39 | |
| 1,024 | 36.06 | 36.31 | 32.71 | 33.56 | 32.74 | 36.67 | 33.97 | 33.98 | 34.06 | 33.59 | |
| 2,048 | 36.17 | 35.02 | 33.02 | 32.88 | 32.82 | 36.13 | 33.67 | 34.04 | 33.75 | 33.23 | |
| 4,096 | 34.83 | 35.77 | 33.11 | 33.50 | 33.29 | 36.62 | 34.03 | 33.33 | 33.98 | 33.28 | |
| Ψ-sampler | |||||||||||
| 32 | 44.83 | 43.57 | 41.97 | 42.00 | 42.86 | 44.54 | 42.36 | 42.14 | 42.88 | 42.14 | |
| 64 | 39.19 | 39.07 | 36.67 | 36.74 | 37.14 | 39.31 | 37.08 | 37.58 | 38.11 | 37.77 | |
| 128 | 36.08 | 35.98 | 34.00 | 34.02 | 34.22 | 36.77 | 35.11 | 34.71 | 34.99 | 34.84 | |
| 256 | 34.09 | 33.68 | 31.23 | 31.92 | 31.44 | 33.16 | 31.76 | 31.98 | 32.36 | 31.81 | |
| 512 | 30.66 | 31.23 | 29.69 | 29.41 | 29.34 | 31.10 | 29.69 | 29.74 | 29.75 | ||
| 1,024 | 27.58 | 26.73 | 25.90 | 25.66 | 25.83 | 26.90 | 26.12 | 26.21 | 26.45 | 26.20 | |
| 2,048 | 23.47 | 22.08 | 21.74 | 21.70 | 21.87 | 22.06 | 21.78 | 21.95 | 21.76 | 21.84 | |
| 4,096 | 18.30 | 17.79 | 17.78 | 17.75 | 17.62 | 17.54 | 17.90 | 18.44 | 18.30 | 17.83 | |
Table 6: Generation perplexity across loop counts (↓). Bold marks the best loop count within each looped checkpoint, and underline marks the best value in the row.
| NFE | Base | Uniform | FLOP-proportional | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| - | Adaptive | Adaptive | |||||||||
| Ancestral | |||||||||||
| 32 | 5.42 | 5.40 | 5.42 | 5.42 | 5.41 | 5.40 | 5.41 | 5.41 | 5.41 | ||
| 64 | 5.40 | 5.40 | 5.40 | 5.41 | 5.41 | 5.38 | 5.40 | 5.41 | 5.41 | ||
| 128 | 5.39 | 5.39 | 5.39 | 5.40 | 5.40 | 5.39 | 5.40 | 5.40 | 5.40 | ||
| 256 | 5.38 | 5.38 | 5.37 | 5.38 | 5.38 | 5.36 | 5.37 | 5.38 | |||
| 512 | 5.37 | 5.37 | 5.38 | 5.37 | 5.37 | 5.35 | 5.36 | 5.36 | 5.36 | ||
| 1,024 | 5.37 | 5.36 | 5.36 | 5.36 | 5.37 | 5.36 | 5.37 | 5.37 | 5.37 | 5.36 | |
| 2,048 | 5.34 | 5.35 | 5.35 | 5.35 | 5.33 | 5.36 | 5.36 | 5.35 | |||
| 4,096 | 5.35 | 5.35 | 5.38 | 5.37 | 5.38 | 5.36 | 5.37 | 5.37 | 5.37 | ||
| Ψ-sampler | |||||||||||
| 32 | 5.41 | 5.40 | 5.42 | 5.41 | 5.41 | 5.40 | 5.41 | 5.41 | 5.41 | ||
| 64 | 5.40 | 5.39 | 5.40 | 5.39 | 5.40 | 5.38 | 5.40 | 5.40 | 5.40 | ||
| 128 | 5.38 | 5.38 | 5.39 | 5.39 | 5.39 | 5.37 | 5.39 | 5.38 | 5.39 | ||
| 256 | 5.36 | 5.35 | 5.35 | 5.36 | 5.36 | 5.34 | 5.36 | 5.36 | 5.36 | 5.36 | |
| 512 | 5.34 | 5.33 | 5.34 | 5.34 | 5.34 | 5.32 | 5.33 | 5.34 | 5.33 | ||
| 1,024 | 5.31 | 5.29 | 5.32 | 5.32 | 5.31 | 5.28 | 5.31 | 5.31 | 5.31 | ||
| 2,048 | 5.22 | 5.25 | 5.25 | 5.25 | 5.24 | 5.21 | 5.25 | 5.24 | 5.24 | 5.25 | |
| 4,096 | 5.18 | 5.14 | 5.19 | 5.19 | 5.18 | 5.19 | 5.14 | 5.20 | 5.21 | 5.20 | |
Table 7: Unigram entropy of generated samples across loop counts (↑). Bold marks the best loop count within each looped checkpoint, and underline marks the best value in the row.
G Zero-shot likelihood results
We evaluate on the datasets in Table 8. We use the EMA weights of each checkpoint. Documents are packed into 1,024-token sequences [BOS, , EOS], and all 1,024 positions are scored.
Table 10 reports every configuration, and Table 9 gives the average adaptive loop count and the share of loop iterations saved on each dataset.
Figures 5 and 6 use up to 1,024 blocks from OWT validation and from each dataset above. Each block is corrupted once at and scored after every loop count . Adaptive looping is replayed offline with . The curves average the per-token NLL of each dataset with equal weight and report the exponential of that average. In Figure 6c, bins with fewer than 300 tokens in more than two datasets are omitted.
H Multiple-choice results
We use ten commonsense and reasoning multiple-choice tasks (Table 11) with the task definitions from lm-eval-harness 0.4.11 (Gao et al., 2024), default prompts, and no few-shot examples. Tables 12 and 13 give the full results.
| Dataset | Split | Documents | Tokens |
|---|---|---|---|
| PTB | validation | 3,370 | 75,776 |
| WikiText-103 | validation | 3,760 | 233,472 |
| LM1B | test | 306,688 | 8,475,648 |
| LAMBADA | test | 5,153 | 421,888 |
| AG News | test | 7,600 | 389,120 |
| PubMed | validation | 6,633 | 26,807,296 |
| arXiv | validation | 6,436 | 53,453,824 |
Table 8: Likelihood datasets.
| Dataset | Uniform | FLOP-proportional | ||
|---|---|---|---|---|
| Loops | Saved | Loops | Saved | |
| PTB | 6.18 | 48.5% | 6.14 | 48.8% |
| WikiText-103 | 5.84 | 51.3% | 5.67 | 52.8% |
| LM1B | 6.13 | 48.9% | 5.89 | 50.9% |
| LAMBADA | 5.48 | 54.3% | 5.43 | 54.8% |
| AG News | 6.63 | 44.8% | 6.37 | 46.9% |
| PubMed | 6.35 | 47.1% | 6.06 | 49.5% |
| arXiv | 6.35 | 47.1% | 6.15 | 48.8% |
| Average | 6.14 | 48.9% | 5.96 | 50.3% |
Table 9: Adaptive looping on likelihood datasets ( , ). Saved counts the loop iterations skipped compared to fixed S = 12.
| Base | Uniform | FLOP-proportional | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| S=1 | S=6 | S=8 | S=12 | Adaptive | S=1 | S=6 | S=8 | S=12 | Adaptive | ||
| PTB | |||||||||||
| WikiText-103 | |||||||||||
| LM1B | |||||||||||
| LAMBADA | |||||||||||
| AG News | |||||||||||
| PubMed | |||||||||||
| arXiv | |||||||||||
Table 10: Zero-shot likelihood perplexity across loop counts (↓). Mean and standard deviation over five seeds. Adaptive looping uses . Bold marks the best loop count within each looped checkpoint, and underline marks the best value in the row.
| Task | Split | Questions | Choices |
|---|---|---|---|
| ARC-Easy | test | 2,376 | 9,501 |
| ARC-Challenge | test | 1,172 | 4,687 |
| HellaSwag | validation | 10,042 | 40,168 |
| WinoGrande | validation | 1,267 | 2,534 |
| PIQA | validation | 1,838 | 3,676 |
| MathQA | test | 2,985 | 14,925 |
| OpenBookQA | test | 500 | 2,000 |
| BoolQ | validation | 3,270 | 6,540 |
| RACE-High | test | 1,045 | 4,180 |
| Social IQa | validation | 1,954 | 5,862 |
Table 11: Multiple-choice tasks.
| Base | Uniform | FLOP-proportional | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| S=1 | S=6 | S=8 | S=12 | Adaptive | S=1 | S=6 | S=8 | S=12 | Adaptive | ||
| ARC-Easy | |||||||||||
| ARC-Challenge | |||||||||||
| HellaSwag | |||||||||||
| WinoGrande | |||||||||||
| PIQA | |||||||||||
| MathQA | |||||||||||
| OpenBookQA | |||||||||||
| BoolQ | |||||||||||
| RACE-High | |||||||||||
| Social IQa | |||||||||||
| Average | |||||||||||
Table 12: Zero-shot multiple-choice accuracy across loop counts. Mean and standard deviation over five seeds. Bold marks the best loop count within each looped checkpoint, and underline marks the best value in the row.
Each answer choice is written as [BOS, context, answer, EOS] and scored by the token NLL averaged over all positions and 1,024 noise samples with raw weights, following DUO (Deschenaux et al., 2026). The choice with the lowest NLL is picked, without length normalization. Choices longer than 1,024 tokens get log-likelihood 0 (two BoolQ and 24 RACE-High choices).
| Task | Uniform | FLOP-proportional | ||||||
|---|---|---|---|---|---|---|---|---|
| Accuracy | Loops | Converged | Saved | Accuracy | Loops | Converged | Saved | |
| ARC-Easy | 27.83 | 9.61 | 77.4% | 20.0% | 28.70 | 8.71 | 88.3% | 27.4% |
| ARC-Challenge | 26.52 | 9.54 | 76.7% | 20.5% | 26.23 | 8.53 | 89.2% | 28.9% |
| HellaSwag | 28.42 | 8.49 | 89.3% | 29.2% | 28.91 | 7.30 | 97.0% | 39.2% |
| WinoGrande | 50.24 | 9.95 | 77.0% | 17.1% | 49.98 | 9.10 | 85.7% | 24.1% |
| PIQA | 52.07 | 9.43 | 79.8% | 21.4% | 53.06 | 8.50 | 89.8% | 29.2% |
| MathQA | 20.90 | 9.61 | 77.4% | 19.9% | 20.73 | 8.39 | 91.2% | 30.1% |
| OpenBookQA | 27.48 | 9.29 | 88.1% | 22.6% | 31.04 | 8.94 | 92.0% | 25.5% |
| BoolQ | 50.95 | 7.76 | 95.3% | 35.3% | 50.84 | 6.81 | 99.5% | 43.3% |
| RACE-High | 27.98 | 6.40 | 100.0% | 46.7% | 28.33 | 5.96 | 100.0% | 50.3% |
| Social IQa | 35.90 | 10.13 | 67.0% | 15.6% | 36.03 | 9.03 | 85.2% | 24.8% |
| Average | 34.83 | 8.89 | 84.3% | 26.0% | 35.38 | 7.82 | 93.7% | 34.8% |
Table 13: Adaptive looping on multiple-choice tasks ( , ). Saved counts the loop iterations skipped compared to fixed S = 12, bold highlights the better checkpoint.
| Uniform | FLOP-proportional | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Base | S=1 | S=6 | S=8 | S=12 | Adaptive | S=1 | S=6 | S=8 | S=12 | Adaptive | |
| ARC-Easy | |||||||||||
| ARC-Challenge | |||||||||||
| HellaSwag | |||||||||||
| WinoGrande | |||||||||||
| PIQA | |||||||||||
| MathQA | |||||||||||
| OpenBookQA | |||||||||||
| BoolQ | |||||||||||
| RACE-High | |||||||||||
| Social IQa | |||||||||||
| Average | |||||||||||
Table 14: Zero-shot multiple-choice accuracy on FineWeb-Edu. Mean and standard deviation over five seeds. Adaptive looping ( ) uses about 8 loop iterations per likelihood sample. Bold marks the best loop count within each looped checkpoint, and underline marks the best value in the row.
We repeat the same experiment on the FineWeb-Edu checkpoints, with results in Table 14. Adaptive looping uses on average 8.02 loop iterations for the uniform checkpoint and 7.99 for the FLOP-proportional checkpoint, which saves 33% and 34% of the loop iterations relative to fixed S = 12.