Manuscript Offprint

arXiv:2609.03235

SGD-KV: Summarization Guided KV Cache Compression

Zeyu Liu, Woomin Song, Xuandi Fu, Sai Muralidhar Jayanthi, Vivek Govindan, Aram Galstyan, Sravan Babu Bodapati, Srikanth Ronanki

Zeyu Liu*

USC, USA

Woomin Song

KAIST, Korea

Xuandi Fu

Amazon AGI, USA

Sai Muralidhar Jayanthi

Amazon AGI, USA

Vivek Govindan

Amazon AGI, USA

Aram Galstyan

Amazon AGI, USA

Sravan Babu Bodapati

Amazon AGI, USA

Srikanth Ronanki

Amazon AGI, USA

Abstract

Large language models (LLMs) face severe memory bottlenecks in long-context inference due to the linearly growing size of key-value (KV) caches. Existing KV cache compression techniques typically rely on simple heuristics, overlooking the distinct functional roles of different attention heads. We present SGD-KV (Summarization-Guided KV Cache Compression), a head-aware framework that leverages a novel chunk-summarization diagnostic task to systematically identify and prioritize attention heads specialized in hierarchical information aggregation. Experiments on Qwen2.5-7B-1M and Qwen3-32B across diverse long-context benchmarks demonstrate that SGD-KV achieves state-of-the-art performance with contexts up to 1M tokens, while reducing KV cache memory usage by up to 75%. Our findings show that strategically allocating the KV cache budget based on the summarization score distribution of attention heads yields a superior efficiency-accuracy trade-off for long-context inference.

1 Introduction

The push towards million-token context windows in Large Language Models (LLMs) like Qwen2.5-1M [1] and Gemini 2.5 [2] is severely hampered by a fundamental obstacle: the prohibitive memory cost of the Key-Value (KV) cache, which scales linearly with context length. While methods exist to compress the KV cache, from early token-level eviction to more recent head-aware approaches [3, 4], they often rely on simple, retrieval-based importance metrics to allocate cache budget. These heuristics fall short in complex scenarios like multi-document analysis or long-form dialogue, which demand hierarchical information aggregation rather than simple pattern matching. We argue that a specialized subset of attention heads, which we term “summarization heads,” are primarily responsible for this higher-order cognitive function. To leverage this insight, we introduce SGD-KV (Summarization-Guided KV Cache compression), a framework that systematically identifies and prioritizes these crucial heads. Using a novel chunk-summarization diagnostic task, SGD-KV scores each head’s summarization capability and applies a water-filling-inspired algorithm to intelligently allocate cache budget for each head. Validated on benchmarks including OpenAI Multi-Round Co-Reference Resolution (MRCR) [5] and ETHIC [6], SGD-KV sets a new state-of-the-art (SOTA), reducing KV cache usage by up to 75% on contexts up to 1 million tokens without compromising model accuracy.

References (27)