QuantWM:面向视频世界模型的时间一致2比特KV缓存量化

·

研究论文 · 2026/10/06

视频世界模型通过在生成过程中存储 KV 缓存来实现长时程时间一致性,但不断增长的缓存使 KV 缓存内存成为主要部署瓶颈,这促使了低比特量化研究以提高效率。现有的 2 比特 KV 缓存量化方法在 VBench 上可以达到近乎无损的性能,然而当应用于视频世界模型时,我们发现它们仍会导致严重的时间闪烁和视觉退化。同时,更深入的研究表明,Key 量化比 Value 量化产生更小的重建误差,但令人惊讶的是会导致更大的输出退化。我们将这一差异追溯到视频世界模型中的注意力机制:Key 扰动会改变注意力 logits,并偏移 Query 选择的时间-空间 token。这些观察促使我们在 KV 缓存量化过程中保留注意力 logits 和时间-空间 token 选择。为了解决这个问题,我们提出了 QuantWM,一个用于视频世界模型的免训练 2 比特 KV 缓存量化框架。QuantWM 引入了两种互补技术来缓解注意力偏移。首先,量化敏感度感知聚类(QSAC)联合考虑历史 Query 敏感度和残差范围,以选择对 INT2 友好的 Key 质心,从而减少对注意力更关键的通道中的量化误差。此外,主子空间注意力补偿(PSAC)利用低秩投影沿主导 Query 子空间恢复剩余的 Key 误差,为稳定注意力 logits 提供了直接且高效的校正。在 LingBot-World-v2、HY-World 1.5、Matrix-Game-2、Longcat-Video 和 Causal-Forcing 上的实验表明,QuantWM 显著提高了视觉质量和时间一致性,同时在基准测试中优于现有方法,实现了高达 6.20 倍的 KV 缓存内存压缩和有限的额外开销。

该研究解决了视频世界模型中 KV 缓存内存瓶颈的关键问题,提出的免训练 2 比特量化方法在保持时间一致性的同时大幅压缩内存,具有重要的实际部署价值。

Video world models achieve long-range temporal consistency by storing KV cache during generation, but the growing cache makes KV cache memory a major deployment bottleneck, which motivates low-bit quantization study for efficiency. Existing 2-bit KV cache quantization methods can achieve nearly lossless performance on VBench, however, when applied to video world models, we find they still cause severe temporal flickering and visual degradation. Meanwhile, deeper investigates show that Key quantization produces smaller reconstruction errors than Value, but surprisingly leads to larger output degradation. We trace this discrepancy to attention in video world models: Key perturbations can change the attention logits, and shift the temporal-spatial tokens selected by Queries. These observations motivate us to preserve attention logits and temporal-spatial token selection during KV cache quantization. To address this issue, we present QuantWM, a training-free 2-bit KV cache quantization framework for video world models. QuantWM introduces two complementary techniques to mitigate the attention shifts. Firstly, quantization-sensitivity-aware clustering (QSAC) jointly considers historical Query sensitivity and residual ranges to select INT2-friendly Key centroids, which reduces quantization errors in channels that are more critical to attention. In addition, principal-subspace attention compensation (PSAC) restores the remaining Key errors along the dominant Query subspace using low-rank projections, which provides a direct and efficient correction to stabilize attention logits. Experiments on LingBot-World-v2, HY-World 1.5, Matrix-Game-2, Longcat-Video and Causal-Forcing demonstrate that QuantWM significantly improves visual quality and temporal consistency, while outperforming existing methods across benchmarks with up to 6.20 KV cache memory compression and limited additional overhead.

阅读原文

参与讨论