TL;DR
QuantWM introduces a training-free, strictly causal 2-bit KV cache quantization framework designed specifically for video generation and world models. By identifying that Key quantization errors cause severe attention token-selection shifts (leading to temporal flickering), the authors propose sensitivity-aware clustering and low-rank attention compensation to preserve visual quality. The method achieves up to 6.20× memory compression with minimal computational overhead and significantly improved temporal consistency.
What Problem Does This Paper Address?
Autoregressive video generation and interactive world models rely heavily on Key-Value (KV) caches to store historical context, preventing the need to recompute the entire history at every step. However, as the number of spatial-temporal tokens grows, the KV cache becomes an immense memory bottleneck—generating just a 5-second video can demand over 21 GiB of memory.
While existing 2-bit quantization methods compress this cache effectively and score well on standard video benchmarks like VBench, they suffer from a hidden flaw: they introduce severe temporal flickering, blurring, and visual artifacts.
The authors investigate this discrepancy and uncover a counterintuitive phenomenon: Key quantization causes far worse visual degradation than Value quantization, even though Keys exhibit smaller reconstruction errors. This happens because small perturbations in the Keys alter the attention logits ($QK^\top$), causing the model to abruptly shift which historical frames or spatial regions it attends to from one step to the next.
Methods
To stabilize attention behavior without expensive retraining, QuantWM introduces two complementary, training-free techniques:
- Quantization-Sensitivity-Aware Clustering (QSAC): Instead of using standard K-means clustering to find quantization centroids based purely on spatial distance, QSAC incorporates historical Query sensitivity and the dynamic range of residuals. By utilizing a diagonal approximation of historical Query statistics, it prioritizes minimizing quantization errors in the specific channels that impact attention logits the most.
- Principal-Subspace Attention Compensation (PSAC): Because 2-bit quantization has limited capacity, some attention shift remains. PSAC exploits the low-rank structure of hidden representations in Transformers. The authors found that the top-8 directions capture over 60% of the total Query energy. PSAC projects the remaining Key quantization errors onto this dominant Query subspace during inference, applying a direct, low-rank correction to stabilize the attention logits.
Datasets
The framework was evaluated across five diverse, open-source autoregressive video generation and world models:
- LingBot-World-v2
- Matrix-Game-2 (evaluated using official first-frame images combined with action sequences)
- HY-World 1.5
- Causal-Forcing
- Longcat-Video
Evaluations were performed on 480p and 720p generated videos (93 frames each), utilizing text prompts from the MovieGen Benchmark.
Key Insights and Ideas
- The Benchmark Blindspot: Standard video benchmarks like VBench can completely miss severe temporal flickering. Because VBench evaluates overall frame quality and semantic consistency, localized frame-to-frame jittering passes undetected even when the video is visually jarring to a human observer.
- Key Sensitivity > Value Sensitivity: In attention mechanisms, Keys act as the routing mechanism. A small error in a Value tensor only slightly degrades the output features, but a small error in a Key tensor can completely reroute a Query to the wrong frame or spatial patch.
- Low-Rank Query Energy: Query distributions in video transformers are highly concentrated. This "sparsity" in the frequency/energy domain means you don't need to correct the entire Key error matrix; correcting it along just the top 8 principal components is enough to rescue attention fidelity.
Key Results
- Massive Memory Savings: QuantWM achieves up to 6.20× KV cache compression. For instance, on HY-World 1.5, it slashes the KV cache footprint from 12.09 GiB down to 1.95 GiB.
- Superior Visual Fidelity: QuantWM consistently outperforms existing low-bit quantization baselines (like QVG and KIVI) across frame-level metrics. On LongCat-Video, it boosts PSNR from 20.683 (QVG) to 25.508 and drops LPIPS from 0.0784 to 0.0332.
- Drastic Reduction in Token Shifts: The top-1 temporal-spatial token selection shift ratio was reduced significantly (e.g., from 61.36% down to 13.92% on HY-World 1.5), proving that the attention mechanism was successfully stabilized.
- Hardware Efficiency: Implemented via customized Triton kernels, QuantWM introduces minimal end-to-end latency overhead (typically ~5%). In memory-bound scenarios involving heavy cache offloading (like LongCat-Video), it actually reduced generation latency by 17.78% due to minimized data transfer times.
Limitations and Future Work
- Cold-Start Phase: At the very beginning of video generation, historical Query statistics are unavailable. QuantWM handles this using a simple causal initialization strategy (falling back to uniform channel sensitivity for the first chunk), meaning the very first frames do not benefit from full optimization until statistics accumulate.
- Model-Dependent Latency: The latency benefits are highly dependent on hardware configurations. On systems where the KV cache fits entirely within GPU memory, the extra compute required for online clustering and low-rank projection represents a pure overhead, whereas memory-bound systems see a net speedup. Future work could explore hardware-software co-design to further alleviate this compute overhead.
Summary updated