ACCT:跨 LLM 的 KV 缓存迁移方法,让不同规模模型复用上下文计算
ACCT: Asymmetric Cross-LLM Context Transfer
arXiv 上这篇论文讲了一个省算力的新招:同一模型家族里小模型算过的上下文,能直接转成大模型能用的 KV 缓存,省 75% 缓存还能提速最多 21 倍。
ACCT(Asymmetric Cross-LLM Context Transfer)针对同一模型家族内不同规模模型之间的 KV 缓存迁移问题,将源模型生成的 KV 缓存转换为稀疏 KV 状态,供目标模型直接使用,无需重新处理上下文。方法由 Cartographer、Allocator、Compiler 三个轻量组件组成,分别负责筛选相关 token、在共享 KV 预算下分配保留量、以及转换 KV。实验覆盖 5 个通用能力基准和 6 个强上下文依赖任务,结果显示在 KV 缓存缩小 75% 的情况下仍能持平或超过目标模型原始推理表现。在约 19K token 的上下文长度下,KV 转换相比目标模型的上下文 prefill 取得 6.5-21.2 倍加速。
ACCT: Asymmetric Cross-LLM Context Transfer
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.