potentialpaper

Cross-Model KV Cache Transfer in LLM Families: A Closed-Form Linear Mapping for Prefill Reuse

Taekyung Heo, Rasoul Shafipour, Ritchie Zhao, Maximilian Golub, Mohammad Mahdi Kamani, Ritika Borkar, Makesh Tarun Chandran, Pantea Zardoshti, Bita Darvish Rouhani

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. Within an LLM family, a per-head closed-form linear map transfers KV caches across different-sized models, skipping receiver prefill at 3–31× speedup with 71–98% retention on matched-KV pairs.

Abstract. 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-kmost 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 71–98% of the receiver’s standalone-prefill accuracy on four pairs, while two degrade sharply. A nonlinear MLP recovers up to +22 pp HellaSwag retention on the failures. The mapper runs 3–31×faster than re-prefill and remains stable across multi-turn handoff, making cross-model KV cache transfer practical.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:44 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper asks whether one model's KV cache can be reused by another model in the same family, so that swapping models mid-conversation (for cost-quality cascading or routing) does not force the receiver to re-prefill the whole context. The authors first show a somewhat surprising empirical fact: for "matched-KV" model pairs (same KV head count and per-head dimension), the target model's KV cache is largely a linear function of the source's. Building on this, they propose a closed-form, gradient-free per-head ridge-regression mapper with three ingredients: top-k source-layer selection per target layer, and a RoPE-stripped "content-space" fit so the mapping is position-independent. Across six matched-KV pairs from three families, four pairs retain 71–98% of the receiver's standalone accuracy while running 3–31× faster than re-prefill, and a nonlinear MLP recovers up to +22pp on the two failing pairs.

Strength:

  1. The central empirical discovery is genuinely interesting and, as all three reviewers note, valuable independent of the proposed method: that cross-model KV caches within a family are substantially linearly related is a non-obvious, well-evidenced finding. It reframes cross-model KV reuse as a representation-alignment problem with a training-free solution.
  2. The method is simple, closed-form, gradient-free, and interpretable — a per-head ridge regression that is far easier to analyze and deploy than the learned neural fusers or latent adapters in prior work, and the two non-trivial design choices (top-k cross-layer source selection and RoPE stripping) are well-motivated and shown to matter via ablation.
  3. The evaluation is comprehensive. It spans three model families and six transfer pairs, includes component ablations, calibration-sensitivity sweeps, a multi-turn handoff study (CoQA), and a latency analysis, and it reports the two failure pairs.

Weakness:

  1. Scope is limited to within-family, matched-KV, dense full-attention pairs. The method is only demonstrated when source and target share KV head count and per-head dimension, which excludes cross-family transfer and the very common mismatched-KV case
  2. k is selected on the same benchmarks used to report retention, with no holdout. The number of source layers k is chosen to maximize log-likelihood accuracy on ARC-C/HellaSwag/WinoGrande/MMLU, which are then also the reported benchmarks, so the headline retention figures are not clean out-of-sample estimates.
  3. A few other reporting issues as mentioned by the reviewers.

Position: This is an accept-leaning paper. So it would be great if authors can prepare the rebuttal to address the above comments and further solidify the claims.

Final justification

Based on the rebuttal and reviewers' response, I will retain the original accept rating.

Area Chair u3A2 · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The paper asks whether one model's KV cache can be reused by another model in the same family, so that swapping models mid-conversation (for cost-quality cascading or routing) does not force the receiver to re-prefill the whole context. The authors first show a somewhat surprising empirical fact: for "matched-KV" model pairs (same KV head count and per-head dimension), the target model's KV cache is largely a linear function of the source's. Building on this, they propose a closed-form, gradient-free per-head ridge-regression mapper with three ingredients: top-k source-layer selection per target layer, and a RoPE-stripped "content-space" fit so the mapping is position-independent. Across six matched-KV pairs from three families, four pairs retain 71–98% of the receiver's standalone accuracy while running 3–31× faster than re-prefill, and a nonlinear MLP recovers up to +22pp on the two failing pairs.

