Current assessment of KV-cache compression performance confuses resident bits with read bandwidth and is affected by the artifacts of chunked teacher-forcing. We present Geodesia-KV, a family of training-free KV cache policies based on monotonic block-wise precision allocation, exact rate-distortion residuals, and query-sparse reading, enabling proper hardware-ready compression. With proper separation of resident and read bits and causal evaluation, we show that Geodesia-KV significantly outperforms other approaches. Specifically, on WikiText-2 with 16k context, the 5-bit operating point of Geodesia-KV results in lower perplexity at lower bitrate than KIVI-4 on Qwen. In addition, our compressed-Quest version delivers improved perplexity and reduces resident (9.83 vs 16.25 bits/value) and read rates (1.95 vs 2.32 bits/value) over baseline sparse methods on PG-19. As Geodesia-KV is implemented as native GeodesiaKVCacheManager plug-in of vLLM, Geodesia-KV fully removes the need for dense cache residency via monotonic bit demotion. With the full consumer hardware evaluation, Geodesia-KV leads to 1M-token context generation on a single 16 GiB GPU with up to 71.7% peak VRAM savings on all leading architectures (Qwen, Llama, DeepSeek).
Figures & tables
Figure 1: Geodesia-KV System Architecture. KV tensors are divided into blocks of 64 tokens and encoded by the causal Rate-Distortion observer. Each tensor block is allocated to the most efficient precision in the bit ladder {16,8,4,2,centroid} with the help of the Lagrangian allocator and native vLLM block-paged manager without dense copies.
Model
Method
resident/read
PPL
3B
Full-KV (oracle)
16.000/16.000
6.3871
3B
Quest
16.250/2.313
8.0157
3B
StreamingLLM
2.004/2.004
6.9607
3B
SnapKV
2.250/2.250
6.7082
3B
KIVI-2
3.203/3.203
6.8569
3B
KIVI-4
5.031/5.031
6.3222
Table 1: Primary Q=1 WikiText-2 comparison across all evaluated cache policies, six windows and 64 targets per window. Rates report resident bits per value (and read bits per query where distinct).
Corpus
Method
resident
read/query
PPL
wins vs. Quest
WikiText-2
Full-KV (oracle)
16.000
16.000
8.153
—
WikiText-2
StreamingLLM
2.004
2.004
8.740
0/6
WikiText-2
SnapKV
2.250
2.250
8.362
2/6
WikiText-2
KIVI-2
3.203
3.203
8.411
1/6
WikiText-2
KIVI-4
5.031
5.031
10.581
3/6
WikiText-2
Quest
16.250
2.317
10.238
4/6
Table 2: Qwen3-8B evaluation across all cache policies on WikiText-2 (six 64-target windows) and PG-19 (full eleven-book transfer, Q=1). Rates report resident capacity and read traffic per query.
Method
resident/read
PPL (11 books)
PPL ratio vs. Oracle
Full-KV (oracle)
16.000/16.000
15.470
1.0000
Quest
16.250/2.317
16.043
1.0370
StreamingLLM
2.004/2.004
17.820
1.1519
SnapKV
2.250/2.250
15.890
1.0271
KIVI-2
3.203/3.203
16.120
1.0420
KIVI-4
5.031/5.031
15.475
1.0003
Table 3: Frozen Qwen3-8B transfer evaluation on the full 11-book PG-19 test set ( Q=1 ). Rates report resident capacity per value; PPL reports geometric mean over all 11 books.
Figure 2: Perplexity v. Resident Rate Pareto Frontier . Geodesia-KV constructs the optimal Pareto frontier among the rates, matching full-KV at 4.98 BPV and beating eviction-based baselines (StreamingLLM, Quest) at low rates.
Model
Method
resident
read/query
PPL
8B
Full-KV
16.000
16.000
10.535
8B
StreamingLLM
2.004
2.004
10.582
8B
SnapKV
2.063
2.063
10.560
8B
Quest
16.250
2.313
10.230
8B
KIVI-2
3.051
3.051
10.604
8B
KIVI-4
5.043
5.043
10.539
Table 4: Exploratory chunked Q=64 transfer of RD-V2 across all evaluated policies. These rows are screening results, not primary Q=1 evidence. The 30B weights are GPTQ-Int8.
Model
Method
resident
KL
3B
Full-KV (oracle)
16.000
0.00000
3B
Quest
16.250
0.04810
3B
StreamingLLM
2.004
0.01250
3B
SnapKV
2.250
0.00890
3B
KIVI-2
3.203
0.00680
3B
KIVI-4
5.086
0.00410
Table 5: Diagnostic attention KL divergence to dense attention across all policies. These runs isolate memory fidelity; they are distinct from PPL evaluation. Full-KV has KL equal to zero by definition.
Model
packed GiB
dense GiB
compression
packed ms/token
dense ms/token
speedup
Qwen2.5-3B
0.0815
0.5625
6.90×
3.17
11.90
3.75×
Qwen3-8B
0.3257
2.2500
6.91×
9.93
12.44
1.25×
Table 6: Head-batched attention-only microbenchmark at 16k. Dense is a local bmm reference, not FlashAttention or PagedAttention. Times include all KV heads of one layer and are multiplied by the number of serial layers.
Qwen3-8B, 144.0 KiB/token
Qwen2.5-3B, 36.0 KiB/token
VRAM
Full/Quest
Streaming
SnapKV
KIVI-4
Geodesia-KV 2-bit
Full/Quest
Streaming
SnapKV
KIVI-4
Geodesia-KV 2-bit
16 GiB
76.0k
590.3k
573.1k
241.8k
590.3k
413.7k
3.21M
3.12M
1.32M
3.21M
24 GiB
134.8k
1.05M
1.02M
428.7k
1.05M
648.7k
5.04M
4.90M
2.06M
5.04M
48 GiB
311.1k
2.41M
2.34M
989.2k
2.41M
1.35M
10.51M
10.22M
4.30M
10.51M
64 GiB
428.6k
3.33M
3.23M
1.36M
3.33M
1.82M
14.16M
13.77M
5.80M
14.16M
Table 7: Single-sequence maximum context when NF4 weight capacity exists within all cache compression methods. The 16 GiB row is measured with ballasting the hardware to that limit and performing the bisection again. The other rows are estimated using the measured weight and cost of activation. The native window sizes are 40,960 (8B) and 32,768 (3B), which scale up to 131,072 with RoPE scaling.
Method
at 40,960
at 131,072
Full-KV / Quest
6
2
StreamingLLM
53
16
SnapKV
51
15
Compressed-Quest
11
3
KIVI-4
21
6
Geodesia-KV 2-bit
53
16
Table 8: Concurrent Qwen3-8B sequences whose caches fit alongside NF4 weights on a 48 GiB device across all cache policies. While theoretical capacities are shown here for cache memory alone, Section 6 confirms these savings translate effectively inside a real serving engine (vLLM).
Figure 3: Real LLM Serving VRAM Profile. Geodesia-KV reduces the resident capacity to 2.91 BPV ( 81.8% VRAM saving) while ensuring perfect 100% Needle-In-A-Haystack (NIAH) multi-turn retrieval accuracy. Eviction strategies like StreamingLLM and SnapKV fail multi-turn topic shift (red bars) since they can never recover their evicted context, and sparse-read optimizations like Quest only add VRAM resident overheads.
As large language models (LLMs) process increasingly long contexts, KV cache storage and repeated access have become a major bottleneck. Existing KV cache compression methods rely on predefined, fixed compression rules and are typically developed around either token eviction or merging. As a result, cache resources can neither flow freely across layers, heads, and context slots, nor be jointly allocated to balance local resolution and information coverage. Therefore, we propose GraceKV, a global approach for the allocation of resolution and coverage in KV cache compression, and formulate the compression process as a global resource allocation problem under a fixed cache budget. GraceKV treats each layer-KV-head-slot combination as an atomic unit and builds a prototype tree. Leaf nodes correspond to token-level KV entries, while each internal node uses a single prototype to compress the KV space covered by its children. A set of non-overlapping nodes in the tree forms the representation of an atomic unit. Adding the root of a new tree expands information coverage, whereas splitting a selected node improves local resolution. All candidate actions compete globally for a shared cache budget. Finally, the nodes retained across all trees form the compressed KV cache. This process adaptively determines the allocation of cache resources among atomic units globally and the balance between resolution and coverage. GraceKV requires no additional training, and the entire compression and inference process is performed on the GPU. Systematic experiments across diverse long-context tasks and compression ratios show that GraceKV ranks first in 25 of 32 settings and remains robust up to 128-fold compression. These results validate the effectiveness of global budget allocation in coordinating information coverage and local resolution.
KV cache eviction methods typically use a single retention-rule family throughout a model, making eviction-method identity a model-level design choice. Yet Transformer layers differ substantially in their attention behavior, representations, and sensitivity to compression, suggesting that a uniform rule may overlook useful layer-wise structure. This raises a basic question: should eviction methods themselves vary across layers? We investigate this question by composing existing eviction methods across Transformer layers and systematically exploring the resulting layer-wise design space. Using simple offline profiles, we construct fixed routes and study how their quality varies with method placement and cache budget. On LongBench, heterogeneous routing improves performance on a majority of tasks over homogeneous policies at the same cache budget. Even when method counts are held fixed, the profile-guided placement ranks second among 100 evaluated assignments, demonstrating that routing quality depends strongly on where methods are placed. Moreover, the same fixed route outperforms the best of nine standalone baselines across all five tested cache budgets. Together, these results establish layer-wise method composition as an exploitable, placement-sensitive design dimension for KV cache compression.
Chao Fei, Kaihua Liang, Hanzhi Hu +4
King Abdullah University of Science and Technology · Fudan University
KV-cache entries are stored before their future queries are known, but each decoding query needs precision in different places. We study this mismatch using separate budgets for retained bits and bits fetched per query. ReadKV stores each key and value in a progressive code whose prefixes support different reconstruction precisions. For each query, it allocates key-channel prefixes using the query, computes attention from the reconstructed keys, and then allocates value-token prefixes using that attention. Stored entries remain unchanged. Each stage optimizes a calibrated distortion objective under a fixed budget; we prove exact allocation under diminishing refinement gains and relate these objectives to attention-output error. We also exhibit a finite-dimensional attention family where query-dependent access strictly outperforms every query-independent reader at the same read budget, even with unrestricted competing encoders and decoders. Across six base models, reading four bits on average from an eight-bit cache increases C4 perplexity by at most 0.66%, using about one quarter of the logical reads and half the retained capacity of a 16-bit cache. It is consistently more accurate than storing and fully reading four bits at the same payload-read budget. Retaining more bits than each query fetches is aimed at long-context decoding, where the cache bytes moved per step, rather than the weights, dominate cost. Long-context question answering and retrieval on two instruction-tuned models provide additional quality evidence. On the tested 8K-token, batch-one, single-layer workload on an NVIDIA A10G, a restricted eight-bit ReadKV reader with a two-bit mean payload-read budget has 39% lower latency than the tested TurboQuant codec.
Siddharth Bhandari, Lucas Gretta, Krishna Balasubramanian +1