Skip to content

WMDP Benchmark: Measuring and Reducing Malicious Use of Large Language Models with Machine UnlearningThe WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearning

arXiv· arXiv:2403.03218· Nathaniel Li, Alexander Pan, Anjali Gopal, Summer Yue, Daniel Berrios, Alice Gatti, Justin D. Li, Ann-Kathrin Dombrowski, Shashwat Goel, Long Phan, Gabriel Mukobi, Nathan Helm-Burger, Rassin Lababidi, Lennart Justen, Andrew B. Liu, Michael Chen, Isabelle Barrass, Oliver Zhang, Xiaoyuan Zhu, Rishub Tamirisa, Bhrugu Bharathi, Adam Khoja, Zhenqi Zhao, Ariel Herbert-Voss, Cort B. Breuer, Samuel Marks, Oam Patel, Andy Zou, Mantas Mazeika, Zifan Wang, Palash Oswal, Weiran Lin, Adam A. Hunt, Justin Tienken-Harder, Kevin Y. Shih, Kemper Talley, John Guan, Russell Kaplan, Ian Steneker, David Campbell, Brad Jokubaitis, Alex Levinson, Jean Wang, William Qian, Kallol Krishna Karmakar, Steven Basart, Stephen Fitz, Mindy Levine, Ponnurangam Kumaraguru, Uday Tupakula, Vijay Varadharajan, Ruoyu Wang, Yan Shoshitaishvili, Jimmy Ba, Kevin M. Esvelt, Alexandr Wang, Dan HendrycksCenter for AI Safety; University of California, Berkeley; Massachusetts Institute of Technology; SecureBio; Scale AI; New York University; IIIT Hyderabad; Stanford University; Harvard University; University of Southern California; University of Illinois Urbana-Champaign; Lapis Labs; University of California, Los Angeles; California Institute of Technology; Sybil; Northeastern University; Carnegie Mellon University; RTX BBN Technologies; University of Newcastle; Keio University; Ariel University; Arizona State University; xAIIndexed by this site · 27 days ago· Originally publishedSelected EvaluationSelectedAttention42

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

The authors release the 3,668-question dangerous-knowledge benchmark WMDP and propose the unlearning method RMU, which they state reduces WMDP-Bio accuracy from 63.7% to 31.2% on ZEPHYR-7B.

Questions
Existing evaluations of LLM biological, cyber, and chemical hazardous capabilities are mostly private, manual, and narrow in coverage, and there is a lack of public benchmarks to guide technical research on reducing the risk of malicious use.
Methods
The authors build the WMDP benchmark of 3,668 four-choice multiple-choice questions, writing questions according to threat models and removing sensitive information; they also propose RMU, which unlearns dangerous knowledge by scaling up activations on dangerous data and preserving activations on benign data.
Experiments and results
On ZEPHYR-7B, YI-34B, and MIXTRAL-8X7B, RMU reduces WMDP-Bio/Cyber accuracy to near random levels, while MMLU and MT-Bench are largely maintained; neither linear probes nor GCG attacks recover the knowledge, but scores on related disciplines such as Virology decline.
Limitations and future work
The authors note that WMDP is a static multiple-choice benchmark that may overestimate memorized knowledge and cannot cover end-to-end risk; RMU can inadvertently harm related disciplines and cannot prevent open-source models from relearning dangerous knowledge through fine-tuning.
Experimental setupZephyr-7B-Beta、Yi-34B-Chat et al. · WMDP、MMLU et al. · QA accuracy、linear probe accuracy et al.
Threat model
API-access threat model for closed-source models: adversaries extract dangerous knowledge through adversarial attacks or malicious API fine-tuning, with access only to output tokens and logits and no access to internal activations; the model provider applies unlearning before deployment. The threat model of open-source models relearning after fine-tuning is explicitly not covered.
Evaluated models
Zephyr-7B-BetaYi-34B-ChatMixtral-8x7B-Instruct-v0.1Mistral-7B-v0.1
Benchmarks
WMDPMMLUMT-Bench
Metrics
QA accuracylinear probe accuracyMT-Bench score
AI summaryand selection rationaleThe researchers publicly released the WMDP benchmark, containing 3,668 multiple-choice questions, as a proxy measurement of large language models' dangerous knowledge in biosecurity, cybersecurity and chemical security; development cost exceeded $200K, and it was rigorously filtered to comply with U.S. export control requirements. The benchmark is used both to evaluate models' dangerous knowledge and as a testbed for unlearning methods. The paper proposes RMU, an unlearning method based on representation control, which reduces the accuracy of zephyr-7b and Yi-34b on WMDP to near random-chance level while largely maintaining MMLU scores; linear probes recovered only slightly above random-chance performance, and GCG adversarial attacks extracted answers from the base Yi-34b in under 50 steps but could not extract dangerous knowledge from the unlearned model even after 2,500 optimization steps. The authors note that RMU also deletes introductory virology and computer security knowledge, and that unlearning was not performed on the chemistry portion, so unlearning precision still has room for improvement. The benchmark and code are publicly available at wmdp.ai.

