arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.11682cs.CLcs.AIcs.CR
收藏

Knowledge-to-Jailbreak:研究面向大型语言模型的知识驱动越狱攻击

Knowledge-to-Jailbreak: Investigating Knowledge-driven Jailbreaking Attacks for Large Language Models

Tsinghua Univerisity(清华大学);Peking University(北京大学);Hong Kong University of Science and Technology(香港理工大学);Beihang Univerisity(北京航空航天大学)

Shangqing Tu, Zhuoran Pan, Wenxuan Wang, Zhexin Zhang, Yuliang Sun, Jifan Yu, Hongning Wang, Lei Hou, Juanzi Li

AI总结:

提出knowledge-to-jailbreak任务,利用12,974个知识—越狱对微调jailbreak-generator,从领域知识生成有效且相关的LLM越狱攻击。

摘要:

大型语言模型(LLM)已越来越多地应用于各个领域,这引发了人们对LLM在医学等专业领域安全性的日益担忧。尽管此前已有关于通用越狱攻击的探索,但将现有攻击用于测试LLM的特定领域安全性仍面临两个挑战:(1)缺乏专业的知识驱动攻击;(2)领域知识覆盖不足。为弥补这一差距,我们提出了一项名为knowledge-to-jailbreak的新任务,旨在从领域知识生成越狱攻击,同时要求攻击有效性和知识相关性。我们收集了一个包含12,974个知识—越狱对的大规模数据集,并微调了一个大型语言模型作为jailbreak-generator,以生成特定于领域知识的越狱攻击。在13个领域和8个目标LLM上的实验证明,jailbreak-generator能够有效生成既对目标LLM具有威胁性、又与给定知识相关的越狱攻击。我们还将该方法应用于域外知识库,结果表明jailbreak-generator生成的越狱攻击在有害性方面可与人类专家精心制作的攻击相媲美。数据和代码可在https://github.com/THU-KEG/Knowledge-to-Jailbreak/获取。

英文摘要:

Large language models (LLMs) have been increasingly applied to various domains, which triggers increasing concerns about LLMs' safety on specialized domains, e.g. medicine. Despite prior explorations on general jailbreaking attacks, there are two challenges for applying existing attacks on testing the domain-specific safety of LLMs: (1) Lack of professional knowledge-driven attacks, (2) Insufficient coverage of domain knowledge. To bridge this gap, we propose a new task, knowledge-to-jailbreak, which aims to generate jailbreaking attacks from domain knowledge, requiring both attack effectiveness and knowledge relevance. We collect a large-scale dataset with 12,974 knowledge-jailbreak pairs and fine-tune a large language model as jailbreak-generator, to produce domain knowledge-specific jailbreaks. Experiments on 13 domains and 8 target LLMs demonstrate the effectiveness of jailbreak-generator in generating jailbreaks that are both threatening to the target LLMs and relevant to the given knowledge. We also apply our method to an out-of-domain knowledge base, showing that jailbreak-generator can generate jailbreaks that are comparable in harmfulness to those crafted by human experts. Data and code are available at: https://github.com/THU-KEG/Knowledge-to-Jailbreak/.

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

↑