← Lab /AI/ML

Few adversarial tokens redirect attention and break safety in Mistral-7B and LLaMA-3

The Attention Redistribution Attack can bypass safety alignment with as few as 5 tokens and 500 optimization steps, achieving up to 36% success rate on Mistral-7B and 30% on LLaMA-3.

AI/ML arXiv 30 Apr 2026 Attack Prototype evidence Threat model

Published as “Attention Is Where You Attack”

Why it matters

Deployers of open-weight LLMs should consider defenses that constrain attention allocation, as simply removing heads does not prevent jailbreaks.

Summary

The paper shows that redirecting attention in a few safety-critical heads can bypass LLM safety: the Attention Redistribution Attack (ARA) flips 36% of refusals on Mistral-7B and 30% on LLaMA-3 with only five adversarial tokens, but only 1% on Gemma-2-9B. Ablating the same heads leaves refusals almost unchanged, indicating safety resides in attention routing rather than head presence. The evidence comes from white-box experiments on three 7-9B-parameter models using 200 HarmBench prompts. The paper’s scope is limited to these models and a white-box threat model.

What they found 3

  1. ARA achieves high attack success on two models but not on a third.

    “ARA bypasses safety alignment with as few as 5 tokens and 500 optimization steps, achieving 36% attack success rate on Mistral-7B-Instruct-v0.1 and 30% on LLaMA-3-8B-Instruct against 200 HarmBench prompts, while Gemma-2-9B-it remains at 1%.”

  2. Ablating top safety heads does not significantly reduce refusals.

    “zeroing out the top-ranked safety heads identified by mean SAS does not degrade refusal, with at most 1 of 39 to 50 baseline refusals flipping after ablating up to 20 heads”

  3. Quantitative ASR on Mistral-7B.

    “Mistral-7B 72/200 (36.0%)”

Caveats 5

  • The attack only succeeds at 1% on Gemma-2-9B, showing limited effectiveness across architectures.
  • Head ablation flips at most 1 of 39-50 baseline refusals, indicating that removing safety heads does not break safety.
  • Our experiments use 7 to 9 billion parameter models because white-box access to attention weights is required, and they cover three architectures.
  • Three architectures cannot establish a causal relationship between safety mass distribution and attack success rate, since tokenizer, alignment procedure, model family, and pretraining data are all confounded with architecture in our sample.
  • The safety head identification step uses the same 200 HarmBench prompts that are then used for V2 evaluation.

What’s new here 4

  • Targets safety by optimizing attention redistribution rather than output logits.
  • Identifies and exploits safety-critical attention heads using a Safety Attention Score.
  • Demonstrates a dissociation between head ablation (ineffective) and attention redirection (effective).
  • Provides per-model maps of safety-critical heads across three architectures.

Threat model stated by the source

Adversarywhite-box attacker
Capabilityfull access to model weights, architecture, and tokenizer; can prepend up to 10 tokens and run gradient-based optimization
Assumessystem prompt and user query are fixed; adversary cannot modify system prompt or query; budget limited to ≤10 tokens