Jailbreaks suppress early-layer attention heads while mid-layer safety heads stay active
Jailbreak attacks work by selectively suppressing adversarially compromised attention heads, leaving safety-aligned heads robust
AI/ML arXiv 26 Jun 2026 Measurement Prototype evidence
Published as “Robust Harmful Features Under Jailbreak Attacks: Mechanistic Evidence from Attention Head Specialization in Large Language Models”
Why it matters
The findings enable a lightweight, training-free detector that can spot harmful content even when jailbreak attacks bypass explicit refusals, though deployment is limited to settings with white-box model access.
Summary
The paper shows that jailbreak attacks suppress a small set of early-layer attention heads (ACHs) while leaving mid-layer safety-aligned heads (SAHs) active, and that ablating just eight ACHs reproduces jailbreak behavior with up to 99.5% success. Token-level attribution reveals that attack-template tokens drive ACH suppression, whereas SAHs remain strongly activated. Leveraging the persistent SAH signals, a training-free detector reads internal activations and attains high Macro-F1 (up to 0.976) on adversarial safety benchmarks, but it requires white-box access. The evidence is based on analyses of Llama-2-7B-Chat and Llama-3-8B models using publicly released harmful and jailbreak datasets.
What they found 3
- Suppressing a small number of ACHs is sufficient to induce jailbreak-like behavior on normally refused inputs.
“suppressing a small number of ACHs is sufficient to induce jailbreak-like behavior on normally refused inputs”
- Ablating eight ACHs raises attack success rate from 0% to over 95% (99.5% at saturation).
“intervening on just 8 ACHs is sufficient to induce jailbreak-like behavior (ASR increases from 0% to over 95%, reaching 99.5% at saturation)”
- The training-free detector achieves competitive Macro-F1 scores (e.g., 0.976 on SALAD-Bench) without any training.
“Our method achieves competitive performance without any training, with effectiveness varying across models.”
Caveats 4
- We do not claim that real attacks operate only through this pathway; rather, ACH suppression provides a sufficient and localized causal pathway that is also consistent with the token-level evidence
- Dataset construction requires paired samples where attacks succeed against refused requests-a strict criterion limiting sample size, especially for well-aligned models like Llama-3 whose adversarial robustness makes successful attacks rare.
- our analysis focuses on attention mechanisms without covering MLP layers; it uses a single refusal direction as a first-order summary rather than a full refusal subspace; and the primary mechanistic experiments use 7-8B strongly aligned models
- The detector also requires internal activations, limiting direct deployment to white-box or open-weight settings.
What’s new here 4
- Identifies two distinct attention-head categories (ACHs and SAHs) with opposite responses to jailbreak inputs.
- Demonstrates that suppressing as few as eight ACHs is sufficient to cause jailbreak-like behavior.
- Introduces a training-free detection method that aggregates robust internal safety signals without model fine-tuning.
- Provides token-level attribution showing attack-template tokens specifically suppress ACHs.