Judge Q: Trainable Queries for Optimized Information Retention in KV Cache Eviction
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Large language models (LLMs) utilize key-value (KV) cache to store historical information during sequence processing. The size of KV cache grows linearly as the length of the sequence extends, which seriously affects memory usage and decoding efficiency. Current methods for KV cache eviction typically utilize the last window from the pre-filling phase as queries to compute the KV importance scores for eviction. Although this scheme is simple to implement, it tends to overly focus on local information, potentially leading to the neglect or omission of crucial global information. To mitigate this issue, we propose Judge Q, a novel training method which incorporates a soft token list. This method only tunes the model's embedding layer at a low training cost. By concatenating the soft token list at the end of the input sequence, we train these tokens' attention map to the original input sequence to align with that of the actual decoded tokens. In this way, the queries corresponding to the soft tokens can effectively capture global information and better evaluate the importance of the keys and values within the KV cache, thus maintaining decoding quality when KV cache is evicted. Under the same eviction budget, our method exhibits less performance degradation compared to existing eviction approaches. We validate our approach through experiments conducted on models such as Llama-3.1-8B-Instruct and Mistral-7B-Instruct-v0.3, using benchmarks including LongBench, RULER, and Needle-in-a-Haystack. Results indicate an improvement of approximately 1 point on the LongBench and over 3 points on RULER. This proposed methodology can be seamlessly integrated into existing open-source models with minimal training overhead, thereby enhancing performance in KV cache eviction scenarios.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 33 of its 43 references that are in the map. First posted on arXiv 13 Sep 2025.
Builds on
33 of 43 references.
Closest ancestors · 13
Same direction, newest first
- 2025Lookahead Q-Cache: Achieving More Consistent KV Cache Eviction via Pseudo Query24 May
- 2025TreeKV: Smooth Key-Value Cache Compression with Tree Structures9 Jan
- 2024KVSharer: Efficient Inference via Layer-Wise Dissimilar KV Cache Sharing24 Oct
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads14 Oct
- 2024LoRC: Low-Rank Compression for LLMs KV Cache with a Progressive Compression Strategy4 Oct
- 2024Palu: Compressing KV-Cache with Low-Rank Projection30 Jul
- 2024Ada-KV: Optimizing KV Cache Eviction by Adaptive Budget Allocation for Efficient LLM Inference16 Jul
- 2024A Simple and Effective L2 Norm-Based Strategy for KV Cache Compression17 Jun
- 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funneling4 Jun
- 2024PyramidInfer: Pyramid KV Cache Compression for High-throughput LLM Inference21 May
- 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs3 Oct
1 more
Other references · 20
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2023Let's Verify Step by Stepcited by 3,789
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2022Token Merging: Your ViT But Fastercited by 1,021
8 more
- 2017The NarrativeQA Reading Comprehension Challengecited by 597
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 367
- 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 144
- 2025A Comprehensive Survey on Long Context Language Modelingcited by 117
- 2024Loki: Low-rank Keys for Efficient Sparse Attentioncited by 89
- 2024Out-of-Distribution Detection: A Task-Oriented Survey of Recent Advancescited by 26
- 2025A Survey on Transformer Context Extension: Approaches and Evaluationcited by 11
- 2024StreamingDialogue: Prolonged Dialogue Learning via Long Context Compression with Minimal Lossescited by 9
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026KV2: A Self-Refining KV Cache2 Oct 2026
- 2026Meta-Soft: Leveraging Composable Meta-Tokens for Context-Preserving KV Cache Compression21 May 2026
- 2026EchoKV: Efficient KV Cache Compression via Similarity-Based Reconstruction24 Mar 2026
- 2026Learning to Evict from Key-Value Cache10 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2025G-KV: Decoding-Time KV Cache Eviction with Global Attention
- 2026Reformulating KV Cache Eviction Problem for Long-Context LLM Inference
- 2026Rethinking KV Cache Eviction via a Unified Information-Theoretic Objective
- 2024RazorAttention: Efficient KV Cache Compression Through Retrieval Heads
- 2025CriticalKV: Optimizing KV Cache Eviction from an Output Perturbation Perspective
- 2024NACL: A General and Effective KV Cache Eviction Framework for LLMs at Inference Time
- 2026Make Each Token Count: Towards Improving Long-Context Performance with KV Cache Eviction
- 2024SqueezeAttention: 2D Management of KV-Cache in LLM Inference via Layer-wise Optimal Budget