arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.28192cs.CVcs.AIcs.LG
收藏

离线优化助力在线提升:面向视频生成的校准型缓存压缩

Offline Makes Online Better: Calibrated Cache Compression for Video Generation

Homenet Research;CarryAI;Australian National University(澳大利亚国立大学)

Zhen Wang, Ning Lai, Qingtao Yu

AI总结:

该研究针对自回归视频生成的KV缓存压缩问题,提出CALM方法,通过离线校准构建层-头风险图,结合动态规划分配合并比例,在相同内存预算下较统一合并降低LPIPS约21%,提升视频质量。

摘要:

Token合并是自回归视频生成中降低KV缓存内存消耗的有效方法,通过对时间冗余token进行聚类,仅保留少量代表性token。然而现有方法通常在所有注意力层和注意力头中采用统一的合并比例。我们观察到,不同层和注意力头对token合并的敏感性存在显著差异且具有联合相关性,且这些敏感性模式在不同提示下保持一致。基于该观察,我们提出CALM(Layer-Head合并的校准型分配方法),其利用离线校准来改进在线缓存压缩。穷举评估所有可能的层-头分配的成本过高,为实现高效校准,我们发现注意力输出误差与端到端视频质量高度相关,因此可作为分配风险评估的轻量代理。我们使用该代理评估不同分配策略,并离线构建固定的层-头风险图。在推理时给定缓存预算,CALM使用动态规划确定合并比例的最优分配。在三种不同的自回归视频模型上进行的实验表明,在相同内存预算下,CALM的性能始终优于统一token合并,其将原始视频的LPIPS降低约21%,同时获得更高的视频质量分数。

英文摘要:

Token merging is an effective approach to reducing KV-cache memory consumption in autoregressive video generation by clustering temporally redundant tokens and retaining only a small set of representatives. Existing methods, however, typically apply a uniform merging ratio across all attention layers and heads. We observe that different layers and heads exhibit substantially different yet jointly correlated sensitivities to token merging, and that these sensitivity patterns remain consistent across prompts. Based on this observation, we introduce CALM, a Calibrated Allocation for Layer-Head Merging that uses offline calibration to improve online cache compression. Exhaustively evaluating all possible layer-head allocations is prohibitively expensive. To enable efficient calibration, we show that attention-output error strongly correlates with end-to-end video quality and can therefore serve as a lightweight proxy for allocation risk assessment. We evaluate different allocation strategies using this proxy and construct a fixed layer-head risk map offline. Given a cache budget at inference time, CALM uses dynamic programming to determine the best allocation of merging ratios. Experiments across three different autoregressive video models demonstrate that CALM consistently outperforms uniform token merging under the same memory budget, by reducing the LPIPS to original videos by around 21% with higher video-quality scores.

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

↑