Suppose you ask a company to delete your photos. They remove them from their servers. But a model they trained last year learned from those photos, and deleting the files does nothing to the model.
Machine unlearning asks: can we update a trained model so that specific data no longer has any influence, without throwing the model away and starting over? This post explains the problem, the main approaches, and how to tell whether forgetting actually worked.
Why deleting the file is not enough
When a model trains, it does not keep a copy of your photo. It adjusts millions of internal numbers a tiny bit so it does better on examples like yours. Those adjustments stay in the model, and in every copy, backup and product built on it, long after the original file is gone.
That matters because privacy laws such as the GDPR give people the right to have their data erased. It also matters when data turns out to be wrong, copyrighted or deliberately poisoned. Machine unlearning is the study of how to remove what a model learned from specific data, without starting over.
What forgetting should mean
Call the full training set , the part someone wants removed the forget set , and everything else the retain set, .
The goal is not just to make the model worse on the forgotten examples. It is to end up with a model that behaves as if had never been in the training set at all.
The honest answer: retrain from scratch
The cleanest way to forget is to throw the model away and train a new one on the retain set only. By construction, it never saw the deleted data. This is the gold standard that every other method is measured against.
The problem is cost. Training a large model can take days or weeks of expensive hardware. If deletion requests arrive every day, retraining every time is not realistic.
Exact and approximate forgetting
Exact unlearning guarantees the result is just as if you had retrained without the data. Because training itself involves randomness, “the same” means the same range of possible outcomes, not identical numbers.
Approximate unlearning settles for getting close to retraining, within a measurable margin. It is much faster and works on large neural networks, but raises a hard question: how close is close enough, and how could an outsider check?
A warning: fine-tuning a model until it stops saying something is not the same as forgetting it. The information may still be inside and easy to bring back.
How unlearning is done
- Plan for deletion from the start. Split the data into separate pieces and train one small model per piece, then combine their answers. A deletion only means retraining the piece that held the data. This is called SISA.
- Undo the effect directly. Estimate how the model’s numbers would have been different without certain examples, and shift them back. Neat in theory, harder to trust in very large networks.
- Train it to forget. Briefly train the model to do worse on the forget set while staying good on the retain set. Fast, but approximate.
- Limit what any one example can teach. Training with privacy-preserving methods caps how much a single record can change the model, so later removal has less to undo.
The right method also depends on what is being forgotten: one photo, one person, a whole category, a visual style or a batch of poisoned data are very different jobs.
How to check it worked
There is no single “forgetting score”. A careful check compares the unlearned model with two others: the original, and a model properly retrained without the deleted data.
- Forgetting: on the deleted examples, behave like the retrained model, not simply break.
- Usefulness: stay good on everything else.
- Privacy: an attacker testing whether an example was in the training set should not be able to tell.
- No easy relearning: a little extra training should not instantly bring the forgotten knowledge back.
- Cost: report the time and memory used, compared with full retraining.
Forgetting in federated learning
In federated learning, many participants train one shared model without sharing their data. If one participant leaves, or turns out to have sent harmful updates, their influence is mixed into many rounds of averaging, and the server never had their data in the first place.
Options include replaying training from saved checkpoints without that participant, subtracting an estimate of their contribution, or retraining only the affected rounds. Because every participant’s data is different, removing one can also shift how well the model works for the others.
Where it quietly fails
Unlearning can fail without anyone noticing. Answers may change while the knowledge is still recoverable inside the model. Overall accuracy may look fine while a small group of users is hurt. Many approximate deletions in a row can add up. And old copies of the model may live on in backups or other products.
So unlearning is not only an algorithm. It also needs records of which data went into which model, sensible checkpoint and backup policies, and honesty about what kind of guarantee is actually being given.
A practical checklist
- Decide what must be forgotten. One record, one person, a category, a concept, or everything built from it?
- Choose the guarantee first. Exact, approximate with a proof, or tested in practice?
- Keep a retrained reference. Even at small scale, it shows what “forgotten” should look like.
- Test more than accuracy. Include privacy attacks, effects on different groups, and relearning.
- Track every copy. Models, adapters, search indexes, caches, logs and backups all need a deletion plan.
- Be honest about uncertainty. “Forgotten” should never mean “we stopped checking”.