Evil Geniuses:深入探究基于大语言模型的智能体的安全性
Evil Geniuses: Delving into the Safety of LLM-based Agents
AI总结:
该研究针对基于大语言模型的智能体的安全风险,从智能体数量、角色定义、攻击级别三个维度展开探究,提出基于模板的攻击策略和利用红蓝对抗的Evil Geniuses攻击方法,实验验证了方法的高成功率,揭示了这类智能体的安全隐患。
摘要:
大语言模型(LLM)的快速发展为基于LLM的智能体领域注入了新活力,这类智能体在多种场景中展现出类人的行为表现与协作能力。但交互环境的复杂性与工具的易用性也给这类智能体带来了特有的风险。本文从智能体数量、角色定义、攻击级别三个维度,深入探究基于LLM的智能体的安全性。具体而言,我们首先提出对基于LLM的智能体采用基于模板的攻击策略,以探究智能体数量的影响。此外,为解决交互环境与角色特异性问题,我们提出了Evil Geniuses(EG,邪恶天才)——一种有效的攻击方法,它能自主生成与原始角色相关的提示词,以检验不同角色定义与攻击级别下的影响。EG利用红蓝对抗演练,大幅提升了生成提示词的攻击性以及与原始角色的相似度。我们在基于GPT-3.5与GPT-4的CAMEL、Metagpt和ChatDev上开展评估,结果显示该方法成功率很高。大量评估与讨论表明,这类智能体鲁棒性更弱,更容易产生有害行为,且能生成比LLM更隐蔽的内容,凸显了严峻的安全挑战,也为未来研究提供了方向。我们的代码可在https://github.com/T1aNS1R/Evil-Geniuses获取。
英文摘要:
Rapid advancements in large language models (LLMs) have revitalized in LLM-based agents, exhibiting impressive human-like behaviors and cooperative capabilities in various scenarios. However, these agents also bring some exclusive risks, stemming from the complexity of interaction environments and the usability of tools. This paper delves into the safety of LLM-based agents from three perspectives: agent quantity, role definition, and attack level. Specifically, we initially propose to employ a template-based attack strategy on LLM-based agents to find the influence of agent quantity. In addition, to address interaction environment and role specificity issues, we introduce Evil Geniuses (EG), an effective attack method that autonomously generates prompts related to the original role to examine the impact across various role definitions and attack levels. EG leverages Red-Blue exercises, significantly improving the generated prompt aggressiveness and similarity to original roles. Our evaluations on CAMEL, Metagpt and ChatDev based on GPT-3.5 and GPT-4, demonstrate high success rates. Extensive evaluation and discussion reveal that these agents are less robust, prone to more harmful behaviors, and capable of generating stealthier content than LLMs, highlighting significant safety challenges and guiding future research. Our code is available at https://github.com/T1aNS1R/Evil-Geniuses.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。