Preprint
Large Language Models

RocketKV: Accelerating long-context LLM inference via two-stage KV cache compression

February 1, 2025

0

Citations

0

Influential Citations

—

Venue

2025

Year

Abstract

… To address this challenge, we present RocketKV, a training-free KV cache compression strategy containing two consecutive stages. In the first stage, it performs coarse-grain permanent …

Analysis

Why This Paper Matters

Long-context large language models are increasingly central to applications such as document understanding, codebase reasoning, and multi-turn agents. However, the key-value (KV) cache that stores attention states grows linearly with sequence length, creating severe memory and bandwidth bottlenecks during inference. This makes long-context serving expensive and often impractical on commodity hardware.

RocketKV addresses this bottleneck with a training-free compression strategy, meaning it can be applied to existing models without costly retraining or architectural changes. By targeting the KV cache directly, the method aims to reduce both memory footprint and attention computation, which are the dominant costs in long-context decoding.

The two-stage design is notable because it separates permanent, coarse-grain eviction from dynamic, fine-grain sparsity. This mirrors a broader trend in efficient inference: combining static pruning with runtime selection to balance compression ratio and model quality.

Technical Contributions

  • Two-stage KV cache compression: RocketKV first performs coarse-grain permanent compression, likely evicting less important tokens from the cache, then applies fine-grain dynamic sparsity to selectively attend to a subset of the remaining cache.
  • Training-free operation: The method requires no fine-tuning or retraining, making it compatible with existing pretrained long-context LLMs.
  • Consecutive stages: The pipeline is designed so that the first stage reduces the cache size, and the second stage further accelerates attention by sparsifying the computation.
  • Focus on long-context inference: The approach specifically targets the memory and compute challenges that arise as context length grows.

Results

The abstract does not provide concrete metrics such as speedup, memory reduction, or accuracy retention. As a result, the quantitative effectiveness of RocketKV cannot be assessed from the available text. The paper claims acceleration of long-context LLM inference, but specific comparisons against baselines like H2O, StreamingLLM, or other KV cache compression methods are not reported in the abstract.

Significance

If the two-stage approach delivers on its promise, RocketKV could help democratize long-context inference by reducing hardware requirements and latency. Training-free methods are particularly attractive because they can be dropped into existing serving stacks without model modifications. However, the lack of reported metrics in the abstract makes it difficult to gauge the trade-offs between compression, speed, and accuracy. Future work will need to validate whether the coarse-grain and fine-grain stages preserve model quality across diverse tasks and context lengths. Overall, RocketKV fits into a rapidly growing line of research on efficient attention and KV cache management, and its two-stage design may inspire further hybrid compression strategies.