Skip to main content
QUICK REVIEW

[Paper Review] Defenses Against Prompt Attacks Learn Surface Heuristics

Shuai Li, Chenxiao Yu|arXiv (Cornell University)|Jan 12, 2026
Adversarial Robustness in Machine LearningComputer Science0 citations
TL;DR

The paper shows that supervised fine-tuned prompt defenses often reject safe inputs by exploiting surface cues (position, tokens, topic) rather than malicious intent, using controlled diagnostics across two base models and multiple defense pipelines. It reveals significant safety–utility trade-offs and generalization gaps.

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.

Motivation & Objective

  • Motivate a structured evaluation of prompt-injection defenses beyond standard attack rejection metrics.
  • Identify and characterize shortcut biases learned during defense fine-tuning.
  • Diagnose how defended models generalize to benign inputs across domains and prompt structures.
  • Evaluate multiple defense pipelines on open-weight LLMs to reveal robustness-utility trade-offs.

Proposed method

  • Formalize defense behavior as a prompt classification problem with benign/attack labels.
  • Introduce controlled diagnostic datasets isolating position, token, and topic factors (Position Stress Set, Keyword Trigger Set, Topic Generalization Set).
  • Evaluate two base LLMs (Llama-3 and Mistral) with defense pipelines (StrucQ, SecAlign) and external prompt guards (ProtectAIv2, LakeraGuard, PromptGuard2, FMOPS, Deepset).
  • Measure refusal rate and utility (accuracy) under benign prompts and surface-factor manipulations.
  • Analyze three shortcut biases: Position Bias, Token Trigger Bias, and Topic Generalization Bias, with ablations and trigger-removal tests.
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

Experimental results

Research questions

  • RQ1Do defense-fine-tuned models reject benign prompts due to surface cues rather than malicious intent?
  • RQ2Do position, token, and topic cues cause systematic biases that degrade benign utility?
  • RQ3How do defense pipelines perform under distribution shifts to benign tasks from unseen domains?
  • RQ4Are external prompt-guard tools similarly biased by surface features in defense data?
  • RQ5What do controlled diagnostics reveal about the limitations of supervised fine-tuning for LLM safety?

Key findings

  • Fine-tuned defenses achieve high attack rejection but cause substantial benign-input damage (accuracy drops up to 40% across GPQA, MMLU, AIME).
  • Position bias: suffix prompts are rejected at much higher rates, with suffix-task refusals exceeding 50% and sometimes reaching 90%.
  • Token trigger bias: inserting a trigger token increases false refusals by up to ~50% on benign prompts, while non-trigger controls do not show this effect.
  • Topic generalization bias: defenses generalize poorly to unseen topics, with accuracy declines on benign inputs from new domains.
  • Prompt guards exhibit similar surface-pattern reliance, not just model-fine-tuned defenses, indicating a broader safety–utility trade-off across defense approaches.
  • The study provides controlled diagnostic datasets and cross-model evaluation showing that surface cues drive defense behavior more than intent.
(a) GPQA (Expert Reasoning)
(a) GPQA (Expert Reasoning)

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.