Manuscript Offprint

arXiv:2611.06377

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

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Jiacheng Lu 1^{1} Haoyi Zhu 2^{2} Sipei Yi 1^{1} Enze Xie 2^{2} Cheng Zhuo 1^{1} Yu Li 1∗^{1*}

1^{1}Zhejiang University 2^{2}NVIDIA

Project Page GitHub

Figure

Figure 1: NanoKV achieves high-ratio historical KV compression while preserving generated video quality across three autoregressive video backbones. Displayed PSNR is measured against the matched Original rollout. NanoKV reaches up to 26.09×26.09\times effective KV compression and reduces measured peak GPU memory by up to 35.9%.

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 26.09×26.09 \times effective KV compression—nearly

∗^{*}Corresponding author: Yu Li at yu.li.sallylee@gmail.com.

twice that of KVTC—while improving PSNR by 1.0 dB. NanoKV-Fast retains 20.53×20.53\times effective compression and achieves an approximately 1.15×1.15\times end-to-end speedup over KVTC.

1 INTRODUCTION

Autoregressive video models rely on historical Key and Value (KV) caches to preserve objects, layout, and appearance over extended rollouts and when revisiting earlier views (Sun et al., 2026; Qian et al., 2026; Gao et al., 2026). Growing history creates a systems bottleneck: retaining KV consumes GPU memory, while repeatedly attending to it increases computation. Reducing the history window or evicting cached tokens lowers these costs, but also removes scene information that may become important later in the rollout.

KV feature compression offers a complementary solution: quantization and low-rank projection reduce each token's bitwidth or feature dimension without shortening history (Xi et al., 2026; Staniszewski & Łańcucki, 2026). At high compression ratios, however, two challenges become critical. First, compression must preserve not only the reconstructed KV features, but also their downstream effect on generation. KV reconstruction errors perturb attention outputs and propagate through subsequent Transformer blocks, so minimizing KV reconstruction error alone does not fully capture compression-induced generation distortion. Second, compact storage does not automatically yield compact computation. Compressed storage saves memory, but full-dimensional reconstruction leaves historical-attention computation largely unchanged.

We introduce NanoKV, a frozen-backbone framework for high-ratio historical KV compression. Our key observation is that effective compression should preserve how historical KV is used by the generator, not merely how accurately the cache tensors are reconstructed. NanoKV first exploits redundancy in video KV by jointly encoding token-specific residuals relative to shared centers across heads and channels, yielding a compact low-bit representation without discarding historical tokens. To preserve generation under aggressive compression, we further adapt the Key and Value encoders and decoders (codecs) according to their distinct roles in attention: Key decoders are optimized through block-output alignment to preserve downstream Transformer behavior, while Value codecs are fitted through the deployed quantization path for faithful low-bit reconstruction. Together, these enable substantially higher compression without retraining the backbone.

The same compressed representation also provides a direct path to lower computation. Instead of reconstructing all history at full dimension, optional NanoKV-Fast reuses the coefficients for mixed-dimensional attention, assigning lower dimensions to less sensitive history and higher or full dimensions where needed. The same compressed history thus supports both high-fidelity reconstruction and compute-efficient attention.

Our main contributions are:

  • Generation-aware high-ratio KV compression. We formulate high-ratio historical KV compression around preserving the downstream effect of compressed history on generation, rather than KV reconstruction fidelity alone. This perspective motivates compression objectives that account for how the frozen video backbone uses historical KV.

  • Structure- and role-aware KV compression. We instantiate this principle in NanoKV through shared-center residual coding, joint head-channel compression, and role-specific K/V fitting. Key decoders are optimized to preserve downstream block outputs, while Value codecs are fitted through the deployed quantization path for faithful low-bit reconstruction.

  • Turning compressed storage into efficient attention. The optional NanoKV-Fast variant directly constructs mixed-dimensional attention features from NanoKV's compressed coefficients, reducing historical-attention computation without modifying the backbone.

Across three autoregressive video backbones, NanoKV consistently improves the quality–storage trade-off, reaching up to 26.09×26.09\times effective KV compression. NanoKV-Fast achieves lower end-to-end latency than all evaluated competing compression baselines.

Figure

Figure 2: Comparison of NanoKV(-Fast) with representative KV compression and attention-access baselines. (a) VideoMLA modifies KV projections and adapts the model for shared latent-space attention. (b) KVTC preserves the original projections but reconstructs full-dimensional KV before attention. (c) NanoKV preserves the original projections and frozen backbone, using generation-aware, role-specific K/V fitting; optional NanoKV-Fast reuses the coefficients for mixed-dimensional attention. h1,…,hHh_1, \ldots, h_H denote attention heads.

References (60)