龟兔引导:利用多速率积分加速扩散模型推理
Tortoise and Hare Guidance: Accelerating Diffusion Model Inference with Multirate Integration
AI总结:
本文提出免训练的龟兔引导(THG)方法,将CFG常微分方程重构为多速率系统,在粗网格上积分附加引导项以减少计算,最多降低30%函数评估次数且几乎不损失生成质量。
摘要:
在本文中,我们提出了龟兔引导(Tortoise and Hare Guidance, THG),这是一种无需训练的策略,可在保持高保真生成的同时加速扩散采样。通过将无分类器引导(classifier-free guidance, CFG)常微分方程重新表述为多速率常微分方程组,我们证明了噪声估计和附加引导项对数值误差表现出显著不同的敏感性。我们的误差界分析表明,附加引导分支对近似更加鲁棒,揭示了传统求解器未能利用的大量冗余。基于这一见解,THG显著减少了附加引导的计算量:噪声估计在原始的细粒度时间步网格上用龟方程进行积分,而附加引导仅在粗网格上用兔方程进行积分。我们还引入了(i)一种误差界感知的时间步采样器,可自适应地选择步长,以及(ii)一种引导尺度调度器,可稳定较大的外推跨度。THG将函数评估次数(NFE)最多减少30%,生成保真度几乎无损失(ΔImageReward ≤ 0.032),并在相同计算预算下优于最先进的基于CFG的免训练加速器。我们的发现凸显了多速率公式在扩散求解器中的潜力,为无需任何模型重训练的实时高质量图像合成铺平了道路。源代码可在 https://github.com/yhlee-add/THG 获取。
英文摘要:
In this paper, we propose Tortoise and Hare Guidance (THG), a training-free strategy that accelerates diffusion sampling while maintaining high-fidelity generation. We demonstrate that the noise estimate and the additional guidance term exhibit markedly different sensitivity to numerical error by reformulating the classifier-free guidance (CFG) ODE as a multirate system of ODEs. Our error-bound analysis shows that the additional guidance branch is more robust to approximation, revealing substantial redundancy that conventional solvers fail to exploit. Building on this insight, THG significantly reduces the computation of the additional guidance: the noise estimate is integrated with the tortoise equation on the original, fine-grained timestep grid, while the additional guidance is integrated with the hare equation only on a coarse grid. We also introduce (i) an error-bound-aware timestep sampler that adaptively selects step sizes and (ii) a guidance-scale scheduler that stabilizes large extrapolation spans. THG reduces the number of function evaluations (NFE) by up to 30% with virtually no loss in generation fidelity ($Δ$ImageReward $\leq$ 0.032) and outperforms state-of-the-art CFG-based training-free accelerators under identical computation budgets. Our findings highlight the potential of multirate formulations for diffusion solvers, paving the way for real-time high-quality image synthesis without any model retraining. The source code is available at https://github.com/yhlee-add/THG.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。