Beihang's AGILE Jailbreak Beats Top AI Safety Defenses by 37%

A two-stage attack combines context rewriting with hidden-state-guided token edits, boosting jailbreak success by up to 37.74% and transferring across models.

·
·
·
Beihang's AGILE Jailbreak Beats Top AI Safety Defenses by 37%PRO
  • AGILE combines scenario-based prompt rewriting with hidden-state-guided token edits for jailbreaks (paper).
  • Beats prior baselines by up to 37.74% ASR on HarmBench across six open-source LLMs.
  • Transfers strongly to GPT-4o, Gemini-2.0-Flash, DeepSeek-V3 and 70B-scale open models.
  • Two lightweight MLP classifiers (~90% and ~99% accuracy) guide substitution and injection edits.
  • Ablations show the rephrased query, not the multi-turn history, drives the attack's power.
  • Code available at SELGroup/AGILE; SafeDecoding is the most effective known defense.

A team from Beihang University, HKUST, and collaborators has released AGILE (Activation-Guided Local Editing), a jailbreak framework that fuses two attack styles previously at odds. It generates a plausible conversation around a harmful request, then makes surgical token-level edits guided by the target model's own internal activations. The reported results include gains of up to 37.74% in attack success rate over the strongest baseline, and strong transfer to black-box and large-scale models.

Two attack families, two sets of weaknesses

Jailbreak research has largely split into two camps. Token-level attacks like GCG use gradient search to append adversarial suffixes that flip a model's refusal. Prompt-level attacks lean on social engineering, role-play, and nested scenarios. Both have known failure modes.

Suffix attacks tend to produce incoherent or unreadable strings, which simple rule-based filters catch easily, and they rarely transfer from a white-box model to a black-box one. Prompt-level methods scale poorly because they lean on manual craftsmanship, while their automated cousins burn compute in iterative query loops against the target.

AGILE's premise is that recent interpretability work offers a shortcut. A model's hidden states for benign versus malicious inputs are highly separable, and prior work has used that signal for direct activation-level attacks. Those direct interventions require white-box access at inference. AGILE flips the idea by using the internal signal only during optimization while keeping the final attack as pure text.

Inside the two-stage pipeline

Stage one is offline and target-agnostic. A generator LLM builds a multi-turn, seemingly benign dialogue history from style instructions and a theme, then rephrases the original malicious query into a semantically similar but more innocuous form. Only user turns are generated; the assistant replies are later sampled from the target itself for coherence.

Pro article

This story is for Pro members

You've reached the end of the free preview. Upgrade to AlphaSignal Pro to read the full article - and everything else behind the paywall.

Trending
  • No trending articles

Comments

avatar

Next Reads