Strength:

  1. The central empirical discovery is genuinely interesting and, as all three reviewers note, valuable independent of the proposed method: that cross-model KV caches within a family are substantially linearly related is a non-obvious, well-evidenced finding. It reframes cross-model KV reuse as a representation-alignment problem with a training-free solution.
  2. The method is simple, closed-form, gradient-free, and interpretable — a per-head ridge regression that is far easier to analyze and deploy than the learned neural fusers or latent adapters in prior work, and the two non-trivial design choices (top-k cross-layer source selection and RoPE stripping) are well-motivated and shown to matter via ablation.
  3. The evaluation is comprehensive. It spans three model families and six transfer pairs, includes component ablations, calibration-sensitivity sweeps, a multi-turn handoff study (CoQA), and a latency analysis, and it reports the two failure pairs.

Weakness:

  1. Scope is limited to within-family, matched-KV, dense full-attention pairs. The method is only demonstrated when source and target share KV head count and per-head dimension, which excludes cross-family transfer and the very common mismatched-KV case
  2. k is selected on the same benchmarks used to report retention, with no holdout. The number of source layers k is chosen to maximize log-likelihood accuracy on ARC-C/HellaSwag/WinoGrande/MMLU, which are then also the reported benchmarks, so the headline retention figures are not clean out-of-sample estimates.
  3. A few other reporting issues as mentioned by the reviewers.

Position: This is an accept-leaning paper. So it would be great if authors can prepare the rebuttal to address the above comments and further solidify the claims.

Final justification

Based on the rebuttal and reviewers' response, I will retain the original accept rating.

Reviewer EQrzOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper suggests a framework for building simple linear mappers to convert the KV cache between different members of the same transformer families. This could potentially save significant prefill time (yielding 3x-31x latency speedups) when performing a model swap. The authors design a ridge regression mapper that selects the top-k most predictive source layers and strips RoPE to decouple positional embedding from semantic content.

They use this framework to build 6 such mappers, 4 of these are reported to mainly preserve accuracy across 5 different benchmarks, while 2 fail and show severely reduced accuracy. They analyze the difference between the successful and failure cases, showing that the cosine similarity between attention outputs is more indicative of benchmark success than simple mapping error (R^2). They also show that using a simple 2-layer MLP instead of a linear mapper recovers much of the lost accuracy. The framework viability is further validated in a multi-turn handoff scenario using the CoQA benchmark.

Strengths and weaknesses

This work addresses an important problem and also reports and validates an interesting and somewhat surprising discovery, that the KV cached between different models of the same family can sometimes be modeled with a simple linear regression. The paper is written well and is very easy to follow. For the most part, the claims it makes are sound and seem well supported by the presented evidence - the usefulness of the proposed mapping is shown through performance of 5 different benchmarks, through perplexity on WikiText, and for multi-turn handoff via CoQA. The failure cases are honestly reported, and a follow up mitigation via an MLP is suggested.

There are a few specific cases however where I think the report is a bit misleading or some experiments/explanations are missing:

  1. The primary reported benchmark results are also used for model selection (choosing k) with no holdout. This makes the reported retention numbers difficult to interpret as unbiased estimates of transfer performance. A separate validation benchmark or held-out split would strengthen confidence that the gains are not partly due to benchmark-specific tuning. This concern is reinforced by the fact that GSM8K, the only benchmark excuded from k selection, is also typicallyy the most degraded by the mappers (e.g. for Llama 8B->70B GSM8K has a transfer retention of only 16.9% but the average is substantially higher due to stronger performance on the benchmarks used for model selection). While this does not by itself demonstrate overfitting, it raises the possibility that the selected k values might be somewhat benchmark specific.
  2. Similarly, why is k re-adjusted for the multi-turn case? The authors say in section 4.6 that "the gap between k=8 and k=16 is ~0.11pp on HellaSwag", but if the gap is so small, why not just report the previously selected k=8 performance for the multi-turn benchmark?
  3. I found the transfer retention metric reported in table 1 (and throughout the paper) a bit misleading, especially when averaged across different benchmarks. This metric seems to have completely different scales for different benchmarks. For example, a degradation to a completely random result (e.g. for Ministral 8B->14B) corresponds to a transfer retention of around 40% for ARC-C, 70% for WinoGrande and 0% for GSM8K. This is clear when reading table 12 in the appendix, but is not clear from the main paper.
  4. Appendix B is a bit confusing in how it conflates the quantitative results of the production mapper with the visual discussion of the greedy forward selection. Would be clearer if it was immediately made clear that all the numbers in the last paragraph discuss the production mapper and not greedy forward selection.
