Let the Loop Decide Training-Free Loop-Guided Caching for Looped Diffusion Transformers

Shangye Song1 Yun Sing Koh1 Xinyu Zhang2,*

1University of Auckland2Monash University

*Corresponding author

Compare with

Pick any two of the full model and the five methods above (default: the full model and LoopCache), then drag across an image to compare them; all start from the same noise and run at about 3.5×. Under each image, for both methods: the warm-up, how many of the 100 sampling steps were computed in full, and which ones (measured on these very images).

LoopCache speeds up sampling of a looped diffusion transformer without training. Each image keeps computing full steps until its own loop update settles; the steps after that reuse the velocity, with a correction at every refresh. At 3.5× and 4.8× measured speed-ups, its images stay closer to the full model's than those of existing caching methods.

Speed-up
3.52×/4.84×

Measured latency on one H200 at the two settings. No training, no extra forward passes.

LPIPS to the full model
0.052/0.094

26% and 16% lower than the next best caching method at the same speed.

Average score kept
99.4%/99.0%

Mean of eight benchmark scores, relative to the full model's 69.71.

Abstract

Larger diffusion transformers (DiTs) generate higher-quality images at the cost of many more parameters. Looped DiTs avoid this by running a shared group of blocks several times per sampling step. However, their sampling remains slow, since every step runs the full network, including several passes of the shared blocks. Training-free caching methods typically reuse cached results after a warm-up of full steps fixed for all prompts, but on Looped-DiT, we find that different images need different numbers of warm-up steps, so a fixed warm-up wastes full steps on some images and is insufficient for others. We thus propose LoopCache, a training-free caching method that lets the loop decide when caching starts. Its adaptive warm-up monitors the loop update, i.e. the total change made by the loop passes, and ends once this update settles. Compared with the output change monitored by existing methods, the loop update better separates images that need a long warm-up from those that need a short one. After the warm-up, a drift-corrected velocity cache reuses the velocity on the skipped steps, which is more accurate than the commonly reused residual, and at each refresh applies a correction that adds back the displacement these steps missed. Neither component requires extra forward passes. At 3.5× and 4.8× speed-ups, LoopCache generates images closer to the full model's than existing caching methods and keeps over 99% of the original average score.

Motivation

One warm-up length does not fit every image

A step-level cache computes the first steps in full, the warm-up, and reuses cached results afterwards. We call the shortest warm-up after which more full steps barely bring the result closer to the full model an image's commitment step. Over 1,122 benchmark images in nine prompt sets, it spans the whole tested range of 6 to 20 steps. Move the slider to start caching earlier or later.

Images: our cached phase (τ = 0.02) started after a fixed warm-up of w full steps, from the same noise as the full model. LPIPS to the full model's image; orange marks values above 0.1. The black tick on each step bar marks the image's commitment step.

Method

How LoopCache samples an image

Looped-DiT runs a group of 5 blocks with shared weights 4 times in every forward pass. LoopCache computes full steps until the image's loop update settles, then skips most steps by reusing the velocity, and corrects the drift at each refresh. Pick an image and watch its 100 steps.

step 1
xt Pre6 blocks × 4 passesShared loop5 blocks Post6 blocks x̂t
full step

Warm-up: has the loop update settled?

loop update Δt = hN − h0, the total change of the 4 loop passes

rt: change of the loop update at each full step, divided by the image's mean change over steps 2–5. The warm-up ends at the first step from 6 on below κτ.

Cached phase: what the correction adds

One velocity component over the current skip run, values for illustration. Skipped steps keep using vb. Had the velocity changed linearly to the fresh vs, each skipped step would have moved further by the hatched part; together these make δ, and the refresh adds γδ.

The loop-update curve, the warm-up length and the number of full steps are this image's own (3.5× setting). Refreshes in the cached phase are drawn evenly spaced, and the velocity values in the correction panel are for illustration.

Warm-up

Loop-guided adaptive warm-up

The loop passes all refine the same prediction, so the loop update shows how much the network still revises the image. It keeps changing while the layout forms and settles once the image has committed. LoopCache divides its change by the image's own early change:

rt = dtmean(d2, …, d5),dt = ‖Δt − Δt−1‖2‖Δt‖2

The warm-up ends at the first step from 6 to 20 with rt < κτ (κ = 12), at step 20 at the latest. Every full step already computes the loop update, so the signal costs nothing.

Cached phase

Drift-corrected velocity cache

A skipped step reuses the velocity vb of the last full step b, which is exact while the predicted clean image stays fixed; residual reuse instead overshoots by about j% after j skipped steps. At the next refresh s = b + L, LoopCache adds back the displacement the skipped steps missed:

xs+1 = xs + dt vs + γδ,δ = dt L − 12(vs − vb)

γ = 0.7, without an extra forward pass. The correction is off in the last 10% of steps, where it would add fine-grained noise.

Figures from the paper

Overview: full steps run until the loop update settles at step w; afterwards skipped steps reuse the cached velocity, refreshes add a drift correction, and the correction is off in the last 10% of steps.
Overview. Full steps (blue) run until step w, where the loop update has settled; skipped steps (purple) then reuse the cached velocity, EasyCache's rule decides when to refresh, and the correction is off in the last 10% of steps.
AUC over sampling steps 6 to 20: the loop update is above the output change at every step.
How well each signal tells images that commit late (step 14 or later) from those that commit early (by step 7), as AUC (50%: chance; bands: 95% CI).
Drift from the full model after 1 to 8 skipped steps: residual reuse drifts most, velocity reuse less, velocity reuse with correction least.
Drift from the full model over one skip run (median, γ = 0.7). The correction lowers the drift of velocity reuse by 21–38%.
One velocity component: the reused velocity v_b misses the hatched displacement delta that a linear change to v_s would have made; the refresh adds gamma delta.
The correction for one velocity component: reusing vb misses the hatched displacement δ; the refresh adds γδ.
Results

Closest to the full model at both speeds

Looped-DiT B/16 (512×512 images, 100 Euler steps, guidance scale 6) on the prompts of nine text-to-image benchmarks, 28,260 images in all. Every method starts from the same noise as the full model and runs at about the same measured speed-up. LPIPS, SSIM and PSNR compare each image with the full model's; they measure deviation, not quality.

Mean LPIPS to the full model's image over all 28,260 images; shorter is closer. Hover or focus a bar for its other numbers.

Speed: the full model's latency divided by the method's (seconds per image on one H200). >0.3: share of images with LPIPS above 0.3, which we count as a different picture. TIIF inst: TIIF-Bench's non-text prompts; TIIF text: OCR recall on its text prompts; Avg.: mean of the eight benchmark scores; IR: ImageReward; HPS: HPSv2.1. Bold: best of each speed tier.

Comparison

Same noise, six results

The first 18 rows are the examples of the paper (Fig. 7 and supplementary Fig. S3); more examples from the same runs follow. Each row starts every method from the same noise as the full model. Choose a speed; click an image to compare it with the full model's at full size.

Citation

BibTeX

@article{song2026loopcache,
  title   = {Let the Loop Decide: Training-Free Loop-Guided Caching for Looped Diffusion Transformers},
  author  = {Song, Shangye and Koh, Yun Sing and Zhang, Xinyu},
  journal = {arXiv preprint arXiv:2612.02451},
  year    = {2026}
}