Minima-KV: Retention-Preserving KV Cache Compression with Mixed-Format Paged Attention
Organizations: Minima AI, Inc · Minima AI, Inc.
Abstract
The key-value (KV) cache is a primary capacity and bandwidth bottleneck in long-context LLM serving. We present Minima-KV, a retention-preserving hierarchy for mixed-format paged attention. Recent and protected Anchor pages remain in FP8, while older non-anchor pages move to packed TQ3; every live-request page remains addressable. Format-specific kernels compute partial attention states and combine them through a globally normalized online-softmax merge, enabling direct heterogeneous decode without a cache-sized dense shadow. Across separate, configuration-bound Qwen3.6-27B profiles on a single 96-GB NVIDIA RTX PRO 6000 Blackwell GPU, deployment accounting reports 18.3 KiB of attention KV per live token, corresponding to 3.50x compression relative to BF16 and 1.75x relative to FP8. A materializing quality profile matches its dense control on 16K RULER needle-in-a-haystack tasks. On the same 503-question LongBench v2 set, measured deltas are -0.80, -0.60, and -0.40 percentage points at 16K, 32K, and 64K. A separate single-pair direct-decode canary with two 59,008-token requests measures 3.625x active-KV compression and 0.9821x throughput relative to its control, routes all 16 full-attention layers without fallback, and retains no dense shadow. These results establish a practical mixed-format path for compressing long-context state without evicting live-request KV pages.
Figures & tables
| Profile | Evidence boundary | Supported interpretation |
|---|---|---|
| Qwen3.6 quality | Three-tier Recent/Anchor FP8 plus Stale TQ3 ; 1,792-token blocks; eager, batch 1; materialization on; dynamic retiering on; scoring off; dense shadow released | Paired RULER NIAH at 4K/8K/16K and LongBench v2 at 16K/32K/64K; not direct-kernel correctness or speed |
| Qwen3.6 direct | Three-tier Recent/Anchor FP8 plus Stale TQ3 ; 1,792-token blocks; active 2; CUDA graph; static page mix; dynamic retiering and scoring off; dense shadow released | One direct-route compression/TPS canary; a separate eager quality canary using the fast arithmetic settings fails three 16K NIAH tasks |
| Deployment accounting | Owner-reported 18.3 KiB/token workload aggregate; no matching per-tier reconciliation or configuration manifest | Three-tier workload-level footprint; not a constant-rate claim across contexts |
| Qwen3.6 prefix | 16 target full-attention layers plus one MTP attention layer; 832-token blocks; Recent/Anchor FP8 plus Stale TQ3 | Separate Qwen3.6 warm-prefix mechanics, throughput, parity, and physical-compression validation |
| Live tokens | BF16 | FP8 | Minima-KV |
|---|---|---|---|
| 8K | 0.500 | 0.250 | 0.143 |
| 32K | 2.000 | 1.000 | 0.572 |
| 128K | 8.000 | 4.000 | 2.288 |
| 262,144 | 16.000 | 8.000 | 4.575 |
| 1,000,000 | 61.04 | 30.52 | 17.45 |
| Bytes/token | 64.0 | 32.0 | 18.3 |
| Evaluation | Control | Minima | Delta | |
|---|---|---|---|---|
| NIAH 4K | 256 | 97.27% | 93.75% | |
| NIAH 8K | 256 | 99.80% | 100.00% | |
| NIAH 16K | 256 | 100.00% | 100.00% | |
| LBv2 cap 16K | 503 | 190 (37.77%) | 186 (36.98%) | |
| LBv2 32K | 503 | paired delta record | ||
| LBv2 64K | 503 | paired delta record | ||
| Metric | Control/ref. | Direct Minima |
|---|---|---|
| Decode throughput | 29.804 | 29.270 |
| Step time | 42.535 ms | 43.311 ms |
| Tokens / sched. steps | 161 / 127 | 161 / 127 |
| Relative throughput | 1.000 | 0.9821 |
| Physical compression | 1.00 | 3.625 |
| Active KV bytes | 477,102,080 | 131,610,624 |
| Context | BF16 KV | FP8 KV | Minima KV |
|---|---|---|---|
| 8K | 93 | 151 | 207 |
| 16K | 53 | 93 | 139 |
| 32K | 28 | 53 | 84 |
| 64K | 14 | 28 | 47 |
| 128K | 7 | 14 | 25 |
| 262K | 3 | 7 | 12 |
| Method | Mechanism | Retention semantics | Literature-reported result |
|---|---|---|---|
| RDKV [ 17 ] | Joint 0-to-full-bit rate–distortion allocation over tokens/channels | Zero bits permits eviction | 97.81% of full-cache LongBench accuracy at 2.48% retention; 4.5 decode speedup and 1.9 peak-memory reduction at 128K |
| MosaicKV [ 16 ] | Dynamic sequence- and channel-dimension compression by segment | Different compressed-management semantics | 3 memory reduction, 1.76% average accuracy loss, and up to 7.3 throughput versus its uncompressed baseline |
| JoLT [ 18 ] | Partial Tucker plus rotated low-bit residual | Compressed approximation without reported token eviction | 2–3 near-lossless compression; compression-time rather than serving-throughput speedup |
| Minima-KV (this paper) | Retained Recent/Anchor FP8 and Stale TQ3 pages with direct mixed decode | Every live-request logical page remains addressable | 18.3 KiB/token owner aggregate; one direct canary at 0.9821 its dense control; quality profile has measured regressions |
KV-Cache Compression
Key-value cache compression reduces the memory and bandwidth needed to retain attention states during long-context inference.
See all 256 papers