Questions
  1. Why is there no hold-back set for selecting k to avoid over-fitting?
  2. Any insight for why GSM8K is degraded much more than the other benchmarks?
  3. In section 4.6, you mention the gap between k=8 and k=16 is minimal on HellaSwag. Could you report the CoQA multi-turn drift using the original production mapper (k=8) from section 4.1 as well?
Limitations

yes

Final justification

The authors properly addressed my concerns, so I'm retaining the positive rating, as justified in my original review.

Formatting concerns

No concerns.

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the constructive concerns, each of which we address below.

Q1: A hold-back set for selecting k

Any inflation from selecting kk is bounded at 0.39 pp on the selection score, far below the gaps the paper's claims rest on. Three checks support that, one of them a held-out benchmark set.

  • A tight bound. Selecting kk can only inflate the gap between the kk we chose and the kk a procedure that never sees the benchmarks would have chosen. The worst case is the next-best kk, so the margin between the two bounds the inflation exactly. The table below holds the benchmark set fixed and varies only kk, which isolates the tuning effect.
  • A leave-one-benchmark-out hold-back. Leave-one-benchmark-out re-selection, which picks kk without ever seeing the held-out benchmark, moves that held-out benchmark by at most 2.5 pp, and that largest move is on a pair that already fails. On the success pairs the paper relies on, it moves by at most 1.5 pp.
  • Genuinely out-of-sample benchmarks. As a further check for this rebuttal, we also evaluated three benchmarks outside the paper's set (PIQA, BoolQ, ARC-Easy) at the selected kk. If selection had overfit the reported benchmarks, these unseen ones would come out lower. They do not: retention is positive for every pair.
Pair Selected kk Margin over next-best kk (pp) Held-out Δ\Delta, LOO (pp)
Qwen3 8B$\to$32B 12 0.11 0.00
Qwen3 14B$\to$32B 8 0.03 0.61
Llama 8B$\to$70B 20 0.36 1.45
Ministral 3B$\to$8B all (tie rule) −0.38-0.38 0.25
Ministral 3B$\to$14B 20 0.39 0.00
Ministral 8B$\to$14B 12 0.37 2.49

We will include this leave-one-out hold-back analysis and state the kk-selection protocol in the final version.

Q2: Why GSM8K degrades so much more

The larger drop comes from the benchmark's format. GSM8K is the only reported benchmark that is both free-form and generation-scored.

In raw retention it does look like our worst benchmark. Floor-normalized, it is the lowest-retention benchmark in only three of nine pair-direction evaluations, with MMLU or WinoGrande lowest in the other six. On the pairs where transfer works GSM8K also holds, retaining 95.1% on Qwen3 14B$\to$32B and 94.1% on 32B$\to$14B. Where it does collapse, the pair is already failing on the log-likelihood benchmarks too. So the loss is real, and the format makes it look larger.

  • Its floor is near zero, so the raw metric exaggerates any drop. GSM8K is scored by exact match on a single free-form numeric answer, so random guessing scores essentially 0%. Every other reported accuracy benchmark is multiple choice scored by option likelihood, with a 25 to 50% floor.
  • It is a long chain-of-thought generation, so errors compound. A GSM8K answer is a multi-step derivation of tens of tokens, and it is right only if every step is. Each token is generated from the mapped KV of all earlier tokens, so a single mapper-induced error early in the chain propagates to a wrong final answer. A multiple-choice item instead needs one comparison between option likelihoods, which a small perturbation rarely flips.

