PIGuard: Prompt Injection Guardrail via Mitigating Overdefense for Free

Prompt injection attacks pose a critical threat to large language models (LLMs), enabling goal hijacking and data leakage.Prompt guard models, though effective in defense, suffer from over-defense-falsely flagging benign inputs as malicious due to trigger word bias.To address this issue, we introduce NotInject, an evaluation dataset that systematically measures over-defense across various prompt guard models.NotInject contains 339 benign samples enriched with trigger words common in prompt injection attacks, enabling fine-grained evaluation.Our results show that state-of-the-art models suffer from over-defense issues, with accuracy dropping close to random guessing levels (60%).To mitigate this, we propose PIGuard, a novel prompt guard model that incorporates a new training strategy, Mitigating Over-defense for Free (MOF), which significantly reduces the bias on trigger words.PIGuard demonstrates state-of-the-art performance on diverse benchmarks including Not-Inject, surpassing the existing best model by 30.4%, offering a robust and open-source solution for detecting prompt injection attacks.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.acl-long.1468
Primary Topic
Transportation Safety and Impact Analysis
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

PIGuard: Prompt Injection Guardrail via Mitigating Overdefense for Free

Chaowei Xiao, Xiaogeng Liu, Hao Li, Ning Zhang
Transportation Safety and Impact Analysis
article

PIGuard: Prompt Injection Guardrail via Mitigating Overdefense for Free

Chaowei Xiao, Xiaogeng Liu, Hao Li, Ning Zhang
article en

Abstract

Prompt injection attacks pose a critical threat to large language models (LLMs), enabling goal hijacking and data leakage.Prompt guard models, though effective in defense, suffer from over-defense-falsely flagging benign inputs as malicious due to trigger word bias.To address this issue, we introduce NotInject, an evaluation dataset that systematically measures over-defense across various prompt guard models.NotInject contains 339 benign samples enriched with trigger words common in prompt injection attacks, enabling fine-grained evaluation.Our results show that state-of-the-art models suffer from over-defense issues, with accuracy dropping close to random guessing levels (60%).To mitigate this, we propose PIGuard, a novel prompt guard model that incorporates a new training strategy, Mitigating Over-defense for Free (MOF), which significantly reduces the bias on trigger words.PIGuard demonstrates state-of-the-art performance on diverse benchmarks including Not-Inject, surpassing the existing best model by 30.4%, offering a robust and open-source solution for detecting prompt injection attacks.

Openalex Percentile: Top 80%
Transportation Safety and Impact Analysis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

PIGuard: Prompt Injection Guardrail via Mitigating Overdefense for Free — Chaowei Xiao, Xiaogeng Liu, et al. · (2025) | TGRS Research Map | TGRS