arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.09045cs.CV
收藏

MagCache:基于幅值感知缓存的快速视频生成

MagCache: Fast Video Generation with Magnitude-Aware Cache

State Key Laboratory of Multimedia Information Processing, School of Computer Science, Peking University(多媒体信息处理国家重点实验室,计算机学院,北京大学);Huawei Inc.(华为公司)

Zehong Ma, Longhui Wei, Feng Wang, Shiliang Zhang, Qi Tian

AI总结:

本文提出 MagCache,利用跨模型和提示词的统一幅值定律,通过误差建模与自适应缓存跳过不重要时间步,仅需单样本校准即可在多个视频扩散模型上实现 2.10-2.68 倍加速并保持高视觉质量。

摘要:

现有的视频扩散模型加速技术通常依赖统一启发式或时间嵌入变体来跳过时间步并重用缓存特征。这些方法通常需要大量经过筛选的提示词进行校准,并且由于针对特定提示的过拟合,存在输出不一致的风险。本文介绍了一项新颖且稳健的发现:在不同模型和提示词中观察到统一的幅值定律。具体而言,连续残差输出的幅值比率单调递减,在大多数时间步中平稳下降,而在最后几步中迅速下降。利用这一洞察,我们提出了幅值感知缓存(MagCache),它通过误差建模机制和自适应缓存策略来自适应地跳过不重要的时间步。与需要数十个精选样本进行校准的现有方法不同,MagCache 仅需单个样本即可完成校准。实验结果表明,MagCache 在 Open-Sora、CogVideoX、Wan 2.1 和 HunyuanVideo 上实现了 2.10 倍至 2.68 倍的加速,同时保持了卓越的视觉保真度。在相似的计算预算下,它在 LPIPS、SSIM 和 PSNR 指标上显著优于现有方法。

英文摘要:

Existing acceleration techniques for video diffusion models often rely on uniform heuristics or time-embedding variants to skip timesteps and reuse cached features. These approaches typically require extensive calibration with curated prompts and risk inconsistent outputs due to prompt-specific overfitting. In this paper, we introduce a novel and robust discovery: a unified magnitude law observed across different models and prompts. Specifically, the magnitude ratio of successive residual outputs decreases monotonically, steadily in most timesteps while rapidly in the last several steps. Leveraging this insight, we introduce a Magnitude-aware Cache (MagCache) that adaptively skips unimportant timesteps using an error modeling mechanism and adaptive caching strategy. Unlike existing methods requiring dozens of curated samples for calibration, MagCache only requires a single sample for calibration. Experimental results show that MagCache achieves 2.10x-2.68x speedups on Open-Sora, CogVideoX, Wan 2.1, and HunyuanVideo, while preserving superior visual fidelity. It significantly outperforms existing methods in LPIPS, SSIM, and PSNR, under similar computational budgets.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