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

NanoKV:用于自回归视频生成的高比例KV缓存压缩

NanoKV: High-Ratio KV Cache Compression for Autoregressive Video Generation

Zhejiang University(浙江大学);NVIDIA(英伟达公司)

Jiacheng Lu, Haoyi Zhu, Sipei Yi, Enze Xie, Cheng Zhuo, Yu Li

AI总结:

NanoKV是一种用于自回归视频生成的高比例KV缓存压缩框架,通过针对键值不同角色设计的压缩策略提升质量存储权衡,在HY-WorldPlay上实现26.09倍压缩且PSNR提升1.0dB,其快速变体还可实现约1.15倍端到端加速。

摘要:

自回归视频模型依赖历史键值(KV)缓存来在长序列生成中保持场景一致性,这使得KV存储和对历史的重复注意力计算成为日益增长的内存和计算瓶颈。激进的压缩会降低生成质量,而重建全维度KV则会使注意力计算基本保持不变。我们提出NanoKV,这是一种用于生成感知的高比例KV压缩的冻结骨干框架。NanoKV通过将共享内容存储在聚类中心,并将联合头-通道残差编码为低位系数,从而利用令牌和注意力头之间的冗余。关键的是,NanoKV根据键和值在注意力中的不同角色为它们使用不同的拟合目标:键解码器被优化以保留下游块输出,而值编码器和解码器则通过部署的量化路径拟合以实现忠实重建。基于相同的压缩表示,可选的NanoKV-Fast变体将存储的系数重用于混合维度注意力,无需修改视频骨干即可减少计算。在三个自回归视频骨干上,NanoKV始终改善质量-存储权衡。在HY-WorldPlay上,NanoKV实现了26.09倍的有效KV压缩,几乎是KVTC的两倍,同时将PSNR提高了1.0 dB。NanoKV-Fast保留20.53倍的有效压缩,并实现了比KVTC高约1.15倍的端到端加速。

英文摘要:

Autoregressive video models rely on historical key-value (KV) caches to preserve scene consistency over extended rollouts, making KV storage and repeated attention over history a growing memory and computational bottleneck. Aggressive compression can degrade generation quality, while reconstructing full-dimensional KV leaves attention computation largely unchanged. We introduce NanoKV, a frozen-backbone framework for generation-aware high-ratio KV compression. NanoKV exploits redundancy across tokens and attention heads by storing shared content in cluster centers and encoding joint head-channel residuals into low-bit coefficients. Crucially, NanoKV uses different fitting objectives for Keys and Values according to their distinct roles in attention: Key decoders are optimized to preserve downstream block outputs, whereas Value encoders and decoders are fitted for faithful reconstruction through the deployed quantization path. Building on the same compressed representation, the optional NanoKV-Fast variant reuses the stored coefficients for mixed-dimensional attention, reducing computation without modifying the video backbone. Across three autoregressive video backbones, NanoKV consistently improves the quality-storage trade-off. On HY-WorldPlay, NanoKV achieves $26.09\times$ effective KV compression, nearly twice that of KVTC, while improving PSNR by 1.0 dB. NanoKV-Fast retains $20.53\times$ effective compression and achieves an approximately $1.15\times$ end-to-end speedup over KVTC.

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

相关深度报道

↑