Quantized Keys Steal Attention: Bias Correction for KV-Cache Compression in Video Diffusion
Pith reviewed 2026-06-29 22:47 UTC · model grok-4.3
The pith
Quantization of KV caches creates Jensen bias that steals attention from current queries in video diffusion, but a per-score correction removes it in expectation.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
A key driver of quality degradation under KV-cache quantization is a systematic bias in attention weights caused by the convexity of the exponential in softmax: quantization noise inflates the contribution of cached keys, an effect termed the Jensen bias that causes those keys to steal attention mass from the unquantized current chunk. A per-attention-score correction removes this bias in expectation and is computed from the quantization step sizes of the cached keys together with the query norm. Using a second-order Taylor approximation, the correction adds negligible overhead and requires no extra memory alongside the cache.
What carries the argument
The Jensen bias correction: a per-attention-score adjustment computed from cached-key quantization step sizes and query norm that removes the expected inflation of attention weights due to convexity of the exponential.
If this is right
- At INT2 the correction brings video quality close to BF16 on MAGI-1, SkyReels-V2 and HY-WorldPlay.
- INT2 with correction can exceed the quality of standard INT4 quantization while using 50 percent less memory.
- The correction needs no additional storage and incurs only negligible extra compute from the Taylor approximation.
- The approach applies to any chunk-wise autoregressive video diffusion model that maintains a growing KV cache.
Where Pith is reading between the lines
- If the same convexity mechanism dominates in other attention-based generators, the correction could be ported to language-model KV caches with similar memory-quality trade-offs.
- The method might allow even lower bit-widths than INT2 if the approximation error remains small on longer sequences.
- Testing the correction on video lengths beyond those reported would show whether error accumulation eventually limits the gains.
Load-bearing premise
That the Jensen bias arising from convexity of the exponential is the primary driver of quality loss under KV quantization and that the second-order Taylor approximation removes it accurately enough without new artifacts.
What would settle it
Measure the distribution of attention weights on quantized versus full-precision keys with and without the correction; if the bias is not removed and quality metrics do not approach BF16 levels, the central claim is falsified.
Figures
read the original abstract
Chunk-wise autoregressive video diffusion models rely on a KV cache of previously generated chunks to avoid redundant computation, but this cache quickly becomes a memory bottleneck as videos grow longer. Methods that quantize the KV cache to low bitwidths reduce memory pressure but degrade video quality. We show that a key driver of this degradation is a systematic bias in attention weights: due to the convexity of the exponential in softmax attention, quantization noise inflates the contribution of cached keys, a phenomenon we call the Jensen bias. This effect causes quantized keys to steal attention mass from the unquantized current chunk. We derive a per-attention-score correction that removes this bias in expectation, computed on the fly from the quantization step sizes of the cached keys and the query norm. Using a second-order Taylor approximation, the additional computational overhead is negligible, and no additional memory is needed alongside the cache. Evaluated on MAGI-1, SkyReels-V2, and HY-WorldPlay at INT2 quantization, our correction recovers most of the quality lost to aggressive quantization, reaching near-BF16 video quality, and can outperform INT4 quantization while using 50% less memory.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The manuscript identifies Jensen bias in softmax attention as a primary cause of quality loss when quantizing the KV cache in chunk-wise autoregressive video diffusion models. It derives an on-the-fly per-score correction term based on the quantization step sizes of cached keys and the query norm, replaces the exact correction with a second-order Taylor expansion in the step size and query norm to keep overhead negligible, and reports that the method restores most of the quality lost at INT2 on MAGI-1, SkyReels-V2, and HY-WorldPlay, reaching near-BF16 levels and sometimes surpassing INT4 while halving memory.
Significance. If the derivation is correct and the second-order approximation remains accurate at INT2 step sizes, the approach offers a parameter-free, zero-extra-memory way to compress KV caches aggressively without retraining or auxiliary storage. This directly targets a scaling bottleneck for long video generation and could be adopted in production inference pipelines. The use of only observable quantities (step sizes and query norm) and the claim of negligible compute cost are notable strengths.
major comments (2)
- [Abstract; derivation of the correction term (presumably §3)] The central claim rests on the second-order Taylor expansion of the Jensen-bias correction being sufficiently accurate at INT2. The abstract and derivation section provide no explicit remainder bound or empirical measurement of the approximation error (e.g., comparison of the exact correction versus the Taylor term across the observed range of ||q|| and Δ). At INT2 the step size is large relative to typical key norms, so higher-order moments of the quantization error can dominate; without this check the “near-BF16 recovery” and “outperforms INT4 at half memory” statements cannot be verified.
- [Evaluation section and associated tables/figures] Table or figure reporting the main INT2 results (the three-model comparison) does not include an ablation that isolates the Taylor approximation itself—e.g., exact correction versus second-order approximation versus no correction. Such an ablation is required to confirm that the reported quality recovery is attributable to the proposed correction rather than other implementation details.
minor comments (2)
- [Abstract] Notation for the quantization step size Δ and the per-head query norm should be introduced once and used consistently; the abstract uses both without prior definition.
- [Evaluation section] The manuscript should state the precise video-quality metric (e.g., VBench, FVD, or human preference) and the number of samples used for the “near-BF16” claim so that the magnitude of recovery can be assessed.
Simulated Author's Rebuttal
We thank the referee for the thoughtful and constructive report. The two major comments both concern validation of the second-order Taylor approximation at INT2. We agree these checks strengthen the paper and will add the requested empirical measurements and ablation in the revision.
read point-by-point responses
-
Referee: [Abstract; derivation of the correction term (presumably §3)] The central claim rests on the second-order Taylor expansion of the Jensen-bias correction being sufficiently accurate at INT2. The abstract and derivation section provide no explicit remainder bound or empirical measurement of the approximation error (e.g., comparison of the exact correction versus the Taylor term across the observed range of ||q|| and Δ). At INT2 the step size is large relative to typical key norms, so higher-order moments of the quantization error can dominate; without this check the “near-BF16 recovery” and “outperforms INT4 at half memory” statements cannot be verified.
Authors: We agree that an empirical measurement of the approximation error is necessary to support the claims at INT2. In the revised manuscript we will add a dedicated figure that directly compares the exact per-score Jensen-bias correction against the second-order Taylor term over the observed ranges of query norm and quantization step size drawn from the three evaluated models. This will quantify the residual error and confirm that higher-order terms remain negligible in practice. revision: yes
-
Referee: [Evaluation section and associated tables/figures] Table or figure reporting the main INT2 results (the three-model comparison) does not include an ablation that isolates the Taylor approximation itself—e.g., exact correction versus second-order approximation versus no correction. Such an ablation is required to confirm that the reported quality recovery is attributable to the proposed correction rather than other implementation details.
Authors: We concur that isolating the contribution of the Taylor approximation is important. The revised evaluation section will include an ablation table (or extended figure) reporting video quality metrics for the three models under three conditions: (i) no correction, (ii) exact Jensen-bias correction, and (iii) the second-order Taylor approximation. This will demonstrate that the quality recovery is driven by the bias correction and that the approximation introduces only minimal additional error relative to the exact term. revision: yes
Circularity Check
No circularity: derivation from Jensen inequality and Taylor expansion on observables
full rationale
The paper's central derivation starts from the known convexity of exp(·) and applies Jensen's inequality to the attention scores, then computes an expectation correction using the quantization step size Δ and query norm ||q||. The second-order Taylor expansion is introduced solely to reduce compute, with all terms expressed directly in terms of these observables. No fitted parameters, no self-referential predictions, and no load-bearing self-citations appear in the described chain. The result is therefore independent of its own outputs and self-contained against external benchmarks.
Axiom & Free-Parameter Ledger
axioms (2)
- standard math The exponential function inside softmax attention is convex, so Jensen's inequality applies to quantized keys.
- domain assumption A second-order Taylor approximation suffices to compute the bias correction on the fly with negligible error.
Reference graph
Works this paper leans on
-
[1]
SkyReels-V2: Infinite-length Film Generative Model
URLhttps://arxiv.org/abs/2504.13074. Shuo Chen, Cong Wei, Sun Sun, Ping Nie, Kai Zhou, Ge Zhang, Ming-Hsuan Yang, and Wenhu Chen. Context forcing: Consistent autoregressive video generation with long context, 2026a. URL https://arxiv.org/abs/2602.06028. Ziyang Chen, Xing Wu, Junlong Jia, Chaochen Gao, Qi Fu, Debing Zhang, and Songlin Hu. Long- bench pro: ...
work page internal anchor Pith review Pith/arXiv arXiv doi:10.48550/arxiv 2022
-
[2]
URLhttps://arxiv.org/abs/2311.17982. Ziqi Huang, Fan Zhang, Xiaojie Xu, Yinan He, Jiashuo Yu, Ziyue Dong, Qianli Ma, Nattapol Chanpaisit, Chenyang Si, Yuming Jiang, Yaohui Wang, Xinyuan Chen, Ying-Cong Chen, Limin Wang, Dahua Lin, Yu Qiao, and Ziwei Liu. Vbench++: Comprehensive and versatile benchmark suite for video generative models, 2024. URLhttps://ar...
-
[3]
URLhttps://arxiv.org/abs/2310.06825. Weijie Kong, Qi Tian, Zijian Zhang, Rox Min, Zuozhuo Dai, Jin Zhou, Jiangfeng Xiong, Xin Li, Bo Wu, Jianwei Zhang, Kathrina Wu, Qin Lin, Junkun Yuan, Yanxin Long, Aladdin Wang, Andong Wang, Changlin Li, Duojun Huang, Fang Yang, Hao Tan, Hongmei Wang, Jacob Song, Jiawang Bai, Jianbing Wu, Jinbao Xue, Joey Wang, Kai Wang...
work page internal anchor Pith review Pith/arXiv arXiv 2025
-
[4]
Accessed: 2026-05-07. Mistral AI. Mistral-7B-Instruct-v0.3 model card. https://huggingface.co/mistralai/ Mistral-7B-Instruct-v0.3, 2024. Accessed: 2026-05-07. Nilesh Prasad Pandey, Marios Fournarakis, Chirag Patel, and Markus Nagel. Softmax bias correction for quantized generative models, 2023. URLhttps://arxiv.org/abs/2309.01729. Qwen. Qwen2.5-32B-Instru...
-
[5]
Wan: Open and Advanced Large-Scale Video Generative Models
URLhttps://arxiv.org/abs/2503.20314. Zhou Wang, Alan C. Bovik, Hamid R. Sheikh, and Eero P. Simoncelli. Image quality assessment: From error visibility to structural similarity.IEEE Transactions on Image Processing, 13(4): 600–612, 2004. B. Widrow, I. Kollar, and Ming-Chang Liu. Statistical theory of quantization.IEEE Transactions on Instrumentation and M...
work page internal anchor Pith review Pith/arXiv arXiv doi:10.1109/19.492748 2004
-
[6]
URLhttps://arxiv.org/abs/2602.02958. Zhuoyi Yang, Jiayan Teng, Wendi Zheng, Ming Ding, Shiyu Huang, Jiazheng Xu, Yuanming Yang, Wenyi Hong, Xiaohan Zhang, Guanyu Feng, Da Yin, Yuxuan Zhang, Weihan Wang, Yean Cheng, Bin Xu, Xiaotao Gu, Yuxiao Dong, and Jie Tang. Cogvideox: Text-to-video diffusion models with an expert transformer, 2025. URLhttps://arxiv.or...
work page internal anchor Pith review Pith/arXiv arXiv 2025
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.