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

QueryAttack:使用结构化非自然查询语言越狱对齐的大型语言模型

QueryAttack: Jailbreaking Aligned Large Language Models Using Structured Non-natural Query Language

Tsinghua Shenzhen International Graduate School(清华大学深圳国际研究生院);Pengcheng Laboratory(鹏城实验室);The Chinese University of Hong Kong(香港中文大学);Jilin University(吉林大学);Southwest University(西南大学);University of Electronic Science and Technology of China(电子科技大学);Shenzhen University(深圳大学)

Qingsong Zou, Jingyu Xiao, Qing Li, Zhi Yan, Yuhang Wang, Li Xu, Wenxuan Wang, Kuofeng Gao, Ruoyu Li, Yong Jiang

AI总结:

本文提出QueryAttack框架,将恶意查询转化为结构化非自然语言以绕过LLM安全对齐,实验显示高攻击成功率并能越狱多种防御,且定制防御可将GPT-4-1106的ASR降低64%。

摘要:

大型语言模型(LLMs)的最新进展在自然语言处理领域展现了巨大的潜力。然而,LLMs面临着显著的安全和伦理风险。尽管诸如安全对齐等技术被开发用于防御,但先前的研究揭示了通过精心设计的越狱攻击绕过这些防御的可能性。在本文中,我们提出了QueryAttack,一种新颖的框架,用于检验安全对齐的泛化性。通过将LLMs视为知识数据库,我们将自然语言中的恶意查询翻译成结构化非自然查询语言,以绕过LLMs的安全对齐机制。我们在主流LLMs上进行了广泛的实验,结果表明QueryAttack不仅能够实现高攻击成功率(ASRs),还能越狱各种防御方法。此外,我们针对QueryAttack定制了一种防御方法,在GPT-4-1106上可以将ASR降低高达64%。我们的代码可在https://github.com/horizonsinzqs/QueryAttack获取。

英文摘要:

Recent advances in large language models (LLMs) have demonstrated remarkable potential in the field of natural language processing. Unfortunately, LLMs face significant security and ethical risks. Although techniques such as safety alignment are developed for defense, prior researches reveal the possibility of bypassing such defenses through well-designed jailbreak attacks. In this paper, we propose QueryAttack, a novel framework to examine the generalizability of safety alignment. By treating LLMs as knowledge databases, we translate malicious queries in natural language into structured non-natural query language to bypass the safety alignment mechanisms of LLMs. We conduct extensive experiments on mainstream LLMs, and the results show that QueryAttack not only can achieve high attack success rates (ASRs), but also can jailbreak various defense methods. Furthermore, we tailor a defense method against QueryAttack, which can reduce ASR by up to $64\%$ on GPT-4-1106. Our code is available at https://github.com/horizonsinzqs/QueryAttack.

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

↑