Taking the sugar out of a baked cake
In a database, erasing information is trivial: you delete the row and it is gone. In an AI model, it is a different story. Imagine being asked to take the sugar out of a cake that has already been baked. The sugar is not tucked away in one corner: it has melted, caramelized, changed the texture of the crumb and the color of the crust. It is everywhere and nowhere.
A language model is that cake. During training, every text slightly changed billions of parameters (the numbers that make up the model), and every parameter was changed by billions of texts. There is no "book no. 42" slot that could simply be emptied.
Machine unlearning is the set of techniques that try, despite all this, to make an already-trained model forget part of its data. The data governance lesson mentions the topic in a few lines; this page goes into detail.
Why remove data at all
The reasons are many and very concrete.
- An erasure request. In Europe, the GDPR (General Data Protection Regulation) gives everyone the right to ask for their personal data to be erased. In December 2024, the European Data Protection Board took the view that a model trained on personal data is not automatically "anonymous": it has to be assessed case by case, in particular according to whether that data can be extracted from the model.
- A license ends. A publisher allowed its texts to be used for a limited period. The contract expires: what happens to the model that was already trained?
- Content is withdrawn. It turns out part of the corpus came from a pirated source, or a court orders that certain works no longer be used.
- Toxic or dangerous data. The model learned information useful for building biological weapons, deliberately poisoned data, or simply errors.
- Text memorized word for word. A model can spit out an entire passage of a book or a personal address (see memorization and extraction).
Why it is hard
Three reasons add up.
- The information is diffuse. It is not stored in one place but spread across the weights, mixed in with everything else.
- Knowledge spills beyond its source. Removing the seven Harry Potter books does not remove Harry Potter: the model also read Wikipedia articles, reviews, fan fiction and forums. Should it forget the books, or everything the world says about them?
- "Forgetting" is ambiguous. The ideal goal is for the model to behave as if it had never seen the data. But a model that never read the books would still know Harry Potter is a wizard, thanks to the rest of the web. A model that knows nothing at all about the subject has therefore forgotten too much.
For simple models (a regression, for example), there are removal methods with mathematical guarantees, inspired by differential privacy. They rely on assumptions that deep networks do not meet.
Certified Data Removal from Machine Learning ModelsThe gold standard: retraining without the data
The only method that guarantees exact forgetting is simple: remove the data from the corpus and retrain the model from scratch. Every other method is measured against it.
The problem is price. Pretraining the 7-billion-parameter version of Llama 2 took over 184,000 GPU hours, and frontier models cost tens of millions of dollars in compute. Erasure requests, meanwhile, arrive continuously. Retraining for every request is out of the question.
SISA: split things up so you only retrain one piece
In 2019, Bourtoule and his co-authors (University of Toronto) proposed preparing for forgetting from the start of training. Their method is called SISA, for Sharded, Isolated, Sliced, Aggregated.
- Split the data into separate shards.
- Train a small isolated model per shard, with none of them seeing the others' data.
- Cut each shard into slices learned one after another, saving a checkpoint after each slice.
- To answer, aggregate the models' outputs, for example by voting.
When a data point has to go, you only retrain the model for the shard concerned, starting from the checkpoint just before the slice that contained it. On simple tasks, this is 4.6 times faster (Purchase dataset) and 2.5 times faster (SVHN) than full retraining; on ImageNet the speedup drops to 1.4 times, with a small loss of accuracy.
Machine UnlearningFor large language models, SISA sees little use: their strength comes precisely from learning from everything together. Splitting them into separate models hurts quality and multiplies the cost of running them.
Approximate methods for large language models
Since retraining is not an option, people modify the existing model instead. The shared vocabulary: the forget set, the data to make disappear, and the retain set, a sample of data on which the model must stay good.
Gradient ascent: learning in reverse
Training a model is gradient descent: nudging the parameters little by little to reduce the error on the data (see gradient methods). The most direct way to forget is to do the opposite on the forget set: gradient ascent, which increases the error on those texts. Jang and co-authors proposed it for language models in 2022.
Knowledge Unlearning for Mitigating Privacy Risks in Language ModelsThe flaw is brutal: increasing the error has no natural stopping point. Pushed too far, the model collapses and starts producing gibberish on every topic. So a term is added that forces it to stay good on the retain set, but the balance is delicate.
NPO: treating the data to forget as bad answers
Negative Preference Optimization (NPO, 2024) draws on DPO, the method that teaches models to prefer good answers over bad ones. NPO keeps only the "bad answers" half: the texts to forget are treated as answers to make less likely relative to the original model, rather than without limit. The authors show that collapse comes exponentially more slowly than with gradient ascent. On the TOFU benchmark (see below), it is the first method to reasonably forget 50% of the targeted data, while earlier ones already struggled at 10%.
Negative Preference Optimization: From Catastrophic Collapse to Effective Unlearning"Who's Harry Potter?": making a model forget a saga
In 2023, Ronen Eldan and Mark Russinovich (Microsoft Research) tried to make the 7-billion-parameter Llama 2 model forget the Harry Potter books. Their method has three steps.
- They train a copy of the model even more on the books, to spot the words whose probability rises most: those are the words specific to the saga.
- They replace the distinctive expressions in the texts (names, places, spells) with generic equivalents, and ask the model what it would then predict: this yields "answers from someone who hasn't read the books".
- They fine-tune the model on these substitute answers.
The reported result: about one GPU hour, against more than 184,000 for pretraining, with scores on general tests almost untouched. Asked "who is Harry Potter?", the model gives a vague answer.
Who's Harry Potter? Approximate Unlearning in LLMsBut a more thorough evaluation in 2024 showed that more knowledge than normal could still be extracted with other phrasings, that the model did as well as the original on quizzes about the saga, and that the forgetting spilled over into neighboring domains.
Eight Methods to Evaluate Robust Unlearning in LLMsRMU and the WMDP benchmark: forgetting the dangerous
The WMDP benchmark (2024, Center for AI Safety and a consortium of researchers) contains 3,668 multiple-choice questions on biosecurity, cybersecurity and chemical security. They act as a thermometer for dangerous knowledge without giving any away themselves: they were filtered before release.
The same authors propose RMU (Representation Misdirection for Unlearning). Instead of acting on the words produced, RMU acts on the model's internal representations, the vectors it computes in its intermediate layers: when the input is about the dangerous topic, those vectors are pushed toward a random direction, as if scrambling the model's thoughts; on everything else, they are left unchanged. The WMDP score falls close to chance (25% with four options) in biology and cybersecurity, while general knowledge is largely preserved.
The WMDP Benchmark: Measuring and Reducing Malicious Use With UnlearningTOFU and MUSE: measuring forgetting
Comparing methods requires benchmarks.
- TOFU (Carnegie Mellon, 2024) invents 200 fictitious authors with 20 question-answer pairs each. A model is taught these authors, then asked to forget some of them. Because they are fictitious, we know the model only knows them from this data, and we can compare it to a model that never saw them. None of the baseline methods the authors tested truly succeeds.
- MUSE (2024) tests forgetting the Harry Potter books and news articles on 7-billion-parameter models, against six criteria: no word-for-word reproduction, no residual knowledge, no leakage of private information, preserved usefulness, ability to handle large volumes, and holding up under successive requests. Most of the eight methods tested prevent reproduction and knowledge to varying degrees, but only one avoids serious privacy leakage, and all of them degrade usefulness or cope poorly with repeated requests.
The limits
Verifying forgetting is very hard
You cannot prove that information has disappeared: you can only observe that you no longer manage to get it out with the questions you tried. Researchers use membership inference attacks (tests that guess whether a text was part of the training data from how the model reacts to it), but a failed attack does not prove forgetting.
The information comes back
This is the best-documented weakness.
- Relearning: in 2024, researchers showed that a small fine-tuning on barely related data is enough to "wake up" what had been forgotten. Public medical articles bring back knowledge about biological weapons; general Wikipedia information about Harry Potter brings back text memorized word for word.
- With ten examples: another team recovered most of the dangerous capabilities erased by RMU by fine-tuning the model on just ten unrelated examples, or by removing certain directions in its internal representations.
- Through simple compression: quantization lowers the precision of the model's numbers to make it lighter. A 2024 study measured that "unlearned" models kept on average 21% of the targeted knowledge at full precision, and 83% after 4-bit quantization.
Forgetting, or keeping quiet?
These results suggest that most current methods do not erase knowledge: they teach the model not to say it. It is the difference between someone with amnesia and someone who refuses to talk. A 2024 paper co-signed by many researchers, with a telling title ("machine unlearning doesn't do what you think"), points out three goals that are often confused: removing specific data, removing all knowledge of a topic, and preventing certain outputs. These are not the same problem, and no method solves all three.
Machine Unlearning Doesn't Do What You Think: Lessons for Generative AI Policy and ResearchSide effects
Forgetting one topic often damages its neighbors: making a model forget Harry Potter can degrade what it knows about English boarding schools or fantasy literature. And each new forgetting request piles on top of the previous ones, with usefulness eroding every time.
The state of research in late 2026
The field is very active, but the diagnosis remains cautious.
- Distill to truly forget. A team showed (NeurIPS 2025) that by distilling an "unlearned" model into a fresh one, that is, having a student that starts from scratch learn its answers, the student resists relearning almost as well as a model trained without the data. Their method, UNDO, gets most of that robustness for a fraction of the cost of retraining.
- Prevention over cure. With Deep Ignorance (August 2025), EleutherAI and the UK AI Security Institute filtered biothreat texts out before pretraining 6.9-billion-parameter models. These models withstand up to 10,000 steps and 300 million tokens of malicious fine-tuning, more than ten times better than after-the-fact methods, which give way within a few dozen steps. A limitation the authors acknowledge: if the information is supplied in the prompt (through a web search, say), the models can still use it.
- Build in compartments. Gradient routing (2024) steers certain knowledge, during training, into a specific region of the network that can later be removed.
- Shared tooling. OpenUnlearning (2025) brings methods and metrics together in a single framework for fair comparison. Research surveys from January and June 2026 list resistance to relearning and verification of forgetting among the open problems.
To our knowledge, as of November 4, 2026, no approximate method guarantees that a large language model has truly forgotten specific data.
The practical alternatives
Meanwhile, teams combine more modest but dependable solutions.
| Approach | What it guarantees | Cost | Limitation |
|---|---|---|---|
| Filter before training | The model never saw the data | Low | Does not handle future requests |
| Output filters and guardrails | The model does not repeat the targeted content | Low | Knowledge stays in the weights; useless if weights are published |
| Versioning and scheduled retraining | The next version will not have seen the data | Part of the normal cycle | Delay until the next version |
| Modular training | Remove the module tied to a source | Medium | Specific architecture, sometimes lower quality |
| Separate LoRA adapter | Removing the adapter removes its contribution | Low | Only if the base model never saw the data |
| RAG instead of training | Deleting the document is enough | Low | Only covers content that is looked up, not learned |
A few details:
- Filtering upstream remains the best defense: remove personal data and dubious content before training, as data governance recommends.
- Guardrails block answers that reproduce a text or a piece of personal data. They work for a model available only through an online interface, not for a model whose weights can be downloaded.
- Version retention (see the model registry): know which data went into which version, exclude withdrawn data at the next training run, and retire old versions. Since models are retrained regularly anyway, this is often the most realistic route.
- Modular training: FlexOlmo (AI2, July 2025) trains separate "experts", each on one owner's data, which can be included or excluded at usage time without retraining.
- A LoRA adapter is a small add-on layer of parameters attached to an existing model. If licensed data is only used to train that adapter, removing it removes the data's contribution.
- RAG (retrieval-augmented generation) keeps the content in a document store that the model consults when answering. For content under a revocable license, such as news articles, it is the simplest choice: when the license ends, you delete the documents.
Why it matters
Erasure requests, expiring licenses and content takedowns will multiply as models become part of everyday life. Unlearning promises to handle them without starting over, but in 2026 that promise is only partly kept: approximate methods reduce what the model says without guaranteeing what it knows. Grasping this nuance avoids two opposite mistakes: believing you can erase data from a model as easily as from a database, or believing nothing can be done. The practical answer combines prevention upstream, architectures that isolate sensitive data, output guardrails and scheduled retraining.
Key takeaways
- In a model, information is diffuse in the weights: you cannot delete a data point like a database row.
- Only retraining without the data guarantees exact forgetting, but it is prohibitively expensive; SISA cuts that cost by splitting up training, at the expense of quality for large models.
- Approximate methods (gradient ascent, NPO, Who's Harry Potter, RMU) modify the existing model and are measured on benchmarks such as TOFU, MUSE and WMDP.
- Their big weakness: knowledge comes back after a small fine-tuning, or even after mere quantization; they often teach the model to keep quiet rather than to forget.
- Filtering before training holds up far better than unlearning afterwards, as Deep Ignorance showed in 2025.
- In practice: guardrails, versioning, removable modules or adapters, and RAG for content under revocable licenses.
1. Why can't you 'delete' a book from a language model the way you delete a row from a database?
2. What did the 2024 work on relearning show?
3. What is the principle of SISA, proposed by Bourtoule et al. in 2019?
4. A service wants to use news articles under a license the publisher can revoke. Which approach makes revocation easiest?