医生贾克尔与 Mr. 海德:大语言模型的两面
Dr. Jekyll and Mr. Hyde: Two Faces of LLMs
AI总结:
研究通过角色扮演攻击揭示大语言模型的安全漏洞,展示通过伪装复杂人格可获取非法信息,验证了多种模型在2023-2025年间对攻击的脆弱性。
摘要:
大型语言模型(LLMs)被集成到聊天机器人或电子邮件助理等应用中。为了防止不当响应,安全机制如基于人类反馈的强化学习(RLHF)被实施。在本工作中,我们通过让ChatGPT、Gemini和DeepSeek impersonate具有不一致真实助手特征的复杂人格来绕过这些安全措施。首先,我们创建了这些人格的详细传记,然后在相同的聊天机器人上进行新的会话。我们的对话则以角色扮演的方式进行,以引发被禁止的响应。使用这些人格,我们展示了被禁止的响应可以被提供,从而在查询ChatGPT、Gemini和DeepSeek时获得未经授权、非法或有害的信息。我们证明这些聊天机器人对这种攻击是脆弱的,通过在GPT-4.1-mini中获取40/40非法问题的信息,在GPT-4o-mini中获取39/40,在GPT-3.5-turbo中获取38/40,在Gemini-2.5-flash和DeepSeek V3中获取2/2案例。该攻击可通过支持LLM手动或自动执行,并已证明对2023至2025年间部署的模型有效。
英文摘要:
Large Language Models (LLMs) are being integrated into applications such as chatbots or email assistants. To prevent improper responses, safety mechanisms, such as Reinforcement Learning from Human Feedback (RLHF), are implemented in them. In this work, we bypass these safety measures for ChatGPT, Gemini, and Deepseek by making them impersonate complex personas with personality characteristics that are not aligned with a truthful assistant. First, we create elaborate biographies of these personas, which we then use in a new session with the same chatbots. Our conversations then follow a role-play style to elicit prohibited responses. Using personas, we show that prohibited responses are provided, making it possible to obtain unauthorized, illegal, or harmful information when querying ChatGPT, Gemini, and Deepseek. We show that these chatbots are vulnerable to this attack by getting dangerous information for 40 out of 40 illicit questions in GPT-4.1-mini, Gemini-1.5-flash, 39 out of 40 in GPT-4o-mini, 38 out of 40 in GPT-3.5-turbo, and 2 out of 2 cases in Gemini-2.5-flash and DeepSeek V3. The attack can be carried out manually or automatically using a support LLM, and has proven effective against models deployed between 2023 and 2025.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。