TL;DR
Speeding up diffusion models often involves caching intermediate neural network outputs and using cheap "proxy" signals to guess when that cache goes stale. Because those guesses are noisy, they either ruin image quality by reusing stale data or kill your speedup by refreshing too often. Conformal Cache (CCache) wraps a statistical safety net around existing caching methods, guaranteeing reliable quality at high speeds without retraining a single weight.
What Problem Does This Paper Address?
Generating high-definition images or videos with diffusion and flow-based models requires running a massive neural network dozens of times sequentially. Fortunately, adjacent steps are often remarkably similar. Cache-based acceleration exploits this by reusing intermediate computations from previous steps until things change "too much."
How do you know when things have changed too much without running the full network to check? Existing methods (like TeaCache or DiCache) use a lightweight proxy discrepancy—such as changes in shallow-layer features or timestep embeddings—to estimate the true, inaccessible oracle discrepancy (the actual difference in full model outputs).
The catch is that a cheap proxy is just a heuristic point estimate. Across weird prompts or complex motion, it inevitably misaligns with reality, leading to two asymmetric failure modes:
- Proxy Underestimation (Unsafe): The proxy thinks everything is fine when the true error has blown past safe limits. Stale cache is reused, errors compound iteratively, and your generated video collapses into visual soup.
- Proxy Overestimation (Inefficient): The proxy panics early and triggers a full network refresh unnecessarily. Quality stays intact, but your inference speedup evaporates.
Methods
Instead of inventing yet another proxy, the authors reframe cache refreshing as a one-sided risk-control problem. CCache is a training-free, plug-and-play calibration layer built on two main ideas:
- Timestep-wise Conformal Correction: Using a tiny calibration set of prompts (e.g., $N=100$), the authors run full un-cached inference once to record the exact signed gap between the oracle discrepancy and a baseline's proxy discrepancy at every timestep. Using Split Conformal Prediction (a standard statistical tool for distribution-free uncertainty bounds), they calculate an upper quantile (say, 95%) for this gap. During live inference, this calibrated safety margin is added directly to the proxy score, statistically bounding the risk of dangerous underestimation.
- Online Miscoverage Adaptation: A fixed 95% safety margin can be overly cautious on "easy" prompts, hurting speed. Notice, however, that whenever a cache refresh is triggered, you run the full model—meaning you suddenly get to see the true oracle output for free! CCache checks if the just-finished cache segment actually violated the error threshold. If it was well within safe limits, CCache slightly relaxes the safety margin for the next segment; if it violated the threshold, it immediately snaps back to conservative high-coverage bounds.
Datasets
Because CCache is training-free, no training datasets are used. Evaluation and calibration are conducted on:
- VMBench: A perception-aligned video generation benchmark evaluating motion smoothness, object integrity, and temporal coherence across diverse dynamic scenes.
- HPSv3 (via HPDv3): A human-preference benchmark for text-to-image alignment and perceptual quality, comprising 12,000 prompts across 12 categories.
- VBench: Used specifically to sample 100 out-of-distribution (OOD) calibration prompts to test cross-dataset transferability.
Key Insights and Ideas
- Don't aim for average accuracy; bound the worst-case tail: Standard proxies try to minimize two-sided error, which leaves a long, dangerous tail of underestimation. Treating the proxy-to-oracle gap as a signed nonconformity score lets you chop off the quality-destroying tail while letting online adaptation handle the efficiency side.
- Calibration requires minuscule data and generalizes across domains: You only need 25 to 100 prompts to get stable conformal bounds. Surprisingly, calibrating on VBench prompts transfers seamlessly to VMBench evaluation (scoring 61.18 vs. 61.20 in-domain), likely because prompts pass through the same shared text encoder.
- Bigger models benefit more: Constraining unsafe cache reuse yields larger quality jumps on 14B-parameter models than 1.3B models, suggesting statistical calibration helps unlock the fragile, high-end capabilities of massive backbones during accelerated sampling.
Key Results
Tested on FLUX.1-dev (image) and Wan2.1-1.3B / 14B (video) atop TeaCache and DiCache baselines (with cache thresholds adjusted to match speedups):
- Matched Speed, Better Quality: On Wan2.1-14B at a ~2.05× speedup, adding CCache to TeaCache boosts the average VMBench score from 64.97 to 67.29.
- Aggressive Caching Shines: On FLUX.1-dev at ~3× speedup, TeaCache+CCache achieves 3.14× speedup while lifting average HPSv3 scores from 8.38 to 9.54 over baseline TeaCache (2.99× speedup).
- Adaptation Saves Speed: Fixing the conformal bound without online adaptation preserves quality (60.32 VMBench) but drops Wan2.1-1.3B speedup from 2.07× down to 1.72×.
- Visual Fidelity: Qualitatively, CCache eliminates merged zebra stripes, distorted building windows, and duplicated bird heads seen in uncalibrated baselines.
Limitations and Future Work
The authors explicitly note a theoretical subtlety: their split conformal guarantee is timestep-wise and marginal, meaning it bounds single-step gaps rather than providing a formal, mathematically rigorous coverage guarantee across an entire multi-step trajectory. Because errors are accumulated over segments, CCache acts as a calibrated surrogate. Future work points toward developing broader statistically calibrated, reliability-aware inference mechanisms for generative models.
Summary updated