cs.CVDec 1, 2026

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

Authors: Shangye Song, Yun Sing Koh, Xinyu Zhang

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 LoopCacheLoopCache, 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×3.5\times and 4.8×4.8\times speed-ups, LoopCache generates images closer to the full model's than existing caching methods and keeps over 99% of the original average score.

Explore similar work

Oct 2, 2026

Rethinking What to Cache in Few-Step Diffusion Transformers: Solver-Aware Target Selection

Diffusion Transformers (DiTs) can generate high-quality images and videos, but generating each sample requires multiple costly DiT forward passes. Two common ways to accelerate DiT sampling are step distillation, which reduces the number of sampling steps, and caching, which skips some DiT evaluations by reusing a tensor computed at an earlier step. Most caching methods decide in advance which tensor to reuse. After distillation, adjacent sampling steps are farther apart. Reusing a tensor across this larger gap introduces more error, so choosing what to cache becomes especially important. We therefore introduce AutoTarget, a method that chooses the cached tensor for a given model, solver, and reuse schedule. AutoTarget uses a small set of runs without cache reuse to measure the error caused by reusing each candidate tensor, then selects the candidate with the lowest error. We also analyze how an error at one reuse step affects the final sample. For Euler sampling, we identify cache targets that produce the same trajectory and show why a stored solver update may not. Experiments on distilled image and video DiTs show that the best cache target changes with the model, image resolution, and solver. AutoTarget reduces DiT evaluations and retained cache storage. Generation quality remains close to the corresponding uncached run. On the tested PixArt-LCM and FLUX.1-schnell settings, its calibration ranking matches the ranking from held-out cached runs. To help others reproduce the method, we provide its core implementation on GitHub at https://github.com/wali1024-offical/AutoTarget.
Mar 5, 2026

Frequency-Aware Error-Bounded Caching for Accelerating Diffusion Transformers

Diffusion Transformers (DiTs) have emerged as the dominant architecture for high-quality image and video generation, yet their iterative denoising process incurs substantial computational cost during inference. Existing caching methods accelerate DiTs by reusing intermediate computations across timesteps, but they share a common limitation: treating the denoising process as uniform across time,depth, and feature dimensions. In this work, we identify three orthogonal axes of non-uniformity in DiT denoising: (1) temporal -- sensitivity to caching errors varies dramatically across the denoising trajectory; (2) depth -- consecutive caching decisions lead to cascading approximation errors; and (3) feature -- different components of the hidden state exhibit heterogeneous temporal dynamics. Based on these observations, we propose SpectralCache, a unified caching framework comprising Timestep-Aware Dynamic Scheduling (TADS), Cumulative Error Budgets (CEB), and Frequency-Decomposed Caching (FDC). On FLUX.1-schnell at 512x512 resolution, SpectralCache achieves 2.46x speedup with LPIPS 0.217 and SSIM 0.727, outperforming TeaCache (2.12x, LPIPS 0.215, SSIM 0.734) by 16% in speed while maintaining comparable quality (LPIPS difference < 1%). Our approach is training-free, plug-and-play, and compatible with existing DiT architectures.
Nov 29, 2025

Fine-Grained Caching for Diffusion Transformers with Few Calibration Conditions

Diffusion transformers require repeated denoiser evaluations, making image and video generation computationally expensive. We propose a training-free framework that uses a few calibration conditions to construct a fixed, fine-grained module-reuse schedule without schedule search. The design is motivated by an empirical effect along deterministic sampling trajectories: with initial noise fixed, condition-dependent deviations in several module outputs evolve similarly across adjacent steps, so temporal differencing attenuates much of their variation. We term this effect Conditional Common-Mode Rejection (CCMR). Motivated by this observation, we rank timestep--layer--module locations using normalized ratios of consecutive feature displacements and construct a Cache Book through two-stage calibration. The second stage updates a scorer-only reference with each provisional bit after recording its indexed score, while retaining full-compute trajectories. At inference, the fixed schedule requires no per-input policy estimation and can be nested within fixed step-wise cache policies. Module caching alone achieves 1.661.66--1.72×1.72\times speedup on the evaluated image models and 1.541.54--1.68×1.68\times on the video models. Combining it with MagCache or SeaCache provides further acceleration at a model-dependent cost in paired fidelity.