Papers
Topics
Authors
Recent
Search
2000 character limit reached

Looped Diffusion Transformer (Looped-DiT)

Updated 1 October 2026
  • Looped-DiT is a diffusion-transformer architecture that enhances effective computational depth by reusing a subset of Transformer blocks in each denoising step, improving text-to-image benchmarks without increasing parameter count or sequence length.
  • It introduces a third computation-scaling axis, including external diffusion computation and internal recurrent computation, through the use of self-modulating attention and deep supervision for improved stability and effectiveness.
  • The recurrent block reuse, through configurations with 17 unique blocks, allows for approximately 32 effective block applications in denoising steps, resulting in an average score of 71.5 across benchmarks, enhancing text-to-image capabilities.

Looped Diffusion Transformer (Looped-DiT) is a diffusion-transformer architecture that repeatedly applies a shared subset of Transformer blocks within each denoising step. It increases effective computational depth while keeping parameter count and sequence length fixed. The architecture is designed for iterative refinement of image–text representations and combines recurrent block reuse with deep supervision across intermediate loops and Self-Modulating Attention (SMA), which regulates repeated attention updates. In its principal configuration, a 260-million-parameter model executes 32 effective block applications per denoising evaluation despite having only 17 unique MMDiT blocks, and achieves an average score of 71.5 across six text-to-image benchmarks (Chng et al., 30 Sep 2026).

1. Architectural principle and diffusion setting

Looped-DiT introduces a third computation-scaling axis alongside parameter scaling and the number of external diffusion denoising steps. Conventional scaling increases the number of independently parameterized Transformer blocks or invokes the full denoiser more often. Looped-DiT instead reuses a group of blocks multiple times at a fixed diffusion noise level.

If the looped group contains BB blocks and is executed NN times, it performs NBNB block applications while storing parameters for only BB blocks. The resulting computation increases effective depth without increasing sequence length or allocating independent parameters for every application. The external diffusion process and internal recurrent computation have distinct roles:

  • External diffusion computation advances the sample through successive noise levels.
  • Internal recurrent computation repeatedly refines image–text representations at a fixed noise level.

The model is built on MiniT2I, a pixel-space multimodal diffusion Transformer based on MMDiT. For clean image x0x_0, Gaussian noise ϵ\epsilon, and interpolation time t∈(0,1)t\in(0,1), the training path is

xt=tx0+(1−t)ϵ,x_t=t x_0+(1-t)\epsilon,

with ϵ∼N(0,4I)\epsilon\sim\mathcal{N}(0,4I) in the implementation. The time variable is sampled from LogitNormal⁡(−0.8,0.8)\operatorname{LogitNormal}(-0.8,0.8). The model predicts a clean image through a velocity parameterization,

NN0

and minimizes the flow-matching objective

NN1

The paper also defines a loop-specific clean-image reconstruction loss,

NN2

where NN3 is the prediction after loop NN4, NN5 is the number of image elements, and NN6 prevents divergence as NN7 approaches NN8.

The backbone maintains separate image and text streams that interact through joint attention. It uses pre-RMSNorm, query/key normalization, rotary position embeddings, 12 attention heads, head dimension 64, hidden dimension 768, SwiGLU hidden dimension 2048, two text-preamble blocks, a patch-embedding bottleneck of dimension 128, and a maximum text length of 256.

2. Looped computation and model organization

The MMDiT backbone contains 17 unique blocks divided into three groups:

  1. six pre-loop blocks;
  2. five shared looped blocks;
  3. six post-loop blocks.

Let NN9 denote the pre-loop blocks, NBNB0 the shared block group, and NBNB1 the post-loop blocks. For input representations derived from NBNB2, text condition NBNB3, timestep-related inputs, and embedding layers, the computation is

NBNB4

NBNB5

NBNB6

The parameters of NBNB7 are shared for every loop index NBNB8. In the standard configuration, NBNB9, giving

BB0

block applications per denoising evaluation, although only 17 blocks contain distinct parameters.

Both image and text representations are updated at every loop:

BB1

Looped computation occurs inside every diffusion denoising step. If a sampler uses BB2 denoising steps, the model is evaluated BB3 times, and each evaluation contains BB4 applications of the shared loop group. The loop depth can be changed at inference without changing the weights.

This creates two independently adjustable computational quantities: diffusion-step count and within-step loop depth. Increasing the former changes the numerical trajectory through noise space; increasing the latter refines the internal multimodal representation at a fixed noise level.

