Summary
This paper proposes ChunkKV, a KV Cache compression method that performs token eviction at chunk level because of the better semantics preservation compared to discrete methods. In addition, the authors find that the chunk-based method has better similarity within layers. They perform eviction step by sharing the eviction indexes across recent layers to increase the efficiency during compression.
Strengths
1. This paper explores the granularity of token eviction, which has some enlightening significance.
2. According to the experiment results, the proposed method seemingly has good efficiency and accuracy.
Weaknesses
1.Motivation requires more elaboration and experimental verification. The comparison between the discrete eviction method and chunk-based method in Figure 1 maybe true from a human behavior perspective, as some useful information may have been corrupted. However, in LLMs, the information of the corrupted tokens may still be retained in some other preserved tokens due to the attention mechanism. The internal information of different tokens in LLMs is difficult to explain, and the explaination of the motivation seems somewhat arbitrary. For example, detailed attention score or L1 loss between full cache and compressed cache of these two methods should be explored.
2.Further explanation is needed for the experimental section (from most important to least).
(1) The results of n=1 should be added to Figure 6 for observing the effectiveness of Chunks.
(2) ChunkKV does not have particularly obvious advantages compared to SnapKV and Pyramid KV, and a more comprehensive comparison and fair setting are needed to demonstrate its effectiveness. Some key hyper-parameters: chunk size and reuse ratio in the main experiment, the compression ratio in NIAH. Some more detailed experimental settings: compress interval, compressing prompts or compressing the whole sequence. Higher and more diverse compression ratios are needed in main experiments.
(3) Lacking throughput, latency, memory usage. The focus should be on overall throughput rather than single compression time because the compression time may not be important compared with model calculation, and we can manually control the compression frequency, which only requires sacrificing a small amount of accumulated KV space.
(4) The comparison of chunk size in ablation is not combined with the compression ratio, and these two hyper-parameters are intuitively highly correlated.
I am looking forward to seeing more detailed explanations and experimental results on these points, which may hugely affect my opinions.
Questions
1. Why is there such a big difference in the reuse ratio between llama3 in Abalation (Figure 5) and llama3 in Appendix (Figuire 16)? Can you provide further explanation? For example, can you provide a detailed explanation of the experimental settings for both figures and discuss any factors that might contribute to this difference.
2. Table 4, Mistral-7B-Instruct-v0.3, KV Size Compression Ratio = 10%, Few-shot Learning, 70.03 vs 70.41, error bold?