aiqbench analysis
BeaconKV addresses a critical memory bottleneck in Large Reasoning Models by introducing "beacon queries" that effectively track distant context revisits during long Chain-of-Thought generation. This training-free approach achieves significant memory reduction and throughput gains without relying on the flawed assumption that recent queries always predict future attention patterns. The method offers a practical solution for deploying complex reasoning models within limited GPU resources.
BeaconKV: Key-Value Cache Compression Guided by Beacon Queries for Efficient Large Reasoning Model Inference
From arXiv
Full textLarge 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 memory reduction while nearly preserving full cache accuracy and improving throughput by over .
Full text under the publisher's open licence · 186 words