arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2610.42116cs.AI
收藏

ACCT:非对称跨大语言模型上下文迁移

ACCT: Asymmetric Cross-LLM Context Transfer

Tsinghua University(清华大学)

Yuzhe Liu, Haolin Tian, Tonghan Wang

AI总结:

ACCT是一种跨大语言模型的KV缓存迁移方法,通过三个轻量组件实现上下文计算复用,在KV缓存缩减75%时仍保持性能,19K上下文长度下加速达6.5-21.2倍,验证了跨模型上下文迁移的可行性。

摘要:

在实际部署中,大语言模型(LLM)系统正逐渐从单模型调用向异构部署演进,异构部署中会动态调用不同模型进行推理。然而,当不同模型复用同一上下文时,新选定的目标模型通常需要重新处理该上下文,反复产生大量计算开销。为此,我们提出ACCT(Asymmetric Cross-LLM Context Transfer,非对称跨大语言模型上下文迁移),其目标是在同一模型家族内不同规模的模型间实现KV缓存迁移。ACCT将源模型生成的KV缓存转换为可被目标模型直接使用的稀疏KV状态,从而实现上下文计算的跨模型复用,并将上下文计算与下游推理解耦。ACCT包含三个轻量组件:Cartographer(映射器)为每个目标层和KV头识别与查询相关的上下文标记;Allocator(分配器)在共享的总KV预算下确定每个目标层和KV头需保留的上下文标记数量;Compiler(编译器)将选定的源KV转换为稀疏目标KV。因此,目标模型可使用迁移后的KV执行推理,无需重新处理原始上下文。我们在两种互补设置中评估ACCT,包括五个通用能力基准和六个高度依赖上下文的任务。实验表明,即使将KV缓存大小减少75%,ACCT仍能达到或超过目标模型的原始推理性能;在上下文长度约为19000个标记时,ACCT的KV转换相比目标上下文预填充实现了6.5至21.2倍的加速。这些结果证明了在有限KV预算下跨模型迁移上下文计算的可行性。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