AttSVD:Prompt-Adaptive Low-Rank KV Cache Compression via Attention-Guided SVD
cs.LG, cs.AI
Submitted: 2026-10-03
Updated: 2026-10-03
License: http://creativecommons.org/licenses/by-sa/4.0/
The gist: The key-value (KV) cache of autoregressive transformers grows linearly with context length and dominates memory at long context.
Terminology
Abstract
The key-value (KV) cache of autoregressive transformers grows linearly with context length and dominates memory at long context. Most training-free remedies evict low-importance tokens, an irreversible choice along the sequence axis. We instead keep every token and store it more cheaply along the "feature" axis. We therefore propose AttSVD, a new "interpretable" low-rank compression whose basis is derived from each prompt's own attention geometry: an online, per-prompt truncated SVD that keeps only the directions attention actually reads, cutting persistent per-head KV memory in proportion to the retained rank. We propose two decode-time caching strategies, accumulating and streaming, for short and long generation regimes. Furthermore, we propose two refinements that make compression adaptive. A per-matrix energy rule sizes the logit space and the attention mass independently. An attention-aware basis truncates only in the spaces attention actually reads, preserving both the attention logits and the attention output. The same factors also provide free, per-head interpretability insights into the effective rank and the geometry attention consumes. Across multiple models, on both an agentic benchmark and the full LongBench suite AttSVD stays on par with the dense cache while using up to 50% of the KV-cache memory.
Sources
- Don't be so Stief! Learning KV Cache low-rank approximation over the Stiefel manifold
- ResidualKV: Residual-Based KV Cache Compression for Efficient Long-Context Inference
- ARKV: Adaptive and Resource-Efficient KV Cache Management under Limited Memory Budget for Long-Context Inference in LLMs
- A Simple Plug-in for Improving Eviction-Based KV Cache Compression
- ReCalKV: Low-Rank KV Cache Compression via Head Reordering and Offline Calibration
- ASVD: Activation-aware Singular Value Decomposition for Compressing Large Language Models
- LoRC: Low-Rank Compression for LLMs KV Cache with a Progressive Compression Strategy
- EliteKV: Scalable KV Cache Compression via RoPE Frequency Selection and Joint Low-Rank Projection
- Fast KV Compaction via Attention Matching
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks