arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.16765cs.CRcs.AI
收藏

大语言模型中越狱攻击的跨语言研究

A Cross-Language Investigation into Jailbreak Attacks in Large Language Models

University of Science and Technology of China(中国科学技术大学);Nanyang Technological University(南洋理工大学)

Jie Li, Yi Liu, Chongyang Liu, Ling Shi, Xiaoning Ren, Yaowen Zheng, Yang Liu, Yinxing Xue

AI总结:

针对大语言模型多语言越狱攻击研究不足的问题,该研究构建相关数据集,评估多款主流LLMs,分析攻击模式并提出微调缓解方法,使攻击成功率降低96.2%。

摘要:

大语言模型(LLMs)凭借其在各领域先进的文本生成能力日益普及。但和所有软件一样,它们也面临安全挑战,包括“越狱”攻击风险——即操纵LLMs生成违禁内容。一个研究尤为不足的领域是多语言越狱攻击,这类攻击将恶意问题翻译成多种语言以规避安全过滤器。目前尚缺乏针对这一特定威胁的全面实证研究。为填补这一研究空白,我们对多语言越狱攻击开展了广泛的实证研究。我们开发了一种新型语义保持算法来构建多语言越狱数据集,并对包括GPT-4和LLaMa在内的常用开源及商业LLMs进行了全面评估。此外,我们还开展了可解释性分析以揭示多语言越狱攻击的模式,并实现了一种微调缓解方法。研究结果表明,我们的缓解策略显著增强了模型防御能力,将攻击成功率降低了96.2%。本研究为理解和缓解多语言越狱攻击提供了宝贵见解。

英文摘要:

Large Language Models (LLMs) have become increasingly popular for their advanced text generation capabilities across various domains. However, like any software, they face security challenges, including the risk of 'jailbreak' attacks that manipulate LLMs to produce prohibited content. A particularly underexplored area is the Multilingual Jailbreak attack, where malicious questions are translated into various languages to evade safety filters. Currently, there is a lack of comprehensive empirical studies addressing this specific threat. To address this research gap, we conducted an extensive empirical study on Multilingual Jailbreak attacks. We developed a novel semantic-preserving algorithm to create a multilingual jailbreak dataset and conducted an exhaustive evaluation on both widely-used open-source and commercial LLMs, including GPT-4 and LLaMa. Additionally, we performed interpretability analysis to uncover patterns in Multilingual Jailbreak attacks and implemented a fine-tuning mitigation method. Our findings reveal that our mitigation strategy significantly enhances model defense, reducing the attack success rate by 96.2%. This study provides valuable insights into understanding and mitigating Multilingual Jailbreak attacks.

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

↑