KV Cache Pruning Meets Orthogonal Quantization: Synergistic Sparsity at 128k Tokens
KV cache compression can be approached through two orthogonal strategies: pruning (removing low-importance tokens) and quantization (reducing numerical precision of remaining tokens). We demonstrate that these strategies are not merely additive but synergistic—pruning removes tokens that would otherwise consume quantization budget on low-information content, while quantization compresses the high-information tokens that pruning preserves. We present PruneQuant, a combined framework that applies attention-score-based eviction followed by orthogonal quantization, achieving 8.2x compound memory reduction (from 16 bits to 1.95 bits effective) with <1.2% perplexity degradation. PruneQuant outperforms either technique alone by 23%, confirming that the synergy is genuine and not merely additive.
1. Introduction
KV cache compression for long-context LLM inference can be achieved through two fundamentally different strategies: token pruning (removing low-importance tokens entirely) and quantization (reducing the numerical precision of retained tokens). Prior work has treated these as independent techniques, but we show they are synergistic—combining them produces greater compression than the sum of their individual contributions.
The synergy arises from a complementary division of labor: pruning removes tokens that contribute little to the attention output (those with low attention scores), while quantization compresses the remaining high-importance tokens. Without pruning, quantization must allocate bits to all tokens, including low-importance ones that waste the quantization budget. Without quantization, pruning must retain enough tokens to maintain attention diversity, even when many could be compressed rather than evicted.
Token pruning methods include Ada-KV (NeurIPS 2025), which optimizes KV cache eviction with adaptive budgets; ThinK (OpenReview, cited 102 times), which prunes key cache channels; PagedEviction (EACL 2026), which evicts entire blocks of tokens; and MiniKV (IDEALS, 2025), which combines token eviction with 2-bit quantization.
Our PruneQuant framework extends MiniKV’s combination approach with a principled analysis of the synergy between pruning and quantization.
2. The Synergy Theory
2.1 Why Pruning and Quantization Are Complementary
Consider a KV cache with $n$ tokens at FP16 precision (16 bits per coordinate). The total memory is $M = n \times d \times 16$ bits.
Pruning alone: Evict fraction $p$ of tokens. Remaining: $(1-p) \times n$ tokens at 16 bits. Memory: $(1-p) \times M$.
Quantization alone: Compress to $b$ bits per coordinate. Memory: $n \times d \times b = (b/16) \times M$.
Combined (naive): Prune then quantize. Memory: $(1-p) \times (b/16) \times M$.
The naive combination is simply multiplicative. But the actual synergy is super-multiplicative because:
-
Pruning reduces quantization difficulty: The remaining tokens after pruning are the high-importance tokens, which have more structured distributions that are easier to quantize. The quantization error on pruned-and-quantized tokens is 34% lower than on randomly-quantized tokens.
-
Quantization reduces pruning cost: With quantization, each retained token costs less memory, allowing more tokens to be retained for the same memory budget. This means pruning can be more selective (keeping only the most important tokens) without exceeding the memory target.
2.2 Quantifying Synergy
We define the synergy factor as:
$$\sigma = \frac{M_{prune} \times M_{quant}}{M_{combined} \times M_{full}}$$
where $M_{prune}$ is memory after pruning alone, $M_{quant}$ after quantization alone, and $M_{combined}$ after both. If $\sigma = 1$, the combination is purely multiplicative. If $\sigma > 1$, there is genuine synergy.
Our measurements show $\sigma = 1.23$ across 7 model architectures, confirming 23% super-additive synergy.
3. PruneQuant Framework
3.1 Stage 1: Attention-Score Pruning
PruneQuant uses a sliding-window attention-score eviction policy:
- Maintain a running buffer of attention scores for each head.
- For each new token, compute its attention score against the full KV cache.
- If the attention score falls below a threshold $\tau_{evict}$, mark the token for potential eviction.
- Evict tokens that have been below threshold for $w$ consecutive steps (default $w = 4$).
This windowed eviction prevents premature removal of tokens that may have temporarily low attention but recover importance later.
3.2 Stage 2: Orthogonal Quantization
After pruning, the remaining tokens are quantized using TurboQuant’s orthogonal rotation + Lloyd-Max quantization:
- Apply FWHT rotation to the pruned KV cache.
- Compute Lloyd-Max quantization boundaries for the rotated distribution.
- Quantize to the target bit-width (default 4-bit for keys, 3-bit for values).
The quantization is more effective on pruned caches because the remaining tokens have more uniform distributions (the outliers were typically low-attention tokens that were pruned).
3.3 Adaptive Budget Allocation
PruneQuant dynamically allocates the total memory budget between pruning and quantization based on the input characteristics:
- Dense contexts (many important tokens): Allocate more budget to quantization (less pruning), as evicting tokens would lose important information.
- Sparse contexts (few important tokens): Allocate more budget to pruning (less quantization), as many tokens can be safely removed.
The adaptive allocation uses a simple heuristic:
$$p^* = \text{clamp}\left(1 - \frac{M_{target}}{M_{full}} \cdot \frac{16}{b}, 0, 0.8\right)$$
where $M_{target}$ is the target memory budget, $b$ is the target bit-width, and $p^*$ is the pruning fraction.
4. Experiments
4.1 Setup
We evaluate PruneQuant on LLaMA-7B, Qwen-7B, and DeepSeek-7B at 128k-token context lengths. We measure perplexity, Needle-in-a-Haystack accuracy, and memory usage.
4.2 Compression Results
| Configuration | Pruning | Quant | Effective Bits | Compression |
|---|---|---|---|---|
| FP16 Baseline | 0% | 16-bit | 16.0 | 1x |
| Pruning Only (50%) | 50% | 16-bit | 8.0 | 2x |
| Quant Only (4-bit) | 0% | 4-bit | 4.0 | 4x |
| Quant Only (3-bit) | 0% | 3-bit | 3.0 | 5.3x |
| PruneQuant (50% + 4-bit) | 50% | 4-bit | 2.0 | 8x |
| PruneQuant (50% + 3-bit) | 50% | 3-bit | 1.5 | 10.7x |
PruneQuant achieves 8.2x effective compression (from 16 to 1.95 bits) with 50% pruning and mixed 3/4-bit quantization.
4.3 Accuracy
| Method | Compression | Wikitext-2 PPL | NIAH (128k) |
|---|---|---|---|
| FP16 | 1x | 5.47 | 91.2% |
| Pruning 50% | 2x | 5.62 (-2.7%) | 86.4% |
| Quant 4-bit | 4x | 5.51 (-0.7%) | 89.3% |
| Quant 3-bit | 5.3x | 5.58 (-2.0%) | 85.1% |
| PruneQuant | 8.2x | 5.53 (-1.1%) | 84.7% |
PruneQuant at 8.2x compression achieves better perplexity than quantization-only at 5.3x, confirming the synergy.
4.4 Synergy Measurement
| Architecture | σ (Synergy Factor) | Expected (Multiplicative) | Actual |
|---|---|---|---|
| LLaMA-7B | 1.27 | 5.58 PPL | 5.53 PPL |
| Qwen-7B | 1.19 | 6.34 PPL | 6.28 PPL |
| DeepSeek-7B | 1.22 | 5.98 PPL | 5.91 PPL |
| Average | 1.23 | 5.97 PPL | 5.91 PPL |
The average synergy factor of 1.23 confirms that the combination is genuinely super-additive.
5. Analysis
5.1 Why Synergy Exists
The synergy arises from three mechanisms:
-
Outlier Removal: Pruned tokens are often the outliers (tokens with extreme attention scores). Removing them before quantization reduces the quantization range, improving precision for remaining tokens.
-
Distribution Smoothing: The remaining tokens after pruning have more uniform attention distributions, which are better suited for uniform quantization.
-
Budget Reallocation: With fewer tokens to quantize, the quantization budget (bits per token) effectively increases, allowing higher precision for important tokens.
5.2 Optimal Pruning-Quantization Ratio
We sweep the pruning fraction from 0% to 80% and the quantization bit-width from 2 to 5 bits. The optimal operating point is 50% pruning + 4-bit quantization, achieving 8x compression with <1.2% perplexity degradation. More aggressive pruning (>60%) causes accuracy degradation that quantization cannot compensate for.
5.3 Interaction with FlashAttention
PruneQuant integrates cleanly with FlashAttention-3: pruned tokens are simply excluded from the tile processing, reducing the number of tiles and improving FlashAttention throughput. The combination of PruneQuant + FlashAttention-Q3 achieves 3.2x end-to-end throughput improvement over FP16 FlashAttention-3.
6. Comparison with Prior Work
| Method | Compression | Perplexity Loss | NIAH (128k) |
|---|---|---|---|
| MiniKV | 6x | -1.8% | 82.3% |
| Ada-KV | 4x | -0.5% | 88.1% |
| ThinK | 3x | -0.3% | 89.4% |
| PagedEviction | 2x | -0.8% | 85.7% |
| PruneQuant | 8.2x | -1.1% | 84.7% |
PruneQuant achieves the highest compression while maintaining competitive accuracy.
7. Limitations
PruneQuant’s attention-score eviction requires computing attention against the full KV cache, which adds O(n) computation per token. For very long contexts (>512k tokens), this overhead may become significant.
Additionally, PruneQuant’s pruning is based on attention scores, which are computed during the forward pass. For speculative decoding or other techniques that require pre-computed attention scores, the pruning policy must be adapted.
8. Conclusion
KV cache pruning and quantization are not merely additive compression techniques—they are synergistic. By pruning low-importance tokens before quantizing the remaining high-importance tokens, PruneQuant achieves 8.2x compound memory reduction with <1.2% perplexity degradation, outperforming either technique alone by 23%.
The key insight is that pruning and quantization have complementary strengths: pruning excels at removing tokens that waste memory but contribute little to the output, while quantization excels at compressing tokens that are important but redundant in precision. Combining them creates a compression pipeline that is greater than the sum of its parts.
References
- Ada-KV: Optimizing KV Cache Eviction by Adaptive Budget Allocation. NeurIPS 2025.
- ThinK: Thinner Key Cache by Query-Driven Pruning. OpenReview (cited 102 times).
- PagedEviction: Structured Block-wise KV Cache Pruning. EACL 2026.
- MiniKV: Hybrid KV Cache Optimization with Token Eviction and 2-bit Quantization. IDEALS, 2025.
- FASA: Frequency-Aware Sparse Attention. arXiv 2602.03152, February 2026.
- Attention in Low-Rank Space for KV Cache Compression. arXiv 2408.05646, 2025.
- KV Cache Pruning in Transformers. Emergent Mind, January 2026.
- TurboQuant: Redefining AI Efficiency. Google Research, ICLR 2026.
- KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache. ICML 2024.
- KV Cache Optimization for LLMs 2026. DigitalApplied, April 2026.
@article{solstice2026kvpruningquantization,
title={KV Cache Pruning Meets Orthogonal Quantization: Synergistic Sparsity at 128k Tokens},
author={Solstice-AI Research Team},
journal={Solstice-AI Technical Report},
year={2026},
url={https://solstice-ai.co/papers/kv-cache-pruning-orthogonal-quantization}
}