scimeatlas

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

Attention Tracker: Detecting Prompt Injection Attacks in LLMs

Kuo-Han Hung, Ching-Yun Ko, Ambrish Rawat, I-Hsin Chung, Winston H. Hsu, Pin-Yu Chen

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

IBM · National Taiwan University

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

11measured effects
6improved
2no clear effect
1hurt
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
add attention-head selection with k=4 (about 0.3% of heads) instead of all heads (ablation)Attention Tracker · deepset prompt injection (Llama3-8B)AUROC: 0.821 -> 0.986Improved
select too few heads (k=5) instead of k=4 (ablation)Attention Tracker · deepset prompt injection (Llama3-8B)AUROC: 0.986 -> 0.869Hurt
use attention-based focus score instead of Protect AI / Prompt-Guard trained detectorsAttention Tracker · Open-Prompt-InjectionAUROC: 0.97 -> 1.00 (vs Prompt-Guard, Qwen2)Improved
use attention-based focus score instead of best baselineAttention Tracker · deepset prompt injectionAUROC: up to +10.0%Improved
use attention-based focus score instead of LLM-based / known-answer detectionAttention Tracker · Open-Prompt-Injection and deepsetAUROC: avg +31.3% (OPI), +20.9% (deepset)Improved
use small LLM (Qwen2-1.5B) for detectionAttention Tracker · deepset prompt injectionAUROC: 0.98 (1.5B) vs 0.99 (Llama3-8B)No clear effect
use a trained detector (Protect AI / Prompt-Guard) across datasetsProtect AI detector / Prompt-Guard · both datasetsAUROC: Prompt-Guard 0.97 (OPI) vs 0.75 (deepset)Mixed
longer data portion relative to instructionAttention Tracker focus score · Llama3 data-length analysisfocus scoreNo clear effect
use important heads found with simple LLM-generated data on other datasetsAttention Tracker · Qwen-2 head analysisattention differenceImproved
vary the test instruction I_test (Say xxxxxx vs others) (ablation)Attention Tracker · deepset (Qwen-2-1.8B)AUROC: 0.979 (Say xxxxxx) vs 0.893-0.972 for othersMixed
use stronger attacks with higher attack success rateAttention Tracker · Open-Prompt-Injectionaggregated attention to instructionImproved

Open problems this paper states

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