Research map / Large language models / Language, safety and interpretability
Before the First Token: Jailbreak Detection with Attention Probes
Pedro Faustini, Annabelle McIver, Mark Dras
Macquarie University
Read the paperPlace an idea next to itCheck your own paper ↗
12measured effects
2improved
2no clear effect
7hurt
1mixed
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 changed | Where | Measured | Effect |
|---|---|---|---|
| use per-head attention probes (Qwen3-8B) instead of whole-sentence embedding LR | jailbreak detector · in-domain AUC, 4 natural datasets | AUC: WG 94.5 vs 93.4; AllenAI WJ 98.8 vs 99.3 | Mixed |
| train a detector (probe/embedding/TF-IDF) rather than use off-the-shelf FJD, Prompt-Guard-2, perplexity | jailbreak detection · in-domain test sets | AUC: e.g. WG: Perplexity 45.6, FJD(Llama) 74.5 -> Probes (Qwen3-8B) 94.5 | Improved |
| use Llama-3.2-1B instead of Qwen3-8B as probe base model | attention probes · in-domain test sets | AUC: lags by 0.2-2.1 AUC | Hurt |
| translate test prompts to Somali/Macedonian | TF-IDF + LR · cross-lingual, avg in-domain AUC | AUC: to 53.8 (Somali), 48.2 (Macedonian) | Hurt |
| translate test prompts to Somali/Macedonian | MPNet-Emb + LR · cross-lingual, avg in-domain AUC | AUC: 96.0 -> 64.4 (Somali), 58.5 (Macedonian) | Hurt |
| translate test prompts to Somali | attention probes · cross-lingual, avg AUC | AUC: weakest AUC 70-75 on Somali, 83-91 on Macedonian | Hurt |
| train on TrustAIR (small corpus) instead of WildGuardMix for Qwen3-Emb/TF-IDF | baseline detectors · out-of-domain AUC | AUC: Qwen3-Emb ReNe+WG 94.3 -> 65.2; TF-IDF 85.0 -> 23.0 | Hurt |
| use only the single best head (k=1) rather than ensemble of top-k (ablation) | Probes (Qwen3-8B) · in-domain AUC | AUC: k=1: 93.9 WG, 94.5 TrustAIR, 97.0 AllenAI WJ | No clear effect |
| use per-layer hidden states instead of per-head attention features (original English) (ablation) | probes · in-domain AUC | AUC: within 1.1 AUC; Llama AllenAI WJ hidden better by 2.6 | No clear effect |
| use attention-head features instead of hidden states under translation (WG, Qwen3-8B) (ablation) | probes · WildGuardMix translated | AUC: +0.2 original -> +2.7 (es), +1.8 (pt), +3.1 (zh) | Improved |
| use attention-head features instead of hidden states (Llama-3.2-1B, AllenAI WJ, es/pt) (ablation) | probes · AllenAI WildJailbreak translated | AUC: -1.3 (es), -2.0 (pt), +1.7 (zh) | Hurt |
| take features from low layers rather than mid-to-late layers (ablation) | Qwen3-8B probes · WildGuardMix validation | F1 | Hurt |
Open problems this paper states
- “Not evaluated against adaptive attackers who optimise prompts against the probe itself.” → Defenses and adaptive attackers are rarely tested against each other. (an open problem in jailbreak attacks and defenses)
Open problems in jailbreak attacks and defenses
How can jailbreak attacks and defenses be tested on real deployed models, in more languages, with judges that can be trusted?
- Attack success is scored by LLM judges whose labels may be wrong. · 20 papers state it
- Defenses and adaptive attackers are rarely tested against each other. · 20 papers state it
- Most tests use English prompts only. · 10 papers state it
Closest papers by meaning
- DrAttack: Prompt Decomposition and Reconstruction Makes Powerful LLMs Jailbreakers (EMNLP 2024 · similarity 0.91)
- An Interpretable N-gram Perplexity Threat Model for Large Language Model Jailbreaks (ICML 2025 · similarity 0.90)
- JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models (NeurIPS 2024 · similarity 0.90)
- Best-of-N Jailbreaking (NeurIPS 2025 · similarity 0.89)
- Understanding and Enhancing the Transferability of Jailbreaking Attacks (ICLR 2025 · similarity 0.89)
- Many-shot Jailbreaking (NeurIPS 2024 · similarity 0.89)
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.