Skip to main content
QUICK REVIEW

[論文レビュー] Defenses Against Prompt Attacks Learn Surface Heuristics

Shuai Li, Chenxiao Yu|arXiv (Cornell University)|Jan 12, 2026
Adversarial Robustness in Machine LearningComputer Science被引用数 0
ひとこと要約

論文は、教師ありファインチューニングされたプロンプト防御が、悪意の意図というより表面的手掛かり(位置、トークン、トピック)を利用して安全入力を却下することを、2つの基本モデルと複数の防御パイプラインを跨る制御済診断で示している。重要な安全性と有用性のトレードオフおよび一般化のギャップを明らかにする。

ABSTRACT

Large language models (LLMs) are increasingly deployed in security-sensitive applications, where they must follow system- or developer-specified instructions that define the intended task behavior, while completing benign user requests. When adversarial instructions appear in user queries or externally retrieved content, models may override intended logic. Recent defenses rely on supervised fine-tuning with benign and malicious labels. Although these methods achieve high attack rejection rates, we find that they rely on narrow correlations in defense data rather than harmful intent, leading to systematic rejection of safe inputs. We analyze three recurring shortcut behaviors induced by defense fine-tuning. \emph{Position bias} arises when benign content placed later in a prompt is rejected at much higher rates; across reasoning benchmarks, suffix-task rejection rises from below extbf{10\%} to as high as extbf{90\%}. \emph{Token trigger bias} occurs when strings common in attack data raise rejection probability even in benign contexts; inserting a single trigger token increases false refusals by up to extbf{50\%}. \emph{Topic generalization bias} reflects poor generalization beyond the defense data distribution, with defended models suffering test-time accuracy drops of up to extbf{40\%}. These findings suggest that current prompt-injection defenses frequently respond to attack-like surface patterns rather than the underlying intent. We introduce controlled diagnostic datasets and a systematic evaluation across two base models and multiple defense pipelines, highlighting limitations of supervised fine-tuning for reliable LLM security.

研究の動機と目的

  • プロンプト挿入防御の標準的な攻撃拒否指標を超えた構造的評価を動機づける。
  • 防御ファインチューニング中に学習される近道バイアスを識別・特徴づける。
  • 防御されたモデルが未知ドメインの無害入力に対してどのように一般化するかを診断する。
  • オープンウェイトLLMに対して複数の防御パイプラインを評価し、頑健性と有用性のトレードオフを明らかにする。

提案手法

  • 防御動作を benign/attack ラベル付きのプロンプト分類問題として形式化する。
  • 位置・トークン・トピック要因を孤立させる制御診断データセットを導入する(Position Stress Set、Keyword Trigger Set、Topic Generalization Set)。
  • 2つの基本LLM(Llama-3とMistral)を対象に、防御パイプライン(StrucQ、SecAlign)と外部プロンプトガード(ProtectAIv2、LakeraGuard、PromptGuard2、FMOPS、Deepset)を評価する。
  • 無害プロンプトおよび表面要因操作下での拒否率と有用性(正解率)を測定する。
  • Position Bias、Token Trigger Bias、Topic Generalization Biasの3つの近道バイアスを、アブレーションとトリガー除去テストで分析する。
Figure 1: Three shortcut behaviors learned by fine-tuned defenses: position-based rejection of later segments, token-triggered rejection caused by tokens common in attack samples, and over-rejection of benign prompts from unseen topics. These patterns indicate reliance on surface cues instead of int
Figure 1: Three shortcut behaviors learned by fine-tuned defenses: position-based rejection of later segments, token-triggered rejection caused by tokens common in attack samples, and over-rejection of benign prompts from unseen topics. These patterns indicate reliance on surface cues instead of int

実験結果

リサーチクエスチョン

  • RQ1防御ファインチューニングされたモデルは、悪意のある意図よりも表面的手掛かりによって無害なプロンプトを拒否しているのか?
  • RQ2位置・トークン・トピックの手がかりが、無害な有用性を体系的に低下させるバイアスを生み出しているのか?
  • RQ3未知ドメインからの無害タスクへ分布シフトが生じた場合、防御パイプラインはどう機能するのか?
  • RQ4外部プロンプトガードツールも防御データの表面特徴に同様にバイアスされるのか?
  • RQ5制御された診断データとモデル間の評価が、 LLMの安全性の監視下での supervised fine-tuning の限界を明らかにするのか?

主な発見

  • ファインチューニングされた防御は高い攻撃拒否を達成する一方で、無害入力に対して大幅な有用性低下を招く(GPQA、MMLU、AIME全体で正解率が最大40%低下)。
  • Position bias: サフィックスプロンプトがはるかに高い拒否率を示し、サフィックスタスク拒否は50%超、場合により90%に達する。
  • Token trigger bias: トリガートークンを挿入すると、無害プロンプトで偽拒否が最大約50%増加する一方、非トリガー対照ではこの効果は観察されない。
  • Topic generalization bias: 見知らぬトピックへの一般化が悪く、未知ドメインからの無害入力で正解率が低下する。
  • プロンプトガードは、モデルファインチューニング防御だけでなく、表面パターン依存を示し、防御アプローチ全体にわたる安全性–有用性のトレードオフを示唆する。
  • 本研究は、表面手掛かりが防御挙動を意図よりも強く動かすことを示す、制御された診断データとモデル間の評価を提供する。
(a) GPQA (Expert Reasoning)
(a) GPQA (Expert Reasoning)

この論文を読む

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

Nubintでこの論文を読む

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