3. Failure modes of naive looping

Repeated application of shared blocks does not automatically improve image generation. Without additional training and architectural mechanisms, naive looping can remain below a non-looped baseline, saturate, degrade beyond the training loop depth, or produce redundant and harmful updates.

Two failure mechanisms are emphasized.

Weak intermediate supervision

If only the final representation BB5 is supervised, earlier states receive learning signals only through the chain

BB6

Consequently, the model is not directly required to make BB7, BB8, or other intermediate states useful image predictions. Early exits may therefore be poor, intermediate representations may not constitute a meaningful refinement trajectory, and inference at loop counts not used during training may become unstable.

Erosion of local and spatial information

Repeated attention updates can progressively overwrite local structure. Standard softmax attention determines the relative weighting of source tokens but does not directly constrain the magnitude of the resulting residual update. Repeatedly applying the same attention transformation can therefore over-update already-correct image tokens, attenuate spatial information, or introduce extraneous objects and distorted arrangements.

A ridge-regression probe from image-token representations to their corresponding two-dimensional patch-grid coordinates gives a position-decoding BB9 of x0x_00 after the first loop and x0x_01 after the eighth loop under naive looping. The decline of x0x_02 indicates that spatial structure becomes less linearly accessible as unregulated recurrence continues. This measurement does not establish that positional embeddings are removed; it indicates reduced accessibility of spatial information in the hidden representations.

These observations distinguish useful recurrence from simple depth multiplication. Parameter sharing provides repeated computation, but it does not by itself ensure that intermediate states are predictive or that recurrent updates remain spatially faithful.

4. Deep supervision across loop states

Looped-DiT applies an image-generation objective to every intermediate loop state. For each loop x0x_03, the same post-loop decoder produces

x0x_04

The training objective is

x0x_05

where every loop uses the same noisy image, timestep, text condition, and clean target. Intermediate states are therefore supervised against the actual image-generation target rather than merely trained to imitate the final loop.

Two weighting schemes are considered for four loops. Exponential weighting uses

x0x_06

whereas final-plus-mean weighting uses

x0x_07

The final-plus-mean scheme performs better and is used for the principal B/16 model. During training, loop states 1, 2, and 3 are decoded through the shared six-block post-loop stage in addition to the final state 4. These additional exits introduce no parameters and are not evaluated at inference, but they increase training computation.

Deep supervision improves both standard four-loop inference and early-exit behavior. A model trained at four loops remains effective when run at one through eight loops, and the reported one-loop prediction surpasses the ordinary non-looped baseline in the corresponding analysis. This supports the interpretation of loop depth as a controllable inference-time computation budget rather than merely a fixed architectural depth.

Training overhead is substantial. In the B/32 comparison, the parameter-matched ordinary model requires 441 GFLOPs per training sample, the looped model without intermediate exits requires 809 GFLOPs, and the fully supervised Looped-DiT requires 1,246 GFLOPs. The additional cost is concentrated in training; inference remains approximately 267 GFLOPs per denoising forward pass in the matched comparison.

5. Self-Modulating Attention

Self-Modulating Attention regulates the output written by attention rather than changing the attention probabilities themselves. For token x0x_08 and head x0x_09, ordinary attention produces

ϵ\epsilon0

where ϵ\epsilon1 is the attention weight and ϵ\epsilon2 is the value vector. SMA applies a state-dependent transformation before head concatenation and output projection:

ϵ\epsilon3

The resulting head outputs are written to the residual stream as

ϵ\epsilon4

SMA is applied only in the looped block group, where repeated updates create the greatest risk of feature erosion.

Gated Attention

Gated Attention uses a learned scalar gate for each token and head:

ϵ\epsilon5

where ϵ\epsilon6 is the normalized hidden state, ϵ\epsilon7 and ϵ\epsilon8 are learned parameters, and ϵ\epsilon9 is the sigmoid function. The modulated output is

t∈(0,1)t\in(0,1)0

The gate allows the current token state to determine how strongly a particular attention head writes an update.

Exclusive Self Attention

Exclusive Self Attention (XSA) is parameter-free. It constructs the normalized value direction

t∈(0,1)t\in(0,1)1

and projects the attention output using

t∈(0,1)t\in(0,1)2

Thus,

t∈(0,1)t\in(0,1)3

Because

t∈(0,1)t\in(0,1)4