Q3: CoQA multi-turn at the production k

Yes. We re-ran the identical CoQA protocol at the production single-shot kk and compared it to the re-tuned kk against the same ceilings. The re-tuning changes drift by well under a percentage point, so the multi-turn conclusion does not depend on it.

Direction Production kk Re-tuned kk
S$\to$L (k=8 vs 16) 1.66 pp over 9 turns 1.25 pp
L$\to$S (k=20 vs 4) 0.36 pp / turn 0.36 pp / turn

We will update Section 4.6 to report the production kk in place of the re-tuned one.

Q4: The averaged retention metric

We agree this can mislead across benchmarks with different chance floors. We introduce floor-normalized retention, (acc−chance)/(target−chance)(\text{acc}-\text{chance})/(\text{target}-\text{chance}), which maps a chance-level transfer to about 0% and the target's own accuracy to about 100% on every benchmark. It is validated against degenerate anchors: a ground-truth cache reads as 100% on both, and a transfer carrying no information drops to 11.7% on HellaSwag and −2.1-2.1% on MMLU. We will report it with per-benchmark floors in the main text.

Q5: Appendix B, production mapper vs greedy selection

We will rewrite Appendix B so it states up front that the final-paragraph numbers describe the production mapper, not greedy forward selection, and separate the greedy-selection visualization from the production-mapper results.

Reviewer EQrz · CommentOpenReview ↗

Thank you for your thorough answers to my questions and concerns. I am satisfied with the clear explanation of the GSM8K degradation, the out of sample benchmarks, and the CoQA evaluation at the production k=8. I like the introduction of floor-normalized retention, and I think it's an improvement over the average retention metric.

I am retaining my original Accept rating.

Reviewer oSJsOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies cross-model KV cache transfer within LLM families. The goal is to avoid re-prefilling the receiver model when switching between different-sized models in the same family. The authors observe substantial linear structure between source and target KV caches for matched-KV model pairs, where the KV head count and per-head dimension are shared. Based on this, they propose a closed-form per-head ridge-regression mapper. For each target layer and head, the mapper selects the top-k predictive source layers, concatenates their KV features, strips RoPE from keys before fitting, and then re-applies target RoPE at inference. The paper evaluates six matched-KV transfer pairs across Qwen3, Llama 3.1, and Ministral 3, and reports that four pairs preserve a large fraction of target standalone accuracy while reducing prefill latency.

Strengths and weaknesses

---Strengths

  1. The paper addresses a practical and timely problem. Multi-model routing, cascading, and mid-conversation switching are common in LLM serving, and each switch currently requires the receiver model to re-prefill the accumulated context. Reusing KV caches across models is therefore a valuable direction.

  2. The proposed method is simple and well motivated. The per-head ridge mapper is closed-form, gradient-free, and easier to reason about than learned neural fusers or latent adapters. The source-layer selection and RoPE-stripping components are also natural design choices, and the ablations show that cross-layer source selection is particularly important.

---Weaknesses

  1. All main experiments are within-family, matched-KV, dense full-attention transfer pairs. The method is not yet shown to work for cross-family transfer, mismatched KV head count or head dimension.

  2. The appendix reports 1.01B to 3.36B mapper parameters and 4-12GB storage per transfer pair. This is a significant deployment cost, especially if a serving system supports many model pairs and both directions. The paper should discuss memory placement, loading overhead, and storage scaling more explicitly.

  3. Two matched-KV pairs fail badly, especially on GSM8K. Since matched-KV is not sufficient for success, deployment would need a pre-fit or low-cost diagnostic to decide whether a pair is safe to use. The attention-output cosine diagnostic is helpful but appears to require fitted mapped KV, so it is not yet a cheap pre-deployment predictor.

