NanoKV: High-Ratio KV Cache Compression for Autoregressive Video Generation
Jiacheng Lu, Haoyi Zhu, Sipei Yi, Enze Xie, Cheng Zhuo, Yu Li
Abstract
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 effective KV compression, nearly twice that of KVTC, while improving PSNR by 1.0 dB. NanoKV-Fast retains effective compression and achieves an approximately end-to-end speedup over KVTC.
Create a lesson
Metadata
- Comments
- 25 pages, 13 figures. Project page: https://jiacheng-lu03.github.io/NanoKV/ . Code: https://github.com/jiacheng-lu03/NanoKV
Related papers
GenRA: Ultra-Low-Bitrate Generative Video Compression via Representation Adaptation
Shared title terminologycs.CVJiancheng Zhao, Jixiang Luo, Haibin Huang et al.
GeoMVGen: Joint Appearance-Geometry Modeling for Multi-View Video Generation in Robotic Manipulation
Shared title terminologycs.CVQiaoqiao Jia, Guile Wu, Dongfeng Bai
Your Codec, Your Generator: Idempotent Generative Compression without Retraining
Shared title terminologycs.CVRaz Haim, Assaf Shocher
AdProducer: Towards Agentic Advertising Video Generation
Shared title terminologycs.CVKunyang Li, Chaoyang Wang, Mubarak Shah et al.
Lyris: Layout-Guided Long Video Generation with Persistent 3D Memory
Shared title terminologycs.CVChen Wang, Jiahui Huang, Riccardo de Lutio et al.
On-Policy Codec Distillation for Efficient All-in-One Video Generation
Shared title terminologycs.CVBoyang Wang, Kevin Blackburn-Matzen, Oindrila Saha et al.