Chasm框架揭示跨模型KV缓存传递可破坏多智能体安全对齐
Latent-in-the-Middle: On the Security of Cross-Model Latent Communication in Multi-Agent Systems
做multi-agent和KV cache共享的工程师真该看看这篇:模型间直接传latent表示,对面的安全对齐基本形同虚设,注入遵循率从0.4%飙到44.2%。作者还给了个轻量缓存守卫方案能补救,比单纯禁用latent通信实际得多。
arXiv论文《Latent-in-the-Middle》提出Chasm框架,研究异构多智能体系统中跨模型KV缓存传递(latent communication)的安全风险。当目标模型消费由源模型经mapper编码、而非自身编码的缓存时,其安全对齐和提示注入防御会大幅失效。
实验数字显示:目标模型原生只遵循0.4%的基准提示注入,经mapper传递后遵循率升至44.2%;越狱攻击在同模型家族内通过传递提升攻击成功率最多24.6个百分点,零样本攻击最多69.2个百分点;经mapper白盒优化后攻击成功率可达92.5%,而普通GCG对同一目标仅37.5%。
论文将攻击面归纳为三类:源模型、mapper和传递机制本身,并提出一种轻量的目标侧缓存守卫,通过修正传入缓存恢复目标模型的拒绝行为,显著缓解上述攻击。
Latent-in-the-Middle: On the Security of Cross-Model Latent Communication in Multi-Agent Systems
As large language models increasingly collaborate in heterogeneous multi-agent systems, latent communication has emerged as an efficient alternative to exchanging natural-language messages. By sharing internal representations, agents can avoid repeatedly processing the same context, reducing communication overhead and prefill computation. One such mechanism is cross-model Key-Value (KV) cache transfer, which uses a learned mapper to translate a source model's KV cache into one a target model can use. However, this handoff means the target model consumes context it did not encode itself, thus calling into question whether its safety alignment still holds. In this work, we investigate the security implications of latent handoffs by introducing Chasm, a framework characterizing cross-model handoff attacks across three new attack surfaces: the source model, mapper, and handoff mechanism itself. Our experiments reveal that latent handoffs substantially undermine safety alignment and prompt-injection defenses. Notably, a target model that follows only 0.4% of benchmark prompt injections natively, follows up to 44.2% when transferred through a mapper from a source model. On the other hand, for jailbreak attacks, transfer alone raises attack success by up to 24.6 pp within a model family and zero-shot attacks by up to 69.2 pp, whereas white-box optimization through the mapper boosts the attack success rate to 92.5%, against 37.5% for ordinary GCG on the same target. To address these vulnerabilities, we propose a lightweight target-side cache guard that corrects transferred caches to restore the target model's refusal, considerably mitigating these attacks.
本条情报归属 AITOP「论文」核心栏目,重点聚焦北美前沿实验室与硅谷科技巨头。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:多智能体、AI安全、KV cache、提示注入,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.AI」(@Manit Baser, Vyoman Jain, Rachel Yeo Hui Min, Xianglin Yang, Meenatchi Sundaram Muthu Selva Annamalai, Dinil Mon Divakaran),经 AITOP 多维评分管线结构化提炼。