Claudini: Autoresearch Discovers State-of-the-Art Adversarial Attack Algorithms for LLMs
Organizations: MATS · ELLIS Institute Tübingen & Max Planck Institute for Intelligent Systems · Tübingen AI Center · Imperial College London
Abstract
We show that AI agents are capable of discovering novel algorithms for adversarial attacks against LLMs, advancing the state of the art on white-box jailbreaking and prompt injection evaluations. We deploy frontier agents, such as Claude Code and Codex, in an autoresearch loop with access to a library of 30+ prior methods and an evaluation script with a fixed compute budget. We show this pipeline to be effective in jailbreaking OpenAI's GPT-OSS-Safeguard-20B and in prompt injections against Meta-SecAlign-70B, an adversarially robust model. For GPT-OSS-Safeguard, the best agent-discovered method achieves up to 80% attack success rate on CBRN queries, compared to <50% for existing methods. For SecAlign, it achieves 100% ASR, while the best prior automated methods only achieve 82%. Notably, in our setting, attack methods are developed on unrelated surrogate models for a pure random-target token-forcing task, yet generalize directly to prompt injection on the adversarially trained model. Finally, we trace the lineage of methods developed during autoresearch, characterizing the agents' strategies and failure modes. Adversarial ML has long held that defenses must be evaluated against attacks tailored to them; autoresearch automates this principle, and we argue it should be the minimum bar for defense evaluation going forward.
Figures & tables
| Method | Train Loss | Test Loss | Test ASR |
|---|---|---|---|
| I-GCG | 0.02 | 0.91 | 48% |
| MAC | 0.03 | 1.02 | 40% |
| TAO | 0.01 | 1.23 | 30% |
| Opus 4.6 | |||
| Run 1 (v53) | 0.30 | 0.37 | 75% |
| Run 2 (v100) | 0.13 | 0.23 | 80% |
| Method | Train Loss | Test Loss |
|---|---|---|
| Opus 4.6 | ||
| v15 | 0.54 ± | 0.62 ± |
| v82 | 0.12 ± | 0.26 ± |
| GPT-5.5 | ||
| v13 | 0.09 ± | 0.04 ± |
| v78 | 1.06 ± | 2.10 ± |
| Method | HP# | Loss | Description |
|---|---|---|---|
| v1 | 1 | 5.241 | GCG + multi-restart, ACG schedules, LSGM, gradient momentum, patience |
| v3 | 1 | 4.150 | Single-restart GCG + LSGM + gradient momentum |
| v6 v15 | 7 | 0.539 | ADC + LSGM gradient scaling on norm layers |
| v9 | 0 | 8.663 | PGD + LSGM gradient scaling on norm layers |
| v11 v18 | 1 | 1.513 | ADC + LSGM + LILA (auxiliary loss on intermediate activations) |
| v19 v22 | 3 | 9.113 | ADC + sum-loss (decouples from lr) |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Type | Year | Has safety-specific components? |
| UAT [ 55 ] | D | 2019 | No |
| AutoPrompt [ 51 ] | D | 2020 | No |
| GBDA [ 17 ] | C | 2021 | No |
| ARCA [ 26 ] | D | 2023 | No |
| PEZ [ 58 ] | C | 2023 | No |
| GCG [ 63 ] | D | 2023 | No |
| Method | Qwen-2.5-7B | Llama-2-7B | Gemma-7B | Gemma-2-2B | Llama-3-8B | Avg |
|---|---|---|---|---|---|---|
| I-GCG-LSGM | 4.05 ± | 3.41 ± | 4.38 ± | 2.15 ± | 2.15 ± | 3.23 |
| TAO | 5.16 ± | 3.84 ± | 2.93 ± | 1.51 ± | 2.88 ± | 3.26 |
| I-GCG | 4.04 ± | 3.69 ± | 4.89 ± | 2.05 ± | 2.44 ± | 3.43 |
| AttnGCG | 6.11 ± | 3.96 ± | 3.59 ± | 1.76 ± | 3.37 ± | 3.76 |
| MAC | 6.18 ± | 3.42 ± | 4.54 ± | 1.94 ± | 3.17 ± | 3.85 |
| MC-GCG | 6.58 ± | 3.56 ± | 4.23 ± | 1.87 ± | 3.17 ± | 3.88 |
| Method | HP# | Loss | Description |
|---|---|---|---|
| v1 v5 | 1 | 4.563 | I-GCG (GCG + LSGM gradient scaling) |
| v3 | 1 | 5.063 | ADC continuous relaxation (SGD on soft token logits) |
| v4 | 0 | 5.313 | ACG + LSGM gradient scaling on norm layers |
| v6 | 0 | 4.219 | TAO-Attack: DPTO directional candidate scoring |
| v7 | 0 | 4.188 | MAC: momentum-assisted candidate selection |
| v8 v11 | 6 | 1.836 | MAC + TAO merge: gradient momentum EMA with DPTO candidate scoring |
| Candidates | TAO default | ||
|---|---|---|---|
| Cosine filter size | TAO default | ||
| Temperature | TAO default | ||
| Momentum | MAC default | ||
| Switch fraction | |||
| Estimated total steps | |||
| Replacements schedule | for first of steps, then | GCG default |
| Per-position top- | GCG default | ||
|---|---|---|---|
| Merge depth | |||
| Phase-1 fraction | |||
| Cycle fraction | |||
| Search width schedule | at | GCG default | |
| Perturbation schedule | at |
| claude_v63 | kimi_v45 | |||
|---|---|---|---|---|
| Momentum | ADC default | |||
| EMA rate | ADC default | |||
| Restarts | ADC default | |||
| Learning rate | ADC default | |||
| LSGM scale | I-GCG default | |||
| Loss coefficient | ADC default | |||
Adversarial Attacks on LLMs
Adversarial attacks on large language models probe how crafted inputs, internal changes, and agent interactions bypass safety or disrupt reliable behavior.
See all 355 papers