ACCT: Asymmetric Cross-LLM Context Transfer
Organizations: Tsinghua University, Beijing, China
Abstract
In real-world deployments, large language model (LLM) systems are increasingly evolving from single-model invocation toward heterogeneous deployments in which different models are dynamically invoked for inference. When the same context is reused across models, however, each newly selected target model typically has to process it again, repeatedly incurring substantial computational costs. Therefore, we propose ACCT (Asymmetric Cross-LLM Context Transfer), which targets KV cache transfer between models of different scales within the same model family. ACCT transforms the KV cache produced by a source model into sparse KV states that can be directly consumed by a target model, thereby enabling cross-model reuse of context computation and decoupling context computation from downstream inference. ACCT consists of three lightweight components: the Cartographer identifies query-relevant context tokens for each target layer and KV head; the Allocator determines how many context tokens each target layer and KV head retains under a shared total KV budget; and the Compiler transforms selected source KV into sparse target KV. The target model can therefore perform inference using the transferred KV without reprocessing the original context. We evaluate ACCT in two complementary settings comprising five general-capability benchmarks and six highly context-dependent tasks. Experiments show that ACCT matches or exceeds the target model's original inference performance even when reducing the KV cache size by 75%. At a context length of approximately 19K tokens, ACCT's KV conversion achieves a 6.5-21.2 times speedup over target context prefill. These results demonstrate the feasibility of transferring context computation across models under a limited KV budget.
Figures & tables
| General capability | Context-dependent tasks | |||||||||||
| Model pair | Method | Hella Swag | Wino grande | MMLU | PIQA | Wiki Text2 | Search QA | Trivia QA | BoolQ | RACE | WikiHop | PubMed QA |
| Acc. | Acc. | Acc. | Acc. | PPL | F1 | F1 | Acc. | Acc. | Acc. | Acc. | ||
| Qwen3 | Target Full | 39.70 | 58.50 | 59.70 | 73.20 | 32.91 | 46.65 | 50.48 | 86.30 | 87.60 | 49.60 | 48.80 |
| ACCT | 33.20 | 51.50 | 65.70 | 73.10 | 25.94 | 67.07 | 66.31 | 61.90 | 63.50 | 36.50 | 40.20 | |
| Relative | ||||||||||||
| Qwen3 | Target Full | 37.10 | 51.00 | 63.60 | 69.20 | 81.29 | 38.56 | 37.68 | 84.00 | 87.10 | 45.80 | 34.00 |
| Model pair | Compression | Hella Swag | Wino grande | MMLU | PIQA | Wiki Text2 | Search QA | Trivia QA | BoolQ | RACE | WikiHop | PubMed QA |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Acc. | Acc. | Acc. | Acc. | PPL | F1 | F1 | Acc. | Acc. | Acc. | Acc. | ||
| Qwen3 | 38.60 | 51.40 | 55.80 | 70.90 | 23.26 | 38.54 | 47.03 | 77.80 | 69.40 | 35.10 | 45.60 | |
| 36.80 | 53.10 | 62.70 | 73.20 | 22.16 | 67.59 | 74.92 | 70.30 | 71.10 | 39.10 | 27.60 | ||
| 33.20 | 51.50 | 65.70 | 73.10 | 25.94 | 67.07 | 66.31 | 61.90 | 63.50 | 36.50 | 40.20 | ||
| Qwen3 | 37.40 | 50.50 | 44.70 | 69.30 | 60.74 | 12.54 | 14.11 | 68.00 | 56.00 | 4.80 | 48.40 | |
| 32.80 | 52.50 | 53.60 | 70.10 | 142.09 | 61.54 | 57.65 | 62.60 | 66.80 | 36.10 | 55.20 |
| Model pair | Method | Hella Swag | Wino grande | MMLU | PIQA | Wiki Text2 | Search QA | Trivia QA | BoolQ | RACE | WikiHop | PubMed QA |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Acc. | Acc. | Acc. | Acc. | PPL | F1 | F1 | Acc. | Acc. | Acc. | Acc. | ||
| Qwen3 | ACCT | 33.20 | 51.50 | 65.70 | 73.10 | 25.94 | 67.07 | 66.31 | 61.90 | 63.50 | 36.50 | 40.20 |
| Random | 31.70 | 50.80 | 27.00 | 61.20 | 68.42 | 11.09 | 20.12 | 38.90 | 27.30 | 15.30 | 51.60 | |
| Uniform | 35.20 | 50.60 | 62.80 | 72.40 | 25.24 | 41.07 | 42.72 | 62.90 | 64.20 | 34.10 | 22.80 | |
| Bridge-only | 35.10 | 51.10 | 41.70 | 70.20 | 35.24 | 44.15 | 50.13 | 63.10 | 61.70 | 33.80 | 15.40 | |
| Native KV | 38.00 | 57.40 | 54.30 | 73.20 | 37.19 | 59.94 | 59.58 | 67.20 | 75.30 | 44.50 | 36.20 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Setting | Cartographer | Allocator | Compiler residual |
|---|---|---|---|
| Training examples | 5,000 | 5,000 | 500 |
| Epochs | 1 | 1 | 4 |
| Global batch | 16 | 4 | 4 |
| Optimizer updates | 313 | 1,250 | 500 |
| Optimizer | AdamW | AdamW | AdamW |
| Learning rate |
| Pair | ||||
|---|---|---|---|---|
| Qwen3 4B 8B | 2560 | (36,8) | (416,112,56) | (416,28,4) |
| Qwen3 8B 4B | 4096 | (36,8) | (512,128,64) | (512,32,4) |
| Llama 3B 8B | 3072 | (32,8) | (448,112,56) | (448,28,4) |
| Llama 8B 3B | 4096 | (28,8) | (512,128,64) | (512,32,4) |
| Qwen2.5 7B 32B | 3584 | (64,8) | (480,128,64) | (480,32,4) |
| Qwen2.5 32B 7B | 5120 | (28,4) | (576,144,72) | (576,36,5) |
| Pair | Cartographer | Allocator | Compiler | Total |
|---|---|---|---|---|
| Qwen3 4B 8B | 1,338,768 | 288 | 61,151,168 | 62,490,224 |
| Qwen3 8B 4B | 2,474,112 | 288 | 80,917,504 | 83,391,904 |
| Llama 3B 8B | 1,665,424 | 256 | 62,676,608 | 64,342,288 |
| Llama 8B 3B | 2,473,600 | 224 | 70,398,976 | 72,872,800 |
| Qwen2.5 7B 32B | 2,081,440 | 512 | 108,981,440 | 111,063,392 |
| Qwen2.5 32B 7B | 3,424,048 | 112 | 71,890,624 | 75,314,784 |
| Pair | Bridge | Residual | Gradient-optimized total |
|---|---|---|---|
| Qwen3 4B 8B | 9,510,912 | 51,640,256 | 52,979,312 |
| Qwen3 8B 4B | 9,510,912 | 71,406,592 | 73,880,992 |
| Llama 3B 8B | 8,454,144 | 54,222,464 | 55,888,144 |
| Llama 8B 3B | 7,397,376 | 63,001,600 | 65,475,424 |
| Qwen2.5 7B 32B | 16,908,288 | 92,073,152 | 94,155,104 |
| Qwen2.5 32B 7B | 3,698,688 | 68,191,936 | 71,616,096 |
| Group | Dataset | Examples | Metric |
|---|---|---|---|
| General | HellaSwag ( Zellers et al., 2019 ) | 1,000 | Accuracy |
| General | Winogrande ( Sakaguchi et al., 2020 ) | 1,000 | Accuracy |
| General | MMLU ( Hendrycks et al., 2021 ) | 1,000 | Accuracy |
| General | PIQA ( Bisk et al., 2020 ) | 1,000 | Accuracy |
| General | WikiText2 ( Merity et al., 2017 ) | 500 | PPL |
| Context | SearchQA ( Dunn et al., 2017 ) | 1,000 | Token F1 |
| Pair | General retention | Context retention | Wins over Full |
|---|---|---|---|
| Qwen3 4B 8B | 101.7% | 95.9% | 4/11 |
| Qwen3 8B 4B | 94.7% | 106.6% | 4/11 |
| Llama 3B 8B | 64.7% | 77.5% | 2/11 |
| Llama 8B 3B | 67.2% | 74.7% | 2/11 |
| Qwen2.5 7B 32B | 66.8% | 77.5% | 1/11 |
| Qwen2.5 32B 7B | 75.7% | 63.4% | 0/11 |
| General capability | Context-dependent tasks | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Model pair | Method | Hella Swag | Wino grande | MMLU | PIQA | Wiki Text2 | Search QA | Trivia QA | BoolQ | RACE | WikiHop | PubMed QA |
| Acc. | Acc. | Acc. | Acc. | PPL | F1 | F1 | Acc. | Acc. | Acc. | Acc. | ||
| Qwen3 | Target Full | 37.10 | 51.00 | 63.60 | 69.20 | 81.29 | 38.56 | 37.68 | 84.00 | 87.10 | 45.80 | 34.00 |
| ACCT | 34.60 | 49.70 | 60.70 | 65.40 | 46.66 | 44.29 | 45.63 | 68.10 | 53.20 | 32.60 | 49.00 | |
| Qwen3 | Target Full | 39.70 | 58.50 | 59.70 | 73.20 | 32.91 | 46.65 | 50.48 | 86.30 | 87.60 | 49.60 | 48.80 |
| ACCT | 33.50 | 50.40 | 59.00 | 65.30 | 38.10 | 40.29 | 41.70 | 62.80 | 53.90 | 28.20 | 43.40 | |
| Context length | Warm-up runs | Timed runs |
|---|---|---|
| 2 | 3 | |
| 1 | 3 | |
| 1 | 2 |
| Direction | Cart. | Alloc. | Comp. | Convert | Source | Target | Speedup | |
|---|---|---|---|---|---|---|---|---|
| 1001 | 7.0 | 7.4 | 12.8 | 27.2 | 69.4 | 91.1 | ||
| 1024 | 7.0 | 7.4 | 12.9 | 27.3 | 69.4 | 91.9 | ||
| 1729 | 7.0 | 7.9 | 17.0 | 31.9 | 106.1 | 159.0 | ||
| 1918 | 7.1 | 7.4 | 18.1 | 32.6 | 131.6 | 165.3 | ||
| 4126 | 15.6 | 7.5 | 30.6 | 53.7 | 270.2 | 363.9 | ||
| 8158 | 20.3 | 7.8 | 53.3 | 81.4 | 533.7 | 729.8 |
| Direction | Source | Cart. | Alloc. | Comp. | Convert | Target | Speedup | |
|---|---|---|---|---|---|---|---|---|
| 995 | 42.6 | 6.2 | 7.4 | 12.3 | 25.9 | 86.4 | ||
| 996 | 43.8 | 6.2 | 7.4 | 12.3 | 25.9 | 86.4 | ||
| 1551 | 64.5 | 6.2 | 7.4 | 15.3 | 28.9 | 123.8 | ||
| 1900 | 88.2 | 6.2 | 7.4 | 17.1 | 30.7 | 153.1 | ||
| 3989 | 176.3 | 9.9 | 7.4 | 28.3 | 45.6 | 319.9 | ||
| 7848 | 339.0 | 17.6 | 7.4 | 49.4 | 74.4 | 656.8 |
| Direction | Source | Cart. | Alloc. | Comp. | Convert | Target | Speedup | |
|---|---|---|---|---|---|---|---|---|
| 1001 | 85.7 | 10.7 | 8.0 | 17.2 | 35.9 | 308.5 | ||
| 1024 | 86.4 | 10.8 | 8.3 | 17.3 | 36.4 | 310.9 | ||
| 1729 | 127.3 | 11.0 | 8.2 | 24.4 | 43.6 | 552.9 | ||
| 1918 | 162.2 | 10.9 | 8.3 | 26.2 | 45.4 | 584.1 | ||
| 4126 | 323.6 | 25.9 | 8.3 | 48.6 | 82.8 | 1324.1 | ||
| 8158 | 625.1 | 34.0 | 8.4 | 89.1 | 131.5 | 2592.0 |
| Direction | Source | Transfer | Total | Target | Speedup | |
|---|---|---|---|---|---|---|
| Qwen3 | 1001 | 69.4 | 36.4 | 105.8 | 91.1 | |
| 19070 | 1496.7 | 219.6 | 1716.3 | 1993.4 | ||
| Llama | 995 | 42.6 | 33.6 | 76.2 | 86.4 | |
| 19047 | 995.8 | 202.9 | 1198.7 | 1837.5 | ||
| Qwen2.5 | 1001 | 85.7 | 52.3 | 138.0 | 308.5 | |
| 19070 | 1607.3 | 397.4 | 2004.7 | 6706.3 |
KV-Cache Reuse
Key-value (KV) cache reuse lets language models reuse previously computed attention states to cut repeated prefill work and serving latency.
See all 77 papers