Questions
  1. How would the method perform on mismatched-KV pairs, where the source and target have different KV head counts or head dimensions?

  2. How costly is it to store and serve many pair-specific mappers in a production router? Would both directions require separate mappers?

  3. Is there a cheap diagnostic that predicts whether a model pair will succeed before fitting the full mapper?

Limitations

The method is currently demonstrated only for within-family matched-KV transfer over dense full-attention models. The mapper can be large, requiring several GB per transfer pair, and the method fails on some matched-KV pairs. The choice of source-layer count is partly tuned on reported benchmarks, and the latency evaluation is limited to one Qwen3 pair.

Final justification

Maintain positive score.

Formatting concerns

None

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for raising these questions, which pushed us to make the practical case concrete. We appreciate the recognition that cross-model KV reuse addresses a practical serving problem, and that the closed-form mapper provides a simple and interpretable alternative to learned fusers or adapters. We answer each below.

Q1: Mismatched-KV performance

Model swaps in production often happen inside a family, in cost-quality cascading, routing and mid-conversation handoff, so that is the case the paper is built around. Nothing in the mapper forbids a differing head count or width. Each target head is fitted independently, so a mismatch on either axis only changes the shape of the linear system, and the paper's limitations say as much while noting that we never tested one. We did that for this rebuttal on Qwen2.5, a dense family that varies one mismatch axis at a time while holding family, attention type and RoPE base constant. All numbers are retention against the target's own standalone accuracy.

(1) Mismatched KV-head count. The first two rows share the 32B target, so the comparison is not confounded by the receiving model.

Pair KV heads (src to tgt) Target HellaSwag ARC-Challenge MMLU
Qwen2.5-14B$\to$32B (matched control) 8 to 8 32B 96.8% 103.1% 91.7%
Qwen2.5-7B$\to$32B (mismatched) 4 to 8 32B 93.3% 91.9% 73.4%
Qwen2.5-7B$\to$14B (mismatched) 4 to 8 14B 93.7% 85.6% 65.8%

HellaSwag is almost unaffected by the mismatch. ARC-Challenge drops more, and MMLU most. The third row isolates the receiving model, and it moves the same way: a smaller receiver lowers MMLU and ARC-Challenge and leaves HellaSwag alone.

(2) Mismatched per-head width. Both rows share the 3B target.

Pair Head dim (src to tgt) KV heads HellaSwag ARC-Challenge MMLU
Qwen2.5-1.5B$\to$3B (matched control) 128 to 128 2 to 2 92.5% 83.8% 59.7%
Qwen2.5-0.5B$\to$3B (mismatched width) 64 to 128 2 to 2 85.2% 70.8% 37.2%

HellaSwag still holds, but the mapped cache scores 24% on MMLU, which is chance. The matched control is weak on MMLU at this scale too, so most of that loss is there without any mismatch.

This is one family and one controlled case, so we do not read it as generality. It does say that a KV geometry mismatch is not the boundary of the method. Where the linear map falls short, the nonlinear mapper of Section 4.4 recovers 10.8 to 21.6 pp on the paper's own failure pairs. We have not run it under mismatched KV.

Q2: Storage cost, and whether both directions need separate mappers

Yes, both directions need separate mappers, since the ridge fit is directional.

  • The mappers do not occupy GPU memory. They are static tensors on CPU or disk, paged in per active pair, and inference is one matmul per target layer. Paging one in is a one-time 4 to 12 GB host-to-device transfer, amortized over all requests on that pair.
  • Fleet scale is modest. A router over PP models covers up to P(P−1)P(P-1) directed pairs. Our six come to 39 GB in total, so a five-model fleet in both directions comes to around 130 GB, on the order of a single SSD.

We will add this to the appendix, covering memory placement, loading and how storage scales with the number of models.

Q3: A cheap diagnostic before fitting the full mapper

We do not have one, and the reviewer's reading of why is correct. Attention-output cosine needs the mapped KV, so it is only available after the fit.

