- Rating
- 5
- Clarity
- 3
- Confidence
- 1
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
The authors address the issue of memory pressure related to KV cache in LLMs. They propose a channel-wise prunnning method ResKV that consists in grouping similar KV vectors using K-means method, then substract the centroid from each vector and prune residual values close to 0.
Strengths and weaknesses
- The paper is well written and easy to follows
- The problem is well motivated with empirical observations
- Throughput and memory reduction are significant
Weaknesses of the paper
- The fact that the method requires a K-means clustering makes it heavy as K-means for on-line deployement
- The authors highlight a degradation for the first tokens without further justification to explain the phenomenon
- Scalability tests on throughput and memory overhead with regard to a fixed model has not been studied when varying the contexte size. This would have help to visualize the tendency of the gains according to the contexte size
- The method is not compared to KIVI, H2O and zipcache The authors do not justify this choice.
Questions
Please justify the fact that some state-of-art methods have not been evaluated
Limitations
Yes
Paper formatting concerns
N/A
W1: ResKV performs clustering only once during prefill. During decoding, each newly generated K/V state first enters the dense recent window; once the compression threshold is reached, the tokens in the buffered group are assigned to their nearest centroids and then compressed through the ResKV pipeline, without reclustering the historical KV cache. Appendix B.1 reports that this one-time prefill clustering accounts for 19%-28% of TTFT. Our additional runtime breakdown in Table R4 shows that, at B=32 with 8K input and 2K output, prefill clustering contributes 4.78% of E2E latency.
W2: This sensitivity follows the well-established attention-sink phenomenon identified by Xiao et al. [1]: initial tokens receive disproportionately high attention from subsequent queries and act as persistent normalization anchors. Consequently, perturbing their K/V representations can propagate errors across many decoding steps. Following this observation, ResKV keeps the first four sink tokens uncompressed for all compared methods and compresses only the remaining cache. This adds negligible storage overhead (at most 4/8192 = 0.049% of tokens in our evaluated contexts). We will clarify this motivation and its connection to attention sinks in the revision.
[1] Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, and Mike Lewis. Efficient streaming language models with attention sinks. In International Conference on Learning Representations (ICLR), 2024.
W3: We evaluated ResKV and Mustafar at the same 75% sparsity on the fixed Llama-3.1-8B-Instruct model, using 8K/16K/32K inputs and a fixed 1K generation length at B=1/8. In Table R7, every throughput multiplier and memory reduction in parentheses is computed against Dense BF16 under the same batch size and input length.
Table R7: E2E throughput and peak-memory scalability with input context length at 75% sparsity under a fixed 1K generation length.
As the input context grows from 8K to 32K, ResKV's E2E throughput speedup increases from 1.00x to 1.77x at B=1 and from 2.65x to 4.01x at B=8. Its peak-memory reduction increases from 3.9% to 11.9% and from 17.4% to 28.1%, respectively. Thus, ResKV provides increasing throughput and memory benefits as the KV-cache workload grows, while consistently outperforming Mustafar at the same sparsity.
W4: KIVI and ZipCache are KV-cache quantization methods, whereas H2O performs token-level eviction. We added KIVI and ZipCache comparisons on Llama-3-8B-Instruct across eight representative LongBench tasks. ZipCache uses INT4 for 50% of tokens and INT2 for the remaining 50%, giving an effective 3-bit width. We compare it with ResKV-50%+INT4, which uses 2 bits for the retained residual values plus a 1-bit mask. At 2 bits, we compare KIVI-2 with ResKV-75%+INT4, which uses 1 bit for retained residual values plus the 1-bit mask.
Table R8: Per-task bit-matched LongBench scores on Llama-3-8B-Instruct.
At matched effective bit-widths, ResKV achieves 51.32 versus ZipCache's 50.16 at 3 bits and 50.82 versus KIVI-2's 50.26 at 2 bits; ResKV at 1.5 bits still retains 50.52. H2O is orthogonal to ResKV because token-level eviction and centroid-residual-guided channel-wise unstructured pruning operate on different dimensions. This compatibility is already evaluated with representative token-level eviction methods SnapKV and PyramidKV in Appendix D.2 and Table 4.