arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.13860cs.SEcs.AIcs.CL
收藏

通过提示工程越狱ChatGPT:一项实证研究

Jailbreaking ChatGPT via Prompt Engineering: An Empirical Study

Nanyang Technological University(南洋理工大学);University of New South Wales(新南威尔士大学);Virginia Tech(弗吉尼亚理工大学);Huazhong University of Science and Technology(华中科技大学)

Yi Liu, Gelei Deng, Zhengzi Xu, Yuekang Li, Yaowen Zheng, Ying Zhang, Lida Zhao, Tianwei Zhang, Kailong Wang, Yang Liu

AI总结:

该研究通过分类模型识别出3类10种模式的越狱提示,用3120个违禁问题测试ChatGPT 3.5/4.0的越狱效果,发现提示可在40个场景中规避限制,凸显提示结构的重要性及攻防挑战。

摘要:

大型语言模型(LLM)如ChatGPT已展现出巨大潜力,但也带来了内容约束相关的挑战与潜在滥用风险。本研究聚焦三个核心研究问题:(1)可实现LLM越狱的不同提示类型数量;(2)越狱提示绕过LLM约束的有效性;(3)ChatGPT对这类越狱提示的抵御能力。首先,我们构建了一个分类模型分析现有提示的分布,识别出10种不同模式和3类越狱提示。随后,我们使用涵盖8类违禁场景的3120个越狱问题数据集,评估提示对ChatGPT 3.5和4.0版本的越狱能力。最后,我们评估了ChatGPT对越狱提示的抵御性,发现这些提示能在40个用例场景中持续规避限制。本研究强调了提示结构在LLM越狱中的重要性,并讨论了鲁棒越狱提示生成与防御面临的挑战。

英文摘要:

Large Language Models (LLMs), like ChatGPT, have demonstrated vast potential but also introduce challenges related to content constraints and potential misuse. Our study investigates three key research questions: (1) the number of different prompt types that can jailbreak LLMs, (2) the effectiveness of jailbreak prompts in circumventing LLM constraints, and (3) the resilience of ChatGPT against these jailbreak prompts. Initially, we develop a classification model to analyze the distribution of existing prompts, identifying ten distinct patterns and three categories of jailbreak prompts. Subsequently, we assess the jailbreak capability of prompts with ChatGPT versions 3.5 and 4.0, utilizing a dataset of 3,120 jailbreak questions across eight prohibited scenarios. Finally, we evaluate the resistance of ChatGPT against jailbreak prompts, finding that the prompts can consistently evade the restrictions in 40 use-case scenarios. The study underscores the importance of prompt structures in jailbreaking LLMs and discusses the challenges of robust jailbreak prompt generation and prevention.

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

↑