Manuscript Offprint

arXiv:2610.03577

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

Shuo Yang, Lihao Fang, Yi Zhang, Haixiang Wang, Xincheng Ye, Shufan Chen, Jipeng Guo, Youqing Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Beijing University of Chemical Technology

北京化工大学 ROBOT Lab

Beijing University of Chemical Technology

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

Shuo Yang 1,2,3^{1,2,3}, Lihao Fang 1,2^{1,2}, Yi Zhang 1,2^{1,2}, Haixiang Wang 1,2^{1,2}, Xincheng Ye 1,2^{1,2}, Shufan Chen 1,2,3^{1,2,3}, Jipeng Guo 1^{1}, Youqing Wang 1,†^{1,\dagger}

1^{1}Beijing University of Chemical Technology 2^{2}ROBOT-XZC 3^{3}Tsinghua University

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.

Figure

Figure 1: Examples generated by AutoTarget with FLUX.1-schnell.

References (61)

  • Let diffusion model determine its own cache
  • Junsong Chen, Yue Wu, Simian Luo, et al. PixArt- $\delta$: Fast and controllable image generation with latent consistency models. arXiv preprint arXiv:2401.05252, 2024a. (opens arXiv in a new tab)
  • OmniCache: A trajectory-oriented global perspective on training-free cache reuse for diffusion transformer models
  • Towards compute-optimal diffusion model deployment
  • HiCache: A plug-in scaled-hermite upgrade for taylor-style cache-then-forecast diffusion acceleration (opens arXiv in a new tab)
  • LTX-Video: Realtime video latent diffusion (opens arXiv in a new tab)
  • CLIPScore: A reference-free evaluation metric for image captioning
  • Classifier-Free Diffusion Guidance
  • Denoising diffusion probabilistic models
  • Bridging the train-test gap in autoregressive video diffusion
  • VBench: Comprehensive benchmark suite for video generative models
  • Elucidating the design space of diffusion-based generative models
  • HunyuanVideo: A Systematic Framework For Large Video Generative Models
  • Budget-constrained step-level diffusion caching
  • Flow matching for generative modeling
  • It's time to cache for video diffusion model
  • Accelerating diffusion models with TaylorSeers
  • Flow straight and fast: Learning to generate and transfer data with rectified flow
  • DPM-Solver++: Fast solver for guided sampling of diffusion probabilistic models (opens arXiv in a new tab)
  • Synthesizing high-resolution images with few-step inference (opens arXiv in a new tab)
  • Training-free video diffusion model acceleration with high quality
  • Accelerating diffusion transformer via layer caching
  • DeepCache: Accelerating diffusion models for free
  • Profiling-based feature reuse for video diffusion models
  • Scalable diffusion models with transformers
  • Learning transferable visual models from natural language supervision
  • High-resolution image synthesis with latent diffusion models
  • Photorealistic text-to-image diffusion models with deep language understanding
  • Progressive distillation for fast sampling of diffusion models
  • Adversarial diffusion distillation
  • Fast-forward caching in diffusion transformer acceleration (opens arXiv in a new tab)
  • Denoising diffusion implicit models
  • Score-based generative modeling through stochastic differential equations
  • Consistency models
  • Wan: Open and Advanced Large-Scale Video Generative Models
  • Image quality assessment: From error visibility to structural similarity
  • Accelerating diffusion models through block caching
  • ImageReward: Learning and evaluating human preferences for text-to-image generation
  • Hybrid feature caching for diffusion transformers
  • Accelerating video diffusion transformers with distillation-compatible learnable feature caching
  • Both stages use the same model, solver, coordinate sequence, and steps for full DiT evaluation
  • AutoTarget converts this prediction into the cache targets supported by the current parameterization
  • At a reuse step, every candidate is decoded from the same anchor and receives the same exact current state
  • These tolerances were fixed before calibration
  • AutoTarget averages their decoded RGB error over prompts and reuse steps, then selects the target with the lowest average error
  • Decoding their exact VAE latents takes 1.528 seconds
  • Reusing the velocity gives $\widehat{x}_{j+1}^{(v)} = x_j - h_j v_a$
  • it evaluates the full DiT at anchors and reuses the cache otherwise
  • Cauchy–Schwarz followed by Jensen’s inequality gives
  • Within each model setting, all methods use the same weights, solver, coordinate sequence, prompts, random seeds, and numerical precision
  • The full DiT runs at steps $\mathcal{A} = \{0, 1, 2\}$, so every candidate uses three DiT evaluations and one reuse step
  • The FLUX.1-dev and FLUX.1-schnell blocks compare each output with the paired 50-step FLUX.1-dev output
  • The image experiments also report PSNR and SSIM relative to the paired reference trajectory
  • Retained cache
  • The fixed rule $\gamma \geq 1.10$ abstains on shifted LTX-Video
  • The video comparison also includes DisCa
  • Every point uses the same 50 prompts, paired seeds, model, solver, and four-step sequence
  • Each wins on all 20 held-out prompts; bars and bands show paired 95% bootstrap intervals
  • Anchor-only
  • The selected native target retains 288 KiB; cache size excludes temporary runtime memory
  • It does not guarantee the same ranking after any of these choices changes or on every prompt distribution