Metraipolis › archive › dc_598ef9eaf944
Cross-Model KV Cache Transfer in LLM Families: A Closed-Form Linear Mapping for Prefill Reuse — arXiv:2608.03893
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.03893
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-31T12:42:34.093Z
- SHA-256 of the archived text
1782cd14b3bfd3a9d88c7b8fdadaafce739202dbf7ff7ee25de90bc1f1fa4ff0- Stable URL of this page
https://metraipolis.com/documento/dc_598ef9eaf944
How to cite
Cross-Model KV Cache Transfer in LLM Families: A Closed-Form Linear Mapping for Prefill Reuse — arXiv:2608.03893 — arXiv (en), https://arxiv.org/abs/2608.03893 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_598ef9eaf944 (Metraipolis archive dc_598ef9eaf944, sha256 1782cd14b3bfd3a9d88c7b8fdadaafce739202dbf7ff7ee25de90bc1f1fa4ff0)
BibTeX
@misc{dc598ef9eaf944,
title = {Cross-Model KV Cache Transfer in LLM Families: A Closed-Form Linear Mapping for Prefill Reuse — arXiv:2608.03893},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.03893},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_598ef9eaf944; sha256 1782cd14b3bfd3a9d88c7b8fdadaafce739202dbf7ff7ee25de90bc1f1fa4ff0},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.03893. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Production deployments often swap between different-sized models in a family for cost-quality cascading, mid-conversation switching, and routing, and each swap forces the receiver to repay the prefill from scratch. We propose cross-model KV cache transfer, where the receiver reuses the source's KV cache, skipping prefill. We find that cross-model KV has substantial linear structure across matched-KV pairs, where source and target share KV head count and per-head dimension. On Qwen3 14B->32B, one source layer explains 56% of variance in the target's keys and 32% in values, rising to 79% and 65% with multiple source layers. Building on this, we design a closed-form ridge mapper that operates per head and proceeds in three steps. First, for each target layer we select the top-k most predictive source layers and concatenate their KV as input. Second, we strip RoPE from the keys before mapping, so the fit is position-free and reusable across context lengths. Third, we fit ridge regression on a small calibration set of 500 FineWeb-Edu sequences of 1,024 tokens each. Surprisingly, across six pairs in three families, this linear mapper retains 73-98% of the receiver's standalone-prefill accuracy on four pairs, while two degrade sharply. A nonlinear MLP recovers up to +37 pp HellaSwag retention on the failures. The mapper runs 2.7-25x faster than re-prefill and remains stable across multi-turn handoff, making cross-model KV cache transfer practical. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-05 in cs.LG). Categorie arXiv: Machine Learning (cs.LG). Pagina del lavoro: https://arxiv.org/abs/2608.03893 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-31T12:31:30.378Z dalla pagina https://arxiv.org/catchup/cs.LG/2026-08-05?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).