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

JailPO:一种基于偏好优化的新型黑盒越狱框架,针对对齐的LLMs

JailPO: A Novel Black-box Jailbreak Framework via Preference Optimization against Aligned LLMs

Fudan University(复旦大学)

Hongyi Li, Jiawei Ye, Jie Wu, Tianjie Yan, Chu Wang, Zhixin Li

AI总结:

本文提出JailPO,一种新型黑盒越狱框架,通过训练攻击模型自动生成隐蔽越狱提示并引入偏好优化方法提升攻击效率,实验证明其在效率、通用性和鲁棒性上优于基线。

摘要:

对齐人类反馈的大型语言模型(LLMs)近期引起了广泛关注。然而,它仍然容易受到越狱攻击,攻击者通过操纵提示来诱导有害输出。探索越狱攻击使我们能够研究LLMs的漏洞,并进一步指导我们增强其安全性。遗憾的是,现有技术主要依赖手工制作的模板或基于生成的优化,在可扩展性、效率和通用性方面面临挑战。为了解决这些问题,我们提出了JailPO,一种用于检验LLM对齐的新型黑盒越狱框架。为了实现可扩展性和通用性,JailPO精心训练攻击模型以自动生成隐蔽的越狱提示。此外,我们引入了一种基于偏好优化的攻击方法来增强越狱效果,从而提高效率。为了分析模型漏洞,我们提供了三种灵活的越狱模式。大量实验表明,JailPO不仅在保持有效性的同时自动化了攻击过程,而且在效率、通用性和抵御防御的鲁棒性方面均优于基线方法。此外,我们对三种JailPO模式的分析表明,基于复杂模板的攻击展现出更高的攻击强度,而隐蔽的问题转换则能引发更具风险的响应,并更有可能绕过防御机制。

英文摘要:

Large Language Models (LLMs) aligned with human feedback have recently garnered significant attention. However, it remains vulnerable to jailbreak attacks, where adversaries manipulate prompts to induce harmful outputs. Exploring jailbreak attacks enables us to investigate the vulnerabilities of LLMs and further guides us in enhancing their security. Unfortunately, existing techniques mainly rely on handcrafted templates or generated-based optimization, posing challenges in scalability, efficiency and universality. To address these issues, we present JailPO, a novel black-box jailbreak framework to examine LLM alignment. For scalability and universality, JailPO meticulously trains attack models to automatically generate covert jailbreak prompts. Furthermore, we introduce a preference optimization-based attack method to enhance the jailbreak effectiveness, thereby improving efficiency. To analyze model vulnerabilities, we provide three flexible jailbreak patterns. Extensive experiments demonstrate that JailPO not only automates the attack process while maintaining effectiveness but also exhibits superior performance in efficiency, universality, and robustness against defenses compared to baselines. Additionally, our analysis of the three JailPO patterns reveals that attacks based on complex templates exhibit higher attack strength, whereas covert question transformations elicit riskier responses and are more likely to bypass defense mechanisms.

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

↑