Skip to main content
QUICK REVIEW

[論文レビュー] Jailbreaking Black Box Large Language Models in Twenty Queries

Patrick Chao, Alexander Robey|arXiv (Cornell University)|Oct 12, 2023
Topic ModelingComputer Science被引用数 45
ひとこと要約

PAIR はブラックボックス攻撃者を用いてターゲット LLM に対する意味的ジャイルブレイクプロンプトを自動生成します。多くの場合、20回のクエリ以内でジャイルブレイクを見つけ、他のモデルへ転移します。

ABSTRACT

There is growing interest in ensuring that large language models (LLMs) align with human values. However, the alignment of such models is vulnerable to adversarial jailbreaks, which coax LLMs into overriding their safety guardrails. The identification of these vulnerabilities is therefore instrumental in understanding inherent weaknesses and preventing future misuse. To this end, we propose Prompt Automatic Iterative Refinement (PAIR), an algorithm that generates semantic jailbreaks with only black-box access to an LLM. PAIR -- which is inspired by social engineering attacks -- uses an attacker LLM to automatically generate jailbreaks for a separate targeted LLM without human intervention. In this way, the attacker LLM iteratively queries the target LLM to update and refine a candidate jailbreak. Empirically, PAIR often requires fewer than twenty queries to produce a jailbreak, which is orders of magnitude more efficient than existing algorithms. PAIR also achieves competitive jailbreaking success rates and transferability on open and closed-source LLMs, including GPT-3.5/4, Vicuna, and Gemini.

研究の動機と目的

  • 自動化されたジャイルブレイクでLLMのアラインメント評価を迅速に評価する動機づけと可能にする。
  • 人間の入力を最小化したスケーラブルで人間に解釈可能なプロンプトレベルジャイルブレイク手法を開発する。
  • 攻撃者と対象LLM間のブラックボックス相互作用を可能にし、ジャイルブレイクを効率的に発見する。
  • 複数のオープン/クローズドソースLLM間でプロンプトの転移性を評価する。

提案手法

  • 完全に自動化されたループで攻撃者LLMとターゲットLLMを対決させるPAIRを導入する。
  • 攻撃者のシステムプロンプトとチャット履歴を用いて候補ジャイルブレイクプロンプトを反復的に精練する。
  • JUDGE関数を搭載したLLMで候補プロンプトを評価し、ジャイルブレイクを1から10で採点する。
  • 探索の広さと深さのバランスを取るため、複数のストリームで並列化する。
  • 表現力と安全性のバランスを取るため Vicuna-13B-v1.5 を攻撃者として選択する。
  • ブラックボックスアクセスだけで作動し、モデルの重みやGPUを必要とせずに使用可能。
Figure 1 : Schematic of PAIR. PAIR pits an attacker and target language model against one another, where the attacker model aims to generate adversarial prompts that jailbreak the target model. The generated prompt $P$ is input into the target model to generate response $R$ . The attacker model uses
Figure 1 : Schematic of PAIR. PAIR pits an attacker and target language model against one another, where the attacker model aims to generate adversarial prompts that jailbreak the target model. The generated prompt $P$ is input into the target model to generate response $R$ . The attacker model uses

実験結果

リサーチクエスチョン

  • RQ1PAIR はブラックボックスアクセスでターゲットLLMに意味的でプロンプトレベルのジャイルブレイクを発見できるか?
  • RQ2PAIR はオープンソースおよびクローズドソースのモデルに対するジャイルブレイクの成功率とクエリ効率の点でどう機能するか?
  • RQ3PAIR が生成するジャイルブレイクプロンプトの他のLLMへの転移性はどれくらいか?
  • RQ4攻撃者の選択とシステムプロンプトがPAIR の有効性にどう影響するか?
  • RQ5ジャイルブレイク発見のための並列ストリームと反復深さのトレードオフは?

主な発見

  • PAIR はターゲットLLMへのクエリ20回未満でジャイルブレイクを見つけることが多い。
  • PAIR はGPT-3.5/4、Vicuna、PaLM-2を含むいくつかのモデルで高いジャイルブレイク率を達成する。
  • semantic grounded である場合、PAIRの攻撃は他のモデルへ転移する際により効果的。
  • GCGと比較して、PAIR はクエリ数が桁違いに少なく(最大で5オーダー分のクエリしか必要としない)と高速。
  • 攻撃者モデルの選択とシステムプロンプト設計はジャイルブレイクの成功と効率に大きく影響する。
  • 転送性は Vicuna プロンプトが GPT-4 や PaLM-2 に対しては強いが Claude 系モデルには限定的。
Figure 2 : Example of a prompt-level jailbreak from PAIR and token-level jailbreak from GCG.
Figure 2 : Example of a prompt-level jailbreak from PAIR and token-level jailbreak from GCG.

この論文を読む

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

Nubintでこの論文を読む

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