CompilerKV: 100KB offline lookup tables compress KV cache to 1.56% with 2.45x throughput
机器之心 · wechat · 2026-11-26
Researchers from CAS IA, UESTC, CUHK-Shenzhen, Tianjin University and USTB propose CompilerKV, a risk-adaptive KV cache compression method based on offline experience compilation.
Key insight: head reliability and prompt-level compression sensitivity are noisy within a single prompt but highly regular across prompts (Spearman ρ=0.90 across corpora) — portable architectural priors that should be compiled offline, not recomputed online.
Method: using 50K calibration samples and CQL-regularized offline reward regression, the system compiles a per-head heterogeneity table (QueryHead granularity with weighted max-pooling veto) and a risk-adaptive threshold LUT indexed by attention entropy and local perplexity, queried in O(1). Total table size: <100KB for an 8B model.
Results:
- Keeping only 512 tokens per layer (1.56%) at 32K context scores 42.31 on LongBench, beating FullKV's 42.14;
- Extrapolated to 128K RULER it scores 73 vs SnapKV's 38 (FullKV 79); needle-in-a-haystack accuracy 0.89, 2.1x SnapKV;
- On one A100-80GB, FullKV OOMs at Batch-16 while CompilerKV serves steadily, with 2.45x decode throughput and 2.48x lower latency;
- Compilation costs 20 GPU-hours (8B) / 169 (72B), pays back in days; tables transfer across models with only 0.4–0.8 point loss; natively compatible with SGLang via KV-slot remapping.
More from Infra
- 1,300 documents distilled into 34 slides: how Beijing's chip policy works against its own AI companies — kevinnbass · 2026-11-26
- NVIDIA's GTP trains 2T-parameter LLMs at 13 EFLOP/s across 12,288 GB300 GPUs — snowclipsed · 2026-11-26
- AMD CEO Lisa Su Endorses SGLang Summit, Announces New SGLang Consortium — ying11231 · 2026-11-26
- Inkling 2 Mini GGUFs: 7.8–27.8 GB, fully Mac-GPU resident, matching Q8_0 quality — Mindless_Ad_407 · 2026-11-26
- 124B medical VLM runs locally at 40 tok/s on one DGX Spark, near-cloud chest X-ray accuracy — AIFlow_ML · 2026-11-26
- Hybrid PD-disaggregated inference: domestic GPUs for Prefill, 3x performance — 新智元 · 2026-11-26