Benchmarking KV-Cache Optimizations across Task Quality and System Performance for Long-Context Serving

Nikita Agrawal, Ruben Mayer
5/3/2026
cs.CLcs.AIcs.DC
benchmark-dataset

No confident code implementation found for this paper.

Abstract

Large language model serving is increasingly limited by KV-cache growth under long-context workloads, yet existing KV-cache compression techniques are difficult to compare because they were evaluated on different models, tasks, budgets, and serving stacks. This paper presents a workload-aware benchmark of representative KV-cache optimization mechanisms spanning quantization, pruning, and merging, including KIVI, TurboQuant, SnapKV, and CaM, evaluated on LongBench-style multi-document QA, single-document QA, few-shot learning, and summarization workloads using Llama-3.1-8B-Instruct and Mistral-7B-Instruct-v0.3.

Show full abstract

The benchmark measures task quality, mean output throughput, mean time-to-first-token, and realized compression ratio across context-length buckets. The results show that the compression ratio alone is a poor predictor of end-to-end performance. KIVI4 provides the most stable quality across models, SnapKV delivers the strongest long-context throughput, and CaM yields large gains on selected QA workloads but exhibits substantial workload sensitivity in both quality and realized compression ratio. These findings motivate workload-aware selection of KV-cache mechanisms rather than one-size-fits-all compression and provide deployment guidance for long-context serving systems.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{agrawal2026benchmarking,
  title  = {Benchmarking KV-Cache Optimizations across Task Quality and System Performance for Long-Context Serving},
  author = {Nikita Agrawal and Ruben Mayer},
  year   = {2026},
  eprint = {2607.05399},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.05399v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.05399.svg)](https://codeofpaper.com/paper/2607.05399)

Discussion