# BridgeKV: Large-Model Prefill and Small-Model Decoding for LLM Inference via KV Cache Translation

BridgeKV lets a larger model prefill and a smaller model decode

Behnam, Payman, Sanyal, Debopam, Ponnusamy, Pranav, Ravi, Kusum Meda, Sastry, Pranav, Bandaru, Mani Chandana and 3 more · arXiv · 2026-11-9

- **Problem** Serving uses one model for both phases, so decoding speed and accuracy trade off. Decoding repeats for every output token and is limited by memory bandwidth, so the larger model slows every token.
- **Method** BridgeKV has the larger model prefill once and passes its prompt cache to a smaller model through a learned KV-stitching module. The smaller model then decodes every output token on its own, with no large-model block in the decode loop.
- **Results** On one A40 GPU, Llama-3.1-Instruct-8B to Llama-3.2-Instruct-1B serves requests 3.0X faster than the larger model alone. The authors also report BridgeKV beats fine-tuned small-model baselines with matched trainable parameters in all 30 settings.

![Figure 1: Request latency and test accuracy of Llama-3.1-Instruct-8B alone, Llama-3.2-Instruct-1B alone, and BridgeKV with Llama-3.1-Instruct-8B →Llama-3.2- In…](https://refivu.com/papers/4b4f7e07-6cb4-4329-8ba4-eb2bfc4e07de/figures/figure-efdf7d332d57f3c54de22f8f24fe45ad.png?thumb=512)

**Figure 1** : Request latency and test accuracy of Llama-3.1-Instruct-8B alone, Llama-3.2-Instruct-1B alone, and BridgeKV with Llama-3.1-Instruct-8B →Llama-3.2- Instruct-1B. Latency is measured on real hardware (Sec- tion 4.3). The right columns give test F1 on CoQA and NarrativeQA (NQA).

[Original paper](https://arxiv.org/abs/2611.11761v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Behnam, Payman, Sanyal, Debopam, Ponnusamy, Pranav, Ravi, Kusum Meda, Sastry, Pranav, Bandaru, Mani Chandana, Khare, Alind, Lee, Myungjin, Tumanov, Alexey · BridgeKV: Large-Model Prefill and Small-Model Decoding for LLM Inference via KV Cache Translation · Original paper figure · Extracted the figure area from page 2 of the original PDF.

## Why one model for both phases stalls

Every request runs in two phases, and each one stresses the hardware in a different way. Prefill mainly sets the time to first token, while decode sets the time between tokens. On one A40 GPU, Llama-3.1-Instruct-8B needs 0.19 s to prefill a 1K-token prompt but 8.6 s to decode 256 output tokens. Because decode repeats for every output token, it dominates request latency, so the model that does the decoding matters most.

Larger models give better accuracy, but every output token has to pass through them. On CoQA, fine-tuned Llama-3.1-Instruct-8B scores 81.8 F1, compared to 77.2 for fine-tuned Llama-3.2-Instruct-1B. In the authors' serving simulation, the larger model's TBT is 4.4× higher, and its KV cache takes 4× more memory per token. This points to a split in which the larger model prefills and the smaller one decodes.

The split only helps if much of the larger model's accuracy advantage is carried in its prompt KV cache.

The obstacle is that a KV cache belongs to the model that wrote it, so the larger model's prompt cache doesn't fit the smaller model directly. Both models also store keys after applying rotary position embeddings, so any map on keys has to account for position too. Ridge mapper aims to reproduce the cache the receiving model would build itself, so it preserves that model's behavior but doesn't aim to improve it.

The authors build on this idea and propose to stitch the KV cache in LLM serving.

## The key idea: map the prompt cache, keep the small decoder

BridgeKV lets the larger model run prefill once and hands its prompt cache to the smaller model through a learned translation. The smaller model then decodes every output token on its own, so no large-model block runs inside the decode loop. The handoff happens once per request, so the stitched cache is built only once before the cache moves to the decode side.

Because stitching runs on the prefill GPU, its overhead adds only to time to first token.

Separate maps then transform keys and values, and the module removes the prefill anchor's RoPE before the key map. The RoPE of the decode anchor is applied afterward, so one key map serves every position. Both maps start from a closed-form least-squares fit to the decode anchor's native cache, which gives the module a sensible starting point.

The authors expect this to work because a small learned map can align internal representations of related pretrained models, as earlier stitching work suggests. Their bet is that the prompt cache carries much of the larger model's accuracy advantage, so the translation has to keep that part. Prior cache translators fit the receiver's own cache, so they preserve its behavior but don't aim to improve it.

Training asks the decode anchor, reading the translated cache, to match the next-token distribution of the prefill anchor. A cache-alignment loss keeps the stitched cache close to the decode anchor's native cache, so the translation stays in the right space. Both anchors stay frozen during this first stage, and the second stage adds low-rank adapters only when a task needs them.

## How the stitching module maps one cache onto another

The two anchors differ in depth and head layout, so the module first bridges the layer count and the KV shape. Table 2 lists the layer count, KV layout, and per-token cache size for each of the six anchors. The authors found that the best-predicting prefill layer need not sit at that depth, so BridgeKV gives each decode layer a window of nearby prefill layers.

For Llama-3.1-Instruct-8B to Llama-3.2-Instruct-1B with W = 3, decode layer 1 reads prefill layers 1 to 3, and decode layer 16 reads prefill layers 30 to 32.

![Table 2: The six anchors. L: layers; Hkv×dh: KV heads × head dimension;κ: KV-cache bytes per token in bf16](https://refivu.com/papers/4b4f7e07-6cb4-4329-8ba4-eb2bfc4e07de/figures/figure-cf56209afa5b0352d8d86d1369816de3.png?thumb=512)

**Table 2** : The six anchors. L: layers; Hkv×dh: KV heads × head dimension;κ: KV-cache bytes per token in bf16.

[Original paper](https://arxiv.org/abs/2611.11761v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

In the weighted-sum variant, each decode layer learns separate mixing logits for keys and for values. A softmax turns those logits into mixing weights, and the key input becomes a weighted sum over the window. Values follow the same pattern with their own weights, so keys and values can draw on different prefill layers. The initial logits favor the middle window position, which gives weights of 0.21, 0.58, and 0.21 for W = 3.

Each stitching layer is a residual map applied separately to keys and to values. The layer computes a linear projection P\_j of the normalized token vector, plus a GELU branch scaled by a learned residual scale alpha\_j. The linear projection maps the KV width of the prefill model to that of the decode model. The authors found that purely linear cross-model KV maps degrade sharply, so they kept the nonlinear branch.

Both anchors store keys after rotary position embedding, and the rotation angles differ because the head dimensions differ. BridgeKV undoes the RoPE of the prefill model on the source keys, applies the key stitching layer, and then applies the RoPE of the decode model. Because both anchors share a tokenizer, the prompt position t is the same in both, so one stitching layer serves every position.

Values carry no position rotation, so they go straight to the value stitching layer. The linear projection starts from a closed-form least-squares fit, using 512 training examples and up to 256 sampled positions from each. For Llama-3.1-Instruct-8B to Llama-3.2-Instruct-1B, the module has 118M parameters, which is 12% of the non-embedding parameters of Llama-3.2-Instruct-1B.

Both anchors stay frozen while the module trains, so a stage-one-only setting keeps the decode model's fine-tuned weights.

The window size W is set to 3 by default in these experiments. A window of W = 1 gives a rigid one-to-one mapping that can't compensate for depth mismatch between anchors. Windows of W ≥ 6 add mixing weights without consistent downstream gains, so the source information looks concentrated in a narrow neighborhood. The MLP hidden expansion factor gamma is fixed at 4, a larger value risks overfitting to the training cache distribution.

## Two training stages with frozen anchors

Stage one trains only the stitching module ψ, and both anchors stay frozen during it. The alignment loss pulls the stitched cache toward the native cache of the decode anchor, layer by layer, for keys and for values. Each layer term is MSE plus λcos times one minus the cosine similarity, with λcos = 0.5. The MSE term matches the scale of the cache entries, while the cosine term matches their direction.

The distillation loss feeds the reference output y with teacher forcing to both anchors. It compares the next-token distributions of the prefill anchor, which reads its own cache, and the decode anchor, which reads the stitched cache. Distillation carries the accuracy advantage of the prefill anchor into the smaller model, which alignment alone would not do.

Stage one minimizes the alignment loss plus the weighted distillation loss and an optional reconstruction term with λrec = 1.

Stage two adds LoRA adapters η to the decode anchor and trains them together with the stitching module ψ. Its objective is the teacher-forced cross entropy of the decode anchor on the stitched cache. For each model pair and dataset, the validation set decides whether this stage runs and which target it uses. The checkpoint with the lowest validation loss is kept.

Stage two runs for 1 or 2 epochs with weight decay 0.05, and its learning rate is picked from {5×10⁻⁵, 10⁻⁴, 2×10⁻⁴}. Stage one runs for 1 to 5 epochs at a learning rate of 5×10⁻⁴, and only Gψ receives gradients. Both anchors stay frozen in settings that use only stage one, so the decode anchor keeps the weights of its fine-tuned baseline.

## Accuracy against fine-tuned small models

The central question is whether a stitched cache lifts the small decode model above what fine-tuning it alone achieves. Across 30 settings, BridgeKV beats the fine-tuned small-model baselines that hold the same number of trainable parameters. Figure 3 places the fine-tuned decode anchor, BridgeKV, and the fine-tuned prefill anchor side by side for each pair and dataset.

BridgeKV improves over the fine-tuned decode anchor in every plotted setting, and it keeps the same small model for generation. The size of that gain depends on the task and the model pair.

The largest gain is up to 8.4% relative, on NarrativeQA for Qwen2.5-Instruct-7B to Qwen2.5-Instruct-0.5B. Because these are relative changes, 8.4% doesn't mean eight points of accuracy. The smallest gain is 0.2% relative, on SAMSum for Llama-3.1-Instruct-8B to Llama-3.2-Instruct-3B.

In 12 of the 30 settings, the selected configuration trains only the first stage. In those settings, the decode model keeps the exact weights of its fine-tuned baseline. BridgeKV still scores higher in all 12, so the gain comes from the stitched cache alone. Training the KV-stitching module costs less than the parameter-matched LoRA baseline in every setting.

On GovReport with Llama 8B to 1B, stage one took 12.1 A40 GPU-hours, against 37.8 for the PEFT baseline.

The PEFT baseline gets the same trainable parameter count, plus a larger training budget than the KV-stitching module. BridgeKV still scores higher in every setting, so extra training on the decode side doesn't explain the gap. The PEFT rank is matched to each stitched model, so it varies across rows that share a decode anchor.

![Table 3: Training cost in A40 GPU-hours of the two stages of the KV-stitching module and of a PEFT baseline that fine-tunes thedecode anchorwith LoRA at a para…](https://refivu.com/papers/4b4f7e07-6cb4-4329-8ba4-eb2bfc4e07de/figures/figure-11862a882edcb538be2ea8452e5db749.png?thumb=512)

**Table 3** : Training cost in A40 GPU-hours of the two stages of the KV-stitching module and of a PEFT baseline that fine-tunes thedecode anchorwith LoRA at a parameter- matched rank. “–”: the setting uses only the first stage. The PEFT rank is matched to the stitched model of each row, so it differs between rows with the samedecode anchor, and training stops early on the validation loss.

[Original paper](https://arxiv.org/abs/2611.11761v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

## Real-hardware latency of the handoff on one A40 GPU

The handoff runs on one NVIDIA A40 GPU at batch size 1, with the anchors and the KV-stitching module in bf16 through Hugging Face Transformers. Prompt lengths range from 512 to 8K tokens in these measurements.

The batched implementation stacks the weights of all stitching layers, because every stitching layer of a pair has the same shapes. The batched version adds 1.6–6.7% to the prefill time of the prefill anchor across the four pairs. The per-layer version adds 5–51% over the same four pairs.

For Llama-3.1-Instruct-8B to Llama-3.2-Instruct-1B, the batched stitching takes 3–42 ms, against 96–1504 ms of prefill. On a 1K-token prompt with 256 output tokens, prefill with Llama-3.1-Instruct-8B takes 0.19 s, and stitching takes 6 ms. The decode model then runs at 10.9 ms per token, against 33.9 ms per token for Llama-3.1-Instruct-8B.

The full request takes 2.96 s, close to the 2.80 s of Llama-3.2-Instruct-1B alone. The same request is 3.0× faster than the 8.83 s of Llama-3.1-Instruct-8B alone.

The request latency stays close to the small model because the decode anchor keeps its native cache shape. The large model still handles the prompt, so the accuracy benefit of the stitched cache stays in place. These numbers come from real hardware, while the simulator in the next section models many queued requests.

## Serving simulation at disaggregated scale

The serving simulation models a disaggregated fleet with machine pools, queues, schedulers and KV cache transfer, using a Splitwise-style discrete-event simulator. Because the simulator includes queueing delay and cache transfer overhead, its numbers differ from the single-request hardware measurements in Section 4.3.

Transfer cost is small, because the per-layer KV cache size is computed from batch size, prompt length, KV heads, head dimension and bytes per scalar. For a 1024-token prefill, the Llama-8B to 1B pair moves 0.13 GiB in total. Layer-wise overlap means only the final layer's transfer stays visible, which is 0.04 ms on NVLink and 0.08 ms on InfiniBand.

In the 1024/1024 workload, BridgeKV reduces response time from 39.80 s to 9.13 s, a 4.36× speedup over Llama-3.1-Instruct-8B alone. Throughput rises from 25.81 tok/s to 113.5 tok/s, a 4.40× gain. The two gains are close because decode dominates this workload, which generates 1024 output tokens.

Energy follows a phase-specific power model from Splitwise, where the prompt phase uses 95% of machine TDP and decode uses 45% of aggregated GPU TDP. That model gives Pp = 2280 W for prompt processing and Pd = 1080 W for decode. Energy per request drops from 11.98 Wh for Llama-3.1-Instruct-8B alone to 2.78 Wh for BridgeKV, a 4.31× reduction.

The benefit grows with the model-size gap between the prefill and decode anchors. Llama-13B to 7B gives a 1.75× response speedup and 1.76× energy savings. Qwen-14B to 0.5B gives a 10.41× response speedup and 8.21× energy savings. For Llama-70B to 1B, BridgeKV reaches a 33.86× response speedup and 27.5× energy savings.

## What remains open after these results

Speculative decoding keeps the large model in the loop, so its output stays tied to the large model's distribution. Its speedup depends on how often the large model accepts the small model's draft tokens. BridgeKV takes a different path: after the cache handoff, only the small model generates tokens. That path comes with no guarantee that its outputs match the large model's distribution.

All six pairs stay inside one family, either Llama or Qwen, and anchors of one family share a tokenizer. The authors didn't test cross-family pairs, so the handoff across model families remains open. The second stage and its training target get chosen per pair and dataset on the validation split. Reported gains therefore depend on that per-setting selection on validation data.

The latency measurements come from one NVIDIA A40 GPU at batch size 1 with bf16. Hardware runs cover only four pairs with a 1B or 0.5B decode anchor, with prompts from 512 to 8K tokens. The serving simulation uses 200 requests with exponential arrivals at 2.0 requests/s, and it models queueing and cache transfer. The Llama-70B→1B result appears only in the model-size gap table, with a 33.86× response speedup.

BridgeKV improves the fine-tuned decode anchor by up to 8.4% relative, so the gains vary by task and model pair.

## Paper info

- **Authors**: Behnam, Payman, Sanyal, Debopam, Ponnusamy, Pranav, Ravi, Kusum Meda, Sastry, Pranav, Bandaru, Mani Chandana, Khare, Alind, Lee, Myungjin, Tumanov, Alexey
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-9
- **Added**: 2026-11-10
- **Updated**: 2026-11-9
- **Version**: v1
- **arXiv**: 2611.11761
- **Category**: cs.CL
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.11761v1) · [PDF ↗](https://arxiv.org/pdf/2611.11761v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

LLM inference has two phases with different bottlenecks: LLM prefill runs once per request and is compute-intensive. Decoding repeats for every output token and is limited by memory bandwidth. To address the challenges associated with this issue, different solutions have been proposed. All of these solutions use the same model for both prefill and decode phases. We propose BridgeKV, which uses a larger model for prefill and a smaller model of the same family for decoding. A lightweight KV-stitching module translates the larger model's prompt cache into the smaller model's cache layout. It handles differences in cache shape and representation through learned local layer mixing and separate nonlinear maps for keys and values. With both models frozen, we train the module to align their caches and make the smaller model follow the larger model's next-token predictions. A second training stage adds low-rank adapters when further task adaptation is needed. Across six model pairs and five datasets, BridgeKV outperforms fine-tuned small-model baselines with matched trainable parameter budgets in all 30 settings. It closes up to 80% of the quality gap to using the larger model for both phases. On one A40 GPU, Llama-3.1-Instruct-8B to Llama-3.2-Instruct-1B achieves 3.0X faster requests than the larger model alone, with latency close to the smaller model alone. BridgeKV can improve the hardware and system solutions that separate prefill and decode phases across GPUs. A separate serving simulation models request arrivals, queues, and cache transfer. For Llama-3.1-Instruct-70B to Llama-3.2-Instruct-1B, it predicts up to 33.86X faster requests and 27.5X lower energy use than using the larger model for both prefill and decode phases.

## Quote from the paper

Behnam, Payman, Sanyal, Debopam, Ponnusamy, Pranav, Ravi, Kusum Meda, Sastry, Pranav, Bandaru, Mani Chandana, Khare, Alind, Lee, Myungjin, Tumanov, Alexey (2026). BridgeKV: Large-Model Prefill and Small-Model Decoding for LLM Inference via KV Cache Translation. arXiv:2611.11761v1. https://arxiv.org/abs/2611.11761v1

**BibTeX**

```
@misc{payman2026bridgekv,
  title = {{BridgeKV: Large-Model Prefill and Small-Model Decoding for LLM Inference via KV Cache Translation}},
  author = {Behnam, Payman and Sanyal, Debopam and Ponnusamy, Pranav and Ravi, Kusum Meda and Sastry, Pranav and Bandaru, Mani Chandana and Khare, Alind and Lee, Myungjin and Tumanov, Alexey},
  year = {2026},
  eprint = {2611.11761},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.11761v1}
}
```

## Other paper commentary

- [Competing Influence in LLM Populations: Budget Timing and Baseline Drift](https://refivu.com/en/papers/0c46aeac-7fe7-4f4c-9eb7-13d04ed0b581-competing-influence-in-llm-populations-budget-timing-and.md)
- [VeilTune: Secure Fine-Tuning of Private LoRA Adapters on Public Pretrained Language Models](https://refivu.com/en/papers/1ac3c6eb-7952-4bcf-b058-eb348429161e-veiltune-secure-fine-tuning-of-private-lora-adapters.md)
- [Weight-Space Programming of Policies and Their Verification via Model Checking](https://refivu.com/en/papers/812e0c2d-92df-41d6-8419-2738a51f42de-weight-space-programming-of-policies-and-their-verification.md)
- [WarBias: A Bilingual LLM Benchmark of Stereotypes About Internally Displaced People and Veterans](https://refivu.com/en/papers/d1a75005-9e8d-4870-a69c-f94be2d0840d-warbias-a-bilingual-llm-benchmark-of-stereotypes-about.md)
- [When Safety Becomes An Outlier: Understanding the Retention of LLM Safety Behaviors](https://refivu.com/en/papers/c80b7b08-3909-41c2-8f34-04547cb431aa-when-safety-becomes-an-outlier-understanding-the-retention.md)
- [AbductionBench: Benchmarking Abductive Reasoning in Large Language Models](https://refivu.com/en/papers/5447aa31-8498-47e7-ac8b-ac02bc06c0bc-abductionbench-benchmarking-abductive-reasoning-in-large.md)
- [Scale-Invariant Empirical-Bayes Laplace Approximation for ReLU Networks](https://refivu.com/en/papers/9bf0a825-ad03-459f-ac38-a053b7807748-scale-invariant-empirical-bayes-laplace-approximation-for.md)
- [Feeling Easier, Working Harder: Cognitive Load in AI-Assisted Code Comprehension](https://refivu.com/en/papers/e8b650a9-d757-41c0-965d-d7085453a0cd-feeling-easier-working-harder-cognitive-load-in-ai.md)
- [Where Does Proposal Selection Fail? Diagnosing Frozen Vision-Language Queries over Detector Proposals](https://refivu.com/en/papers/363442ef-3d90-4b6d-8310-d1e4fa21fd5d-where-does-proposal-selection-fail-diagnosing-frozen-vision.md)
- [Fade to... Red? Scheduling Coloured Noise Exploration Supports Efficient Robot Learning with Reduced Movement Jerk](https://refivu.com/en/papers/51c54d37-00d0-4705-a3f6-54a87375f97e-fade-to-red-scheduling-coloured-noise-exploration-supports.md)
- [MOOD: Benchmarking Post-Hoc OOD Detection for Materials Property Prediction](https://refivu.com/en/papers/43f71184-5ad3-4e22-907b-780780aa57a8-mood-benchmarking-post-hoc-ood-detection-for-materials.md)
- [Distilling Instructions into Weights: Closed-Form Edits Fix a Robot Policy's Misreading](https://refivu.com/en/papers/090ad32c-77e2-48f8-ac1c-1cc0ae994759-distilling-instructions-into-weights-closed-form-edits-fix.md)

## Terms in this paper

- [LoRA](https://refivu.com/en/terms/bee764895c36-lora)
- [KV cache](https://refivu.com/en/terms/cbf2f6d2bcc1-kv-cache)
- [ROUGE-L](https://refivu.com/en/terms/b00e147f8ed4-rouge-l)
- [token F1](https://refivu.com/en/terms/94ea680246f5-token-f1)
- [distillation loss](https://refivu.com/en/terms/fc017f5732b1-distillation-loss)
- [CoQA](https://refivu.com/en/terms/32b063be295f-coqa)
- [GovReport](https://refivu.com/en/terms/19fddba27d40-govreport)
- [low-rank adapters](https://refivu.com/en/terms/5a165ee891ff-low-rank-adapters)
- [Multi-News](https://refivu.com/en/terms/75563be5fec8-multi-news)
- [SAMSum](https://refivu.com/en/terms/3445bdf3342b-samsum)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/4b4f7e07-6cb4-4329-8ba4-eb2bfc4e07de-bridgekv-large-model-prefill-and-small-model-decoding)