The obstacle is structural. The target does not read all of the mapped cache, only the part its own queries attend to. What matters is therefore where the error lands, not how large it is: error in the rest costs nothing, while the same amount in the part it reads breaks the pair. The residual only exists once the mapper is fitted, so nothing measured from the two models beforehand determines where it will land. That is what we found when we looked. Calibration R2R^2, CKA, GULP, subspace overlap and Procrustes all failed to rank pairs by downstream success. R2R^2 is the clearest case: two pairs fit at the same calibration R2R^2, yet one transfers almost perfectly in one direction and collapses in the other, while the other transfers well both ways. This is about ranking pairs. Within a single pair R2R^2 is still informative, which is why the mapper uses it to pick source layers.

What the screen decides is also narrower than a go or no-go. A pair we would flag may still be usable with a stronger mapper. On the two failing pairs the paper tests, the small MLP of Section 4.4 recovers +10.8+10.8 to +21.6+21.6 pp of HellaSwag retention, at the cost of gradient training. So the practical question is which mapper a pair needs, not only whether the pair is usable.

Q4: Selecting k without a holdout

Any inflation from selecting kk is bounded at 0.39 pp on the selection score, far below the gaps the paper's claims rest on. Three checks support that, one of them a held-out benchmark set.

  • A tight bound. Selecting kk can only inflate the gap between the kk we chose and the kk a procedure that never sees the benchmarks would have chosen. The worst case is the next-best kk, so the margin between the two bounds the inflation exactly. The table below holds the benchmark set fixed and varies only kk, which isolates the tuning effect.
  • A leave-one-benchmark-out hold-back. Leave-one-benchmark-out re-selection, which picks kk without ever seeing the held-out benchmark, moves that held-out benchmark by at most 2.5 pp, and that largest move is on a pair that already fails. On the success pairs the paper relies on, it moves by at most 1.5 pp.
  • Genuinely out-of-sample benchmarks. As a further check for this rebuttal, we also evaluated three benchmarks outside the paper's set (PIQA, BoolQ, ARC-Easy) at the selected kk. If selection had overfit the reported benchmarks, these unseen ones would come out lower. They do not: retention is positive for every pair.
Pair Selected kk Margin over next-best kk (pp) Held-out Δ\Delta, LOO (pp)
Qwen3 8B$\to$32B 12 0.11 0.00
Qwen3 14B$\to$32B 8 0.03 0.61
Llama 8B$\to$70B 20 0.36 1.45
Ministral 3B$\to$8B all (tie rule) −0.38-0.38 0.25
Ministral 3B$\to$14B 20 0.39 0.00
Ministral 8B$\to$14B 12 0.37 2.49

We will include this leave-one-out hold-back analysis and state the kk-selection protocol in the final version.

Q5: Latency across pairs and directions

The submitted evaluation covered one Qwen3 pair. We extended it to seven pairs across three families and both directions, on the same benchmark and hardware. The mapper is faster than re-prefill in every pair at all ten sequence lengths from 6464 to 3232K:

Source Target kk Transfer @32K Re-prefill @32K Speedup (64 to 32K)
Qwen3-14B (anchor) Qwen3-32B all (40) 1,225 ms 6,946 ms 3.3×3.3\times to 5.7×5.7\times
Qwen3-8B Qwen3-32B 12 392 ms 6,975 ms 4.3×4.3\times to 17.8×17.8\times
Llama-3.1-8B Llama-3.1-70B 20 777 ms 11,562 ms 4.5×4.5\times to 14.9×14.9\times
Ministral-3-3B Ministral-3-14B 20 396 ms 2,465 ms 3.8×3.8\times to 6.2×6.2\times
Ministral-3-3B Ministral-3-8B all (26) 438 ms 1,764 ms 2.7×2.7\times to 4.0×4.0\times
Qwen3-32B Qwen3-14B 20 427 ms 2,953 ms 3.3×3.3\times to 6.9×6.9\times
Llama-3.1-70B Llama-3.1-8B 10 216 ms 1,652 ms 2.8×2.8\times to 7.6×7.6\times

