Hold Onto That Thought: Assessing KV Cache Compression On Reasoning

Minghui Liu, Aadi Palnitkar, Tahseen Rabbani, Hyunwoo Jae, Kyle Rui Sang +7 more
12/12/2025
cs.CLcs.AIcs.PF

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) have demonstrated remarkable performance on long-context tasks, but are often bottlenecked by memory constraints. Namely, the KV cache, which is used to significantly speed up attention computations, grows linearly with context length. A suite of compression algorithms has been introduced to alleviate cache growth by evicting unimportant tokens. However, several popular strategies are targeted towards the prefill phase, i.e., processing long prompt context, and their performance is rarely assessed on reasoning tasks requiring long decoding. In particular, short but complex prompts, such as those in benchmarks like GSM8K and MATH500, often benefit from multi-step reasoning and self-reflection, resulting in thinking sequences thousands of tokens long. In this work, we benchmark the performance of several popular compression strategies on long-reasoning tasks. For the non-reasoning Llama-3.1-8B-Instruct, we determine that no singular strategy fits all, and that performance is heavily influenced by dataset type. However, we discover that H2O and our decoding-enabled variant of SnapKV are dominant strategies for reasoning models, indicating the utility of heavy-hitter tracking for reasoning traces. We also find that eviction strategies at low budgets can produce longer reasoning traces, revealing a tradeoff between cache size and inference costs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2025hold,
  title  = {Hold Onto That Thought: Assessing KV Cache Compression On Reasoning},
  author = {Minghui Liu and Aadi Palnitkar and Tahseen Rabbani and Hyunwoo Jae and Kyle Rui Sang and Dixi Yao and Shayan Shabihi and Fuheng Zhao and Tian Li and Ce Zhang and Furong Huang and Kunpeng Zhang},
  year   = {2025},
  eprint = {2512.12008},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.12008v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.12008.svg)](https://codeofpaper.com/paper/2512.12008)

Discussion