AI Safety
AI researchers develop adversarial framework to defend LLMs against jailbreak attacks
A new method combines game-tree search with policy learning to create attackers and defenders that co-evolve, improving safety alignment in large language models.
Researchers have introduced MACE, a framework that arms both attackers and defenders in the ongoing battle to secure large language models against adversarial manipulation. Rather than treating discovered attacks as isolated samples, the approach extracts learning signals from the search process itself, enabling more robust safety alignment.
The core innovation#
The framework combines Monte Carlo tree search (MCTS) with adversarial co-evolution to transform how security researchers test and strengthen LLM defenses. Its attack component, GS-MCTS, systematically explores multi-step sequences of text rewriting operations and tracks which attack paths succeed most frequently and at what search depth. This information becomes crucial—rather than discarded—for training improved defenses.
On the defense side, a module called AC-TGPO uses statistics from the attack search to weight training samples by difficulty and construct a curriculum that emphasizes hard cases. The system also preserves effective attacks across training rounds, ensuring that defenses don't regress against previously discovered threats.
Performance gains#
Across six model-and-dataset combinations, the resulting attacker achieved the highest success rate in all settings. The defender reduced average attack success rate from 11.9% for the best existing baseline down to 8.8%. Ablation studies show that each component matters: removing difficulty-aware weighting, asymmetric sample selection, or persistent hard examples each caused defense performance to degrade by 3.7%, 6.0%, and 5.0% respectively.
Why it matters#
As LLMs increasingly serve in production systems open to public interaction, they face adaptive adversaries who repeatedly reformulate harmful requests to circumvent safety guardrails. Prior approaches have largely focused on defending against dynamic jailbreaks but typically discard the structural information about how attacks were discovered. By linking search strategy to policy optimization and cross-round memory, MACE treats the attack-defense interaction as a learning problem rather than a one-off evaluation exercise.

