Manuscript Offprint

arXiv:2608.23834

Minima-KV: Retention-Preserving KV Cache Compression with Mixed-Format Paged Attention

Sergii Kozyrev, Davyd Maiboroda

Abstract

Long-context LLM serving is constrained by key-value (KV) cache capacity and bandwidth. We present MINIMA-KV, a retention-preserving hierarchy for paged attention. Recent and Anchor pages use FP8, while Stale pages use TQ3. Every live-request page remains addressable; format-specific kernels merge the two physical formats without retaining a cache-sized dense shadow.

We report the available evidence as separate profiles. On Qwen3.6-27B on one 96-GB NVIDIA RTX PRO 6000 Blackwell GPU, deployment accounting reports 18.3 KiB of attention KV per live token, a 3.50×3.50\times footprint reduction relative to BF16 and 1.75×1.75\times relative to FP8, but the surviving record does not reconcile bytes by tier. A quality-focused FP8/TQ3 materializing profile matches its dense control on eight-task RULER NIAH at 16K, improves the task-macro score by 0.20 percentage points at 8K, but regresses by 0.9 points at 4K and, on the same 503-question LongBench v2 set, by 0.80 points at 16K, 0.60 points at 32K, and 0.40 points at 64K. A separate static direct-fused FP8/TQ3 canary at two 59,008-token requests measures 3.625×3.625\times active-KV compression, routes all 16 full-attention layers without fallback, and retains no dense shadow. Its single-pair throughput ratio is 0.9821 against a dense control whose KV dtype is not bound by the surviving record. Across the three LongBench v2 lengths, all measured deltas remain within one percentage point of dense control. Throughput remains a separate single-pair result rather than repeated-run evidence. Every quantitative result refers to this three-tier Recent/Anchor/Stale system.

1 Introduction

Autoregressive decoding avoids recomputing past attention keys and values by retaining them in a KV cache. This converts repeated computation into a state and memory-bandwidth problem: cache size grows linearly with context length, batch size, the number of full-attention layers, the number of KV heads, and the head dimension. PagedAttention reduces allocator fragmentation and enables cache sharing, but it does not reduce the information stored in each physical page [1]. At long context or high concurrency, KV memory consequently limits request admission, batching, and GPU utilization.

Prior work attacks this bottleneck with quantization [2–4], eviction or sparse retention [6–9], and low-rank or structural representations [10, 11, 18]. These directions expose a central tension. Uniform quantization is recoverable but spends equal bits on unequal tokens. Importance-based eviction spends memory selectively but may fail when future attention moves to previously unimportant context. Structural compression can preserve more information per bit, yet it requires runtime co-design to avoid reconstruction cost overwhelming the memory saving.

MINIMA-KV treats KV state as a managed fidelity hierarchy. New pages begin in a high-fidelity recent window. A protected anchor set retains old system instructions, attention sinks, retrieved evidence, or other globally important regions. Older non-anchor pages move to a three-bit representation. Every logical page remains addressable with an exact or reconstructible approximation; no lifecycle transition deletes KV from a live request. The controller also supports page-level attention scoring so repeatedly retrieved pages can move toward Anchor even when old. The evaluated Qwen3.6 profiles in this paper use the implemented three-tier FP8/TQ3 path. Completed request prefixes are a separate cache resource and may be evicted after their last live-request reference is released.

This paper makes four contributions:

  1. We formulate a retention-preserving lifecycle for paged KV memory, implementing Recent and Anchor FP8 plus Stale TQ3 without deleting live-request pages.

  2. We describe mixed-format paged attention kernels that combine normalized FP8 and TQ3 partial outputs through a stable global softmax merge without constructing a cache-sized dense shadow.

  3. We report profile-separated Qwen3.6-27B evidence with measured quality results, including equality at 16K RULER NIAH, a within 1% regression at 4K RULER NIAH, and LongBench v2 through 64K.

  4. We provide a CUDA-graph-compatible heterogeneous decode path and an ownership protocol with route, fallback, dense-shadow, physical-byte, and immutable-prefix instrumentation.

We do not claim the first dynamic, tiered, or mixed-precision KV method. DynamicKV, DiffKV, HqeKV,

QEvict, and MosaicKV provide close and important precedents [12–16]. The evaluated systems contribution is the integration of retention-preserving FP8/TQ3 side stores, direct heterogeneous decode, ownership, and instrumentation inside a production-oriented paged runtime.

References (27)