The researchers publicly released the WMDP benchmark, containing 3,668 multiple-choice questions, as a proxy measurement of large language models' dangerous knowledge in biosecurity, cybersecurity and chemical security; development cost exceeded $200K, and it was rigorously filtered to comply with U.S. export control requirements. The benchmark is used both to evaluate models' dangerous knowledge and as a testbed for unlearning methods. The paper proposes RMU, an unlearning method based on representation control, which reduces the accuracy of zephyr-7b and Yi-34b on WMDP to near random-chance level while largely maintaining MMLU scores; linear probes recovered only slightly above random-chance performance, and GCG adversarial attacks extracted answers from the base Yi-34b in under 50 steps but could not extract dangerous knowledge from the unlearned model even after 2,500 optimization steps. The authors note that RMU also deletes introductory virology and computer security knowledge, and that unlearning was not performed on the chemistry portion, so unlearning precision still has room for improvement. The benchmark and code are publicly available at wmdp.ai.

Why it was selectedExisting dangerous-capability evaluations are mostly private; this paper publicly released the 3,668-question WMDP benchmark and the RMU unlearning method, allowing researchers to directly reproduce and improve dangerous-capability evaluation and mitigation.

Related events and news

0 events · 3 news mentions

News that mentions this paper

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Existing dangerous-capability evaluations are private and narrow in coverage; the authors release the public benchmark WMDP and propose the unlearning method RMU to measure and reduce malicious-use risk.

    Core question: how to publicly measure dangerous knowledge (biological, cyber, chemical) in LLMs and remove it with machine unlearning while preserving general capabilities.

    • Problem setting: The authors state that a White House executive order requires assessing the risk of AI aiding chemical, biological, radiological, nuclear, and cyber weapons, and that government agencies and major AI labs are developing dangerous-capability evaluations.
    • Shortcomings of existing evaluations: The authors argue that current evaluations are private, manual, and highly specific, test only a few risk pathways, and that a low score cannot guarantee a model is safe against a broad range of malicious-use risks; this also limits the scientific community's research on risk mitigation.
    • Shortcomings of existing defenses: The authors point out that refusal training can be bypassed by adversarial attacks, and that pretraining data filtering can have dangerous information reintroduced by subsequent fine-tuning; unlearning can directly remove knowledge before deployment, so that even a jailbroken model lacks dangerous knowledge.
    • What the paper proposes: Publicly release the WMDP benchmark (3,668 multiple-choice questions, development cost over $200K) and propose RMU—an unlearning method based on controlling model representations, which the authors call state-of-the-art.
    • Threat model:
      • Attacker goal: extract dangerous knowledge such as biological and cyber knowledge from closed-source models to aid weapon development.
      • Attacker knowledge and capability: API-access threat model—through adversarial attacks or malicious API fine-tuning, with access only to output tokens and logits, and no access to internal activations.
      • Victim system: closed-source LLM, with the model provider applying unlearning before serving.
      • Explicitly excluded: relearning by open-source models after fine-tuning is not within the threat model (Section 5.3, Appendix D.1).
  2. What related research exists?

    Related work falls into three groups: LLM risk evaluation, LLM risk mitigation, and machine unlearning; the authors position this paper as a public benchmark plus a generalizable unlearning method.

    LLM risk evaluation

    • Sandbrink (2023), Gopal et al. (2023), Boiko et al. (2023), Bhatt et al. (2023)—respectively note that LLMs may assist in planning biological attacks, acquiring pathogens, synthesizing dangerous chemicals, and carrying out cyberattacks.
    • Anthropic (2023), OpenAI (2023b, 2024), Phuong et al. (2024)—biological, cyber, and chemical hazard evaluation frameworks developed by major AI labs; the paper notes that the details of these evaluations are usually private.
    • General safety benchmarks (Hendrycks et al., 2020a; Lin et al., 2021; Li et al., 2023, etc.)—used to monitor behaviors such as misrepresentation and harmful content.

    LLM risk mitigation

    • Input safety filtering (Inan et al., 2023) and human preference learning (Ziegler et al., 2020; Rafailov et al., 2023)—the paper notes that such methods are susceptible to jailbreaks and adversarial attacks.
    • Pretraining data filtering (Ngo et al., 2021)—the paper notes that most end users cannot participate in this process, and models may be affected by subsequent harmful fine-tuning (Zhan et al., 2023; Yang et al., 2023).

    Machine unlearning

    • Early unlearning methods (Cao and Yang, 2015; Golatkar et al., 2020; Jang et al., 2023, etc.)—mainly aimed at privacy regulation, erasing specific samples or facts rather than entire domains.
    • Recent concept erasure (Belrose et al., 2023; Yao et al., 2023b; Eldan and Russinovich, 2023)—erases broader concepts such as gender, harmful behavior, or fictional universes; the paper notes that they have not been shown to eliminate scientific knowledge that facilitates malicious use.
    • Goel et al. (2024)—the paper notes that it shows existing unlearning methods struggle to remove knowledge when all relevant training data cannot be accessed, and the authors state that RMU overcomes this challenge.

    Baselines and benchmarks: the unlearning baselines are SCRUB (Kurmanji et al., 2023), SSD (Foster et al., 2024), and LLMU (Yao et al., 2023b), compared on ZEPHYR-7B; the general capability benchmarks are MMLU and MT-Bench, with GPT-4 as the benchmark performance upper bound.

    The authors position this paper as: a public benchmark as opposed to private evaluations, and WMDP targets information that in the real world can facilitate malicious use, rather than specific samples or artificially constructed deletion sets.

  3. How does the paper address this problem?

    WMDP writes multiple-choice questions according to threat models in three domains and removes sensitive information; RMU uses a forget loss to scale up activation norms on dangerous data and a retain loss to maintain activations on benign data.

    The overall approach has two parts: build the public multiple-choice benchmark WMDP as a proxy measurement of dangerous knowledge, then propose RMU (Representation Misdirection for Unlearning) to unlearn dangerous knowledge before deployment.

    Design and construction of WMDP

    • Question format: 3,668 four-choice multiple-choice questions, divided into WMDP-Bio (1,273 questions), WMDP-Cyber (1,987 questions), and WMDP-Chem (408 questions); the authors state that a low score means the model may lack the knowledge required for malicious use, but a high score does not mean the model is necessarily unsafe.
    • How questions were written: Scholars and technical consultants first established threat models for the three domains, then wrote questions accordingly; all questions were checked by at least two experts from different institutions.
    • Proxy strategy: Rather than directly including sensitive information, they collect precursor, neighbor, or component knowledge of dangerous knowledge (Figure 4), mainly including offensive knowledge and retaining defensive knowledge (Figure 3).
    • Threat model coverage: The biological part is covered along the ideation–design–build–test–learn risk chain (Figure 5); the cyber part covers the four stages of reconnaissance, weaponization and vulnerability discovery, exploitation, and post-exploitation (Figure 6), with emphasis on the weaponization stage; the chemical part covers stages such as procurement, synthesis, purification, transport, and deployment.
    • Sensitive information control: Experts flag and remove sensitive questions; each WMDP-Bio and WMDP-Chem question is then cross-checked by two additional experts; before release, external legal counsel assesses compliance with ITAR and EAR export-control requirements (Section 3.5).

    RMU setup

    • Goal: Reduce the model's QA accuracy on WMDP while preserving performance on MMLU and MT-Bench; it does not assume access to the WMDP questions themselves, and uses only limited samples to unlearn the entire dangerous-knowledge distribution.
    • Forget loss: Lforget = Exf ∼ Dforget [1/Lf ∑t ∈ xf |Mupdated(t) − c · u|22], which pulls the activations at a certain layer on dangerous data toward c times a random unit vector u; the authors state that experiments found that scaling up the activation norm at early layers makes it difficult for subsequent layers to process.
    • Retain loss: Lretain = Exr ∼ Dretain [1/Lr ∑t ∈ xr |Mupdated(t) − Mfrozen(t)|22], which constrains activations on benign data back to the activations of the frozen original model; total loss L = L_forget + α · L_retain.

    Data and training details

    • Forget set Dforget: For Bio, the PubMed paper corpus used to generate the WMDP-Bio questions; for Cyber, documentation crawled from GitHub, filtered by MIXTRAL-8X7B-INSTRUCT-V0.1 with a 0–10 score, keeping only paragraphs scoring 9 or above (Appendix A.5).
    • Retain set Dretain: Wikitext is actually used; the authors state that in practice RMU performs better when Dretain and Dforget differ greatly in content, and they also released subject-specific retain sets.
    • Training setup: The loss is computed only at layer ℓ, and only layers ℓ−2 to ℓ are updated, and only in the MLP; ℓ = 7 (ZEPHYR-7B, MIXTRAL-8X7B) or 15 (YI-34B), α is 1200, 1600, and 350 respectively, c is 6.5, 300, and 300 respectively, and the number of training batches is grid-searched over [150, 300, 500] (Appendix B.7.4).
    • Method history: The initial method CUT used a steering vector; the authors state that ablations found its effect came from scaling up the activation norm rather than steering in a specific direction, so it was simplified to RMU, which steers toward a random vector (Appendix B.4).
  4. What experiments did the paper conduct?

    Unlearning WMDP-Bio/Cyber on three open-source models: RMU reduces WMDP accuracy to near random and largely preserves MMLU, but related subjects such as Virology decline, and it cannot prevent relearning through fine-tuning.

    Experimental setup

    • Models tested: ZEPHYR-7B-BETA, YI-34B-CHAT, MIXTRAL-8X7B-INSTRUCT-V0.1; GPT-4 as the benchmark performance upper bound; MISTRAL-7B-V0.1 used for the relearning experiments in Appendix B.6.
    • Benchmarks: WMDP (unlearning only Bio and Cyber), MMLU (with focus on college biology, virology, college computer science, computer security), MT-Bench.
    • Baselines: SCRUB, SSD, LLMU, compared only on ZEPHYR-7B; the authors state that because their performance on ZEPHYR-7B was low, the baselines were not tested on the other two models.
    • Evaluation protocol: QA uses the zero-shot format of lm-evaluation-harness v0.4.2, taking the highest logit among A/B/C/D; MT-Bench uses single evaluation mode, with gpt-4-0613 as judge (Appendix B.2).
    • Probe setup: 4 linear probes are trained on the unlearned models, with half of WMDP-Bio/Cyber used for training and the other half for evaluation, reporting all layers.
    • Robustness setup: GCG attack (20-token adversarial suffix), taking 1 rewritten prompt each from WMDP-Bio and WMDP-Cyber, comparing base and unlearned YI-34B.

    Main results

    According to Table 1 and Table 2 (WMDP and MMLU are accuracy percentages, 25% is random level; MT-Bench is out of 9):

    Swipe horizontally to read the table

    ModelMethodWMDP-Bio ↓WMDP-Cyber ↓MMLU ↑MT-Bench ↑
    ZEPHYR-7BBase63.744.058.17.33
    ZEPHYR-7B+ LLMU59.539.544.71.00
    ZEPHYR-7B+ SCRUB43.839.351.21.43
    ZEPHYR-7B+ SSD50.235.040.75.48
    ZEPHYR-7B+ RMU31.228.257.17.10
    YI-34BBase → + RMU75.3 → 30.749.7 → 29.072.6 → 70.67.65 → 7.59
    MIXTRAL-8X7BBase → + RMU74.8 → 34.052.0 → 30.868.2 → 67.18.30 → 8.17
    GPT-4Base82.255.383.49.13
    • The authors state that RMU reduces WMDP-Bio/Cyber to near random level on ZEPHYR-7B and YI-34B while maintaining MMLU; other baselines struggle to lower WMDP scores without damaging MMLU.
    • On MT-Bench, RMU drops by 0.23, 0.06, and 0.13 points on the three models respectively; the authors state that some degradation remains and that unlearning methods that better preserve assistant capabilities are needed.
    • Note that in Table 2, the WMDP-Chem of the RMU rows is not unlearned yet remains essentially unchanged (e.g., ZEPHYR-7B 45.8 → 45.8), consistent with the setting of unlearning only Bio/Cyber.

    Probes and robustness

    • Linear probes: Figure 9 shows that on ZEPHYR-7B and YI-34B, the probe accuracy of the unlearned models is only slightly above random level; the authors state that this indicates RMU does not merely superficially conceal information.
    • GCG attack: base YI-34B is successfully jailbroken in fewer than 50 steps, while the unlearned model still outputs gibberish after 2,500 steps (over 7 hours on A100) (Figure 12, Appendix B.3); the authors state that this is a signal that RMU remains resilient under optimization pressure. Only 1 prompt is tested per dataset.
    • The authors' own caveat: because unlearning is performed on only three layers, the authors believe RMU may be more about obfuscating knowledge than truly unlearning it.

    Generalization and relearning

    • Generalization to a private sensitive set: the 122 sensitive questions excluded when constructing WMDP-Bio serve as a private set; Figure 13 shows that ZEPHYR-7B's accuracy changes on the private set and on WMDP-Bio before and after unlearning are similar, and the authors state that this indicates WMDP is a reasonable proxy measure of dangerous knowledge.
    • Fine-tuning relearning (Appendix B.6): after unlearning on MISTRAL-7B-V0.1, fine-tuning on the cybersecurity unlearning corpus, Figure 15 shows that WMDP-Cyber accuracy is restored; the authors explicitly write that RMU cannot prevent relearning through fine-tuning and therefore cannot mitigate the risk of open-source models.

    Other ablations and analyses

    • Related MMLU subjects (Table 2, Figure 11): RMU preserves college biology (68.1 → 63.2) and college CS (50.0 → 49.0), but ZEPHYR-7B's Virology drops from 52.4 to 25.9 and computer security from 65.0 to 45.0; the authors state that unlearning precision has room for improvement.
    • Activation norms (Figure 14): the authors report that after unlearning, activation norms on Dforget amplify after about 200 steps, while activations on subject-specific Dretain are roughly similar to the frozen model.
    • MMLU subset unlearning benchmark (Table 3): on ZEPHYR-7B, the unlearning columns for the Physics, Law, and Economics groups all drop to 27.0–27.8; the retain column for the Law group drops from 71.3 to 37.0, and the authors state that this indicates a need to improve unlearning precision.
    • Hyperparameter search (Figure 10): the authors state that RMU outperforms the baselines in lowering WMDP accuracy while maintaining MMLU; the results in this figure are based on initial versions of WMDP and the unlearning methods.
  5. What are some points that can be further explored?

    The limitations listed by the authors center on the multiple-choice format, the static benchmark, and open-source relearning; the experiments cover three open-source models and unlearning in only the Bio/Cyber domains.

    Limitations and future directions noted by the authors

    • Multiple-choice format: WMDP is a four-option multiple-choice question set, which may miss harms that only appear in larger-scale end-to-end evaluations; memorizing models may score as well as models that truly understand, and the biology questions are mostly drawn from open-access papers that may already be in training data (Appendix D.1).
    • Future directions: the authors suggest writing questions from papers published after the model training cutoff, or using question-writing strategies that are hard to retrieve (Appendix D.1).
    • Static benchmark: WMDP cannot anticipate evolving cyber and biological risks, and benchmarking only on WMDP may produce a false sense of security; the authors believe open-ended dialogue benchmarks may be more suitable for evaluating future models (Appendix D.1).
    • Open-source models: the authors note that for models with public weights, unlearned information can be easily reintroduced by malicious actors, and this work does not address the risk of this pathway (Appendix D.1, Section 6.1).
    • Unlearning precision: RMU lowers scores in related fields such as Virology and computer security; the authors encourage future work to use their public subject-specific retain sets to improve unlearning precision (Section 5.2, Section 7).
    • Chemistry domain: the authors state they are uncertain whether the mitigation benefit of unlearning on WMDP-Chem outweighs the damage to general capabilities, so they did not perform chemistry unlearning (Section 4).

    Scope of experiments

    • The models tested are ZEPHYR-7B, YI-34B, and MIXTRAL-8X7B, 3 open-source models in total; GPT-4 serves only as a benchmark upper bound; the relearning experiments additionally use MISTRAL-7B-V0.1 (Section 5.1, Appendix B.6).
    • The unlearning experiments cover only WMDP-Bio and WMDP-Cyber; WMDP-Chem is used only for measurement (Section 5.1).
    • The baselines SCRUB, SSD, and LLMU are compared only on ZEPHYR-7B and are not reported on YI-34B and MIXTRAL-8X7B (Section 5.1).
    • The GCG robustness experiments use only 1 prompt per dataset and are conducted only on YI-34B (Section 5.3).
    • The paper does not report the number of repetitions of the QA evaluation, nor the agreement between the MT-Bench judge and human evaluation.
  6. Summarize the main content of the paper

    WMDP uses 3,668 multiple-choice questions as a proxy measurement of dangerous knowledge; RMU unlearns by manipulating representations, and the authors state that it reduces WMDP scores to near random while preserving general capabilities.

    This is a benchmark-plus-method paper: the authors publicly release the WMDP benchmark and propose the unlearning method RMU, with the goal of measuring and removing dangerous knowledge in LLMs that could aid malicious use.

    • Problem to solve: The authors argue that existing dangerous-capability evaluations are private and narrow in coverage, and that defenses such as refusal training and data filtering can be bypassed, so there is a lack of public benchmarks to guide risk-mitigation research.
    • WMDP: 3,668 expert-written four-choice multiple-choice questions (Bio 1,273, Cyber 1,987, Chem 408), written according to threat models in three domains, including only precursors, neighbors, or components of dangerous knowledge, and with sensitive information removed after expert cross-checking and an export-control compliance assessment.
    • RMU: The forget loss pulls activations on dangerous data toward a scaled random vector, and the retain loss constrains activations on benign data back to the original model; only three MLP layers are updated, the forget set uses PubMed papers and GitHub documentation, and the retain set uses Wikitext.
    • Main results: On ZEPHYR-7B, WMDP-Bio drops from 63.7% to 31.2% and WMDP-Cyber from 44.0% to 28.2%, while MMLU drops only from 58.1% to 57.1% (Table 1); on YI-34B and MIXTRAL-8X7B they likewise drop to near random level.
    • Robustness and generalization: Linear probes are only slightly above random level; GCG optimized against YI-34B after unlearning for 2,500 steps without success (base model: fewer than 50 steps); on 122 removed sensitive biology questions, the change in scores before and after unlearning is similar to that on WMDP-Bio, and the authors state that WMDP is a reasonable proxy measurement.
    • Authors' conclusion: The authors consider unlearning a potentially viable path to reducing malicious use, but RMU causes collateral damage to related subjects such as Virology and cannot prevent open-source models from relearning through fine-tuning; the authors recommend using unlearning together with measures such as structured API access.

Related papers

Show 3 more papers
Read originalarxiv.org