Budget-Constrained Step-Level Diffusion Caching

Mingkun Lei, Tong Zhao, Liangyu Yuan, Chi Zhang
6/11/2026
cs.CV

Official code: Westlake-AGI-Lab/BudCache (11 stars, Apache-2.0, last commit 2026-06-03).

Abstract

Step-level caching accelerates diffusion models by exploiting temporal redundancy across denoising steps. Existing methods make per-step cache decisions using threshold-based heuristics, without directly optimizing for final output quality. As a result, their inference latency varies across inputs and is difficult to control at deployment. In this work, we propose BudCache, which inverts this formulation: rather than letting per-step error thresholds dictate the runtime cost, we fix the compute budget in advance and search for the cache policy that best preserves the final output. To tackle the combinatorial complexity of step selection, we combine Simulated Annealing with deterministic Hill Climbing. This offline search identifies high-quality cache policies within minutes and introduces no online search or thresholding overhead during inference. When the compute budget is very tight, we further introduce cache-aware schedule alignment, which adapts the time discretization to the selected cache policy to reduce cache-induced trajectory mismatch. Experiments on FLUX.1-dev and Wan2.1 show that BudCache achieves better generation quality than heuristic caching baselines under the same inference budgets. Code is available at https://github.com/Westlake-AGI-Lab/BudCache

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[ICML 2026] PyTorch implementation of BudCache

111Shell, PythonMay 15, 20264 months agoApache-2.0

Similar Papers

Cite this paper

@article{lei2026budgetconstrained,
  title  = {Budget-Constrained Step-Level Diffusion Caching},
  author = {Mingkun Lei and Tong Zhao and Liangyu Yuan and Chi Zhang},
  year   = {2026},
  eprint = {2606.13496},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.13496v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.13496.svg)](https://codeofpaper.com/paper/2606.13496)

Discussion