Joint Encoding of KV-Cache Blocks for Scalable LLM Serving

Joseph Kampeas, Emir Haleva
1/6/2026
cs.LGcs.AI

Official code: sef1/kv_fast_fusion (1 star, Apache-2.0, last commit 2026-03-10).

Abstract

Modern large language models (LLMs) drive interactive AI systems but are bottlenecked by the memory-heavy growth of key-value (KV) caches, which limits real-time throughput under concurrent loads. Existing KV-cache compression methods rely on rigid heuristics, disrupt tensor layouts, or require specialized compute, hindering scalability and deployment. We propose joint encoding of KV-cache blocks, which fuses similar blocks across requests and input chunks into shared representations while preserving standard cache structure. This alleviates the KV-cache memory bottleneck, supporting high-concurrency serving without specialized hardware. Theoretically, we analyze the rate-distortion tradeoff of fused cache blocks under a Poisson process model. Empirically, our method achieves up to 4.38 $\times$ KV-cache compression with negligible accuracy loss across diverse LLMs and benchmarks, outperforming recent structured and adaptive compression baselines. In real LLM serving, joint encoding improves the token throughput by $\sim$40\% on a single-machine vLLM benchmark, demonstrating substantial gains in inference throughput. Code is available at https://github.com/sef1/kv_fast_fusion kv_joint_encoding.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

kv cache fast fusion

11May 8, 20257 months agoApache-2.0

Similar Papers

Cite this paper

@article{kampeas2026joint,
  title  = {Joint Encoding of KV-Cache Blocks for Scalable LLM Serving},
  author = {Joseph Kampeas and Emir Haleva},
  year   = {2026},
  eprint = {2601.03067},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.03067v1}
}

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/2601.03067.svg)](https://codeofpaper.com/paper/2601.03067)

Discussion