arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2308.06463cs.CL
收藏

GPT-4太聪明以至于不安全:通过密码与LLMs进行隐蔽聊天

GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher

School of Data Science, The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳)数据科学学院);Tencent AI Lab(腾讯AI实验室);The Chinese University of Hong Kong(香港中文大学)

Youliang Yuan, Wenxiang Jiao, Wenxuan Wang, Jen-tse Huang, Pinjia He, Shuming Shi, Zhaopeng Tu

AI总结:

发现密码聊天可绕过LLMs安全对齐,提出CipherChat框架评估多语言多领域安全性,并设计SelfCipher激发模型内在加密能力,揭示非自然语言安全对齐的必要性。

摘要:

安全性是大型语言模型(LLMs)发展的核心。有大量工作致力于将LLMs与人类伦理和偏好对齐,包括预训练中的数据过滤、监督微调、人类反馈强化学习以及红队测试等。在本研究中,我们发现使用密码聊天可以绕过LLMs的安全对齐技术,这些技术主要针对自然语言进行。我们提出了一个新框架CipherChat,系统地检验安全对齐对非自然语言——即密码——的泛化能力。CipherChat允许人类通过带有系统角色描述和少样本加密示例的密码提示与LLMs聊天。我们使用CipherChat评估了包括ChatGPT和GPT-4在内的最先进LLMs,在英语和中文的11个安全领域中使用不同的代表性人类密码。实验结果表明,某些密码在多个安全领域几乎100%成功绕过GPT-4的安全对齐,这表明为非自然语言开发安全对齐的必要性。值得注意的是,我们发现LLMs似乎拥有一种“秘密密码”,并提出了一种新颖的SelfCipher,仅使用角色扮演和几个自然语言示例来激发这种能力。SelfCipher在几乎所有情况下都优于现有的人类密码。我们的代码和数据将发布在https://github.com/RobustNLP/CipherChat。

英文摘要:

Safety lies at the core of the development of Large Language Models (LLMs). There is ample work on aligning LLMs with human ethics and preferences, including data filtering in pretraining, supervised fine-tuning, reinforcement learning from human feedback, and red teaming, etc. In this study, we discover that chat in cipher can bypass the safety alignment techniques of LLMs, which are mainly conducted in natural languages. We propose a novel framework CipherChat to systematically examine the generalizability of safety alignment to non-natural languages -- ciphers. CipherChat enables humans to chat with LLMs through cipher prompts topped with system role descriptions and few-shot enciphered demonstrations. We use CipherChat to assess state-of-the-art LLMs, including ChatGPT and GPT-4 for different representative human ciphers across 11 safety domains in both English and Chinese. Experimental results show that certain ciphers succeed almost 100% of the time to bypass the safety alignment of GPT-4 in several safety domains, demonstrating the necessity of developing safety alignment for non-natural languages. Notably, we identify that LLMs seem to have a ''secret cipher'', and propose a novel SelfCipher that uses only role play and several demonstrations in natural language to evoke this capability. SelfCipher surprisingly outperforms existing human ciphers in almost all cases. Our code and data will be released at https://github.com/RobustNLP/CipherChat.

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

↑