arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.03805cs.CR
收藏

AutoJailbreak:通过依赖关系视角探索越狱攻击与防御

AutoJailbreak: Exploring Jailbreak Attacks and Defenses through a Dependency Lens

Lin Lu, Hai Yan, Zenghui Yuan, Jiawen Shi, Wenqi Wei, Pin-Yu Chen, Pan Zhou

AI总结:

本文通过依赖关系视角系统分析LLM越狱攻击与防御,提出AutoAttack、AutoDefense和AutoEvaluation三个自动化框架,并设计集成攻击与混合防御方法,实验证明其显著优于现有研究。

摘要:

大语言模型(LLMs)中的越狱攻击是指通过使用恶意提示诱导模型生成违反伦理和法律规范的内容,对LLM安全构成重大威胁。当前的越狱攻击与防御策略往往侧重于在特定算法框架内进行局部优化,导致优化效果不佳且可扩展性有限。本文对越狱攻击与防御技术中的依赖关系进行了系统分析,并将其推广到所有可能的攻击面。我们采用有向无环图(DAGs)来定位和分析现有的越狱攻击、防御及评估方法,并提出三个全面、自动化且逻辑清晰的框架。\ exttt{AutoAttack} 分别研究了两类越狱优化策略中的依赖关系:基于遗传算法(GA)的攻击和基于对抗生成的攻击。随后,我们引入了一种集成越狱攻击以利用这些依赖关系。\ exttt{AutoDefense} 通过利用生成前和生成后防御策略中的依赖关系,提供了一种混合防御者方法。\ exttt{AutoEvaluation} 引入了一种新颖的评估方法,将常被忽视的幻觉与越狱攻击和防御响应区分开来。通过大量实验,我们证明所提出的集成越狱攻击与防御框架显著优于现有研究。

英文摘要:

Jailbreak attacks in large language models (LLMs) entail inducing the models to generate content that breaches ethical and legal norm through the use of malicious prompts, posing a substantial threat to LLM security. Current strategies for jailbreak attack and defense often focus on optimizing locally within specific algorithmic frameworks, resulting in ineffective optimization and limited scalability. In this paper, we present a systematic analysis of the dependency relationships in jailbreak attack and defense techniques, generalizing them to all possible attack surfaces. We employ directed acyclic graphs (DAGs) to position and analyze existing jailbreak attacks, defenses, and evaluation methodologies, and propose three comprehensive, automated, and logical frameworks. \texttt{AutoAttack} investigates dependencies in two lines of jailbreak optimization strategies: genetic algorithm (GA)-based attacks and adversarial-generation-based attacks, respectively. We then introduce an ensemble jailbreak attack to exploit these dependencies. \texttt{AutoDefense} offers a mixture-of-defenders approach by leveraging the dependency relationships in pre-generative and post-generative defense strategies. \texttt{AutoEvaluation} introduces a novel evaluation method that distinguishes hallucinations, which are often overlooked, from jailbreak attack and defense responses. Through extensive experiments, we demonstrate that the proposed ensemble jailbreak attack and defense framework significantly outperforms existing research.

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

↑