English

RAP: KV-Cache Compression via RoPE-Aligned Pruning

Machine Learning 2026-02-11 v3 Artificial Intelligence

Abstract

Long-context inference in large language models is increasingly bottlenecked by the memory and compute cost of the KV-Cache. Low-rank factorization compresses KV projections by writing WABW \approx A * B, where A produces latent KV states and B can be absorbed into downstream weights. In modern RoPE-based LLMs, this absorption fails: RoPE forces latent KV states to be reconstructed to full dimension, reintroducing substantial memory and compute overhead. We propose RoPE-Aligned Pruning (RAP), which prunes entire RoPE-aligned column pairs to preserve RoPE's 2x2 rotation structure, restore B absorption, and eliminate reconstruction. Our evaluation on LLaMA-3-8B and Mistral-7B shows that RAP enables joint reduction of KV-Cache, attention parameters, and FLOPs by 20-30%, all at once, while maintaining strong accuracy. Notably, RAP reduces attention latency to 83% (prefill) and 77% (decode) of baseline.

Keywords

Cite

@article{arxiv.2602.02599,
  title  = {RAP: KV-Cache Compression via RoPE-Aligned Pruning},
  author = {Jihao Xin and Tian Lyu and David Keyes and Hatem Ltaief and Marco Canini},
  journal= {arXiv preprint arXiv:2602.02599},
  year   = {2026}
}
R2 v1 2026-07-01T09:32:43.450Z