# LoomKV: Lossless KV Cache Compression from GPU Memory to SSD for LLM Serving

> LoomKV losslessly compresses LLM key/value caches in DRAM/SSD tiers and GPU memory, turning saved bytes into capacity. On AgentX, tier mode delivered 2.7–3.6× raw goodput near LMCache’s LRU cliff; pool mode fit 1.34× as many GPU tokens at 54 GB/GPU.

- arXiv: https://arxiv.org/abs/2611.32954
- Authors: Wentao Zhu, Ziao Sheng, Peng Deng, Huiqi Hu, Xuan Zhou, Xing Wei, Zhuang Wang
- Published: 2026-11-26
- Topic: Inference & systems
- Visual carousel: https://instaxiv.com/p/2611.32954
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## Can lossless KV compression soften cache cliffs?

**2.7–3.6×** AgentX tier goodput vs raw at LMCache LRU cliff

## Two separate KV limits can stall serving

![Figure 1](https://cdn.instaxiv.com/figures/2611.32954/figure1.webp)

Tiers retain prefixes; GPU pages limit concurrent requests. In Qwen3-30B-A3B, cutting tier capacity from 1200 to 1040 GB nearly halves goodput; a full pool queues despite cache hits. (Figure 1)

## One lossless code family, two places for KV

![Figure 2](https://cdn.instaxiv.com/figures/2611.32954/figure2.webp)

Tier mode compresses DRAM/SSD records, then restores exact KV bits before vLLM’s stock attention. Pool mode keeps GPU pages compressed for fused decode attention, whose different summation order can shift outputs at rounding precision. (Figure 2)

## A skewed byte distribution enables lossless coding

![Figure 3](https://cdn.instaxiv.com/figures/2611.32954/figure3.webp)

Qwen3-30B-A3B: top seven high-byte values cover ~94% on average. TileStream keeps low bytes verbatim; calibrated per-head 3+3-bit codes handle high bytes, with raw escapes. Across nine models, BF16 KV stores ~0.71 of raw size. (Figure 3)

## TileStream makes variable escapes parallel

![Figure 4](https://cdn.instaxiv.com/figures/2611.32954/figure4.webp)

Each 128-token record separates low, primary, secondary and raw streams. Grouped tile indexes let warps jump to escape bytes; normal loads write restored KV directly into scattered GPU pages. (Figure 4)

## Saved bytes count only when allocations shrink

**Raw-sized slots:** A shorter record adds no capacity if each chunk still reserves its full raw size.

**LoomKV:** Tier mode uses exact-length DRAM objects; pool mode packs records into smaller shared-budget GPU pages. A worker defers length readback, letting the handler serve loads; rotating buffers overlap PCIe copies with GPU waits.

## At the LMCache LRU cliff, tier mode lifts goodput

| Method | Goodput (req/min) | Mean TTFT (s) |
| --- | --- | --- |
| Raw tiers | 4.6 | 6.76 |
| **Tier mode (2.9× goodput)** | **13.5** | **2.31** |

_AgentX SSD-size table; Qwen3-30B-A3B, 64 sessions, 400 GB DRAM + 640 GB SSD, LMCache LRU, S=8. Goodput: engine TTFT ≤2 s, ITL ≤40 ms._

## FragPack makes compressed GPU pages attention-ready

1. **Order by consumer**: FragPack permutes each K/V record into tensor-core thread fragments for coalesced reads.
2. **Fit, then fuse**: Records share a fixed GPU-page budget; overflow falls back to raw. Threads decompress straight into registers for attention, avoiding a full-KV write/read pass.

## Fused attention is fast, with one shape exception

![Figure 9](https://cdn.instaxiv.com/figures/2611.32954/figure9.webp)

At full clock, fused BF16 decode takes 0.56–0.85× FA3 time across TP1 shapes. On TP2, it beats FlashInfer on 11 of 12 shapes; one request at 32K takes 1.23× FlashInfer time. (Figure 9)

## A larger GPU pool cuts queueing at 12 admissions

| Method | Goodput (req/min) | Mean TTFT (s) | Mean wait (requests) |
| --- | --- | --- | --- |
| Raw pool (S=12) | 10.6 | 5.16 | 1.5 |
| **Pool mode (S=12) (1.5× goodput)** | **15.7** | **1.76** | **0.4** |

_AgentX GPU-budget table; Qwen3-30B-A3B, 64 sessions, 54 GB/GPU, 400 GB DRAM + 2 TB SSD; hit rate 0.93–0.94. Net pool: 1.34× raw tokens._

## Both cache levels were tight in an AI IDE trace

**Raw:** On Qwen3-30B-A3B with 128 GB DRAM + 512 GB SSD, raw LMCache averaged 21.9 s TTFT and 9.4 requests/min.

**Compressed:** Open-loop, no FIFO proxy; TTFT includes vLLM queueing. Tier mode reached 11.6 requests/min and 3.9 s TTFT; pool mode, 15.0 and 1.8 s.

## Where the evidence stops

- **Deployment scope**: Tests cover one node at TP1/TP2 over PCIe; pipeline/expert parallelism, shared cache servers, MLA and FP4 remain untested.
- **Pool backend**: Current pool mode supports BF16/FP8, 128-dimension heads, GQA groups up to 8, and 128-token blocks.
- **FP8 pool mode**: Above 32K tokens at the power cap, FP8’s fused kernel takes 0.98–1.15× FlashInfer time; shared pages are sized for the hardest-to-compress layer.

Best used when: Choose tier mode for prefix eviction, pool mode for GPU queueing or both shortages; disable compression when raw capacity suffices.

## Key takeaways

- Lossless coding turns saved KV bytes into capacity without changing stored values.
- Choose tier mode for prefix eviction, pool mode for GPU queueing, and pool mode if both levels are short.
- The open question is how these results generalize beyond single-node TP1/TP2 tests and today’s pool-kernel shapes.

## Links

- arXiv: https://arxiv.org/abs/2611.32954
- PDF: https://arxiv.org/pdf/2611.32954

## Citation

```bibtex
@article{zhu2026loomkv,
  title   = {LoomKV: Lossless KV Cache Compression from GPU Memory to SSD for LLM Serving},
  author  = {Zhu, Wentao and Sheng, Ziao and Deng, Peng and Hu, Huiqi and Zhou, Xuan and Wei, Xing and Wang, Zhuang},
  journal = {arXiv preprint arXiv:2611.32954},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.32954}
}
```
