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

大型语言模型中的多语言越狱挑战

Multilingual Jailbreak Challenges in Large Language Models

DAMO Academy, Alibaba Group(阿里巴巴集团达摩院);Nanyang Technological University(南洋理工大学);The Chinese University of Hong Kong(香港中文大学)

Yue Deng, Wenxuan Zhang, Sinno Jialin Pan, Lidong Bing

AI总结:

该研究揭示LLM存在多语言越狱风险,并提出 Self-Defense 框架自动生成多语言安全微调数据,显著降低ChatGPT的不安全输出。

摘要:

尽管大型语言模型(LLM)在广泛任务中展现出卓越能力,但它们也带来了潜在的安全隐患,例如“越狱”问题,即恶意指令可以操纵LLM表现出不良行为。尽管已经开发了若干预防措施来缓解与LLM相关的潜在风险,但这些措施主要集中在英语上。在本研究中,我们揭示了LLM中存在多语言越狱挑战,并考虑了两种潜在的风险场景:无意场景和有意场景。无意场景涉及用户使用非英语提示查询LLM,并不经意地绕过安全机制;而有意场景则涉及恶意用户将恶意指令与多语言提示相结合,以蓄意攻击LLM。实验结果表明,在无意场景中,随着语言可用性的降低,不安全内容的比例会上升。具体而言,在ChatGPT和GPT-4中,低资源语言遇到有害内容的可能性约为高资源语言的三倍。在有意场景中,多语言提示会加剧恶意指令的负面影响,不安全输出率高得惊人:ChatGPT为80.92%,GPT-4为40.71%。为应对多语言语境下的这一挑战,我们提出了一种新颖的 Self-Defense 框架,该框架可自动生成用于安全微调的多语言训练数据。实验结果表明,使用此类数据进行微调的ChatGPT能够大幅减少不安全内容的生成。数据可在 https://github.com/DAMO-NLP-SG/multilingual-safety-for-LLMs 获取。

英文摘要:

While large language models (LLMs) exhibit remarkable capabilities across a wide range of tasks, they pose potential safety concerns, such as the ``jailbreak'' problem, wherein malicious instructions can manipulate LLMs to exhibit undesirable behavior. Although several preventive measures have been developed to mitigate the potential risks associated with LLMs, they have primarily focused on English. In this study, we reveal the presence of multilingual jailbreak challenges within LLMs and consider two potential risky scenarios: unintentional and intentional. The unintentional scenario involves users querying LLMs using non-English prompts and inadvertently bypassing the safety mechanisms, while the intentional scenario concerns malicious users combining malicious instructions with multilingual prompts to deliberately attack LLMs. The experimental results reveal that in the unintentional scenario, the rate of unsafe content increases as the availability of languages decreases. Specifically, low-resource languages exhibit about three times the likelihood of encountering harmful content compared to high-resource languages, with both ChatGPT and GPT-4. In the intentional scenario, multilingual prompts can exacerbate the negative impact of malicious instructions, with astonishingly high rates of unsafe output: 80.92\% for ChatGPT and 40.71\% for GPT-4. To handle such a challenge in the multilingual context, we propose a novel \textsc{Self-Defense} framework that automatically generates multilingual training data for safety fine-tuning. Experimental results show that ChatGPT fine-tuned with such data can achieve a substantial reduction in unsafe content generation. Data is available at \url{https://github.com/DAMO-NLP-SG/multilingual-safety-for-LLMs}.

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

↑