arXiv:2609.04971cs.LGSep 2026

Manuscript Offprint

arXiv:2609.04971

BeaconKV: Key-Value Cache Compression Guided by Beacon Queries for Efficient Large Reasoning Model Inference

Janghyeon Kim, Minsoo Kim, Kyuhong Shim, Jungwook Choi

Abstract

Large Reasoning Models (LRMs) achieve superior problem-solving through extended Chain-of-Thought (CoT) generation, but the resulting key-value (KV) cache grows linearly with sequence length and creates severe memory bottlenecks—often exceeding GPU capacity for long reasoning traces. Existing KV cache compression methods rely on recent queries to estimate future token importance, implicitly assuming these serve as reliable proxies for future attention patterns. We demonstrate that this assumption fails in long-horizon reasoning: certain decoding steps generate Thought Revisiting Tokens (TRT) that re-attend to distant previous context, such as task-solving plans formulated early in the trace. Through systematic analysis, we discover that queries corresponding to the TRT cluster into a small number of similarity groups in the embedding space. Based on this insight, we propose BeaconKV, a training-free KV cache compression method that maintains beacon queries—compact representatives for each global query cluster—to anticipate which KV pairs will be revisited without storing the entire query history. Across four open-source LRMs and diverse reasoning benchmarks, BeaconKV generally outperforms existing compression methods, achieving up to 5.8× memory reduction while nearly preserving full cache accuracy and improving throughput by over 4.3×.

1. Introduction

Large Reasoning Models (LRMs) (Guo et al., 2025; OpenAI, 2024; Anthropic, 2025) have emerged as a transformative paradigm in artificial intelligence, demonstrating remarkable capabilities across tasks that demand sophisticated log-

ical thinking, including mathematics, science, and coding. Models such as o1 (OpenAI, 2024), Claude Opus 4.5 (Anthropic, 2025), GPT-5.2 (OpenAI, 2025), and Gemini 3 Pro (Google, 2025) have achieved unprecedented performance on challenging reasoning benchmarks, while open-source alternatives like DeepSeek-R1 (Guo et al., 2025) and Qwen3 (Yang et al., 2025) have rapidly expanded access to these powerful reasoning capabilities. The potential of LRMs to tackle complex, multi-step problems positions them as foundational technology for next-generation AI applications.

The superior reasoning capabilities of LRMs fundamentally stem from inference-time scaling through extended Chain-of-Thought (CoT) generation (Wei et al., 2022). Unlike conventional language models that produce concise outputs, LRMs deliberately generate lengthy reasoning traces—often spanning tens of thousands of tokens—to systematically develop task-solving strategies before arriving at final answers. While this prolonged generation is essential for reasoning quality, it introduces severe computational challenges. In Transformer architectures (Vaswani et al., 2017), autoregressive decoding requires caching key-value (KV) pairs for all previously generated tokens, leading to a KV cache that grows linearly with sequence length. For instance, when Qwen3-4B generates 32K tokens with a batch size of 16, the KV cache alone can exceed 77GB—bringing a single 80GB GPU close to its memory limit. This memory bottleneck fundamentally limits the practical deployment of LRMs under constrained GPU resources.

Recent efforts have attempted to address this challenge through KV cache compression methods tailored for LRMs. RPC (Song et al., 2025) compresses KV caches by scoring token importance based on attention weights computed from recent queries, while R-KV (Cai et al., 2025) augments this approach by incorporating redundancy scores based on key similarity. However, these methods share a fundamental limitation rooted in a critical distinction between LRM inference and conventional long-context processing: in LRMs, tokens are generated on-the-fly during the reasoning process, making it inherently difficult to predict which tokens will become important in subsequent decoding steps. Existing methods attempt to approximate future importance

¹Hanyang University ²Sungkyunkwan University. Correspondence to: Jungwook Choi choij@hanyang.ac.kr.

Proceedings of the 43rd International Conference on Machine Learning, Seoul, South Korea. PMLR 306, 2026. Copyright 2026 by the author(s).

BeaconKV: Key-Value Cache Compression Guided by Beacon Queries for Efficient Large Reasoning Model Inference

by relying on recent queries at eviction time, implicitly assuming that these queries serve as reliable proxies for future attention patterns. As we demonstrate in this work, this assumption fails to capture a crucial phenomenon in long-horizon reasoning, leading to premature eviction of tokens that prove essential later in the reasoning trace.

In this paper, we introduce BeaconKV, a training-free KV cache compression method motivated by a novel observation we term Thought Revisiting Tokens (TRT). Through systematic analysis of attention dynamics during LRM inference, we discover that certain decoding steps generate tokens that re-attend to distant previous context—such as task-solving plans formulated early in the reasoning process—to maintain global coherence throughout extended reasoning (Figures 1 and 2). We observe that queries can be categorized into two distinct types: local queries, which predominantly attend to nearby keys, and global queries, which correspond to TRT and attend to distant keys across the reasoning trace.

Crucially, we find that global queries are not randomly distributed but instead cluster into a small number of similarity groups in the query embedding space (Figure 4). This geometric structure suggests that the diverse set of global queries can be effectively represented by a compact set of beacon queries—representative queries for each cluster. By maintaining beacon queries alongside recent queries, BeaconKV can anticipate which KV pairs will be revisited by future global queries without storing the entire query history. To enable memory-efficient beacon query identification during inference, we propose Continual Farthest Point Sampling (FPS), an online algorithm that progressively selects geometrically diverse queries while maintaining a bounded memory footprint.

We evaluate BeaconKV across four open-source LRMs (R1-Distill-Qwen-7B, R1-Distill-Llama-8B, Qwen3-4B, and Qwen3-14B) on diverse reasoning benchmarks, including AIME24, MATH-500, LiveCodeBench, and GPQA-Diamond. Experimental results demonstrate that BeaconKV generally outperforms other KV cache compression methods, including RPC and R-KV, across a broad range of budget configurations. In terms of accuracy, BeaconKV achieves gains of up to 31.7 percentage points over existing methods. Under aggressive compression, BeaconKV reduces peak GPU memory usage by up to 5.8× while nearly preserving accuracy comparable to full KV inference, and achieves throughput improvements of over 4.3× compared to the uncompressed baseline. These results establish BeaconKV as an effective solution for deploying LRMs under constrained memory budgets.

References (36)