CHESS: Context-aware Hierarchical Efficient Semantic Selection for Long-Context LLM Inference
Organizations: King Abdullah University of Science and Technology (KAUST), Thuwal, Saudi Arabia · Centre for Artificial Intelligence and Robotics, Hong Kong Institute of Science & Innovation, Chinese Academy of Sciences, Hong Kong, China
Abstract
Long-context LLMs demand accurate inference at low latency, yet decoding becomes primarily constrained by KV cache as context grows. Prior pruning methods are largely context-agnostic: their token selection ignores step-wise relevance and local semantics, which undermines quality. Moreover, their irregular accesses and selection overheads yield only limited wall-clock speedups. To address this, we propose CHESS, an algorithm-system co-design KV-cache management system. Algorithmically, CHESS introduces a context-aware, hierarchical selection policy that dynamically reconstructs a coherent context for the current decoding. System-wise, coarse granularity selection eliminates expensive data movement, fully realizing practical acceleration from theoretical sparsity. Extensive evaluations demonstrate that CHESS surpasses Full-KV quality using only 1% of the KV cache, delivers low-latency stable inference with up to \textbf{4.56} higher throughput, and consistently outperforms other strong baselines. Code is available at https://anonymous.4open.science/r/CHESS/.
Figures & tables
| Method | KV Cache | Overall | Difficulty | Length( 32K;32K 128K; 128K) | |||
| Budget | Easy | Hard | Short | Medium | Long | ||
| FullKV Inference | 100% | 30.2 | 33.9 | 28.0 | 38.3 | 24.2 | 28.7 |
| H2O (Best) | 20% | 34.0 | 40.1 | 30.2 | 41.7 | 28.8 | 31.5 |
| KeyDiff (Best) | 8192 toks | 29.2 | 33.3 | 26.7 | 30.6 | 26.5 | 32.4 |
| SnapKV (Best) | 4096 toks | 30.2 | 34.9 | 27.3 | 34.4 | 24.2 | 35.2 |
| Quest (Best) | 2048 toks | 32.0 | 34.9 | 30.2 | 40.0 | 25.6 | 31.5 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Selection Metric | Granularity | Ctx. Aware | Dyn. Recon. | Self-Correct |
|---|---|---|---|---|---|
| StreamingLLM ( Xiao et al., 2024b ) | Position | Token | – | – | – |
| H2O ( Zhang et al., 2023 ) | Attn Score | Token | – | ✓ | – |
| RocketKV ( Behnam et al., 2025 ) | Attn Score | Token | – | ✓ | – |
| KeyDiff ( Park et al., 2025 ) | Key Matrix | Token | – | – | – |
| SnapKV ( Li et al., 2024 ) | Attn Score | Token | – | – | – |
| ChunkKV ( Liu et al., 2025 ) | Attn Score | Block | – | – | – |
| Method | KV Cache | Overall | Difficulty | Length( 32K;32K 128K; 128K) | |||
| Budget | Easy | Hard | Short | Medium | Long | ||
| FullKV Inference | 100% | 30.2 | 33.9 | 28.0 | 38.3 | 24.2 | 28.7 |
| H2O | 20% | 34.0 | 40.1 | 30.2 | 41.7 | 28.8 | 31.5 |
| H2O | 40% | 33.0 | 38.5 | 29.6 | 42.2 | 27.4 | 28.7 |
| H2O | 60% | 31.4 | 34.9 | 29.3 | 41.7 | 23.7 | 29.6 |
| KeyDiff | 1024 toks | 22.9 | 25.5 | 21.2 | 28.9 | 16.7 | 25.0 |
Long-Context Language Model Inference
Long-context language model inference makes processing and generating over lengthy prompts faster and more memory-efficient.
See all 227 papers