the component of the update in the token’s own value direction is removed. The projection is orthogonal and therefore non-expansive at the individual head-output level:

t∈(0,1)t\in(0,1)5

XSA is not equivalent to multiplying the attention output by t∈(0,1)t\in(0,1)6. It also projects components of other value vectors that lie along the token’s own value direction.

Gated Attention learns whether a token and head should write strongly or weakly, whereas XSA removes self-reinforcing update components through a state-dependent projection. The reported experiments favor XSA: it yields smaller relative attention-update norms, better preserves spatial position decodability, and produces stronger performance gains in looped models than in non-looped models.

6. Configurations, empirical results, and interpretation

Two t∈(0,1)t\in(0,1)7 configurations are trained. Both contain 17 unique MMDiT blocks with a t∈(0,1)t\in(0,1)8 pre-loop/loop/post-loop split, four training loops, 12 attention heads, hidden dimension 768, and head dimension 64.

Configuration B/32 B/16
Image tokens 256 1,024
Joint sequence length 512 1,280
Effective block applications 32 32
Parameters 260.2M 258.1M
Training loop depth 4 4

Training uses AdamW, global batch size 1024, peak learning rate t∈(0,1)t\in(0,1)9, initial learning rate xt=tx0+(1−t)ϵ,x_t=t x_0+(1-t)\epsilon,0, 5,000 warmup steps, gradient clipping 0.1, EMA decay 0.99995, zero weight decay, and condition dropout 0.10. B/32 is trained for 250,000 pretraining steps and 40,000 fine-tuning steps; B/16 is trained for 500,000 pretraining steps and 80,000 fine-tuning steps. The data include CC12M, BLIP3o-60K, a DALL-E 3 dataset, and ShareGPT-4o-Image for fine-tuning.

Matched-compute comparison

In the B/32 comparison, Looped-DiT has the same parameter count as the 260M baseline and matches the inference computation of larger models.

Model Train GFLOPs Inference GFLOPs Parameters Effective depth Average
MiniT2I B/32 441 146 260M 17 55.2
Deeper MiniT2I 809 267 473M 32 57.7
Wider MiniT2I 805 268 489M 17 58.6
Deeper + DeepSup 1,246 267 473M 32 58.1
Looped-DiT B/32 1,246 267 260M 32 59.1

Looped-DiT improves by 4.0 points over the parameter-matched baseline and by 1.0 point over the deeper model under matched training and inference computation.

The component ablation further separates the contributions of recurrence, deep supervision, and attention regulation.

Looping Supervision Attention Average
No No Standard 55.2
Yes No Standard 56.2
Yes Exponential Standard 57.1
Yes Final + Mean Standard 57.5
Yes No Gated 56.6
Yes No XSA 58.5
Yes Final + Mean XSA 59.1

Looping alone improves the baseline, deep supervision adds further improvement, both attention mechanisms help, and the combination of final-plus-mean supervision with XSA performs best.

Text-to-image benchmarks

The main B/16 model obtains the following results:

Model Parameters GenEval DPG PRISM CoRe Spatial TIIF-Short Average
MiniT2I-B/16 0.26B 87.5 84.1 55.6 44.0 52.0 75.0 66.4
MiniT2I-L/16 0.91B 88.3 84.8 58.9 44.4 52.2 75.0 67.3
InternVL-U 1.7B 85.0 85.2 63.5 48.2 54.5 77.7 69.0
Looped-DiT B/16 0.26B 87.4 87.0 67.0 53.5 54.6 79.7 71.5

Looped-DiT is best among the listed models on DPG-Bench, PRISM, CoRe, SpatialGenEval, and TIIF-Short. It is 0.1 point below UniLiP on GenEval, with 87.4 versus 90.3. The 260M model exceeds the 1.7B InternVL-U comparison by 2.5 average points, 71.5 versus 69.0, while requiring approximately 4.9 times lower inference compute according to the reported comparison.

Loop depth versus diffusion-step count

Under fixed inference budgets, the reported experiments favor increasing internal loop depth over adding external denoising steps within the tested range. A denoising step advances the sample along the diffusion trajectory, whereas an internal loop refines the interpretation and structure at the current noise level. The latter is particularly useful for prompts requiring compositional, spatial, or relational constraint resolution.

This result does not imply that denoising steps are unnecessary. It indicates that loop depth is a complementary scaling axis and can have a higher marginal return than additional sampler steps under the evaluated compute budgets.

