arXiv:2610.24179cs.DCOct 2026

Manuscript Offprint

arXiv:2610.24179

KVCompass: A Discovery Plane for Internet-Scale Prefix Cache Sharing in LLM Serving

Shiyi Ling, Fei Fang, Chen Qian

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

SHIYI LING, University of California, Santa Cruz, USA

FEI FANG, University of California, Santa Cruz, USA

CHEN QIAN, University of California, Santa Cruz, USA

KV cache reuse is one of the most effective ways to reduce LLM inference cost, but today its benefits are largely confined to a single cluster. When a provider serves the same model across geographically distributed regions, each region may repeatedly prefill the same popular prefixes, wasting GPU time and increasing time-to-first-token (TTFT). Exploiting reuse across regions involves discovering which worker currently holds a reusable KV cache for each request's prefix. We show that this KV cache discovery problem is structurally harder than conventional object lookup. Unlike hash-placement mechanisms such as DHTs, where an object's location is a deterministic function of its key, KV caches are created on the workers that serve requests, and their holder sets change with subsequent requests and KV cache evictions. KV cache discovery therefore calls for decoupling KV cache identity from placement. We present KVCompass, a discovery plane for Internet-scale KV cache sharing. The discovery index supports variable-length prefix lookup with constant-time local table reads at the edge, allowing each request to be forwarded to the worker that best balances KV cache reuse against load and network distance. Evaluation includes a 64-worker geo-distributed simulation and a 14-worker three-continent real-machine testbed. Evaluation shows that KVCompass achieves 1.3–14× lower P99 TTFT than the baselines, up to 3.7× lower P99 end-to-end latency, up to 4.7× the throughput, and a peak load factor within 2% of the Oracle floor.

CCS Concepts: • Computer systems organization → Cloud computing; • Computing methodologies → Machine learning.

Additional Key Words and Phrases: Large Language Models; KV cache prefix caching; Geo-distributed systems

ACM Reference Format:

Shiyi Ling, Fei Fang, and Chen Qian. 2026. KVCompass: A Discovery Plane for Internet-Scale Prefix Cache Sharing in LLM Serving. Proc. ACM Meas. Anal. Comput. Syst. 10, 3, Article 68 (December 2026), 26 pages. https://doi.org/10.1145/3857371

1 Introduction

Large language models (LLMs) have rapidly become a core building block of modern computing, supporting a wide range of applications like interactive assistants, code generation, and document analysis [21, 27, 56, 58]. As LLM adoption expands, inference workloads are growing in both scale and diversity. Processing a single request can cost orders of magnitude more than a traditional query [3, 7, 38], and cloud providers face increasing pressure to reduce cost while meeting strict latency requirements such as time-to-first-token (TTFT) [36, 42], making efficient LLM serving a first-order systems challenge [21, 36, 51].

In practice, many LLM requests share common prefixes, such as system prompts, retrieved documents, or conversation histories [22]. A large-scale measurement study at a major cloud

Authors' Contact Information: Shiyi Ling, sling9@ucsc.edu, University of California, Santa Cruz, Santa Cruz, California, USA; Fei Fang, ffang6@ucsc.edu, University of California, Santa Cruz, Santa Cruz, California, USA; Chen Qian, cqian12@ucsc.edu, University of California, Santa Cruz, Santa Cruz, California, USA.

Figure

This work is licensed under a Creative Commons Attribution 4.0 International License.

© 2026 Copyright held by the owner/author(s).

ACM 2476-1249/2026/12-ART68

https://doi.org/10.1145/3857371

68:2

Ling et al.

provider [45] found that 10% of KV cache blocks account for 77% of all reuses, and that prefix-cache hit rates reach 54–62% across representative traces. A widely adopted technique to exploit this structure to improve LLM serving efficiency is KV cache reuse [11, 21, 28, 36, 58]: when multiple requests share a common prefix, the computed KV cache can be shared among requests, avoiding expensive prefill computation and reducing latency and serving cost. Commercial prefix caching APIs already exploit this within a single cluster, reducing cost by 50–90% for long prompts [1, 33].

