# Machine unlearning

> Canonical: https://skillalmanac.com/glossary/machine-unlearning | Last verified: 2026-11-25 | Index status: index-eligible

Machine unlearning is the research problem of making a trained model forget specific training data, so that it behaves as if that data had not been used, without always retraining the whole model from scratch.

Also called: unlearning AI, model unlearning, right to be forgotten AI, LLM unlearning, forgetting training data.

## In plain language

Deleting a stored record and removing its training influence are different tasks. In parameterized models such as neural networks, learning changes numerical weights rather than just adding a table row. Other model types differ: instance-based methods such as nearest-neighbor classifiers can retain training examples. If someone asks for their data to be removed, one fix is to retrain the model without it, which can be slow and costly for big models. Machine unlearning looks for faster ways to get a similar result. The field is active, and results depend on the method and the model, so removal claims need checking rather than trusting.

## Technical definition

Bourtoule et al. introduce SISA training, a framework that expedites unlearning by limiting the influence of each data point during training, in the abstract's words. Their abstract notes that it is generally difficult for users to revoke access to data. The survey by Nguyen et al. says that regulations call for personal information to be removed from computer systems and from models, that deleting back-end records is not enough because models often remember old data, and that attacks can reveal whether an instance was in the training data. It also says existing work has not fully solved the problem, partly for lack of common frameworks.

## How it shows up when you use agents

Machine unlearning concerns whoever trains a model; as a user of a hosted model you do not control its training data. It matters when you decide what data goes into a model or a pipeline, and when someone asks you to remove their data after the fact.

Be clear about where your data sits. You may be able to delete stored prompt, retrieval-index or memory records under your control. Check the provider’s retention rules and other copies separately; deleting one record does not establish that every retained copy is gone. Material that went into [training data](/glossary/training-data) is different: it has already shaped the model. For a model you [fine-tune](/glossary/fine-tuning) yourself, the straightforward option is to retrain from a cleaned dataset.

What breaks when it is misunderstood: a team deletes a file from storage and tells a customer their data is gone from the system, while a model trained on it still exists. The survey by Nguyen et al. states that deleting from back-end databases is not enough because models often remember old data.

Next action: keep a record of which datasets fed which model version, review redacted data for missed identifiers before sharing or training, and test any unlearning claim separately from deletion of stored copies. See [AI privacy](/glossary/ai-privacy).

## Common confusions

- **Unlearning versus deleting data.** Deleting a controlled stored copy is different from removing all retained copies or training influence. Unlearning targets influence on the trained model.
- **Unlearning versus retraining.** Retraining from scratch without the data is one option; the papers cited propose cheaper alternatives. Methods such as SISA training aim to reduce how much has to be retrained.
- **Unlearning versus the right to be forgotten.** The survey's abstract mentions the right to be forgotten alongside regulations. Unlearning is one technical response to it, and the survey says current work has not fully solved the problem.
- **Myth.** A model told to ignore something has unlearned it. Instructing a model in a prompt does not change what it learned in training.

## Worked examples in this catalogue

### [sensitive-data-redaction](https://skillalmanac.com/skills/skill-almanac/sensitive-data-redaction)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill replaces emails, phones, cards, IBANs, keys, IPs and listed names in a file with consistent placeholders before you share it.

Why it exercises the concept: Before later sharing, this skill replaces detected patterns and listed names, reducing specified exposure. It can miss unlisted names or identifying context and does not guarantee anonymization or avoid every later unlearning need. It does not alter trained models. Illustrative only.

### [Redact a PDF Without Leaving the Text Behind](https://skillalmanac.com/learn/redact-a-pdf-without-leaking-text)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A guide saying a drawn black box does not remove PDF text: mark the areas, apply redactions, then extract the text again to confirm nothing is left.

Why it exercises the concept: It shows the same lesson at file level: hiding is not removing, and removal needs a check. The guide is about PDFs, not models. Illustrative only.

### [huggingface-datasets](https://skillalmanac.com/skills/huggingface/huggingface-datasets)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill reads Hugging Face datasets through the Dataset Viewer API: metadata, rows, search and filters.

Why it exercises the concept: Public datasets are one source of training data. Deleting a row from a dataset does not change a model already trained on it. The skill reads data and does not unlearn anything. Illustrative only.

## Related terms

- [Training data](https://skillalmanac.com/glossary/training-data.md)
- [AI privacy](https://skillalmanac.com/glossary/ai-privacy.md)
- [Model weights](https://skillalmanac.com/glossary/model-weights.md)
- [Fine-tuning](https://skillalmanac.com/glossary/fine-tuning.md)
- [Machine learning (ML)](https://skillalmanac.com/glossary/machine-learning.md)
- [AI governance](https://skillalmanac.com/glossary/ai-governance.md)

## Sources

- [Machine Unlearning - Bourtoule et al., arXiv v3, 2020](https://arxiv.org/abs/1912.03817), arXiv (accessed 2026-11-24)
- [A Survey of Machine Unlearning - Nguyen et al., arXiv v6, 2024](https://arxiv.org/abs/2209.02299), arXiv (accessed 2026-11-24)
- [Nearest-neighbor classification: instance-based learning](https://scikit-learn.org/stable/modules/neighbors.html#nearest-neighbors-classification), scikit-learn (accessed 2026-11-25)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
