Budget-Constrained Step-Level Diffusion Caching

Mingkun Lei, Tong Zhao, Liangyu Yuan, Chi Zhang

High-resolution diffusion and flow-matching models, such as FLUX.1 and Wan2.1, produce stunning visuals but require dozens of computationally expensive iterative denoising steps. To accelerate this process, "step-level caching" reuses network outputs from previous steps to skip redundant computations. However, existing methods rely on threshold-based heuristics that react to runtime signals.

BudCache introduces a "budget-first" approach to diffusion model acceleration, replacing unpredictable heuristic caching with optimized, static caching policies. By utilizing a hybrid search strategy and aligning time schedules to specific cache patterns, it achieves up to 3.73x speedups on state-of-the-art models while maintaining significantly higher visual fidelity than existing methods.

The Problem: Unpredictable Latency and Sub-optimal Quality

Current threshold-based caching creates two major deployment headaches for production environments:

  1. Unpredictable Latency: Because caching triggers depend on the specific input and runtime signals, the time it takes to generate an image varies wildly. This makes it difficult to guarantee performance or manage compute clusters efficiently.
  2. Sub-optimal Quality: Local, per-step decisions react to errors as they happen rather than proactively planning a compute strategy. This often fails to preserve global image integrity, leading to degraded final outputs.

The BudCache Solution

BudCache flips this paradigm. Instead of letting error thresholds dictate the runtime cost, users set a fixed compute budget (e.g., exactly 8 Number of Function Evaluations, or NFEs), and the system finds the optimal way to spend it.

Determining which steps to compute versus cache is a massive combinatorial challenge. BudCache tackles this offline using Simulated Annealing (SA) for broad global exploration to find a promising "neighborhood" of steps, followed by deterministic Hill Climbing (HC) for fine-tuned local refinement. This search takes only a few minutes and results in a static policy, ensuring deterministic latency and zero overhead during actual image generation.

Cache-Aware Schedule Alignment

Caching inherently introduces "trajectory drift" because the model operates on stale data. To mitigate this, BudCache treats the time-step schedule ($\sigma$) as learnable parameters. Using a teacher-student distillation approach on a small calibration set (e.g., 100 prompts from MS-COCO), it gently adjusts the time steps to compensate for caching errors without adding any extra compute during inference.

Key Insights

  • The "Inverted-U" Trade-off: The researchers discovered that simply increasing the number of logical steps isn't always beneficial. There is a sweet spot balancing the benefits of a finer-grained ODE trajectory against the errors introduced by the aggressive caching required to stay under budget.
  • Redundancy is Orthogonal to Distillation: Surprisingly, BudCache provides meaningful speedups even on "few-step" models like Hyper-SD, which are already distilled down to 8 steps. This indicates that the temporal redundancy exploited by caching is fundamentally different from the redundancy removed during model distillation.
  • Cross-Model Transferability: A caching policy optimized on a smaller model (e.g., Wan2.1 1.3B) transfers effectively to a much larger version (14B). This allows for "cheap" optimization that scales seamlessly to massive models.

Experimental Results

Evaluated across FLUX.1-dev (image), Wan2.1-T2V (video), and Hyper-SD using benchmarks like DrawBench and GenEval, BudCache consistently outperformed state-of-the-art baselines like TeaCache and LeMiCa.

  • Image Quality: On FLUX.1-dev at a 2.51x speedup tier, BudCache achieved an LPIPS score of 0.1759, nearly doubling the visual fidelity of TeaCache (0.3218) under the exact same budget. Qualitative results show BudCache is significantly better at preserving fine details that usually break under aggressive caching, such as text rendering and intricate geometric structures.
  • Video Efficiency: For Wan2.1 video generation, BudCache reduced latency from 189 seconds to just 82 seconds (compared to TeaCache's 100s) while maintaining a significantly higher reconstruction accuracy (PSNR of 25.93 vs. 21.52).

Limitations and Future Directions

While highly effective, BudCache currently requires a new search for every specific model and NFE budget combination. Although the search is fast, a more "universal" policy would streamline deployment further. Additionally, applying schedule alignment to high-resolution video remains computationally prohibitive due to the massive memory requirements of backpropagating through a video trajectory.

Future work may explore combining this global budget-aware approach with input-dependent adaptation, paving the way for instance-adaptive caching that remains strictly within a predefined compute budget.

Summary updated

BibTeX
@inproceedings{lei2026budget,
  author = {Mingkun Lei and Tong Zhao and Liangyu Yuan and Chi Zhang},
  title = {{Budget-Constrained Step-Level Diffusion Caching}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=kN0NMoVWXG},
}
Figure