Machine unlearning

Teaching a Model to Forget

16 September 2026 · 9 min read

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.

Top: a dataset containing your photo is used to train a model, which absorbs something from it. Bottom: the photo is deleted from the dataset, but the model still contains what it learned.1. Trainingyour phototrainsmodellearned fromyour photo2. You ask for deletiondeletedmodel notretrainedmodelstillremembers
The model learned from your photo during training (rose dot). Deleting the photo from the database afterwards does not touch the model, so what it learned is still inside.

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 D\mathcal{D}, the part someone wants removed the forget set Df\mathcal{D}_f, and everything else the retain set, Dr=D∖Df\mathcal{D}_r = \mathcal{D} \setminus \mathcal{D}_f.

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 Df\mathcal{D}_f 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.

Horizontal bars comparing cost. Retraining from scratch takes days or weeks. Retraining one shard takes a fraction of that. Approximate unlearning takes minutes.Retrain from scratchdays or weeksRetrain one sharda fractionApproximate unlearningminutes
Illustrative, not measured: the rough cost of honouring one deletion request with each approach. Exact numbers depend on the model and data size, but the gap is often this large.

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
Training data split into four shards. Each shard trains its own model, and the models’ answers are combined. The deleted record sits in shard 2, so only model 2 is retrained.Training data, split into shardsshard 1shard 2shard 3shard 4retraincombine answers
Sharded training (SISA). The data is split into separate pieces, each training its own small model, and their answers are combined. Deleting a record means retraining only the one model that saw it.

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.

Accuracy on the deleted examples: the original model 97 percent, a model retrained without them 72 percent, good unlearning 70 percent, and over-forgetting 4 percent. A dashed target line sits at the retrained reference.Accuracy on the deleted examplestarget: as if never seen97%Originalmodel72%Retrainedreference70%Goodunlearning4%Over-forgetting
Illustrative numbers. The goal is not zero accuracy on the deleted data. A model that never saw it would still do reasonably well on similar examples, so good unlearning lands near that retrained reference. Collapsing to near zero is suspicious: it reveals that something was deliberately removed.
  1. Forgetting: on the deleted examples, behave like the retrained model, not simply break.
  2. Usefulness: stay good on everything else.
  3. Privacy: an attacker testing whether an example was in the training set should not be able to tell.
  4. No easy relearning: a little extra training should not instantly bring the forgotten knowledge back.
  5. 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

  1. Decide what must be forgotten. One record, one person, a category, a concept, or everything built from it?
  2. Choose the guarantee first. Exact, approximate with a proof, or tested in practice?
  3. Keep a retrained reference. Even at small scale, it shows what “forgotten” should look like.
  4. Test more than accuracy. Include privacy attacks, effects on different groups, and relearning.
  5. Track every copy. Models, adapters, search indexes, caches, logs and backups all need a deletion plan.
  6. Be honest about uncertainty. “Forgotten” should never mean “we stopped checking”.

References

  1. Bourtoule et al. Machine Unlearning (SISA training) (2019). Paper
  2. Guo et al. Certified Data Removal from Machine Learning Models (2020). Paper
  3. Ullah et al. Machine Unlearning via Algorithmic Stability (2021). Paper