← Lab /AI/ML

Refusal signals appear early in LLM activations and can speed up jailbreak attacks

Refusal behavior is linearly decodable in intermediate layers and can be used to accelerate prompt attacks

AI/ML arXiv 27 May 2026 Attack Prototype evidence

Published as “Refusal Before Decoding: Detecting and Exploiting Refusal Signals in Intermediate LLM Activations”

Why it matters

The ability to detect and exploit refusal signals early suggests new avenues for both accelerating jailbreak attacks and designing early-detection defenses in large language models.

Summary

Refusal behavior is linearly decodable from early-to-mid layers of LLMs, and a probe-guided variant of AutoDAN (Mechanistic AutoDAN) attains attack success rates comparable to vanilla AutoDAN while cutting per-iteration search time by up to 72%. The paper demonstrates this across three models (3B, 4B, 27B) and shows that the benefit grows with model scale. Evidence is strong: probe accuracies exceed 0.99, and search-time reductions are quantified for each model, though the probe’s contribution is less clear on smaller models.

What they found 4

  1. Refusal is linearly decodable well before the final layer across model families

    “Across all three models, refusal is linearly decodable in the early-to-middle blocks and well before the final layer, providing evidence that refusal-relevant information is already present in intermediate activations before output generation.”

  2. Mechanistic AutoDAN reduces per-iteration search time by up to 72% while keeping attack success competitive

    “our method achieves attack success rates competitive with vanilla AutoDAN while reducing per-iteration search time by up to 72%”

  3. Probe-based attacks match or exceed vanilla AutoDAN and halve search time on smaller models

    “Across Llama-3B and Qwen-4B, probe-based attacks match or exceed vanilla AutoDAN while reducing search time by roughly half for early-layer probes.”

  4. On the 27B model, intermediate Block 10 probes recover most of AutoDAN’s performance while cutting search time by 60-72%

    “On Qwen-27B, however, Block 1 probes are too early to provide useful guidance, reaching only 0.28-0.32 ASR; intermediate Block 10 probes recover much of AutoDAN’s performance (0.79-0.82 vs. 0.89) while reducing search time by 60-72%.”

Caveats 5

  • On Llama-3B, ASRs under opposite optimization remain close to those of the forward direction across probe configurations, with differences of at most 0.05.
  • Our local hardware constrained most experiments to models up to 4B parameters, limiting the diversity of model families and scale considered.
  • We did not exhaustively evaluate all layers of the 64-layer model. The choice of Block 10 was therefore pragmatic, leaving open the question of whether earlier or later layers would provide stronger or more stable probeguided search signals.
  • Our evaluation is also limited to a single jailbreak method. Mechanistic AutoDAN is derived from AutoDAN, and it remains unclear whether probe-guided fitness signals would generalize to other attack families such as GCG (Zou et al., 2023b) or SAA (Andriushchenko et al., 2025).
  • The oppositedirection ablation shows that reversing the probeguided objective has little effect on the ASR for Llama-3B and Qwen-4B, suggesting that synonym substitution, rather than the optimization pipeline, drives most of the search progress in these lower-robustness settings.

What’s new here 4

  • Uses linear probes on intermediate residual-stream activations as a fitness signal for jailbreak prompt search
  • Introduces Mechanistic AutoDAN, replacing full-model output evaluation with partial forward passes and probe logits
  • Shows that the probe-guided signal is more informative on larger models and can reduce search time by up to 72%
  • Evaluates cross-model transfer of probe-guided prompts and reports a scale-dependent effect