TL;DR
SoftCache is a training-free acceleration method for diffusion transformers that replaces binary "hard caching" with adaptive "soft caching." By using a staleness signal to dynamically control step size, it enables the sampler to take "long jumps" when the cache is reliable, achieving 3.5x–6.9x speedups while maintaining higher fidelity than existing state-of-the-art caching baselines.
What Problem Does This Paper Address?
Generating high-quality images and videos with diffusion and flow models is computationally expensive because it requires dozens of full passes through massive transformer networks. Caching—reusing internal activations from previous steps instead of recomputing them—is a popular training-free way to speed this up.
Current "dynamic" caching methods (like SeaCache or TeaCache) use a cheap probe to estimate how much the network's output is changing. When this "staleness signal" crosses a threshold, they refresh the cache. However, these methods perform hard caching: they treat the decision as a binary switch (refresh vs. reuse) and always advance by the fixed step size prescribed by the original scheduler. This ignores a crucial piece of information: how much "headroom" is left before the cache becomes unreliable.
Methods
SoftCache introduces the concept of soft caching, where the staleness signal doesn't just decide when to refresh, but how far the next step should go.
- Headroom as Step Size: The authors define "headroom" as the distance between the current staleness signal and the refresh threshold. When headroom is high (the cache is "fresh"), SoftCache takes a long jump that can skip multiple scheduled nodes. As the signal approaches the threshold, the step size shrinks back toward the original schedule.
- Off-Grid Landing: Unlike previous methods that are tethered to a fixed grid of timesteps, SoftCache's adaptive jumps can land between scheduled nodes.
- Tail Re-spacing: After a jump lands off-grid, the remaining nodes in the schedule are evenly re-spaced to ensure the trajectory remains smooth and reaches the final destination ($t=1$) correctly.
- Linear Residual Extrapolation: Instead of a simple zero-order hold (reusing the exact same residual), SoftCache extrapolates the residual along a straight line defined by the two most recent fresh evaluations. This significantly reduces reuse error at no extra network cost.
Datasets
The authors evaluated SoftCache across three major backbones:
- FLUX.1-dev: For image generation, using the DrawBench (200 prompts) and DPG-Bench (50 prompts for ablations) datasets.
- HunyuanVideo: For video generation, using the full VBench (946 prompts) suite.
- Wan2.1-T2V-1.3B: For video generation, using a representative 100-prompt subset of VBench.
Key Insights and Ideas
- The Signal is a Speedometer: The core "aha" moment is that the staleness signal used by dynamic caches correlates strongly with the actual reuse error. A cache that has just been refreshed is much more "trustworthy" than one on the verge of expiration.
- Headroom Predicts Error: As shown in Figure 2, the relative reuse error grows steadily with the accumulated signal. By reading this headroom, the sampler can safely accelerate when error is low and decelerate as error increases.
- Grid Freedom Matters: Allowing the sampler to land between scheduled nodes and re-spacing the "tail" of the schedule provides the flexibility needed to turn computational savings into higher fidelity.
Key Results
SoftCache consistently outperforms strong baselines like SeaCache, DPCache, and TaylorSeer across all tested models and metrics (PSNR, SSIM, LPIPS, and DreamSim).
- Speed vs. Quality: At speedups ranging from 3.5x to 6.9x, SoftCache maintains higher fidelity to the original uncached model than any other method. For example, on FLUX at the fastest band, it leads SeaCache by 1.12 dB PSNR.
- Qualitative Superiority: SoftCache avoids common artifacts seen in other caching methods, such as "double heads" on animals, missing limbs, or blurred textures.
Limitations and Future Work
- PSNR Discrepancy: The authors note that at very high speedups, PSNR (which rewards pixel-wise smoothness) sometimes favors blurrier outputs, whereas perceptual metrics (LPIPS, DreamSim) and human judgment favor the sharper results produced by SoftCache.
- Extrapolation Reliability: Linear extrapolation of residuals becomes less reliable at extremely high speeds. The authors addressed this by damping the extrapolation scale ($\beta$) for speedups above 4x.
- Future Directions: The method currently uses a simple linear extrapolation; exploring higher-order predictors or more sophisticated adaptive ODE solvers that incorporate caching could further push the speed-fidelity frontier.
Summary updated