Distill to Loop: Turning Pretrained Diffusion Transformers into Looped Models with Adjustable Depth

Chenru Wang, Shengwei AnarXiv 2026

TL;DR

What if you could shrink a massive image-generating AI by nearly two-thirds, speed up its inference, and let users dial its "thinking depth" up or down on the fly—all without training a new model from scratch? Distill to Loop (Dooop) converts off-the-shelf diffusion transformers into compact, recurrently looped models by treating network depth like a continuous differential equation. You get a smaller, faster model that matches (and with a little extra data, beats) its teacher's visual quality.

What Problem Does This Paper Address?

Diffusion models generate stunning images and videos, but they are notoriously slow because every denoising step has to trudge through a massive stack of distinct neural network layers.

Recently, researchers borrowed an idea from language modeling called looped transformers: instead of stacking 24 unique layers, you take a small block of layers and run data through it repeatedly in a loop. Sharing weights slashes the parameter count and lets you trade compute for quality at test time by running fewer or more loops.

However, existing looped diffusion models have two glaring headaches:

  1. They are trained from scratch, throwing away the millions of dollars and GPU-hours already spent pretraining strong standard models.
  2. Inflexible depth: Some models need a huge number of loops just to catch up to standard models, while others fall apart and degrade in quality if you run them for more loops than they saw during training.

The authors ask: Can we cheaply distill an existing pretrained diffusion transformer into a looped one that converges in just a couple of loops, yet remains stable if we extend its depth at test time?

Methods

Dooop surgically alters a pretrained teacher model: it keeps a few leading and trailing blocks intact, replaces the thick middle stack with a small set of shared, looped blocks (initialized directly from the teacher's weights), and trains this student via three clever mechanisms:

Training pipeline of Dooop
  • Distillation as Fixed-Point Iteration: Instead of only caring about the student's final output, Dooop supervises every loop. Each loop's target is pulled a fraction of the way from the previous loop's actual output toward the teacher's prediction. Because each loop starts from the previous loop's actual result, later loops actively learn to correct earlier errors.
  • Depth as an ODE: If you just add full residual updates in a loop, running 16 loops instead of 4 wildly overshoots the math. Dooop indexes loops along a continuous depth interval from $s=0$ to $1$, scaling each step so the recurrence acts like an Euler discretization of an Ordinary Differential Equation (ODE). Because depth is now an ODE, you can run any number of loops at test time without retraining—and even plug standard diffusion ODE solvers (like Heun or DPM++) into the depth dimension!
  • Guided Rollout States & Loop Guidance: During training, Dooop mixes standard noisy data with "on-policy" states generated by a joint teacher-student sampler so the student learns to handle states it actually visits at test time. At inference, Dooop introduces loop guidance: diffusion models usually boost quality by extrapolating away from a "weak" model (requiring a second model and forward pass). Dooop simply grabs the output from an earlier loop in the exact same forward pass to act as the weak model—almost for free.

Datasets

No new benchmarks were introduced. The authors used standard datasets:

  • Training: Class-conditional ImageNet ($256 \times 256$) for SiT-XL/2 experiments, and COCO 2017 captions and images ($512 \times 512$) for Stable Diffusion 3 (SD3-medium) experiments.
  • Evaluation: ImageNet FID and Inception Score (IS); for text-to-image, they used GenEval prompts scored across GenEval, ImageReward, PickScore, and HPSv2.1.

Key Insights and Ideas

  • Network depth and denoising time are mathematically interchangeable: By formulating transformer loops as an ODE over $[0,1]$, numerical solvers invented for diffusion time steps (like DPM++) suddenly work across network layers, giving you better accuracy per FLOP at test time.
  • Self-correction beats rigid trajectories: Prior work anchored intermediate loop targets to a strict straight line from start to finish. Letting each loop target adapt based on where the previous loop actually landed teaches the network to self-correct on the fly.
  • Free lunches in guidance: A looped network naturally contains weaker versions of itself (early loops) and stronger versions (later loops) inside a single forward pass, making self-guidance practically free.

Key Results

Tested primarily on SD3-medium (2.03B parameters), the Dooop student shrinks down to 0.756B parameters (~37% of the teacher):

  • Faster & Equal: Running just $K=2$ loops uses ~58% of the teacher's compute (29.4 vs. 50.5 TFLOPs) and already edges out the teacher's 100.0 baseline average across all four text-to-image metrics with a score of 100.7 (GenEval rises from 0.648 to 0.661).
  • Post-Distillation Boost: Continuing to train the distilled student for 20k steps on real ground-truth data pushes the 2-loop average score to 105.8 (GenEval jumps to 0.707).
  • Rock-Solid Stability: As shown below, running up to $K=16$ loops at test time keeps images crisp and stable rather than degrading.
  • Loop Guidance: On a 4-step distilled SD3 model, loop guidance lifts the student's average metric score from 88.2 to 99.2 while nudging compute up only slightly from 7.21 to 7.79 TFLOPs.
  • ImageNet Efficiency: Distilling SiT-XL/2 achieves an FID of 3.785 using 77.3M training samples—beating from-scratch looped baselines like ELT (3.96 FID), which needed more parameters and 256M samples.
Samples of SD3-medium teacher vs Dooop across loop counts

Limitations and Future Work

The main text of the paper does not feature a dedicated limitations or future work section. However, the experimental results reveal two practical boundaries:

  • Diminishing returns at extreme depths: While samples do not visually break at high loop counts, quantitative metrics on SD3-medium peak at 2–4 loops (100.7–100.9 average) and gently dip at 8 and 16 loops (99.3 and 97.6) while costing significantly more compute.
  • Task-dependent rollout training: Mixing guided rollout states into training batches improved text-to-image scores on SD3-medium, but actually hurt FID scores on class-conditional ImageNet compared to training purely on standard noisy data states.

Summary updated

Abstract

Looped transformers reuse one block of shared weights along the depth of the network. Recent looped diffusion transformers are trained from scratch, which repeats the full pretraining cost although strong pretrained non-looped diffusion transformers exist. We propose Distill to Loop (Dooop), which distills a pretrained non-looped diffusion transformer into a looped student whose blocks are initialized from the teacher's. We cast distillation as a fixed-point iteration toward the teacher, in which the output after every loop is trained toward the teacher, and each loop is one step of an ordinary differential equation in depth. As a result, one model runs any number of loops at test time without retraining, and the higher-order ODE solvers of diffusion model sampling can be applied along the depth dimension for better results. Meanwhile, because a looped model produces an output after every loop, we also construct loop guidance between the outputs of different loop counts, which improves the generated samples at little extra compute. On SD3-medium, a looped student with about 37% of the teacher's parameters matches the teacher on average over GenEval, ImageReward, PickScore and HPSv2.1 with two to four loops, and with two loops it uses about 58% of the teacher's compute. And on a four-step SD3-medium, loop guidance raises the average of the four metrics from 88.2 to 99.2.
BibTeX
@misc{wang2026distill,
  author = {Chenru Wang and Shengwei An},
  title = {{Distill to Loop: Turning Pretrained Diffusion Transformers into Looped Models with Adjustable Depth}},
  year = {2026},
  eprint = {2611.31977},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.31977},
}
Figure