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

大语言模型越狱攻击与防御的综合研究

A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Models

University of New South Wales(新南威尔士大学);Delft University of Technology(代尔夫特理工大学);Nanyang Technological University(南洋理工大学)

Zihao Xu, Yi Liu, Gelei Deng, Yuekang Li, Stjepan Picek

AI总结:

该研究针对大语言模型越狱攻击与防御展开综合分析,调研9种攻击、7种防御在三类模型上的效果,发现白盒攻击弱于通用攻击、特殊token影响攻击成功率,并开源数据集与测试框架以推动LLM安全研究。

摘要:

大语言模型(Large Language Models, LLMs)日益成为生成具有潜在社会影响内容的核心工具。值得注意的是,这些模型已展现出生成可被视为有害内容的能力。为降低此类风险,研究人员采用安全训练技术,使模型输出与社会价值观对齐,以遏制恶意内容的生成。然而,“越狱”现象——即通过精心设计的提示词诱导模型生成有害回复——仍是一项重大挑战。本研究对现有LLMs越狱及其防御技术的相关研究开展了综合分析。我们细致调研了应用于Vicuna、LLaMA和GPT-3.5 Turbo三种不同语言模型的9种攻击技术与7种防御技术,旨在评估这些攻防技术的有效性。研究结果表明,现有白盒攻击的表现不及通用攻击技术,且输入中包含特殊token会显著影响攻击成功的概率。本研究强调了关注LLMs安全层面的必要性。此外,我们还发布了研究所用的数据集与测试框架,为该领域做出贡献,旨在推动LLM安全领域的进一步研究。我们相信这些贡献将助力该领域内安全措施的探索。

英文摘要:

Large Language Models (LLMS) have increasingly become central to generating content with potential societal impacts. Notably, these models have demonstrated capabilities for generating content that could be deemed harmful. To mitigate these risks, researchers have adopted safety training techniques to align model outputs with societal values to curb the generation of malicious content. However, the phenomenon of "jailbreaking", where carefully crafted prompts elicit harmful responses from models, persists as a significant challenge. This research conducts a comprehensive analysis of existing studies on jailbreaking LLMs and their defense techniques. We meticulously investigate nine attack techniques and seven defense techniques applied across three distinct language models: Vicuna, LLama, and GPT-3.5 Turbo. We aim to evaluate the effectiveness of these attack and defense techniques. Our findings reveal that existing white-box attacks underperform compared to universal techniques and that including special tokens in the input significantly affects the likelihood of successful attacks. This research highlights the need to concentrate on the security facets of LLMs. Additionally, we contribute to the field by releasing our datasets and testing framework, aiming to foster further research into LLM security. We believe these contributions will facilitate the exploration of security measures within this domain.

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

↑