arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.01133cs.CRcs.LGcs.MA
收藏

基于嵌入的防御失效:重新思考基于大语言模型的多智能体系统的安全性

When Embedding-Based Defenses Fail: Rethinking Safety in LLM-Based Multi-Agent Systems

Rice University(稻属大学);University of Virginia(弗吉尼亚大学)

Lingxi Zhang, Guangtao Zheng, Hanjie Chen

AI总结:

研究探讨了基于嵌入的防御在多智能体系统中的失效模式,提出利用置信度信号提升系统鲁棒性,通过实验验证了早期干预的重要性。

摘要:

大型语言模型(LLM)驱动的多智能体系统(MAS)使智能体能够通信和共享信息,在复杂任务上表现优异。然而,这种通信也创造了攻击面,恶意智能体可通过传播虚假信息操纵群体决策,威胁MAS的安全性。现有基于嵌入的防御旨在检测和修剪可疑智能体,但其有效性依赖于恶意和良性消息嵌入之间的明确分离。攻击者可通过构造嵌入接近良性消息的消息来绕过此类防御。我们通过理论分析和三个攻击实验(Slow Drift, Benign Wrapper, Chaos Seeding)验证了这一失效模式。进一步揭示了基于嵌入的防御的根本局限性:因为仅依赖文本嵌入,它们忽略了token级置信度信号,如logits,在嵌入不可区分的情况下仍可能提供信息。我们提出在MAS通信中使用置信度分数来修剪或降低消息权重。实验显示在不同模型、数据集和通信拓扑下均提升了鲁棒性。此外,我们发现置信度信号的有效性随通信轮次衰减,突显了早期干预的重要性。这些见解可为未来MAS攻击与防御研究提供启发。

英文摘要:

Large language model (LLM)-powered multi-agent systems (MAS) enable agents to communicate and share information, achieving strong performance on complex tasks. However, this communication also creates an attack surface where malicious agents can propagate misinformation and manipulate group decisions, undermining MAS safety. Existing embedding-based defenses aim to detect and prune suspicious agents, but their effectiveness depends on a clear separation between the text embeddings of malicious and benign messages. Attackers can circumvent such defenses by crafting messages whose embeddings lie close to benign ones. We analyze this failure mode theoretically and validate it empirically with three attacks, Slow Drift, Benign Wrapper, and Chaos Seeding. Our analysis further reveals a fundamental limitation of embedding-based defenses: because they rely solely on the text embeddings, they ignore token-level confidence signals such as logits, which can remain informative when embeddings are not distinguishable under attack. We propose using confidence scores to prune or down-weight messages during MAS communication. Experiments show improved robustness across models, datasets, and communication topologies. Moreover, we find that the effectiveness of confidence signals decays over communication rounds, highlighting the importance of early intervention. This insights can inform and inspire future work on MAS attacks and defenses.

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

↑