Skip to main content
QUICK REVIEW

[論文レビュー] AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models

Xiaogeng Liu, Nan Xu|arXiv (Cornell University)|Oct 3, 2023
Natural Language Processing TechniquesComputer Science被引用数 25
ひとこと要約

AutoDAN は階層的遺伝アルゴリズムを用いて意味論的に有意義な jailbreak プロンプトを自動生成し、ベースラインより高い攻撃力と秘匿性を達成し、黒箱モデルへ転送される。

ABSTRACT

The aligned Large Language Models (LLMs) are powerful language understanding and decision-making tools that are created through extensive alignment with human feedback. However, these large models remain susceptible to jailbreak attacks, where adversaries manipulate prompts to elicit malicious outputs that should not be given by aligned LLMs. Investigating jailbreak prompts can lead us to delve into the limitations of LLMs and further guide us to secure them. Unfortunately, existing jailbreak techniques suffer from either (1) scalability issues, where attacks heavily rely on manual crafting of prompts, or (2) stealthiness problems, as attacks depend on token-based algorithms to generate prompts that are often semantically meaningless, making them susceptible to detection through basic perplexity testing. In light of these challenges, we intend to answer this question: Can we develop an approach that can automatically generate stealthy jailbreak prompts? In this paper, we introduce AutoDAN, a novel jailbreak attack against aligned LLMs. AutoDAN can automatically generate stealthy jailbreak prompts by the carefully designed hierarchical genetic algorithm. Extensive evaluations demonstrate that AutoDAN not only automates the process while preserving semantic meaningfulness, but also demonstrates superior attack strength in cross-model transferability, and cross-sample universality compared with the baseline. Moreover, we also compare AutoDAN with perplexity-based defense methods and show that AutoDAN can bypass them effectively.

研究の動機と目的

  • 既存の jailbreak 手法の制約を評価する(スケーラビリティとステルス性)。
  • ステルス性のある jailbreak プロンプトを生成する自動化手法を提案する。
  • 遺伝的探索を導く初期化として手作成されたプロンプトを活用する。
  • 構造化された離散テキストデータに適した階層型遺伝アルゴリズムを開発する。
  • パープレキシティベースの防御に対する転移性、普遍性、ディフェンス回避を評価する。

提案手法

  • 手作成された jailbreak プロンプトを初期化として用い、多様な初期集団を形成する。
  • 対象 jailbreak 応答のネガティブ対数尤度を適応度関数として定義する。
  • 階層型遺伝アルゴリズム(AutoDAN-HGA)を用い、文レベルと段落レベルの交叉/突然変異を行う。
  • 意味を保ちながらプロンプトを多様化するために LLM ベースの突然変異を組み込む。
  • 微細な語の置換を導くためにモメンタムベースの語彙スコアリングを採用する。
  • 反復回数やモデル応答中の拒否信号検知を基に終了する。

実験結果

リサーチクエスチョン

  • RQ1自動化された手法は意味を保持しつつステルス性の高い jailbreak プロンプトを生成できるか。
  • RQ2階層型遺伝アルゴリズムは収束を改善し、テキストプロンプトの局所最適解からの脱出を助けるか。
  • RQ3AutoDAN は Baseline と比較してモデル間転送性とサンプル間普遍性で良好か。
  • RQ4AutoDAN はトークンレベルの jailbreak に対する perplexity ベースの防御を回避できるか。
  • RQ5手作成プロンプトでの初期化はスケーラビリティと有効性にどのような影響を及ぼすか。

主な発見

  • AutoDAN は Vicuna-7b、Guanaco-7b、Llama2-7b-chat のオープンソース LLM および GPT-3.5-turbo のクロスモデル設定でベースラインより高い攻撃成功率を達成。
  • AutoDAN-HGA(階層 GA)は AutoDAN-GA より収束が良く局所最適解を回避する。
  • AutoDAN プロンプトは GCG より perplexity が低く、秘匿性が高い一方で手作成プロンプトに匹敵。
  • AutoDAN はブラックボックスモデルへの転送性が優れており、サンプル間普遍性も良好。
  • Perplexity 防御はトークンレベルの jailbreak(GCG)を大幅に低下させるが、AutoDAN の意味論的に意味のあるプロンプトや手作成 DAN には効果が小さい。
  • アブレーションにより DAN 初期化、LLM ベースの突然変異、階層 GA がいずれも性能とスピードを改善することを示す。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。