[논문 리뷰] Defenses Against Prompt Attacks Learn Surface Heuristics
본 논문은 감독 미세조정 프롬프트 방어가 악의적 의도보다는 표면 단서(위치, 토큰, 주제)를 악용해 안전한 입력을 종종 거부한다는 것을 보여주고, 두 기본 모델과 여러 방어 파이프라인에 걸친 통제 진단을 통해 이를 입증한다. 이는 상당한 안전-유틸리티 트레이드오프와 일반화 격차를 드러낸다.
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.
연구 동기 및 목표
- 구조화된 평가를 통해 프롬프트 주입 방어를 표준 공격 거부 지표를 넘어서 평가하도록 동기를 부여한다.
- 방어 미세조정 과정에서 학습된 지름길 편향을 식별하고 특성화한다.
- 다양한 도메인과 프롬프트 구조에 걸쳐 악의적이지 않은 입력에 대한 defended 모델의 일반화를 진단한다.
- 오픈 가중치 LLM에서 여러 방어 파이프라인을 평가하여 강인성-유틸리티 트레이드오프를 밝힌다.
제안 방법
- benign/attack 레이블이 있는 프롬프트 분류 문제로 방어 동작을 형식화한다.
- 위치, 토큰, 주제 요소를 분리하는 제어된 진단 데이터셋을 도입한다(Position Stress Set, Keyword Trigger Set, Topic Generalization Set).
- 두 개의 기본 LLM(Llama-3와 Mistral)과 방어 파이프라인(StrucQ, SecAlign) 및 외부 프롬프트 가드들(ProtectAIv2, LakeraGuard, PromptGuard2, FMOPS, Deepset)을 평가한다.
- benign 프롬프트와 표면 요인 조작 하에서 거부율과 유틸리티(정확도)를 측정한다.
- 위치 편향, 토큰 트리거 편향, 주제 일반화 편향의 세 가지 지름길 편향을 분석하고 제거 테스트(ablations 및 trigger-removal tests)를 수행한다.

실험 결과
연구 질문
- RQ1방어 미세조정된 모델이 악의적 의도보다는 표면 단서로 benign 프롬프트를 거부하는가?
- RQ2위치, 토큰, 주제 단서가 benign 유틸리티를 저하시킬 정도의 체계적 편향을 초래하는가?
- RQ3보지 못한 도메인에서 benign 작업으로의 분포 변화에 대해 방어 파이프라인은 어떻게 작동하는가?
- RQ4외부 프롬프트 가드 도구도 방어 데이터의 표면 특징에 의해 유사한 편향을 보이는가?
- RQ5제어된 진단이 LLM 안전을 위한 감독 미세조정의 한계를 무엇으로 드러내는가?
주요 결과
- 미세조정된 방어는 높은 공격 거부를 달성하지만 benign 입력에 대해 상당한 손상을 유발한다(GPQA, MMLU, AIME에서 정확도가 최대 40% 하락).
- 위치 편향: 접미사 프롬프트가 훨씬 높은 거부율을 보이며, 접미사-작업 거부는 50%를 넘고 때로는 90%에 도달한다.
- 토큰 트리거 편향: 트리거 토큰을 삽입하면 benign 프롬프트에서 잘못 거부가 최대 약 50% 증가하고, 비-트리거 제어는 이 효과를 보이지 않는다.
- 주제 일반화 편향: defenses 일반화가 unseen 주제에는 미흡하고 새로운 도메인에서 benign 입력의 정확도가 감소한다.
- 프롬프트 가드도 모델 미세조정 방어뿐 아니라 표면 패턴 의존을 보이며, 방어 접근법 전반에 걸친 넓은 안전-유틸리티 트레이드오프를 시사한다.
- 이 연구는 제어된 진단 데이터셋과 교차 모델 평가를 제공하여 표면 단서가 방어 동작을 의도보다 더 강하게 좌우한다는 것을 보여준다.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.