Progressive correction and adaptive inference

Successive loops can add missing objects, correct object locations, satisfy orientation constraints, reorganize scenes, remove extraneous objects, and repair rendering errors. Such behavior is consistent with latent visual reasoning: the model forms an initial continuous multimodal representation and then revises it through further shared computation. The paper does not establish a complete mechanistic account of these corrections or show that later loops perform explicit error evaluation.

The reported gains are especially large on tasks requiring constraint resolution, including PRISM long-text, CoRe multi-relation, CoRe procedural, spatial orientation, and spatial motion. Textual chain-of-thought prompt rewriting is more effective for tasks involving inferred visual content, and the two methods are complementary: relative to the non-looped model, textual chain-of-thought improves the average by 2.1 points, looping by 4.0 points, and their combination by 5.5 points.

Because intermediate exits are supervised, Looped-DiT also supports adaptive loop allocation. A lightweight gating network uses a cross-attention layer, four learnable queries, and an MLP prediction head to estimate the benefit of continuing after loop xt=tx0+(1−t)ϵ,x_t=t x_0+(1-t)\epsilon,1. The target is

xt=tx0+(1−t)ϵ,x_t=t x_0+(1-t)\epsilon,2

Inference continues when the predicted benefit exceeds a threshold xt=tx0+(1−t)ϵ,x_t=t x_0+(1-t)\epsilon,3. Adaptive looping can outperform fixed-loop inference at the same mean loop count, halve the performance drop at an average of 1.25 loops, and reach a comparable performance plateau at approximately 2.70 average loops.

The reported results concern approximately 260-million-parameter, xt=tx0+(1−t)ϵ,x_t=t x_0+(1-t)\epsilon,4, pixel-space MMDiT models. The evidence does not establish equivalent behavior for billion-parameter models, latent diffusion systems, substantially higher resolutions, different text encoders, or much longer prompts. The loop partition is fixed at xt=tx0+(1−t)ϵ,x_t=t x_0+(1-t)\epsilon,5, and the study does not exhaustively vary loop location, looped-block count, or modality-specific looping.

Deep supervision increases training computation substantially, although it does not increase inference computation at the standard loop depth. Naive recurrence remains fragile: intermediate exits can be poor, extra loops can hurt, and repeated attention can erode spatial information. Behavioral evidence of progressive correction is suggestive of latent reasoning but does not identify the hidden mechanisms responsible for individual corrections.

Looped-DiT is related to several recurrent diffusion-transformer designs but differs in emphasis. AlgoFormer provides the broader pre-transformer/loop/post-transformer decomposition and theoretical view of shared recurrence as algorithmic computation (Gao et al., 2024). Inner Loop Feedback introduces a learned internal feedback block that predicts future denoising features, but it is not a full recurrent execution of the entire DiT (Gwilliam et al., 22 Jan 2025). Elastic Looped Transformers use a recurrent, weight-shared block with Intra-Loop Self Distillation to make multiple inner depths usable at inference (Goyal et al., 10 Apr 2026). LoopMDM applies selective recurrence to the early-middle layers of masked diffusion LLMs and studies adaptive loop counts in a discrete masked-token setting (Lee et al., 25 May 2026). Source-Centered State Evolution addresses reference-preserving recurrence by constructing an input-dependent anchor that is an exact one-step fixed point (Kim et al., 30 Jul 2026). Looped Transformers as Optimizers interprets recurrent hidden states as fast weights and derives delta-rule, decay, and adaptive-step transitions from local optimization objectives (Huang et al., 29 Sep 2026).

These related approaches support the general distinction between outer diffusion time and inner recurrent depth, but their quantitative results are not interchangeable. Image, video, masked-language, autoregressive, and hardware studies use different architectures, objectives, datasets, and evaluation protocols. In particular, accelerator results for tiled Transformer or diffusion primitives do not constitute direct Looped-DiT performance measurements (Shashank, 16 Aug 2026).

Looped-DiT’s principal contribution is therefore architectural and empirical: it demonstrates that shared within-step recurrence can serve as a distinct scaling axis for text-to-image diffusion, provided that intermediate loop states receive direct supervision and repeated attention updates are regulated. The resulting model separates parameter capacity from computational depth and enables inference-time allocation of additional computation to iterative visual refinement.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Looped Diffusion Transformer (Looped-DiT).