scimeatlas

Research map / Large language models / Language, safety and interpretability

Can Indirect Prompt Injection Attacks Be Detected and Removed?

Yulin Chen, Haoran Li, Yuan Sui, Yufei He, Yue Liu, Yangqiu Song, Bryan Hooi

ACL 2025Large language models › Language, safety and interpretabilityapproach: Safety alignment of LLMsopen problems in this approach105 citations (OpenAlex)

National University of Singapore · Hong Kong University of Science and Technology

Read the paperPlace an idea next to itCheck your own paper ↗

14measured effects
6improved
2no clear effect
4hurt
2mixed

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
train detection model on crafted indirect-injection data (DeBERTa) instead of using Llama3-8B-Instruct promptingdetection · Inj-SQuAD, mean accuracyaccuracy: 78.74% (Llama3-8B-Instruct) -> 99.12% (DeBERTa, Inj-TriviaQA)Improved
use off-the-shelf Llama-Guard3-8B for detectiondetection · Inj-SQuADaccuracy: max 39.11%Hurt
use Protect-AI-detector (trained on direct injection)detection · Inj-TriviaQAtrue positive rate: only effective against Ignore attackNo clear effect
evaluate out-of-domain documents (train SQuAD, test TriviaQA) instead of in-domaintrained detectors · Inj-TriviaQA cleanfalse positive rate: DeBERTa 0.0 -> 12.44; Qwen2-0.5B 0.0 -> 27.33Hurt
use larger model (Qwen2-1.5B vs 0.5B)detection model · out-of-domain clean documentsfalse positive rate: 27.33 -> 11.11Improved
lower injection rate in training data (ablation)detection model · Inj-TriviaQAover-defense and detectionMixed
train with a single injection position (ablation)detection model · other positionsdetection accuracyHurt
segmentation removal instead of extraction removalremoval · Inj-TriviaQA head/middle, Fakecom/Combinedremoval rate: Extraction max 67.77%; Segment-Qwen2-1.5B 96.66-98.11Improved
extraction removal for tail-injected instructionsExtraction-Qwen2-1.5B · Inj-TriviaQA tailremoval rate: no lower than 94.66%Improved
prepend ignoring prompt to the injected instruction (Ignore vs Naive)Segment-DeBERTa · Inj-TriviaQAremoval rate: +9.48% averageImproved
add segmentation filteringLlama3-8b-Instruct · Inj-TriviaQA, Combined attack, tailASR: 83.00 -> 0.11Improved
add filtering trained on Naive attackSegment/Extraction · Inj-TriviaQA, Fakecom attackASR: Segment Llama3 tail 14.44; Extraction Qwen2 head 26.11Mixed

Earlier methods this paper compares with

Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.

Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.

Open problems in safety alignment of LLMs

How can LLM safety be shown to hold across languages, multi-turn use and models beyond small open ones?

All 5 open problems and what was already tried →

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy