Manuscript Offprint

arXiv:2610.18026

ChampionKV: Head-Wise Adaptive Budget Allocation for KV Cache Compression

Yuechuan Chen, Yanda Guo, Xiaoxi Liu, Weilin Ruan, Huanbo Xu, Ruyi Wang, Wei Zhu

Abstract

Some observation-window-based KV cache compressors use prompt attention to identify important tokens but allocate uniform or predefined budgets across heads, overlooking input-dependent differences in budget demand. We propose CHAMPIONKV, an input-adaptive head-wise budget allocator for long-context KV cache compression. It uses the maximum aggregated observation-window attention score as a lightweight empirical proxy for attention concentration, assigning larger budgets to heads with dispersed attention and smaller budgets to concentrated heads. An abnormal-head mask and a floor-budget mechanism improve robustness under weak attention responses. CHAMPIONKV plugs into compressors such as SnapKV and PyramidKV without changing their token-selection procedures. On LongBench and RULER, both Champion variants consistently improve over their SnapKV and PyramidKV base compressors; the improvements are largest and statistically significant on Llama3.1-70B-Instruct, especially under tight budgets, whereas results on the tested 7B/8B models remain competitive but mixed. CHAMPIONKV does not uniformly outperform Ada-KV, whose global cross-head Top-K selection retains an advantage in several settings. Controlled analysis further shows improved retained attention mass over the corresponding base compressors at negligible overhead. Code is available at https://github.com/YuechuanChen/Champion_KV

1 Introduction

Large language models (LLMs) are increasingly used in long-context scenarios such as long-document question answering, code completion, multi-turn dialogue, and retrieval-augmented generation (Gemini Team, Google, 2024; DeepSeek-AI, 2025; Qwen Team, 2025). During autoregressive decoding, Transformer decoders store historical key and value states in a key-value (KV) cache. Because the cache grows linearly with context length, batch size, model depth, and KV-head dimensionality, it becomes a major memory bottleneck for long-context inference (Zhang et al., 2023; Li et al., 2024). KV cache compression addresses this problem by retaining only the KV entries most useful for future generation.

Most KV cache compression methods identify important tokens using attention scores. H2O retains heavy-hitter and recent tokens (Zhang et al., 2023), while SnapKV selects historical tokens using attention from an observation window near the end of the prompt (Li et al., 2024). Recent work also shows that cache requirements vary across model components: PyramidKV allocates non-uniform budgets across layers (Cai et al., 2024), Ada-KV performs online global cross-head Top-K selection (Feng et al., 2026), and HeadKV uses offline head-importance estimates (Fu et al., 2025). We therefore investigate whether a lightweight per-head statistic available during prefilling can support input-adaptive budget allocation without changing the underlying token-selection procedure.

We propose CHAMPIONKV, an input-adaptive head-wise budget allocator for observation-window-based KV cache compression. As shown in Figure 1, it uses the maximum aggregated observation-window attention score as a lightweight empirical proxy for attention concentration. Heads with dispersed attention receive larger budgets, whereas concentrated heads are compressed more aggressively. An abnormal-head mask and a floor-budget mechanism improve robustness under weak or noisy attention responses. CHAMPIONKV can be combined with compressors such as SnapKV and PyramidKV without modifying their token-selection procedures.

We evaluate CHAMPIONKV on LongBench and RULER using Llama3.1-70B-Instruct, Llama3.1-8B-Instruct, and Mistral-7B-Instruct-v0.3. Both

Figure

Figure 1: Overview of CHAMPIONKV. Given observation-window attention, CHAMPIONKV estimates head-wise attention concentration using the maximum aggregated attention score and adaptively reallocates KV cache budget across heads. Dispersed heads receive larger budgets, while concentrated heads receive smaller budgets, improving retained attention mass without modifying the underlying token-selection procedure.

Champion variants consistently outperform their SnapKV and PyramidKV base compressors, with statistically significant gains on the 70B model under tight budgets; on the tested 7B/8B models the results are competitive but mixed, and neither variant uniformly surpasses Ada-KV. We further examine retained attention mass, hyper-parameter sensitivity, and hardware efficiency.

Our contributions are threefold: (a) a lightweight attention-concentration proxy for ranking head-wise cache demand; (b) an inverse-max allocation rule with abnormal-head masking and floor-budget protection; and (c) an evaluation of its downstream performance, retained attention mass, and hardware efficiency under constrained cache budgets.