Reproduce “MetaKV: Adaptive KV Cache Compression for Constrained LLM Inference” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Michael Wang, Keith Li, Roozbeh Bostandoost
METAKV is a runtime controller that selects among FP16, quantized, token-evicted, and sparse KV-cache configurations for each prompt under latency and memory budgets. On Llama 3.1 8B across 8,192 profiled prompts from four benchmarks, it improves constrained success rate over the best fixed policy by about 0.07 on average and up to 0.135, while remaining close to an oracle selector.
Key insights
- KV-cache methods have complementary operating points: KVQuant offers strong memory reduction but can be much slower, H2O generally provides lower latency, and RocketKV trades accuracy for sparse decoding efficiency.
- Prompt-level selection is useful because the preferred configuration changes with the deployment budget; FP16 dominates under loose limits, while more aggressive compression becomes common under tight memory constraints.
- Prediction quality limits the controller: the latency predictor has 38.19% mean absolute percentage error and the accuracy predictor reaches a pooled AUROC of 0.70, while selection overhead remains about 10.96 ms per prompt.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.