让循环做决定:用于循环扩散Transformer的无训练循环引导缓存
Let the Loop Decide: Training-Free Loop-Guided Caching for Looped Diffusion Transformers
AI总结:
针对循环扩散Transformer采样缓慢的问题,提出无训练的LoopCache方法,通过自适应预热和漂移校正速度缓存实现加速,在3.5倍和4.8倍加速下保持99%以上原始平均分数,生成图像更接近完整模型结果。
摘要:
更大的扩散Transformer(DiT)以更多参数为代价生成更高质量的图像,循环DiT通过在每个采样步骤运行一组共享块多次来避免这一问题,但由于每个步骤都运行完整网络(包括共享块的多次传递),其采样仍然缓慢。无训练缓存方法通常在所有提示的固定完整步骤预热后复用缓存结果,但在循环DiT上,我们发现不同图像需要不同数量的预热步骤,因此固定预热会对部分图像浪费完整步骤,而对另一些图像则不足。我们因此提出LoopCache,一种让循环决定缓存何时开始的无训练缓存方法。其自适应预热监控循环更新(即循环传递产生的总变化),并在该更新稳定后结束。与现有方法监控的输出变化相比,循环更新能更好区分需要长预热和短预热的图像。预热后,经漂移校正的速度缓存会复用跳过步骤的速度,这比常用的复用残差更准确,且每次刷新时会应用校正,补回这些步骤遗漏的位移。两个组件均无需额外前向传播。在3.5倍和4.8倍加速下,LoopCache生成的图像比现有缓存方法更接近完整模型的结果,且保持了99%以上的原始平均分数。
英文摘要:
Larger diffusion transformers (DiTs) generate higher-quality images at the cost of many more parameters. Looped DiTs avoid this by running a shared group of blocks several times per sampling step. However, their sampling remains slow, since every step runs the full network, including several passes of the shared blocks. Training-free caching methods typically reuse cached results after a warm-up of full steps fixed for all prompts, but on Looped-DiT, we find that different images need different numbers of warm-up steps, so a fixed warm-up wastes full steps on some images and is insufficient for others. We thus propose $LoopCache$, a training-free caching method that lets the loop decide when caching starts. Its adaptive warm-up monitors the loop update, i.e. the total change made by the loop passes, and ends once this update settles. Compared with the output change monitored by existing methods, the loop update better separates images that need a long warm-up from those that need a short one. After the warm-up, a drift-corrected velocity cache reuses the velocity on the skipped steps, which is more accurate than the commonly reused residual, and at each refresh applies a correction that adds back the displacement these steps missed. Neither component requires extra forward passes. At $3.5\times$ and $4.8\times$ speed-ups, LoopCache generates images closer to the full model's than existing caching methods and keeps over 99% of the original average score.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。