scimeatlas

Research map / Adversarial robustness and security / Attacks on text and graphs

Defending against Indirect Prompt Injection by Instruction Detection

Tongyu Wen, Chenglong Wang, Xiyuan Yang, Haoyu Tang, Yueqi Xie, Lingjuan Lyu, Zhicheng Dou, Fangzhao Wu

EMNLP 2025Adversarial robustness and security › Attacks on text and graphsapproach: LLM jailbreak and injection defenseopen problems in this approach49 citations (OpenAlex)

Renmin University of China · Peking University Shenzhen Graduate School · Wuhan University · University of Science and Technology of China · Hong Kong University of Science and Technology · Sony

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

12measured effects
8improved
2no clear effect
2hurt

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
use InstructDetector (hidden states + gradients) instead of fine-tuned LLM detectorLlama-3.1-8B-Instruct · News+BIPIA (OOD)detection accuracy: 91.70% -> 96.90%Improved
add in-context few-shot examples to zero-shot LLM detectionLLM detector · Wiki+LaMini (ID)detection accuracy: 56.35% -> 59.80%No clear effect
filter external data with InstructDetectorGPT-4o · BIPIAattack success rate: 39.68% -> 0.13%Improved
filter external data with InstructDetectorVicuna-7B · BIPIAattack success rate: 24.06% -> 0.03%Improved
add InstructDetector vs adversarial trainingVicuna-7B · BIPIAattack success rate: 0.52% -> 0.03%Improved
use gradients in addition to hidden states (ablation)InstructDetector · News+LaMini (OOD)detection accuracy: 97.25% -> 98.35%Improved
use hidden states in addition to gradients (ablation)InstructDetector · News+BIPIA (OOD)detection accuracy: 96.20% -> 96.90%Improved
use base model instead of instruct model (ablation)Llama-3.1-8B · News+BIPIA (OOD)detection accuracy: 96.90% -> 68.55%Hurt
use intermediate layers features rather than deeper layers (ablation)InstructDetector · four dataset combinationsdetection accuracyImproved
scale model size from 1B to 14B (ablation)InstructDetector · News+BIPIA (OOD)detection accuracy: 92.55% -> 98.15%Improved
train with only 50 samples (ablation)InstructDetector · ID and OODdetection accuracy: > 95%No clear effect
test on Thai instead of English (trained on English only)InstructDetector · News+BIPIA (OOD)detection accuracy: 96.90% -> 92.05%Hurt

Open problems in LLM jailbreak and prompt injection defense

Which defenses against jailbreaks and prompt injection hold up, and what do they cost in usefulness?

All 4 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