[論文レビュー] Baseline Defenses for Adversarial Attacks Against Aligned Language Models
本論文は、整列済みLLMに対する脱獄攻撃に対して、困惑度ベースの検知、言い換え/再トークン化前処理、および敵対的訓練という3つの基礎防御カテゴリをベンチマークし、ホワイトボックスおよびグレーボックス設定でのロバスト性と性能のトレードオフを分析する。
As Large Language Models quickly become ubiquitous, it becomes critical to understand their security vulnerabilities. Recent work shows that text optimizers can produce jailbreaking prompts that bypass moderation and alignment. Drawing from the rich body of work on adversarial machine learning, we approach these attacks with three questions: What threat models are practically useful in this domain? How do baseline defense techniques perform in this new domain? How does LLM security differ from computer vision? We evaluate several baseline defense strategies against leading adversarial attacks on LLMs, discussing the various settings in which each is feasible and effective. Particularly, we look at three types of defenses: detection (perplexity based), input preprocessing (paraphrase and retokenization), and adversarial training. We discuss white-box and gray-box settings and discuss the robustness-performance trade-off for each of the defenses considered. We find that the weakness of existing discrete optimizers for text, combined with the relatively high costs of optimization, makes standard adaptive attacks more challenging for LLMs. Future research will be needed to uncover whether more powerful optimizers can be developed, or whether the strength of filtering and preprocessing defenses is greater in the LLMs domain than it has been in computer vision.
研究の動機と目的
- LLMにおける敵対的プロンプトの実務的な脅威モデルを評価する。
- 敵対的ML文献から適用した基礎防御戦略をLLM領域で評価する。
- ホワイトボックスおよびグレーボックスのシナリオで、検知・前処理・ロバスト最適化防御を比較する。
- 各防御手法のロバストネスと性能のトレードオフを特徴付ける。
提案手法
- 7Bモデルを対象とした基線敵対攻撃として、普遍的転送可能な攻撃(Zou et al., 2023)を使用する。
- 脱獄プロンプトに対する困惑度ベースの検知(基本と窓付き)を評価する。
- 外部の言い換えモデル(ChatGPT)を用いた言い換えベースの前処理防御を検証し、ASRと生成品質への影響を測定する。
- 敵対的トークン列を撹乱するためのBPEドロップアウトによる再トークン化防御を検討する。
- ホワイトボックスおよびグレーボックスの攻撃シナリオとモデル間の防御移植性について論じる。
実験結果
リサーチクエスチョン
- RQ1LLMにおける敵対的プロンプトに実用的に役立つ脅威モデルは何か、そしてそれらは防御評価をどのように形作るか。
- RQ2基礎防御(検知・前処理・敵対的訓練)は、LLMに対する語レベルの敵対的プロンプトに対してどのように機能するか。
- RQ3同様のパラダイム下で、LLMのセキュリティ状況はコンピュータビジョンの防御とどう異なるか。
- RQ4現実的な設定でこれらの防御を適用する際のロバストネスと有用性のトレードオフは何か。
主な発見
- 困惑度ベースおよび窓付き困惑度防御は、最適化アルゴリズムによって生成された敵対的プロンプトを検出できる。より高い α_ppl は、困惑度の最小化と jailbreak の両方を難しくする。
- 入力を言い換えモデルで言い換えると、Vicuna-7B-v1.1およびGuanaco-7Bの攻撃成功率が大幅に低下し、Alpaca-7BのASRが顕著に低下し、出力に定性的な変化が生じる。
- BPEドロップアウトによる再トークン化は、善意のプロンプトへの影響を比較的小さく抑えつつ敵対的プロンプトを撹乱する穏やかな防御を提供するが、効果はドロップアウト率と文脈窓に依存する。
- 視覚分野の敵対的訓練はLLMsに直接移行しない;現在の基準はトレードオフを示し、テキスト領域のロバスト最適化に関する未解決の問題が残る。
- 総じて、本研究は、離散テキスト最適化と最適化コストが攻撃の有効性を本質的に制限すること、困惑度フィルタや言い換えのような防御がLLM設定で有望であることを示唆している。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。