预算约束的步骤级扩散缓存
Budget-Constrained Step-Level Diffusion Caching
AI总结:
提出BudCache方法,通过离线搜索(模拟退火+爬山)在固定计算预算下优化缓存策略,并引入缓存感知调度对齐,以提升扩散模型生成质量。
摘要:
步骤级缓存通过利用去噪步骤间的时间冗余来加速扩散模型。现有方法使用基于阈值的启发式方法进行每步缓存决策,没有直接优化最终输出质量。因此,它们的推理延迟随输入变化,在部署时难以控制。在这项工作中,我们提出了BudCache,它反转了这一公式:不是让每步误差阈值决定运行成本,而是预先固定计算预算,并搜索最能保留最终输出的缓存策略。为了应对步骤选择的组合复杂性,我们将模拟退火与确定性爬山相结合。这种离线搜索在几分钟内找到高质量的缓存策略,并且在推理过程中不引入在线搜索或阈值开销。当计算预算非常紧张时,我们进一步引入缓存感知调度对齐,它使时间离散化适应所选的缓存策略,以减少缓存引起的轨迹不匹配。在FLUX.1-dev和Wan2.1上的实验表明,在相同推理预算下,BudCache比启发式缓存基线实现了更好的生成质量。代码可在以下网址获取:https://this https URL
英文摘要:
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
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。