arXiv(opens in a new tab)cs.AISep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.00891

CacheBridge: Efficient Cross-Model KV Cache Transfer

Xingyu Qu, Siyuan Lu, Zhiyu Chen, Sheng Wang, Tao Lin

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

Abstract

Sharing context between LLMs in a multi-model system requires the receiving model to prefill the shared prefix because KV caches are model-specific. Recent closed-form cross-model KV transfer, hereafter FULL-HEAD MAPPING, avoids this replay by fitting a training-free affine mapper from source to target caches (Heo et al., 2026). However, its full-head design maps each target KV head from every source KV head in the selected layers, making transfer quality sensitive to architectural differences and causing mapper storage and application cost to grow with layer support. To this end, we introduce CACHEBRIDGE, which co-designs architecture-indexed mapper support, attention-aligned calibration, and bounded mapper construction while retaining a closed-form affine interface for online deployment. CACHEBRIDGE restricts each target head to a matched source head, weights reconstruction errors by causal attention sensitivity, and uses a fused GPU kernel to construct weighted sufficient statistics without materializing full observation tensors. Across three transfer directions, CACHEBRIDGE recovers the two Ministral 3 transfer directions where FULL-HEAD MAPPING loses substantial accuracy while preserving 99.83% mean target retention on Qwen3. On Qwen3 14B → 32B, it reduces mapper storage by 8×, accelerates application by up to 3.0×, matches FULL-HEAD MAPPING with one tenth of the calibration data, and reduces 500-sequence construction from 92.63 to 8.63 seconds (10.7×).

1. Introduction

LLM applications increasingly route one interaction across multiple models with different costs, capabilities, or roles (Chen et al., 2024; Ong et al., 2025; Singh et al., 2025; Wu et al., 2023). When control passes between models, the receiver cannot directly reuse the sender's KV cache because the two models use different internal representations. The receiver must therefore prefill the shared prefix before decoding resumes. This redundant work grows with context length and makes prefix-state reuse a first-order latency problem in long-running multi-model applications.

Heo et al. (2026) introduce the first training-free approach to cross-model KV transfer. Once fitted, its fixed affine mapper enables online cache transfer without target-side prefill or task-specific adaptation. We refer to this closed-form baseline as FULL-HEAD MAPPING because it maps every target KV head from every source KV head in the selected source layers. The cross-model transfer pipeline distinguishes one-time offline fitting from per-handoff online mapping. Offline fitting collects aligned source and target K/V traces, selects source layers, and fits per-target-head affine ridge maps into a reusable artifact. At each handoff, online mapping applies this artifact to the sender cache and materializes a decode-ready target cache.

However, the full-head mechanism leaves two questions unresolved: which source heads should explain each target head, and which reconstruction errors matter for the receiver's continuation. Four observations turn these questions into design requirements.

• O1: Full-head transfer is model-sensitive. Under the same 500-sequence protocol and the same eight-by-128 KV interface, FULL-HEAD MAPPING stays near the Qwen3 32B target (79.2% versus 80.2%) but falls to 52.2% and 44.4% on the two Ministral 3 directions targeting 14B (Figure 1a). This contrast indicates that the shared KV interface hides architecture-dependent head correspondence.

• O2: KV fit is not a sufficient proxy for continuation quality. Held-out R2R^{2} measures coordinate-wise cache reconstruction, whereas continuation depends on receiver-composed attention error. Equal KV fit can therefore produce different attention-output drift under different queries (Figure 1b).

• O3: FULL-HEAD MAPPING cost grows with support. Figure 1c measures FULL-HEAD MAPPING application latency for k=2−26k=2-26 source layers on Ministral 3 3B → 14B using 50 frozen HellaSwag prefixes. Latency grows nearly linearly with kk, approaches target re-prefill at

1^{1}Westlake University. 2^{2}Wuhan University. 3^{3}Amazon.

†^{\dagger}Work conducted during an internship at Westlake University. Contact: whu-quxy@whu.edu.cn

(a) Model-sensitive accuracy.

Figure

(b) Query-conditioned drift.

(c) Latency grows with support.

Figure

Figure

(d) Fragmented construction.

Figure

Figure 1. Four observations motivating CACHEBRIDGE. (a) With 500 calibration sequences, the same FULL-HEAD MAPPING estimator preserves Qwen3 accuracy but collapses on the two Ministral 3 transfer directions. (b) Equal-norm KV residuals can induce different attention-output drift under different receiver queries. (c) On Ministral 3 3B → 14B, FULL-HEAD MAPPING application latency grows with selected-layer support and approaches target re-prefill. (d) Generic top-k fitting materializes scattered, centered, and weighted tensors, whereas fused panels stream bounded sufficient-statistics construction.

k=16, and exceeds it from k=20 onward. Points beyond the fitted k=20 extend only the operator shape and carry no quality result.

• O4: Top-k layer choices fragment mapper construction. Because each target layer selects a different source subset, top-k support creates fragmented gather layouts. A generic fitter repeatedly materializes scattered, centered, and weighted tensors, so memory traffic can dominate construction (Figure 1d).

Together, O1–O4 identify three coupled failure modes: all-head fan-in mismatches model architecture, coordinate regression misses receiver computation, and generic fitting ignores static support. Our key insight is to co-design mapper support, calibration objective, and construction path while keeping online deployment affine. CACHEBRIDGE implements this insight through three complementary components.

• S1: HEAD-LOCAL constrains head fan-in. HEAD-LOCAL preserves cross-layer aggregation but restricts each target KV head to one architecture-indexed source-head block. This reduces the coefficient count by the number of source KV heads (8× here), lowering mapper storage and affine work.

• S2: ATTN-REPAIR aligns fitting with attention drift. ATTN-REPAIR reweights cache residuals by their first-order effect on receiver attention. An effective-sample-size floor limits weight concentration without changing mapper support or the online interface.

• S3: FUSED-FIT makes structured fitting efficient. FUSED-FIT uses a new fused GPU kernel to construct weighted sufficient statistics in bounded panels for head-batched matrix multiplication. It preserves the objective, ridge solver, and mapper artifact.

Across the three transfer directions, CACHEBRIDGE recovers 20.4 and 31.6 HellaSwag points on the two Ministral 3 directions where FULL-HEAD MAPPING loses substantial accuracy and preserves 99.83% mean target retention on Qwen3 14B → 32B. On Qwen3, mapper storage falls from 4.296 to 0.538 GB, application is up to 3.0×3.0\times faster, and 500-sequence mapper construction takes a median of 8.63 seconds under the evaluated setup.

References (20)