Testing: How are the risks found? · MarLuc synopsis
Standard red-teaming benchmark finds no model robust to every attack tested
Peer-reviewedRed-teamingHarmBench, a standard test for automated red teaming, compared 18 attack methods on 33 models and defences and found no attack or defence that worked across the board.
Read the research (opens in a new tab)The research at a glance
- Research
- “HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal”, Mantas Mazeika et al.
- Produced by
- University of Illinois Urbana-Champaign (University); Center for AI Safety (Non-profit research); Carnegie Mellon University (University); UC Berkeley (University); Microsoft (AI company)
- Published
- 6 Feb 2024; latest version 27 Feb 2024
- Evidence
- Peer-reviewed, Proceedings of the 41st International Conference on Machine Learning (ICML 2024), PMLR 235Published in a peer-reviewed journal or accepted at a peer-reviewed conference (venue named)
- Type of research
- Benchmark
- Topics
- Red-teaming · Evaluation and testing · Safety training
- Checked
- 21 Nov 2026 against the research; independently checked 21 Nov 2026.
Research starting point. Not advice. Each synopsis describes one piece of research in the setting its authors tested; results may not hold for other models, versions or uses. Read the original before relying on it.
1Why it matters
Automated red teaming uses software, often other AI models, to generate attacks on a language model at scale. Before HarmBench, papers measured attacks in different ways, so their results could not be compared. The work asks how to test attacks and defences fairly, and what a large standard comparison shows.
2What they did
The authors wrote 510 harmful 'behaviours' (requests that most people would not want a public AI model to carry out) across seven categories such as cybercrime, misinformation and harassment, some with supporting context or images. They ran 18 red-teaming methods against 33 target models and defences, 24 open-source and 9 closed-source, and recorded how often each attack produced the behaviour (the attack success rate). Responses were scored by a classifier the authors fine-tuned from Llama 2 13B and checked against human labels, with a separate exact-match check for copyright cases. They also trained a model with a new adversarial training method, R2D2 (training a model on attacks generated against it during training).
3What they found
As the authors report it, in the setting they tested.
- The authors report that no current attack or defence is uniformly effective: every attack had low success on at least one model, and every model was weak against at least one attack.
- They found no link between robustness and model size within model families (7 to 70 billion parameters), but large differences between families, which they read as showing that training data and methods matter far more than size.
- Test settings changed results: the length of response a model was allowed to generate changed measured attack success by up to 30%, which the authors say made earlier comparisons between papers effectively meaningless.
- Their adversarial training method reduced success of the optimisation-based attack it was trained against (GCG) to 5.9%, kept general performance close to a comparable model (a score of 6.0 against 6.5 on the MT-Bench test), and improved robustness against every attack compared with the same base model without it. Gains were smaller against attack types unlike the one used in training.
- Attack success was considerably higher on 'contextual' behaviours, which come with specific background information that makes them harder to find with a search engine.
4Limits
What the research does not show, or where its results may not carry over.
- The large comparison covers model-level defences (safety training, refusal and adversarial training), not system-level defences such as filters. Some closed models' interfaces include filters that cannot be removed, so the authors could not measure those models' own robustness directly.
- Results reflect model versions available in early 2024 (for example GPT-4 0613) and a fixed set of attacks; models and attacks have changed since.
- Success is judged by an AI classifier, which agreed with human labels 93.2% of the time in the authors' check. A response counts as a success if the model clearly tried to carry out the behaviour, even if the content was wrong.
5What it could mean for an organisation
General information, not advice. Whether it applies depends on the systems you build, buy or use.
- Organisations relying on a model's built-in refusals face the finding that, in these tests, no model was robust to all the attacks evaluated; the authors point to a defence-in-depth approach combining system-level defences such as filtering with defences built into the model.
- Model size was not a guide to robustness in these tests, so a larger model cannot be assumed to resist attacks better.
- Red-teaming figures depend heavily on test settings, such as response length and how success is scored, so results from different sources are only comparable when their settings match.
- Training a model against one kind of attack gave less protection against different kinds; the authors suggest that training against several diverse attacks may be necessary.
6Related in MarLuc's libraries
AI governance: NIST AI 100-2, ARIA and Cyber AI Profile · GPAI Code of Practice · EU AI Act
Sources
- [1]arXiv abstract page, arXiv:2402.04249 (opens in a new tab)The research itself · arxiv.org
- [2]Full paper (arXiv PDF, v2) (opens in a new tab)The research itself · arxiv.org
- [3]Proceedings of Machine Learning Research (ICML 2024) page (opens in a new tab)The research itself · proceedings.mlr.press
Checked 21 Nov 2026 · independently checked 21 Nov 2026 · synopsis version 1.0
Spotted an error or newer research? Tell us