arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.22026cs.LG
收藏

增强缓存,替换激活:内部状态共享的2×2研究

Augment the Cache, Replace the Activation: A 2x2 Study of Internal-State Sharing

MIT ORC(麻省理工学院ORC);MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);IBM Research(IBM研究院)

Adam Deng, Shicheng Liu, Yada Zhu

AI总结:

该研究针对多智能体系统内部状态共享问题,提出将“传输”框架改为“共享”,发现需增强KV缓存、替换激活,仅用一个适配器即可实现高效状态共享,降低通信成本。

摘要:

由冻结语言模型构建的多智能体系统通过文本通信,这会丢弃发送方已计算的内部状态,导致接收方需要付出代价来重建该状态。内部通道相关研究避免了这一成本,将问题框架化为“传输”:智能体A向智能体B发送信息。每一对需要通信的智能体都需要各自的传输桥,且向系统中添加一个智能体时,需要针对每个已有智能体安装新的桥。我们将该问题重新框架化为“共享”:智能体将其内部状态发布到一个池中,每个对等方通过一个不针对特定发送方的单一机制读取该池,因此添加一个智能体仅需添加一个发布者,无需新增桥。文献中通常独立选择内部状态的载体和融合机制,而我们的主要发现是这两种选择是耦合的;决定性因素是载体进入接收方计算的位置。可消费性是接收方计算的属性,而非表示的属性。我们发现,必须增强而非替换键值(KV)缓存:接收方在保留自身缓存的同时对对等方的缓存进行交叉注意力计算,仅训练一个小型查询侧适配器,即可达到读取源文档时的准确率。激活则相反:它们最适合直接写入接收方,无需桥、适配器和训练,这优于将其与接收方自身的激活一同暴露,尽管该优势依赖于知晓状态在接收方中的位置。“增强KV缓存,替换激活”这一规则是在共享控制阶梯协议下确立的。一个仅训练一次的适配器也可服务于其未训练过的发布者,以及同时存在的多个发布者的池,但仅适用于那些内部状态与接收方自身状态接近的发布者。

英文摘要:

Multi-agent systems built from frozen language models communicate through text, which discards the internal state the sender already computed and makes the receiver pay to rebuild it. Work on internal channels avoids that cost, framing the problem as transfer: agent A sends information to agent B. Every agent pair that must communicate needs its own transfer bridge, and every agent added to a system needs a new bridge fitted against each previous agent. We reframe this problem as sharing: an agent publishes its internal state once into a pool, and every peer reads that pool through a single mechanism fitted to no sender in particular, so adding an agent adds a publisher and no new bridge. Whereas the carrier of the internal state and the fusion mechanism are usually chosen independently in the literature, our main finding is that these two choices are coupled; the deciding factor is where the carrier enters the receiver's computation. Consumability is a property of the receiving computation rather than of the representation. We find that the key-value (KV) cache must be augmented rather than swapped in: the receiver cross-attends over a peer's cache while keeping its own, and with only a small query-side adapter trained, matches the accuracy it gets from reading the source document. Activations invert this. They are best written straight into the receiver, with no bridge, no adapter and no training, which beats exposing them alongside the receiver's own, though that advantage rests on knowing where in the receiver the state belongs. The rule is augment the KV cache, replace the activation, established under one protocol with a shared control ladder. One adapter, trained once, also serves publishers it never trained on, and a pool of several at once, but only those whose internal state lies close to the receiver's own.

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

↑