AI Safety Compendium

Shaping the model: data and training

Aligned modelsAlso: Constraining

Unlearning hazardous knowledge

Remove dangerous knowledge, such as bioweapon or cyberattack know-how, from a trained model while keeping its general skills.

Open in the compendium

Unlearning tries to remove specific knowledge from a model after it has been trained, while keeping its other skills. For safety, the target is knowledge that could help someone cause mass harm. If unlearning worked reliably, a model could be released without that knowledge, instead of relying on its willingness to refuse.

How it works

A developer first defines a "forget set", examples of the knowledge to remove, and a "retain set" of related but harmless knowledge to keep. An unlearning method then adjusts the model so it performs badly on the first and normally on the second. Microsoft researchers' 2023 work is a familiar, harmless example. It made a Llama 2 model largely unable to recall the Harry Potter books with about one hour of GPU fine-tuning, and its scores on common benchmarks barely changed.

For safety, researchers need a way to measure dangerous knowledge without publishing it. The WMDP benchmark (March 2024) does this with 3,668 multiple-choice questions that act as a proxy for hazardous knowledge in biosecurity, cybersecurity and chemical security, filtered to remove sensitive information before release. The same paper introduced RMU, a method that works by controlling the model's internal representations. RMU lowered WMDP scores while keeping general ability in nearby fields.

Where research stands

Unlearning is active, but current methods are not yet reliable enough to count on. The main problem is that they tend to hide knowledge rather than delete it. An October 2024 study found that fine-tuning on part of the forgotten facts recovered 88% of the original accuracy. Another showed that adaptive attacks recover most of the knowledge RMU was meant to remove, for example by fine-tuning on a few unrelated examples. A third line of work points out that even perfect unlearning cannot stop a model from using knowledge supplied in the prompt.

There are signs of progress. A June 2025 method, UNDO, distils an unlearned model into a fresh, noised copy of itself. At its strongest setting it matched the robustness of retraining from scratch on perfectly filtered data, at 60% to 80% of the compute. A 2025 review by 19 authors concludes that unlearning should be one part of a broader safety framework, partly because much dangerous knowledge is dual-use, meaning it also serves legitimate purposes. Anthropic's 2025 research directions describe unlearning of dangerous capabilities as still largely unsolved.

Key results

Open problems

See all open problems in this group

Criticisms

Who works on it

Status

Active. The WMDP benchmark has 3,668 multiple-choice questions on bio, cyber and chemical hazards. The 2025 review says unlearning cannot yet serve as a full safety solution, partly because much knowledge is dual-use.

Start reading

Related approaches

In their own words

WMDP serves two roles: first, as an evaluation for hazardous knowledge in LLMs, and second, as a benchmark for unlearning methods to remove such hazardous knowledge. To guide progress on unlearning, we develop RMU, a state-of-the-art unlearning method based on controlling model representations.

Nathaniel Li, Alexander Pan et al. (57 authors, incl. Dan Hendrycks), The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearning, 2024

Machine unlearning -- the ability to selectively forget or suppress specific types of knowledge -- has shown promise for privacy and data removal tasks, which has been the primary focus of existing research. More recently, its potential application to AI safety has gained attention.

Fazl Barez et al. (19 authors), Open Problems in Machine Unlearning for AI Safety, 2025

Suggest a correction Something wrong, out of date or missing, such as an organisation? Opens a GitHub issue (free account needed).