However, these gains remain confined to a single cluster, while real-world LLM serving is fundamentally a global, cross-region problem [6, 17]. The demand for LLM serving is geographically dispersed: in WildChat [55], a corpus of nearly one million ChatGPT interactions, requests span 201 countries and 178,724 users. At Internet scale, as major inference providers increasingly deploy the same model across tens of geographic regions to serve global users with low latency [9, 35], each region independently prefills the same popular prefixes, wasting GPU compute at scale. When we replay WildChat [55] in its arrival order, Figure 2 shows that 6.6% – 21.2% reusable prefixes exist only in other regions at arrival time. However, these reuse opportunities are invisible to any KV cache confined to a single cluster or region, no matter how well it is managed. Harvesting them requires extending KV cache reuse to Internet scale, which in turn requires answering a new question for every request: which worker currently holds a reusable KV cache for this prompt’s prefix? This is the KV cache discovery problem, a challenge that is fundamental to Internet-scale LLM serving and unaddressed by existing systems.

KV cache discovery at Internet scale is harder than it appears. A centralized directory maps prefix hashes to KV cache locations, but each query pays a wide-area round trip that adds directly to TTFT. The natural alternative is to turn to distributed hash-based schemes such as consistent hashing [20] or distributed hash tables (DHTs) [30, 37, 39, 43]. However, DHTs share a fundamental limitation: an item's placement is determined by its content hash rather than by where it was created [29, 46], which breaks down for KV caches: a cache entry materializes on whichever node happened to serve the prior request, not on a node designated by a hash. Forcing KV caches onto hash-designated nodes would incur migration and replication costs that negate the savings that reuse is meant to provide. KV caches thus demand placement-identity decoupling, which structurally rules out the entire hash-placement family, regardless of how such schemes are tuned. Therefore, no prior distributed naming or location service addresses KV cache discovery at Internet scale.

We propose a KV cache discovery plane for Internet-scale KV cache sharing. KVCompass is the first system to apply space-efficient minimal perfect hashing (MPH) [4] to Internet-scale LLM serving. MPH's space efficiency allows the full KV cache index to be replicated in the DRAM of edge nodes in every region, making every lookup a local memory operation rather than a round trip to a remote coordinator. Its explicitly written values achieve placement-identity decoupling: the index tracks where caches land, with no control over where they go, so any worker can register a KV cache entry and any region can discover it with a local lookup. The prefix hash identifies the KV cache entry, while its value records the workers holding it and their storage tiers. Updating the value changes the holder set without changing the prefix identity. The index is organized as parallel tables at prefix lengths derived from the network latency from the edge to each region, so a lookup matches at the lengths where the prefill time a match saves exceeds the network latency of reaching its holder. Sharded maintenance units own all writes to the index, so the read path needs no locks and no cross-node coordination. At forwarding time, a joint score evaluates every worker rather than only the KV cache holders, combining network distance, queuing delay, cache tier, and residual prefill. Together, these properties allow KVCompass to reduce serving cost at Internet scale and provide the first principled answer to the KV cache discovery problem.

This paper makes the following contributions:

68:3

(1) We are the first to formalize the KV cache discovery plane as the missing layer in Internet-scale LLM serving, identifying its four objectives: placement–identity decoupling, geography-adaptive match granularity, local and low-overhead lookups, and load balancing, a combination that no prior distributed location service supports.

(2) We design and implement KVCompass, a prototype KV cache discovery plane built on a space-efficient hash table, with local latency-derived multi-level prefix lookup with O(1)O(1) table reads and a joint score that balances KV cache reuse and worker load. Evaluation shows KVCompass reduces TTFT by 1.3−14×1.3-14\times and end-to-end latency by up to 3.7×3.7\times, delivers up to 4.7×4.7\times higher throughput, and keeps peak load factor within 2% of the Oracle floor.

Section 2 motivates the problem, Section 3 presents the design, and Section 4 describes the implementation. Section 5 evaluates KVCompass. Sections 6, 7, and 8 discuss extensions, related work, and conclusions. Our code is available at https://github.com/011shiyiLing/KVCompass.

References (17)