RECAP:用于高效视频扩散的互逆稀疏注意力与分层缓存
RECAP: Reciprocal Sparse Attention and Hierarchical Caching for Efficient Video Diffusion
AI总结:
针对视频扩散Transformer计算成本高的问题,提出无需训练的RECAP方法,通过互逆校正耦合稀疏注意力与分层缓存,在HunyuanVideo 720p 5秒生成任务中实现3.05倍加速,且性能优于相关组合方法。
摘要:
扩散Transformer可生成高质量视频,但计算成本高昂。稀疏注意力和时间缓存分别减少了去噪步骤内部及跨步骤的计算,二者天然可组合。然而,使用稀疏注意力生成的预测结果成为时间复用的来源,其误差会沿采样轨迹耦合。我们观察到,提升这些来源的准确性可在不改变复用调度的情况下恢复保真度,且稀疏化误差在相邻步骤间方向一致,表明校正信息可共享而非重新计算。这些观察催生了RECAP,这是一种无需训练的方法,通过在线误差反馈自适应协调,将稀疏注意力与分层缓存通过互逆校正耦合。缓存的密集细化可校正当前稀疏估计中遗漏的交互,而新鲜的稀疏统计量可跟踪输入变化并调节老化校正。生成的预测随后更新为整步预测复用的来源,使预测历史可在密集刷新之间推进。我们在多个视频扩散模型上,与稀疏注意力方法、缓存方法及其直接组合进行对比评估。在HunyuanVideo 720p 5秒生成任务中,RECAP实现了3.05倍加速,且在保真度和推理速度上均优于所有测试的直接组合方法。
英文摘要:
Diffusion transformers generate high-quality videos but remain computationally expensive. Sparse attention and temporal caching reduce computation within and across denoising steps, respectively, offering a natural composition. However, predictions produced with sparse attention become sources for temporal reuse, coupling their errors along the sampling trajectory. We observe that improving the accuracy of these sources recovers fidelity without changing the reuse schedule, and that sparsification errors remain directionally aligned across nearby steps, suggesting that correction information can be shared rather than recomputed. These observations motivate RECAP, a training-free method that couples sparse attention with hierarchical caching through reciprocal correction, adaptively coordinated by online error feedback. Cached dense refinement corrects omitted interactions in current sparse estimates, while fresh sparse statistics track input changes and regulate the aging correction. The resulting predictions then renew the sources for whole-step prediction reuse, allowing prediction history to advance between dense refreshes. We evaluate RECAP on multiple video diffusion models against sparse-attention methods, caching methods, and their direct compositions. On HunyuanVideo at 720p 5-second generation, RECAP achieves a 3.05x speedup and outperforms all tested direct compositions in both fidelity and inference speed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。