HeteroFold transfers KV caches across model families with no receiver prefill, 10.7× faster at 32K

Prefill-Free Cross-Family KV Cache Transfer for Heterogeneous Multi-Agent LLMs

Vincent-Daniel Yun, Woosang Lim, Haneul Yoo, Sungjoo Yoo, Murali Annavaram, Sai Praneeth Karimireddy

cs.AI, cs.LG, cs.MA

2026-09-26

Maps a sender model's KV cache into a different family's receiver, skipping prefill: 10.7x faster at 32K and best cache-transfer results on all four long-context benchmarks.

What problem this solves

Heterogeneous multi-agent systems assign different model families to different roles, but agents still talk in text: every receiver must re-prefill the shared context the sender already processed and rebuild its own KV cache, and the duplicate cost grows with context length. Reusing the sender's cache is the obvious fix, but cross-family reuse has to clear three mismatches: tokenizers, layer counts, and KV representations. Existing prefill-free mapping methods (Dense Latent, KV Ridge) were validated only within a family; pushed cross-family they collapse. On Ministral-3-14B→Llama-3.1-8B, Dense Latent scores 2.72 F1 on Qasper against 44.64 for text communication.

There is a subtler trap. Low cache reconstruction error does not mean the receiver behaves correctly. In the paper's control, KV Ridge has lower reconstruction error than HeteroFold yet distorts receiver attention more. What must be preserved is the downstream computation the cache induces, not the cache values.

Method

HeteroFold freezes both models and learns fixed linear maps between them.

Calibration uses 1,600 training and 400 held-out prompts (Open-R1 problem text plus HotpotQA), no gold answers. One direction costs about two H100 GPU-hours and a 201–252M-parameter mapper, 0.4–0.5 GB in BF16.

Results

Six directions among Llama-3.1-8B, Qwen3-4B, and Ministral-3-14B. HeteroFold is the best cache-transfer method on all four long-context benchmarks in all six directions, and on most short-context ones. Ministral→Llama direction:

MethodQasper F1HotpotQA F1QuALITY AccGSM8K Acc
Text + native prefill44.6457.5475.0785.67
Dense Latent + TA2.720.7924.831.74
KV Ridge + TA19.0937.4874.7453.30
HeteroFold33.7250.2979.0063.46

On QuALITY, 79.00 beats the text reference's 75.07; the other benchmarks in this direction still trail text. Giving both baselines the same TA lifts KV Ridge sharply, which confirms tokenizer mismatch as the main bottleneck, but HeteroFold stays ahead, so the gains are not all from TA. Asked to restate a question it can only see through the transferred cache (100 GSM8K prompts), the receiver reaches 83.0% ordered word overlap with HeteroFold, against 76.7% for KV Ridge + TA and 39.7% for Dense Latent + TA.

Latency at 32K context (Llama→Ministral, two H100s): native prefill takes 5,167 ms, HeteroFold 481 ms, a 10.74× speedup, and 1.18–1.47× faster than KV Ridge + TA (570 ms) and Dense Latent + TA (706 ms). On the multi-agent benchmark HiddenBench, average accuracy after 15 communication rounds is 30.6% against 29.2% for text, with a 3.2% invalid-answer rate (KV Ridge + TA hits 20.9%).

Why it matters

Teams building heterogeneous multi-agent systems can now price out repeated prefill: roughly 3.5–3.8× saved at 4K and 10.7× at 32K, with the saving growing as contexts get longer and shared more often. The methodological lesson travels further: evaluate cache transfer against receiver behavior (attention, outputs), because reconstruction error misleads. And since the learned corrections fold into plain affine maps with both models frozen, the serving path stays clean, which suits teams running multi-model serving on their own clusters.

The authors bill this as the first prefill-free cross-family transfer with explicit tokenizer alignment. Its honest positioning is opening the road: absolute quality still trails text communication, but the route is shown to work.

Limitations

Terms

Source

Related papers

All paper explainers