Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal

About

Automated red teaming holds substantial promise for uncovering and mitigating the risks associated with the malicious use of large language models (LLMs), yet the field lacks a standardized evaluation framework to rigorously assess new methods. To address this issue, we introduce HarmBench, a standardized evaluation framework for automated red teaming. We identify several desirable properties previously unaccounted for in red teaming evaluations and systematically design HarmBench to meet these criteria. Using HarmBench, we conduct a large-scale comparison of 18 red teaming methods and 33 target LLMs and defenses, yielding novel insights. We also introduce a highly efficient adversarial training method that greatly enhances LLM robustness across a wide range of attacks, demonstrating how HarmBench enables codevelopment of attacks and defenses. We open source HarmBench at https://github.com/centerforaisafety/HarmBench.

Mantas Mazeika, Long Phan, Xuwang Yin, Andy Zou, Zifan Wang, Norman Mu, Elham Sakhaee, Nathaniel Li, Steven Basart, Bo Li, David Forsyth, Dan Hendrycks• 2024

Related benchmarks

TaskDatasetResultRank
Multi-task Language UnderstandingMMLU--
876
Multi-turn Dialogue EvaluationMT-Bench
Overall Score5.74
447
Question AnsweringARC-E
Accuracy74.9
416
Instruction FollowingMT-Bench
MT-Bench Score6
215
Question AnsweringARC-C
Accuracy48.1
192
Safety EvaluationHarmBench
Harmbench Score5.63
112
Over-refusalXSTest--
78
General CapabilityMMLU
MMLU Accuracy59.44
73
Jailbreak DefenseStrongREJECT--
54
Over-refusalWildjailbreak (Benign)
Wildjailbreak Benign Refusal Rate96.8
49
Showing 10 of 43 rows

Other info

Follow for update