Skip to main content
QUICK REVIEW

[論文レビュー] Are aligned neural networks adversarially aligned?

Nicholas Carlini, Milad Nasr|arXiv (Cornell University)|Jun 26, 2023
Adversarial Robustness in Machine LearningComputer Science被引用数 25
ひとこと要約

本論文は、整列済みLLMが対 adversarial inputs に対して堅牢であり続けるかを評価し、NLPベースの攻撃は整列に対して難航する一方、マルチモーダル入力は確実に不整合を誘発できることを示す。テキストのみのモデルの堅牢性を証明するには、より強力な攻撃が必要であると主張する。

ABSTRACT

Large language models are now tuned to align with the goals of their creators, namely to be "helpful and harmless." These models should respond helpfully to user questions, but refuse to answer requests that could cause harm. However, adversarial users can construct inputs which circumvent attempts at alignment. In this work, we study adversarial alignment, and ask to what extent these models remain aligned when interacting with an adversarial user who constructs worst-case inputs (adversarial examples). These inputs are designed to cause the model to emit harmful content that would otherwise be prohibited. We show that existing NLP-based optimization attacks are insufficiently powerful to reliably attack aligned text models: even when current NLP-based attacks fail, we can find adversarial inputs with brute force. As a result, the failure of current attacks should not be seen as proof that aligned text models remain aligned under adversarial inputs. However the recent trend in large-scale ML models is multimodal models that allow users to provide images that influence the text that is generated. We show these models can be easily attacked, i.e., induced to perform arbitrary un-aligned behavior through adversarial perturbation of the input image. We conjecture that improved NLP attacks may demonstrate this same level of adversarial control over text-only models.

研究の動機と目的

  • 整列済み言語モデル(例:RLHF/指示チューニング)の対攻撃的入力への堅牢性を評価する。
  • 現在のNLPベースの攻撃は、整列済みモデルの真の対攻撃脆弱性を明らかにしない可能性があることを示す。
  • テキスト+画像のマルチモーダル入力が不整合な出力を確実に誘発できることを示す。
  • 現在のNLP手法を超える攻撃の存在を検証するための方法論を提案する。
  • 今後のマルチモーダルおよびテキストのみモデルの安全性に対する影響を強調する。

提案手法

  • 整列型チャットモデルに対して、既存のNLPベースの対抗攻撃(ARCA、GBDA)をレビューし、ベンチマークする。
  • 単純探索による検証を用いたテストケースを構築し、対抗的例の存在を判定する。
  • 攻撃者が制御するメッセージと固定されたシステムプロンプトを用いたチャット形式のプロンプトで攻撃を評価する。
  • 毒性または不整合な出力を誘発するために、 adversarial images を挿入してマルチモーダルモデルへの分析を拡張する。
  • 攻撃成功率と入力歪みを測定して、堅牢性と脆弱性を定量化する。

実験結果

リサーチクエスチョン

  • RQ1現在のNLPベースの対抗攻撃は、整列型モデルに毒性的な内容を生成させる入力を信頼性高く見つけられるか?
  • RQ2整列型モデルは実際に最悪ケースの入力に堅牢なのか、それとも現在の攻撃は単に力不足なのか?
  • RQ3マルチモーダル入力(テキスト+画像)を用いて、整列済みモデルに対して信頼性のある不整合出力を誘発できるか?
  • RQ4テキストのみとマルチモーダルの整列モデルの脆弱性には実用上どのような違いがあるか?

主な発見

  • NLPベースの攻撃(ARCA、GBDA)は、整列済みチャットモデルに対して限られた成功を示し、検証設定全体で通過率が低い。
  • 単純探索による検証アプローチは、 NLP攻撃が見つけられなくても対抗的例が存在することを示している。
  • マルチモーダルモデルでは、対抗的画像がテストケースで100%の成功率で任意の毒性内容を出力させうる。
  • 成功した画像ベースの攻撃に必要な歪みは小さく(平均L2歪みおおよそ0.86〜3.91)、実用的な実現性を示している。
  • マルチモーダルアーキテクチャの設計選択は攻撃の容易さに大きく影響し、実装の中には他より約10倍脆弱なものもある。
  • 著者は、より強力なNLP攻撃がテキストのみの整列モデルにも同様に対抗的制御を可能にし得ると推測している。

この論文を読む

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

Nubintでこの論文を読む

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