We will add this table to the appendix in the final version.

Reviewer oSJs · CommentOpenReview ↗

Thank you for your detailed rebuttal. I would like to maintain my positive score.

Reviewer gaFcOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper investigates whether KV caches from one LLM can be reused by another model within the same model family through a simple linear transformation. The authors first perform an extensive empirical analysis showing that a large portion of the target KV cache variance can be explained by a linear mapping from the source KV cache for many layers. Motivated by this observation, they propose a closed-form ridge regression mapper that predicts target KV representations from selected source layers. The method consists of (i) per-head ridge regression, (ii) cross-layer source selection, and (iii) a RoPE-aware content-space mapping that removes positional information before regression. Extensive experiments across multiple model families demonstrate that the proposed mapper preserves 71–98% of standalone prefill accuracy for most matched-model pairs while providing computational savings through KV reuse. The paper also includes thorough ablation studies identifying cross-layer source selection as the most important component, analyzes transferability using attention similarity, studies multi-turn model switching, and evaluates speed-performance tradeoffs.

Strengths and weaknesses

Strengths

  • Novel empirical insight: The paper identifies an interesting and somewhat surprising observation that KV representations between related models exhibit strong linear correspondence. This insight itself is valuable beyond the proposed method.
  • Simple and interpretable method: The proposed mapper is closed-form, easy to implement, requires no iterative optimization, and is considerably easier to analyze than learned alternatives.
  • Comprehensive evaluation: The experiments cover multiple model families, several transfer directions, ablation studies, attention similarity analysis, multi-turn switching, and latency analysis.
  • Good ablation studies: The paper carefully isolates the contribution of each component, making it easier to understand why the method works.

Weaknesses

  • The method is only applied to matched-KV architectures, i.e., identical head dimension and KV head count. That excludes many realistic cross-model scenarios.
  • The strongest contribution appears to be the empirical discovery of cross-model linearity rather than the regression algorithm itself. While this is still valuable, the methodological novelty of the proposed mapper is relatively modest.
  • The paper would benefit from a deeper discussion of how well the learned mapping generalizes across domains and datasets.
Questions
  • Since the mapping is learned offline, how sensitive is it to the calibration dataset? Would a mapping trained on one domain generalize to substantially different downstream domains?
  • The current evaluation focuses exclusively on matched KV architectures (identical KV head counts and head dimensions). Could the authors evaluate the proposed method on mismatched architectures, or discuss the challenges involved? Such experiments would better demonstrate the practicality and generality of the proposed approach.
Limitations

The paper discusses several practical limitations, including the restricting experimentation to matched KV architectures and the existence of model pairs where linear mapping is insufficient. Additional discussion regarding domain generalization and calibration data dependence would further strengthen the paper.

Formatting concerns

No formatting concerns

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for a careful reading of the paper. We are glad the reviewer found the cross-model linearity result valuable in its own right, the closed-form mapper simple and interpretable, and the evaluation and ablations comprehensive. We answer each point below.

Q1: Sensitivity to the calibration dataset, and cross-domain generalization

