REVIEW 3 major objections 5 minor 38 references
SpindleKV: A Novel KV Cache Reduction Method Balancing Both Shallow and Deep Layers
T0 review · 3 major / 5 minor · reviewed 2026-08-06 · deepseek-v4-flash
Pith's one-line read SpindleKV claims that compressing shallow-layer KV caches with a similarity-based codebook while evicting tokens in deep layers matches or beats pyramid-style eviction baselines at the same or smaller cache.
desk verdict SpindleKV is a genuinely mixed-method KV compression idea with consistent empirical wins, but its load-bearing memory-ratio formula and GQA accounting need a measured-memory check before the same-budget claims can be trusted. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
Three parts carry the argument. First, eviction: accumulated attention scores $ac_{i,a}$ over an observation window pick the top-$k$ tokens, with $k$ set by a linear layer-wise interpolation of reserve ratios. Second, replacement: normalized K/V vectors become nodes of a cosine-similarity graph $G_\Gamma$; greedy max-degree selection builds the codebook $C_\Gamma$, per-token references $r_\Gamma$, and stored magnitudes $m_\Gamma$, and reconstruction is $\Gamma_r = C_\Gamma[r_\Gamma] \otimes m_\Gamma$. Third, the claimed memory accounting: the effective layer reserve ratio is $r_\lambda = r_\lambda^1 \times r_\lambda^2 \times r_\lambda^3$, multiplying the eviction ratio, the codebook reference ratio, and a dtype-conversion factor that accounts for storing integer indices and float magnitudes.
What would settle it
Profile the actual KV-cache GPU memory of SpindleKV and of a pyramid-eviction baseline on the same LongBench prompt and generation length, using the exact reserve ratios reported in Tables 1 and 10; if SpindleKV's measured peak KV memory exceeds the baseline's at a ratio it claims is equal or smaller, the paper's central efficiency claim is falsified. A simpler check is to inspect the stored per-head index arrays after GQA unfolding: if the codebook references are duplicated across heads instead of shared, the second factor of Equation (15) underestimates the true footprint.
Extended reading notes
Core claim
The paper's central claim is that shallow-layer KV caches have high cosine similarity among their constituent vectors, so they can be replaced by a small codebook of basis vectors with per-token references and magnitudes, while deep-layer caches have sparse attention patterns that favor token eviction. SpindleKV combines the two: deep layers use accumulated-attention-score eviction with a pyramid-shaped layer-wise allocation, and shallow layers use the codebook replacement, with the codebook updated online during decoding. The paper further claims that this design fixes the Grouped-Query Attention dilemma by repeating KV heads before per-head eviction and letting the codebook absorb the duplication. Empirically, the authors report that SpindleKV outperforms PyramidKV and PyramidInfer on LongBench across three models at equal or slightly lower reserve ratios, and that at 15 percent cache it retains retrieval quality on Needle-in-a-Haystack that the baselines lose.
Load-bearing premise
Everything hinges on Equation (15)'s claim that the end-to-end reserve ratio is just the product of the eviction ratio, the codebook reference ratio, and the dtype factor; if the per-head index state after GQA unfolding or the re-expanded key/value copies at inference cost memory that this formula does not count, SpindleKV's headline 'same or better accuracy at the same cache size' comparisons against the baselines do not hold.
Editorial extensions
If this is right
- Long-context inference can retain full-accuracy quality at roughly 40 percent of the original KV cache, and at 50 percent in some settings according to the paper's LongBench results.
- Shallow layers cease to be the hard bottleneck for cache compression once their near-duplicate vectors are handled by a codebook rather than by eviction.
- Grouped-Query Attention models can be compressed by per-head eviction after repeating KV heads, if the resulting duplication is absorbed by the codebook.
- The paper's observation of layer-dependent cosine similarity suggests that direction and magnitude carry separable information, opening a compression axis beyond token-level importance.
- At aggressive ratios around 15 percent, the method preserves retrieval ability better than pyramid-shaped eviction baselines, per the Needle-in-a-Haystack experiments.
Reading between the lines
- The same codebook idea could be applied to intermediate and even deep layers with a lower similarity threshold, since the redundancy is reported to decrease gradually rather than stop at a layer boundary.
- A testable extension is to make the similarity threshold $\theta$ layer- or head-adaptive, which could squeeze additional compression from the codebook without changing the eviction policy.
- The reserve-ratio identity in Equation (15) is an analytic claim; verifying it with direct GPU memory measurements, rather than formula-based ratios, would settle whether the 'same or better at the same cache' comparisons hold in practice.
- If the codebook stores magnitudes per token and references per head after GQA unfolding, its true overhead may exceed the reported $r_\lambda^2 \times r_\lambda^3$ factor, a discrepancy that a memory profiler could expose.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper proposes SpindleKV, a KV-cache reduction method that applies attention-weight-based token eviction in deeper layers and a codebook-based token replacement in shallower layers, with a repeat-and-codebook step intended to handle Grouped-Query Attention. The method is evaluated on LongBench and Needle-in-a-Haystack using LLaMA2-7B-chat, LLaMA3-8B-instruct, and Mistral-7B-instruct-v0.2, reporting accuracy at reserve ratios around 14--41%. The central claim is that SpindleKV achieves the same or better accuracy than PyramidInfer and PyramidKV at equal or slightly lower reserve ratios, and in some settings reaches roughly 50% cache reduction without accuracy loss. The code is publicly available.
Significance. If the memory accounting is valid, SpindleKV is a useful contribution: it combines two complementary compression mechanisms (eviction and replacement), explicitly targets shallow-layer redundancy that eviction methods miss, and addresses the GQA compatibility issue by unfolding and then codebook-compressing. The evaluation covers three models and two benchmarks, and the paper includes ablations for the repeat operation, the codebook alone, and magnitude reconstruction. The method is evaluated on external benchmarks rather than fitted to them, and the reported gains over PyramidInfer and PyramidKV are consistent across many settings. However, the headline comparisons are same-budget comparisons, and the budget formula in Eq. (15) is not verified against measured memory; this is a load-bearing issue that must be resolved before the comparisons can be accepted.
major comments (3)
- [§3.4, Eq. (15)] The reserve-ratio formula in Eq. (15) is algebraically inconsistent with the memory it claims to model. If R is the number of stored references, C the number of codebook vectors, O the bits per reference (index plus magnitude), and M0 = N * dh * key_bit the full-cache memory, the exact ratio is (R*O + C*dh*key_bit) / M0 = r1 * O / (dh * key_bit) + r1 * r2, where r1 = R/N and r2 = C/R. Equation (15) instead reports r1 * r2 * (dh + int_bit/key_bit + 1)/dh, which multiplies the per-reference overhead by r2 and does not add the standalone R*O term. This understates the true memory cost, so the same-budget comparisons in Tables 1, 10, and 11 (e.g., 40.1% vs. 40.5%) are not yet valid as stated. The authors should correct the formula and, ideally, validate it against profiler-measured KV-cache memory.
- [§3.3--§3.4, GQA storage] The treatment of GQA is ambiguous in a way that directly affects the memory claim. Section 3.3 says the repeat operation can fully unfold GQA and that the resulting overhead is absorbed by the codebook, while the text after Eq. (15) says 'hg = h if a repeat operation is conducted'. If references and magnitudes are stored per unfolded Q-head, the denominator in Eq. (15) must be the unfolded h-head cache and the per-head reference arrays cost h * R entries per layer; if references are instead shared per KV-head, the paper must explain how per-Q-head eviction decisions and masks are stored. As written, the effective budget could be understated by a factor related to hn. The paper reports no measured GPU memory and Table 9 reports only decoding speed, so this ambiguity cannot be resolved from the text.
- [§4.2, Tables 1 and 10] The empirical comparisons lack error bars or significance tests, and many of the reported advantages are small (1--2 average points on LongBench). Because the reserve ratios are computed from the unverified Eq. (15), the comparison is not yet on a firm basis. At minimum, the authors should report measured KV-cache memory (or a validated memory model) for each configuration, and ideally run multiple seeds or report per-dataset variance, so the reader can distinguish a genuine improvement from threshold choice or measurement noise.
minor comments (5)
- [§3.4 / Table 3] The hyper-parameters θK, θV, β, and α are fixed without sensitivity analysis; a short sensitivity study or a statement that the results are stable over a range of thresholds would strengthen the claim that the improvement comes from the method rather than from threshold selection.
- [Abstract and §1] The abstract contains an incomplete sentence ('Based on our observation that, the KV cache exhibits a high degree of similarity.') and several typos elsewhere ('possessed', 'shown', 'avaiable', 'reocnstruct'); the paper would benefit from a careful proofread.
- [Appendix B vs. Table 3] The thresholds used in the preliminary observation (θ = 0.9 for Key and θ = 0.6 for Value) differ from the hyper-parameters used in the experiments (θK = 0.98, θV = 0.95); the relationship between these values should be clarified.
- [§3.4 / Eq. (15)] The notation 'int_bit/key_bit' and '+1' in rλ3 is not fully defined; in particular, the bit-width of the magnitude storage (mag_bit) is never specified, and the observation-window length lw is missing from Table 3. Please define all bit-widths and list lw with the other hyper-parameters.
- [Limitations] The Limitations section correctly states that cache-size control is imprecise and that evaluation is limited to three models; these caveats should be connected to the main tables, where the reported SpindleKV ratios are intentionally kept slightly below the baselines.
Circularity Check
No circularity: SpindleKV's accuracy claims rest on external LongBench and Needle-in-a-Haystack comparisons, and its compression accounting concern is a correctness issue rather than a derivation that reduces to its own inputs.
full rationale
No significant circularity found. The central accuracy claims are evaluated on external benchmarks against external baselines: LongBench averages in Tables 1/10/11 and Needle-in-a-Haystack scores in Table 4 are measured after compression and compared with PyramidKV/PyramidInfer at the reported reserve ratios, so the reported performance is not derived from the paper's own equations. The codebook construction (Eqs. 8-14 and Algorithm 1) is a transparent greedy vector-quantization procedure: token vectors are normalized, grouped by cosine similarity above a threshold, assigned to codebook entries, and reconstructed as C[r] * m. The reconstruction is defined by the same merge rule that produced the codebook, but that is a compression identity, not a prediction fitted to the evaluation data. The thresholds (theta_K = 0.98, theta_V = 0.95, alpha = 0.525, beta = 0.05) are fixed hyperparameters; the paper does not report sensitivity analysis, but there is no evidence they were fitted to the test benchmarks in a way that makes the comparisons tautological. The preliminary observation of high cosine similarity in shallow layers is motivational rather than load-bearing: the method's success is still measured on held-out tasks. Self-citations (Shi et al. 2024/2025, Ma et al. 2025, Yao et al. 2024a-c) appear only in the literature review and do not carry the argument. The reserve-ratio formula in Eq. 15 is definitional and may under-count GQA-related storage or codebook overhead, but an inaccurate compression metric is a memory-accounting/correctness concern, not a circular derivation; the LongBench and retrieval scores remain external measurements. No step in the derivation reduces, by construction, to its own input.
Assumptions & free parameters
free parameters (5)
- Key similarity threshold θK =
0.98
- Value similarity threshold θV =
0.95
- Minimum layer preserve ratio β =
0.05
- Observation window length lw =
not stated
- Codebook index bit-width (int_bit) =
not stated
assumptions (5)
- domain assumption Shallow-layer KV vectors can be near-losslessly replaced by representative codebook vectors selected by cosine similarity.
- domain assumption Deep-layer attention concentration justifies top-k eviction based on accumulated attention scores.
- domain assumption Pre-RoPE keys can be normalized, clustered, and reconstructed; re-applying RoPE after reconstruction introduces negligible overhead and error.
- ad hoc to paper The greedy graph-based codebook construction yields a near-minimal codebook satisfying the similarity constraint.
- domain assumption The reserve ratio formula in Eq. 15 is an accurate measure of actual memory usage.
Cite this review
Pith. "Pith review of SpindleKV: A Novel KV Cache Reduction Method Balancing Both Shallow and Deep Layers." pith.science (2026). https://pith.science/paper/7Z7OLKLJ
@misc{pith2026250706517,
author = {Pith},
title = {Pith review of: SpindleKV: A Novel KV Cache Reduction Method Balancing Both Shallow and Deep Layers},
year = {2026},
howpublished = {\url{https://pith.science/paper/7Z7OLKLJ}},
note = {Machine review of arXiv:2507.06517}
}
read the original abstract
Large Language Models (LLMs) have achieved impressive accomplishments in recent years. However, the increasing memory consumption of KV cache has possessed a significant challenge to the inference system. Eviction methods have revealed the inherent redundancy within the KV cache, demonstrating its potential for reduction, particularly in deeper layers. However, KV cache reduction for shallower layers has been found to be insufficient. Based on our observation that, the KV cache exhibits a high degree of similarity. Based on this observation, we proposed a novel KV cache reduction method, SpindleKV, which balances both shallow and deep layers. For deep layers, we employ an attention weight based eviction method, while for shallow layers, we apply a codebook based replacement approach which is learnt by similarity and merging policy. Moreover, SpindleKV addressed the Grouped-Query Attention (GQA) dilemma faced by other attention based eviction methods. Experiments on two common benchmarks with three different LLMs shown that SpindleKV obtained better KV cache reduction effect compared to baseline methods, while preserving similar or even better model performance.
Figures
Figures from the paper (5 more)
Reference graph
Works this paper leans on
-
[1]
Joshua Ainslie, James Lee - Thorp, Michiel de Jong, Yury Zemlyanskiy, Federico Lebr \' o n, and Sumit Sanghai. 2023. https://doi.org/10.18653/V1/2023.EMNLP-MAIN.298 GQA: training generalized multi-query transformer models from multi-head checkpoints . In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, EMNLP 2023, Si...
-
[2]
Yushi Bai, Xin Lv, Jiajie Zhang, Hongchang Lyu, Jiankai Tang, Zhidian Huang, Zhengxiao Du, Xiao Liu, Aohan Zeng, Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li. 2024. https://doi.org/10.18653/V1/2024.ACL-LONG.172 Longbench: A bilingual, multitask benchmark for long context understanding . In Proceedings of the 62nd Annual Meeting of the Association for Com...
-
[3]
Eleftheria Briakou, Colin Cherry, and George F. Foster. 2023. https://doi.org/10.18653/V1/2023.ACL-LONG.524 Searching for needles in a haystack: On the role of incidental bilingualism in palm's translation capability . In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), ACL 2023, Toronto, Can...
-
[4]
Zefan Cai, Yichi Zhang, Bofei Gao, Yuliang Liu, Tianyu Liu, Keming Lu, Wayne Xiong, Yue Dong, Baobao Chang, Junjie Hu, and Wen Xiao. 2024. https://doi.org/10.48550/ARXIV.2406.02069 Pyramidkv: Dynamic KV cache compression based on pyramidal information funneling . CoRR, abs/2406.02069
-
[5]
Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al - Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, Angela Fan, Anirudh Goyal, Anthony Hartshorn, Aobo Yang, Archi Mitra, Archie Sravankumar, Artem Korenev, Arthur Hinsvark, Arun Rao, Aston Zhang, Aur \' e lien Rodriguez, Austen Gregerson, Ava Spataru, Baptiste Rozi \` e...
-
[6]
Yefei He, Luoming Zhang, Weijia Wu, Jing Liu, Hong Zhou, and Bohan Zhuang. 2024. https://doi.org/10.48550/ARXIV.2405.14256 Zipcache: Accurate and efficient KV cache quantization with salient token identification . CoRR, abs/2405.14256
-
[7]
Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de Las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, L \' e lio Renard Lavaud, Marie - Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timoth \' e e Lacroix, and William El Sayed. 2023. https://doi.org/...
-
[8]
Roman Koshkin, Katsuhito Sudoh, and Satoshi Nakamura. 2024. https://doi.org/10.18653/v1/2024.findings-emnlp.27 T rans LL a M a: LLM -based simultaneous translation system . In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 461--476, Miami, Florida, USA. Association for Computational Linguistics
Show all 38 references
- [9]
- [10]
-
[11]
Zirui Liu, Jiayi Yuan, Hongye Jin, Shaochen Zhong, Zhaozhuo Xu, Vladimir Braverman, Beidi Chen, and Xia Hu. 2024 b . https://proceedings.mlr.press/v235/liu24bz.html KIVI : A tuning-free asymmetric 2bit quantization for KV cache . In Proceedings of the 41st International Confer...
2024
- [12]
- [13]
- [14]
-
[15]
Noam Shazeer. 2019. https://arxiv.org/abs/1911.02150 Fast transformer decoding: One write-head is all you need . CoRR, abs/1911.02150
2019 arXiv
-
[16]
Ying Sheng, Lianmin Zheng, Binhang Yuan, Zhuohan Li, Max Ryabinin, Beidi Chen, Percy Liang, Christopher R \' e , Ion Stoica, and Ce Zhang. 2023. https://proceedings.mlr.press/v202/sheng23a.html Flexgen: High-throughput generative inference of large language models with a singl...
2023
-
[17]
Luohe Shi, Zuchao Li, Lefei Zhang, Baoyuan Qi, Guoming Liu, and Hai Zhao. 2025. https://openreview.net/forum?id=vQvZQ1wDVN KV -latent: Dimensional-level KV cache reduction with frequency-aware rotary positional embedding . In The 63rd Annual Meeting of the Association for Comp...
2025
- [18]
- [19]
- [20]
-
[21]
Zhongwei Wan, Xinjian Wu, Yu Zhang, Yi Xin, Chaofan Tao, Zhihong Zhu, Xin Wang, Siqi Luo, Jing Xiong, and Mi Zhang. 2024. https://doi.org/10.48550/ARXIV.2406.13035 D2O: dynamic discriminative operations for efficient generative inference of large language models . CoRR, abs/2406.13035
- [22]
-
[23]
Chi, Quoc V
Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed H. Chi, Quoc V. Le, and Denny Zhou. 2022. http://papers.nips.cc/paper\_files/paper/2022/hash/9d5609613524ecf4f15af0f7b31abca4-Abstract-Conference.html Chain-of-thought prompting elicits reasoning...
2022
-
[24]
Samuel Williams, Andrew Waterman, and David Patterson. 2009. https://doi.org/10.1145/1498765.1498785 Roofline: an insightful visual performance model for multicore architectures . Commun. ACM, 52(4):65–76
2009
-
[25]
Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, and Mike Lewis. 2024. https://openreview.net/forum?id=NG7sS51zVF Efficient streaming language models with attention sinks . In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May...
2024
- [26]
-
[27]
Dongjie Yang, Xiaodong Han, Yan Gao, Yao Hu, Shilin Zhang, and Hai Zhao. 2024 b . https://doi.org/10.18653/V1/2024.FINDINGS-ACL.195 Pyramidinfer: Pyramid KV cache compression for high-throughput LLM inference . In Findings of the Association for Computational Linguistics, ACL ...
2024 doi
- [28]
-
[29]
Yifei Yang, Runhan Shi, Zuchao Li, Shu Jiang, Bao-Liang Lu, Yang Yang, and Hai Zhao. 2024 d . https://arxiv.org/abs/2408.10285 Batgpt-chem: A foundation large model for retrosynthesis prediction . Preprint, arXiv:2408.10285
2024 arXiv
-
[30]
Yao Yao, Zuchao Li, and Hai Zhao. 2024 a . https://doi.org/10.18653/V1/2024.FINDINGS-ACL.204 GKT: A novel guidance-based knowledge transfer framework for efficient cloud-edge collaboration LLM deployment . In Findings of the Association for Computational Linguistics, ACL 2024,...
2024 doi
-
[31]
Yao Yao, Zuchao Li, and Hai Zhao. 2024 b . https://doi.org/10.18653/v1/2024.findings-naacl.183 G o T : Effective graph-of-thought reasoning in language models . In Findings of the Association for Computational Linguistics: NAACL 2024, pages 2901--2921, Mexico City, Mexico. Ass...
2024 doi
-
[32]
Yao Yao, Zuchao Li, and Hai Zhao. 2024 c . https://doi.org/10.18653/V1/2024.ACL-LONG.143 Sirllm: Streaming infinite retentive LLM . In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), ACL 2024, Bangkok, Thailand, ...
2024 doi
-
[33]
Ann Yuan, Andy Coenen, Emily Reif, and Daphne Ippolito. 2022. https://doi.org/10.1145/3490099.3511105 Wordcraft: Story writing with large language models . In Proceedings of the 27th International Conference on Intelligent User Interfaces, IUI '22, page 841–852, New York, NY, ...
2022
-
[34]
Diab, Xian Li, Xi Victoria Lin, Todor Mihaylov, Myle Ott, Sam Shleifer, Kurt Shuster, Daniel Simig, Punit Singh Koura, Anjali Sridhar, Tianlu Wang, and Luke Zettlemoyer
Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona T. Diab, Xian Li, Xi Victoria Lin, Todor Mihaylov, Myle Ott, Sam Shleifer, Kurt Shuster, Daniel Simig, Punit Singh Koura, Anjali Sridhar, Tianlu Wang, and Luke Zettlemoyer...
-
[35]
Yuxin Zhang, Yuxuan Du, Gen Luo, Yunshan Zhong, Zhenyu Zhang, Shiwei Liu, and Rongrong Ji. 2024. https://openreview.net/forum?id=LCTmppB165 Cam: Cache merging for memory-efficient llms inference . In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, ...
2024
-
[36]
Barrett, Zhangyang Wang, and Beidi Chen
Zhenyu Zhang, Ying Sheng, Tianyi Zhou, Tianlong Chen, Lianmin Zheng, Ruisi Cai, Zhao Song, Yuandong Tian, Christopher R \' e , Clark W. Barrett, Zhangyang Wang, and Beidi Chen. 2023. http://papers.nips.cc/paper\_files/paper/2023/hash/6ceefa7b15572587b78ecfcebb2827f8-Abstract-C...
2023
-
[37]
online" 'onlinestring :=
ENTRY address archivePrefix author booktitle chapter edition editor eid eprint eprinttype howpublished institution journal key month note number organization pages publisher school series title type volume year doi pubmed url lastchecked label extra.label sort.label short.list...
-
[38]
write newline
" write newline "" before.all 'output.state := FUNCTION n.dashify 't := "" t empty not t #1 #1 substring "-" = t #1 #2 substring "--" = not "--" * t #2 global.max substring 't := t #1 #1 substring "-" = "-" * t #2 global.max substring 't := while if t #1 #1 substring * t #2 gl...
Reviewed August 6, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.