STAR-KV: Low-Rank KV Cache Compression via Soft Thresholding for Adaptive Rank Control
About
Low-rank projection has emerged as a promising approach for compressing the KV cache by exploiting hidden-dimension redundancy. However, prior methods rely on fixed or heuristic rank selection and struggle to achieve aggressive compression with minimal accuracy degradation. We propose STAR-KV, an adaptive low-rank KV cache compression framework with fine-grained rank control. STAR-KV encompasses 1) a differentiable thresholding mechanism that enables optimal rank selection at both attention-head and block levels, 2) a hybrid decomposition strategy that applies different low-rank factorizations according to the sensitivity of key and value projections, and 3) a low-rank-aware mixed precision quantization that leverages data statistics for near lossless low-bit quantization. Evaluated across multiple LLMs and benchmarks, STAR-KV achieves up to 75% KV cache compression and up to 20x overall KV cache reduction when combined with quantization. Enabled by custom Triton-based GPU kernels, STAR-KV delivers up to 6.9x speedup for the attention module and 3.1x end-to-end generation throughput. Our code is publicly available at: https://github.com/PriyanshBhatnagar/STAR-KV.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Long-context evaluation | RULER 16k | Total Score84.16 | 62 | |
| Language Modeling | Wiki2 and C4 | Perplexity (Wiki2)5.49 | 19 | |
| Commonsense Reasoning | LM-Eval-Harness OBQA, PIQA, ARC-e, ARC-c, HellaSwag, WinoGrande | OBQA Accuracy43.4 | 14 | |
| End-to-end generation | LLM Generation Throughput | Throughput (tokens/s)751 | 10 | |
| Long-context Understanding | LongBench | Qasper Score23.2 | 8 | |
| Zero-shot Question Answering | Reasoning Suite (OBQA, PIQA, ARC-e, ARC-c, Hella, Wino) Zero-shot | Accuracy on OBQA (Zero-shot)44 | 8 | |
| Language Modeling | Wiki2 and C4 (test) | Perplexity (Wiki2)5.69 | 7 | |
| Commonsense Reasoning | Commonsense Benchmarks (ARC-e, ARC-c, OBQA, PIQA, Hella) zero-shot | Average Accuracy60.12 | 7 | |
| Long-context Language Understanding | LongBench | Qasper Score23.15 | 5 |