mlsanityData to 7 Oct 2026

RAP: KV-Cache Compression via RoPE-Aligned Pruning

arXiv 2602.02599 ↗First posted 1 Feb 2026cs.LG cs.AIcited by 2

On the map: Efficient LLM inference and serving → KV cache optimization

Abstract (arXiv)

Long-context inference in large language models (LLMs) is bottlenecked by the memory and compute of the key-value (KV) cache. Structured pruning is a direct way to shrink it: dropping the least useful channels of the Wk, Wv projection weights to reduce the output KV dimensions. However, modern LLMs apply Rotary Position Embedding (RoPE) after the QK projections, which rotates feature dimensions in pairs. Therefore, removing individual channels breaks these pairs, corrupting RoPE's positional semantics and rendering the pruned model unusable. We propose RoPE-Aligned Pruning (RAP), which constrains the pruning granularity to RoPE-aligned pairs rather than individual channels: removing whole pairs to keep the rotation intact. Our evaluation across Llama, Mistral, and Qwen models from 3B to 14B shows that RAP preserves accuracy at 30% KV compression (retain ratio rho = 0.7), far outperforms RoPE-blind channel pruning, stays near the strongest low-rank method at lower attention cost, and composes with orthogonal methods such as quantization.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 43 of its 56 references that are in the map. First posted on arXiv 1 Feb 2026.

Builds on

43 of 56 references.

Closest ancestors · 10

Same direction, newest first

  1. 2025SparK: Query-Aware Unstructured Sparsity with Recoverable KV Cache Channel Pruning21 Aug
  2. 2025ReCalKV: Low-Rank KV Cache Compression via Head Reordering and Offline Calibration30 May
  3. 2025KVzip: Query-Agnostic KV Cache Compression with Context Reconstruction29 May
  4. 2025EliteKV: Scalable KV Cache Compression via RoPE Frequency Selection and Joint Low-Rank Projection3 Mar
  5. 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methods13 Dec
  6. 2024MatryoshkaKV: Adaptive KV Compression via Trainable Orthogonal Projection16 Oct
  7. 2024Palu: Compressing KV-Cache with Low-Rank Projection30 Jul
  8. 2024ThinK: Thinner Key Cache by Query-Driven Pruning30 Jul
  9. 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
  10. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun

Other references · 33

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  5. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  6. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  7. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  8. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  9. 2020Longformer: The Long-Document Transformercited by 3,362
  10. 2023Qwen Technical Reportcited by 3,273
  11. 2016Pointer Sentinel Mixture Modelscited by 2,992
  12. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
21 more
  1. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
  2. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  3. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  4. 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,234
  5. 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,090
  6. 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 776
  7. 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 643
  8. 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
  9. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
  10. 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
  11. 2019Importance Estimation for Neural Network Pruningcited by 531
  12. 2024SVD-LLM: Truncation-aware Singular Value Decomposition for Large Language Model Compressioncited by 231
  13. 2024QServe: W4A8KV4 Quantization and System Co-design for Efficient LLM Servingcited by 200
  14. 2022A Fast Post-Training Pruning Framework for Transformerscited by 161
  15. 2024AI and Memory Wallcited by 89
  16. 2024Challenges in Deploying Long-Context Transformers: A Theoretical Peak Performance Analysiscited by 44
  17. 2025Circle-RoPE: Cone-like Decoupled Rotary Positional Embedding for Large Vision-Language Modelscited by 14
  18. 2025Does quantization affect models' performance on long-context tasks?cited by 10
  19. 2025LeanK: Learnable K Cache Channel Pruning for Efficient Decodingcited by 5
  20. 2025Lethe: Layer- and Time-Adaptive KV Cache Pruning for Reasoning-Intensive LLM Servingcited by 5
  21. 2025The Rotary Position Embedding May Cause Dimension Inefficiency in Attention Heads for Long-Distance Retrievalcited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026DepthKV: Layer-Dependent KV Cache Pruning for Long-Context LLM Inference
  2. 2025KVCompose: Efficient Structured KV Cache Compression with Composite Tokens
  3. 2024More Tokens, Lower Precision: Towards the Optimal Token-Precision Trade-off in KV Cache Compression
  4. 2025RAP: Runtime Adaptive Pruning for LLM Inference
  5. 2026A Self-Pruning Transformer: Extreme KV-Cache Compression with Universal Attention
  6. 2026PuzzleKV: Page-Wise Low-Rank Decomposition for KV Cache Compression
  7. 2026VisCache: Visual KV Cache Pruning for Efficient Vision Large Language Model Inference
  8. 2025Pruning Laws for Large Language Models