Our calibration set is deliberately broad and heterogeneous, so that one mapper serves many downstream domains without re-tuning. Our corpora differ in register, natural language against code, not in topic, which bounds what the sweep below can show.

  • One calibration already serves many downstream domains. Every headline result uses a single FineWeb-Edu-calibrated mapper, evaluated without per-task re-tuning across commonsense (HellaSwag), science (ARC), broad knowledge (MMLU), coreference (WinoGrande), and math (GSM8K).

  • Swapping the calibration corpus costs little, even to code. The calibration-sensitivity study in Appendix C reports HellaSwag accuracy under three calibration domains:

    Calibration domain HellaSwag Change
    FineWeb-Edu (production) 80.70% reference
    Wikipedia 79.65% −1.05-1.05 pp
    CodeAlpaca (worst case) 75.46% −5.24-5.24 pp

    Even calibrating on code, unlike the natural-language benchmarks in both register and content, keeps 93.5% of the production number on HellaSwag.

  • The cost is uneven across benchmarks. We calibrated one mapper per domain and evaluated all three across seven benchmarks, all log-likelihood scored, so a domain effect is not mixed up with a difference in scoring method.

    Calibration domain HellaSwag ARC-Challenge ARC-Easy MMLU PIQA BoolQ WinoGrande
    FineWeb-Edu (production) 80.7% 61.6% 83.6% 78.1% 80.8% 87.3% 69.0%
    Wikipedia 79.7% 61.3% 83.1% 78.0% 80.8% 85.7% 69.2%
    CodeAlpaca 75.5% 56.2% 80.4% 78.1% 79.5% 88.5% 62.3%

    Wikipedia calibration is within noise of production on every benchmark. Code is different, and unevenly so: MMLU and BoolQ are unchanged, while WinoGrande and ARC-Challenge lose the most. Nothing in the grid collapses, and even the worst off-domain cell keeps about 90% of production.

A controlled topical study, calibrating on medicine, law or computer science subsets and measuring transfer across them, would test the reviewer's question more sharply. We leave that to future work, and will state this scope limit and the calibration-dependence discussion the reviewer asks for in the final version.

Q2: Mismatched-KV architectures

Model swaps in production often happen inside a family, in cost-quality cascading, routing and mid-conversation handoff, so that is the case the paper is built around. Nothing in the mapper forbids a differing head count or width. Each target head is fitted independently, so a mismatch on either axis only changes the shape of the linear system, and the paper's limitations say as much while noting that we never tested one. We did that for this rebuttal on Qwen2.5, a dense family that varies one mismatch axis at a time while holding family, attention type and RoPE base constant. All numbers are retention against the target's own standalone accuracy.

(1) Mismatched KV-head count. The first two rows share the 32B target, so the comparison is not confounded by the receiving model.

Pair KV heads (src to tgt) Target HellaSwag ARC-Challenge MMLU
Qwen2.5-14B$\to$32B (matched control) 8 to 8 32B 96.8% 103.1% 91.7%
Qwen2.5-7B$\to$32B (mismatched) 4 to 8 32B 93.3% 91.9% 73.4%
Qwen2.5-7B$\to$14B (mismatched) 4 to 8 14B 93.7% 85.6% 65.8%

HellaSwag is almost unaffected by the mismatch. ARC-Challenge drops more, and MMLU most. The third row isolates the receiving model, and it moves the same way: a smaller receiver lowers MMLU and ARC-Challenge and leaves HellaSwag alone.

(2) Mismatched per-head width. Both rows share the 3B target.

Pair Head dim (src to tgt) KV heads HellaSwag ARC-Challenge MMLU
Qwen2.5-1.5B$\to$3B (matched control) 128 to 128 2 to 2 92.5% 83.8% 59.7%
Qwen2.5-0.5B$\to$3B (mismatched width) 64 to 128 2 to 2 85.2% 70.8% 37.2%

HellaSwag still holds, but the mapped cache scores 24% on MMLU, which is chance. The matched control is weak on MMLU at this scale too, so most of that loss is there without any mismatch.

This is one family and one controlled case, so we do not read it as generality. It does say that a KV geometry mismatch is not the boundary of the method. Where the linear map falls short, the nonlinear mapper of Section 4.4 recovers 10.8 to 21.6 pp on the paper's own failure pairs. We have not run it under mismatched KV.

Q3: Significance and originality

We agree the empirical discovery is the main contribution, and we foreground it.

  • Prior cross-model methods train fusers or adapters. We show a closed-form fit already captures most of the transferable structure, with no gradients and one matmul at inference. That simplicity is what makes it deployable.
  • The mechanism is a second contribution. The target reads only part of the mapped cache, so error in the rest costs nothing while the same amount in the part it reads breaks the pair. That is why two pairs with equally good reconstruction can transfer very differently.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…