TL;DR
SenCache accelerates diffusion model inference by dynamically reusing past network outputs based on a principled, theoretically motivated sensitivity metric. By analyzing how the model responds to changes in both the noisy latent and the timestep, it adaptively skips redundant computations on a per-sample basis, achieving superior video generation quality compared to heuristic caching methods under the same compute budget.
What Problem Does This Paper Address?
Modern video Diffusion Transformers (DiTs) generate stunning, state-of-the-art videos, but their inference is notoriously slow and computationally expensive. Generating just a few seconds of video requires sequentially evaluating large neural networks hundreds of times.
To speed this up without retraining models, researchers often turn to caching—reusing the denoiser network's outputs across consecutive timesteps when the outputs are expected to be similar. However, existing training-free caching methods (like TeaCache or MagCache) rely on ad-hoc empirical heuristics to decide when to cache. These heuristics suffer from two major flaws: they lack theoretical guarantees (requiring extensive hyperparameter tuning), and they produce static or rigid schedules that cannot adapt to the varying difficulty of individual video samples. This often leads to over-caching (causing visual artifacts) or under-caching (wasting compute).
Methods
The authors introduce Sensitivity-Aware Caching (SenCache), a training-free, architecture-agnostic framework that grounds cache-reuse decisions in the model's local sensitivity.
Instead of guessing when to reuse a cache, SenCache formalizes the caching error using a first-order Taylor expansion of the denoiser output $f_\theta(x_t, t, c)$ with respect to its inputs: the noisy latent $x_t$ and the timestep $t$. This yields a sensitivity score ($S_t$):
$$S_t = \|J_x\| \|\Delta x_t\| + \|J_t\| |\Delta t|$$
Where:
- $\|J_x\|$ and $\|J_t\|$ are the Jacobian norms (local Lipschitz constants) representing the network's sensitivity to changes in the latent space and time dimension, respectively.
- $\|\Delta x_t\|$ and $|\Delta t|$ represent the actual step sizes taken by the sampler.
During inference, if $S_t$ falls below a user-defined tolerance threshold ($\varepsilon$), the algorithm triggers a cache hit and skips the expensive network evaluation. To prevent approximation errors from compounding over long sequences, a hyperparameter $n$ enforces a maximum number of consecutive cache reuses before a mandatory refresh.
Because computing exact Jacobians at every step is too expensive, the authors approximate $\|J_x\|$ and $\|J_t\|$ offline using efficient directional finite-difference (secant) methods on a tiny calibration dataset.
Datasets
- Calibration: The sensitivity profiles are precomputed using just 8 diverse videos from the MixKit dataset.
- Evaluation: The framework was evaluated across the full prompt set of VBench (a comprehensive video generation benchmark).
- Ablation Studies: A subset of 70 prompts randomly selected from T2V-CompBench (10 per category) was used to ablate hyperparameters.
Key Insights and Ideas
- Both Latent and Timestep Sensitivities Matter: Through empirical analysis, the authors discovered that the network's prediction is highly sensitive to both the latent drift and the timestep spacing. Caching based on only one of these factors introduces significant error.
- Unifying Prior Heuristics: The sensitivity framework beautifully explains why previous methods work and where they fail. The authors show that TeaCache primarily approximates the timestep sensitivity term ($\|J_t\| |\Delta t|$), while MagCache focuses on the latent residual term ($\|J_x\| \|\Delta x_t\|$). SenCache unifies them into a single, principled metric.
- Extreme Data Efficiency: Surprisingly, sensitivity statistics are incredibly stable. Profiling the network on just 8 diverse videos yields nearly identical sensitivity curves to profiling on 4,096 videos, making the offline calibration step practically free.
Key Results
SenCache was validated on three state-of-the-art video diffusion models: Wan 2.1, CogVideoX, and LTX-Video. Under identical computational budgets (measured by the Number of Function Evaluations, or NFEs), SenCache consistently outperforms TeaCache and MagCache across standard visual quality metrics (LPIPS, PSNR, SSIM).
- Wan 2.1 (Fast Regime): At an NFE of 21 (a ~58% cache ratio), SenCache-fast achieved an LPIPS of 0.0540, outperforming MagCache-fast (0.0603) and TeaCache-fast (0.0966), demonstrating much better preservation of fine visual details.
- CogVideoX & LTX-Video: In aggressive caching regimes (high speedups), prior methods suffered severe quality degradation, whereas SenCache maintained significantly higher structural fidelity and lower perceptual error.
Limitations and Future Work
- First-Order Approximation Limits: SenCache relies on a linear, first-order surrogate to estimate output changes. In highly non-linear regimes of the denoising trajectory, this approximation degrades, which is why the consecutive cache length ($n$) must be strictly capped (optimally at $n=3$ or $n=4$).
- Fixed Thresholding: The tolerance threshold $\varepsilon$ is currently kept static throughout the generation process. The authors note that dynamically scheduling $\varepsilon$ (e.g., allowing more error at less critical denoising stages) could unlock even higher speedups.
- Modality Expansion: While this work focused exclusively on video generation, the underlying mathematical principle of sensitivity-aware caching is general and could easily be extended to other diffusion domains like audio or human motion synthesis.
Summary updated