arXiv(opens in a new tab)cs.LGAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.30963

A Universal Context-Reuse Layer for Cross-Model KV Sharing

Yi Li, Dongming Jiang, Yi Zhao, Bingzhe Li

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

Abstract

Modern large language model (LLM) serving systems increasingly operate over repeated or shared context, yet each model typically performs its own prefill computation even when another model has already processed the same input. Existing KV-cache reuse mechanisms substantially reduce redundant computation within a single model, but generally assume that the producer and consumer of a cache are identical. We study cross-model KV sharing, which translates the KV state produced by a source model into a representation that can be consumed by a different target model, including models that differ in scale, architecture, attention configuration, tokenizer, and model family. We evaluate the approach in both within-family and cross-family settings. For Qwen2.5-7B → Qwen2.5-1.5B, translated KV states improve LongBench2 accuracy from 27.59% to 34.48%, a gain of 6.89 percentage points over the native 1.5B baseline, while reducing handoff cost relative to native target prefill. For the cross-family Qwen2.5-1.5B → Gemma-2-2B setting, KV handoff reduces target-side prefill cost by up to 67.05% at 4K context length while maintaining decoding perplexity close to native-model baselines. In a more heterogeneous Llama3.1-70B → Qwen2.5-7B setting, cross-family handoff achieves 44.0% accuracy compared with 45.7% for native Qwen2.5-7B inference, while reducing measured latency from 899ms to 138ms. These results provide initial evidence that KV states can serve as transferable computational representations rather than strictly model-local caches, and motivate context mobility as a systems abstraction for reducing redundant prefill across heterogeneous LLM and multi-agent inference workflows.

Keywords: Cross-Model KV Cache Sharing, Cross-family KV Sharing, LLM Inference, Prefill Optimization

1 Introduction

Large language model (LLM) [1, 2, 3] inference is increasingly becoming a systems problem involving not one model, but a collection of models that cooperate within the same application. Modern AI services increasingly compose multiple LLMs within a single application. For example, model-routing and cascading systems dynamically select among models with different capability-cost profiles, often sending easier requests to smaller models and escalating more difficult requests to stronger models [4, 5]. Other systems combine specialized models for different tasks or coordinate multiple LLM-based agents that communicate and operate over shared task state, conversation history, or retrieved information [6, 7]. Such heterogeneity is attractive because available models exhibit different tradeoffs in accuracy, latency, inference cost, task specialization, and deployment constraints.

However, current inference infrastructure does not efficiently exploit the fact that these heterogeneous models often operate over the same underlying context. When a new model is invoked, it normally processes the input tokens independently, even if another model has already processed exactly the same conversation history, document collection, or user prompt. As a result, the same semantic content may be repeatedly transformed into model-specific internal representations.

This redundancy is particularly important during the prefill stage of LLM inference. During prefill, the model processes all input tokens through its transformer layers and constructs the key-value (KV) states required by the attention mechanism. For a long prompt, this process can involve substantial GPU computation, memory traffic, and latency before the first output token is generated. Once the KV states have been computed, subsequent decoding can reuse them efficiently.

Existing KV caching and prefix-caching systems already exploit this observation within a single model. If the same model encounters a prefix that has already been processed, the system can retrieve its existing KV cache rather than recomputing the prefix. This optimization has become an important component of modern LLM serving infrastructure.

The limitation is that KV states are conventionally treated as model-specific objects. A KV cache generated by one model is generally unusable by another model because the models may have different hidden representations, attention configurations, numbers of layers, tokenizers, and architectural parameters.

This paper investigates a broader form of reuse: cross-model KV sharing. The central idea is to translate the KV representation generated by one model into a representation that can be consumed by another model. The source and target models may be different-sized variants within the same family or, more generally, models belonging to entirely different architectural families.

The central systems principle is:

If multiple models operate over the same context, the computational work used to understand that context should not necessarily be repeated independently by every model.

Cross-model KV sharing therefore seeks to make contextual computation partially portable across model boundaries. Rather than treating each model invocation as an isolated computation beginning from raw tokens, the system attempts to reuse useful internal state produced by earlier models.

This capability is especially relevant to emerging heterogeneous and agentic AI systems, where model transitions are increasingly common and shared context can be long-lived. A short video demonstration illustrating cross-model KV sharing in practice is available ¹.

References (14)