群体心灵感应:跨模型家族的无预填充KV缓存传输
Swarm Telepathy: Prefill-Free KV-Cache Transfer Across Families
AI总结:
SwaT是首个跨模型家族的无预填充KV缓存传输方法,结合KV缓存压缩技术可提升多智能体通信的准确率与速度,还能跨模态传输能力且训练成本低。
摘要:
大型语言模型(LLM)多智能体系统通过文本通信拆分各智能体的工作:一个智能体总结其发现,另一个接收该文本。这将通信限制为离散令牌,且会产生冗余计算,限制了多智能体系统的带宽与能力。近期研究展示了LLM间的KV缓存传输,但这些方法要么要求LLM属于同一模型家族,要么无法跨上下文工作,因此需要接收方预填充文本。我们提出SwaT(Swarm Telepathy,群体心灵感应),这是首个跨模型家族的KV缓存传输方法,支持多家族多智能体系统中的无预填充通信。在智能体间通信场景中,将SwaT与近期KV缓存压缩技术结合,在准确率和速度上均优于文本到文本通信:平均准确率提升40%,平均 wall-clock 时间缩短4倍。实验表明,SwaT在12个LLM、6个模型家族的17个基准测试中均实现高性能。此外,给定发送方视觉语言模型(VLM),即便SwaT仅在纯文本数据上训练,仍能将视觉能力传输给仅文本的接收方LLM,性能优于文本到文本通信。SwaT保持发送方与接收方模型冻结,无需微调,仅需少于5000万令牌和少于1个GPU天即可完成训练。
英文摘要:
LLM multi-agent systems split work across agents that communicate through text. An agent summarizes its findings, another agent receives the text. This constrains communication to discrete tokens and costs redundant compute, limiting bandwidth and capabilities of multi-agent systems. Recent works demonstrate KV-cache transfer between LLMs but they either require the LLMs to be within the same family or cannot function across context, thus requiring the receiver to prefill text. We present SwaT (Swarm Telepathy), the first cross-family KV-cache transfer method that allows prefill-free communication in multi-family multi-agent systems. In an agent-to-agent communication setting, combining SwaT with recent advances in KV-cache compaction beats text-to-text communication in both accuracy and speed, with a mean of $40\%$ higher accuracy and a mean of $4\times$ faster wall-clock time. Experiments show SwaT achieves high performance on 17 benchmarks across 12 LLMs and 6 families. Additionally, given a sender Vision-Language Model (VLM), SwaT is able to transfer the vision capabilities to a text-only receiver LLM exceeding text-to-text communication despite SwaT being trained on text-only data. SwaT keeps both sender and receiver models frozen without fine-tuning and only requires $<50M$ tokens and $<1$ GPU-day to train.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。