How Does Machine Unlearning Work?
A 11-minute read
Machine unlearning tries to remove specific data from a trained model without retraining it. Most methods only approximate this, and experts debate it.
In May 2018, when the GDPR became enforceable across the European Union, Article 17 gave people the right to have their personal data erased. The drafters were picturing databases. Deleting a row from a database is a lookup and a write, and the row stops existing. Deleting a person’s influence on a neural network with hundreds of billions of parameters is a completely different operation, and there was no button for it. Machine unlearning is the field that grew up in the space between what the law asked for and what the hardware could deliver.
The short answer
Machine unlearning is the practice of removing specific data, concepts or capabilities from an already-trained model without retraining it from scratch. The goal is a model that behaves as closely as possible to one that never saw the deleted material in the first place. In practice, most methods approximate that goal by fine-tuning the model until it stops producing the forgotten behavior, and almost none of them reach it cleanly.
The full picture
Deleting a row is not the same as deleting an influence
A database row lives in one place. If you delete it, it is gone, and there is no residual. Model weights are different. Training is a compression process, and the compressed result does not preserve a clean mapping from any single input to any single output. What survives is a set of statistical tendencies, some of which encode the specific data that was removed.
Legal scholar Tiffany C. Li describes what remains as the “algorithmic shadow” of the training data. The data is gone from the storage layer, but its influence persists in the parameters, and any future use of the model carries that shadow forward. That is why data deletion, which is what Article 17 literally requires, is not sufficient when the data was used to train a model.
The shadow is not theoretical. When Carlini and colleagues extracted training data from GPT-2, they recovered hundreds of verbatim sequences, including names, phone numbers, email addresses, IRC conversations and 128-bit UUIDs, some of which appeared in exactly one document in the training set. They also found that larger models were more vulnerable than smaller ones.
What the law actually asks for
Article 17 of the GDPR does not mention AI, because it was adopted on 14 April 2016, before the current generation of models existed. It gives data subjects the right to erasure on five grounds: the data are no longer necessary, consent was withdrawn, the controller has a legal erasure duty, the data were collected for information society services the subject no longer wants, or the data were unlawfully processed. It also carves out exceptions where processing is required by law, needed for public health, or necessary for archiving and research.
The EDPB Opinion 28/2024 on AI models, adopted on 17 December 2024, is the closest thing regulators have come to a technical position. It lists post-training techniques that remove or suppress personal data among the measures that can accelerate the exercise of individual rights in the deployment phase, and it suggests controllers should let people submit claims of data regurgitation or memorization so that unlearning techniques can actually be tested against those claims. That is not a compliance rule.
In the United States the equivalent tool has a different name. The Federal Trade Commission has used “algorithmic disgorgement” as an enforcement remedy, which means not just deleting the offending data but requiring that models trained on it be rebuilt. Machine unlearning is the proposed cheaper alternative to that remedy, which is precisely why its credibility matters.
Exact unlearning and the SISA trick
The gold standard is exact unlearning: produce a model that is statistically indistinguishable from one trained from scratch on the retained data alone. In 2019, Guo and colleagues defined certified removal for linear classifiers, which mathematically bounds how much an observer can tell the difference between a model that had the data removed and one that never saw it.
For neural networks, exact unlearning is impractical because retraining is expensive. The most influential attempt to change that arrived in 2019 with SISA training, from Bourtoule and colleagues. SISA stands for Sharded, Isolated, Sliced, Aggregated, and it works by changing how a model is trained rather than trying to undo the training afterwards. Data is split into disjoint shards, each shard trains its own sub-model with nothing shared between them, and checkpoints are stored after each slice within a shard. When a deletion request arrives, only the shard holding the target data is rebuilt, and only from the nearest checkpoint forward. At inference, the shard outputs are aggregated by majority vote or averaging.
The savings are real but bounded. SISA reduced time-to-unlearn by 4.63 times on the Purchase dataset and 2.45 times on SVHN relative to retraining from scratch. The cost is in accuracy and generalization, plus the storage overhead of intermediate checkpoints, which is why this works for models you train yourself rather than the giant pretrained ones most companies actually deploy.
The approximate toolkit
Everything else is approximate unlearning, and it dominates practice. The 2026 survey of unlearning methods for large language models groups them into data-centric, parameter-centric, architecture-centric and hybrid families, but the individual techniques are easier to grasp as recipes:
Gradient ascent fine-tunes the model by maximizing its loss on the forget set, degrading performance on exactly the data you want gone. It is the most direct approach and the most unstable. Gradient difference runs ascent on the forget set and descent on the retain set simultaneously, using the retain objective as a regularizer to hold the rest of the model in place. Random labeling retrains on the forget set with shuffled labels, which confuses the association without the violent weight swings that plain ascent causes.
KL divergence regularization anchors the unlearned model’s outputs to the original model’s outputs on retained data. Weight pruning removes the parameters with the smallest L1 norm, on the theory that they are least tied to general knowledge and most tied to the forget set, then fine-tunes to recover utility. Layer reset re-initializes the first or last few layers and fine-tunes, which is blunt but nearly free. Selective synaptic dampening uses influence functions to estimate which individual training examples moved which parameters, then applies a targeted update to undo those specific moves.
Newer work pushes toward attacks rather than losses. CE-U replaces the gradient-ascent loss entirely, arguing that ascent suffers vanishing gradients when the model is confident and exploding gradients when it is not. AMUN fine-tunes the model on adversarial examples crafted to sit closest to each forget sample, localizing the change to the decision boundary instead of damaging the whole network. Attack-and-Reset uses adversarial noise to generate a parameter mask, resetting the parameters biased toward the forget set. All of them share a weakness worth naming plainly: a model can learn to suppress an output without removing the underlying representation, and no loss function on its own can tell the difference.
Removal and suppression are not the same thing
The literature draws a sharp line here, and many researchers treat it as the central distinction in the field. Removal means eliminating the influence of specific training data on the model parameters. Suppression means preventing the model from generating specific outputs, however the knowledge happens to be encoded. Removing training data does not guarantee suppression, and suppressing outputs does not constitute removal.
Several 2026 papers show how far apart the two can drift. One study of output-space behavior compared multiple unlearning methods against a population of models retrained from scratch and found that standard output-level evaluation systematically overestimates success, with methods appearing forgotten at the output layer while showing a structured mismatch in representation space. Another showed that forgetting measured on a benchmark does not survive translation: querying a model in a different language or script recovered forgotten information across several multilingual model families. A third demonstrated that unlearned models stay vulnerable to retraining attacks, where suppressed malicious behavior resurfaces after a single benign fine-tuning, because the model had activated dormant parameters as spurious suppressors over intact knowledge.
That last failure mode is the alarming one. A suppression-based unlearning looks like success on the dashboard while the knowledge is still there.
How anyone would know whether it worked
The evaluation problem is harder than the training problem, and the field has built a benchmark to expose it. TOFU, a Task of Fictitious Unlearning, published in January 2024, constructed 200 fictional author profiles with 20 question-and-answer pairs each, generated by GPT-4, and defined forget sets covering 1, 5 and 10 percent of the data with matching retain sets. The retain sets exist so that researchers can train an oracle model, the ground truth for what the unlearned model ought to look like. The paper’s headline finding was blunt: none of the tested baselines produced effective unlearning.
The TOFU dataset repository makes this reproducible, and the pattern of failure has become clearer since. Multimodal evaluation work identified three distinct traps: the absence of held-out evaluation that separates genuine concept-level forgetting from instance-level overfitting, reliance on synthetic fine-tuned knowledge rather than knowledge acquired in pretraining, and unfair comparisons when methods are given different training budgets.
The adversarial angle is where unlearning looks least like a solved problem. Unlearn and Burn assumed the data requested for removal might never have been in the training set at all, and showed that an attacker could file such requests until model accuracy collapsed, reaching 3.6 percent on CIFAR-10 and 0.4 percent on ImageNet under white-box attacks. A reconstruction attack on undeleted data showed the opposite danger: a mechanism that perfectly mimics retraining can let someone who controls only a handful of data points reconstruct nearly the whole dataset simply by issuing deletion requests. A deletion API is only as safe as the controls on who may call it.
Why it matters
The reason this field exists is arithmetic. When Lambda Labs estimated the cost of training GPT-3 in 2020, it put the figure at roughly 4.6 million dollars and 355 years on a single GPU. A company facing a deletion request cannot simply retrain, so it will pick a cheaper method, and the cheaper method will be the approximate one. The gap between what the law requires and what is computationally feasible is not academic; it is exactly where compliance decisions get made under deadline.
The stakes are also higher than privacy alone. Unlearning has become a tool for removing hazardous capabilities that survived data filtering, for correcting poisoned training data, and for stripping copyrighted material scraped into training corpora without a license. The same technique pointed at image generation models is called concept erasure, and 2026 auditing work showed that erased image concepts remain recoverable from internal representations even when the erasure method was specifically hardened against adversarial prompts. When the same trick is used to remove a dangerous capability from a language model, a shallow erasure is a safety problem, not a paperwork problem.
And the boundary of the technique is still expanding outward. For a standalone model, unlearning lives in the weights. For an agent, it does not stop there. Research on unlearning for LLM agents observes that forgotten information may persist in agent memory artifacts or be reconstructed from retained context, so parameter-level unlearning is insufficient on its own. A larger survey from September 2026 maps a five-layer framework spanning removal requests, system boundaries, target locations, interventions and supported claims, and concludes that evidence from model evaluations is not yet sufficient to establish removal across external state and subsequent updates. Unlearning has to expand from a model technique into a system property.
Common misconceptions
“If the model will not say it anymore, it has been deleted.” This is the output-suppression confusion, and it is the field’s most persistent error. A model can learn an inhibition that suppresses the answer while leaving the representation fully intact. Evidence for this is now strong: forgetting measured in one language does not transfer to another, latent-space audits recover concepts that appear erased, and one benign fine-tune can bring suppressed behavior straight back. Verification has to be adversarial and multi-path, not a single prompt.
“Retraining from scratch is the only way to delete data properly.” Retraining is the only way to get the exact guarantee, but it is not the only way to get a defensible one. SISA training rebuilds only the affected shard, certified removal proves indistinguishability for a restricted class of models, and approximate methods dominate the field in practice because the alternative is unaffordable. The honest framing is that these methods trade a formal guarantee for a large cost reduction, and a company that presents an approximate method as if it were exact has a compliance problem regardless of the engineering.
“Unlearning is a privacy tool, nothing more.” Privacy is where it started. It is now also a safety tool, a copyright tool, a data-quality tool and a security tool. Removing a hazardous capability, correcting a poisoned dataset, stripping an artist’s work from a training corpus and undoing a manipulation attack are all the same operation pointed at different targets. A regulator who sees unlearning framed as a privacy-only mechanism will reach for different remedies than one who understands it as general-purpose model surgery.
Key terms
Forget set: The specific training examples, concepts or behaviors that a deletion request asks a model to remove.
Retain set: The training data that must survive the unlearning operation intact, usually everything outside the forget set.
Exact unlearning: Producing a model that is statistically indistinguishable from one retrained from scratch without the forget set. Strongest guarantee, highest cost.
Approximate unlearning: Producing a model that behaves similarly to an exactly unlearned one without paying for a full retrain. Most practical methods live here.
Algorithmic shadow: The residual influence that training data leaves in model parameters even after the underlying data has been deleted from storage.
SISA training: A Sharded, Isolated, Sliced, Aggregated training structure that confines each data point’s influence so that deleting it requires rebuilding only one shard.
Membership inference attack: An attempt to determine whether a specific record was in a model’s training set, used to test whether deletion actually worked.
Certified removal: A mathematical guarantee that a model with data removed cannot be distinguished from one that never observed the data.
Suppression: Preventing a model from emitting a particular output without removing the underlying knowledge. Distinct from removal, and far easier to achieve.
Common questions
What is machine unlearning and why does it exist?
Machine unlearning is the set of techniques for removing specific data points, concepts or behaviors from a model that has already been trained, without retraining it from scratch. It exists because a trained model is not a database: deleting a row from storage removes the data, but the same data may already be encoded in billions of weights. Machine unlearning is the attempt to remove that residual influence.
Is retraining from scratch the only way to truly delete data from a model?
No. Retraining is the gold standard because it produces a model statistically identical to one that never saw the data, but it is also the most expensive option. Structured training systems such as SISA reduce the cost substantially by isolating data into shards and checkpoints so only part of the model needs rebuilding. Most deployed systems use cheaper approximate methods that fine-tune the model rather than rebuild it.
If a model stops producing the deleted information, is it considered unlearned?
Not necessarily, and this is the central controversy in the field. Researchers distinguish removal, which eliminates the influence of specific training data on the parameters, from suppression, which only prevents the model from emitting particular outputs. A model can refuse to recite a deleted fact while still encoding it, which is why newer evaluation work probes models adversarially and in other languages before declaring success.
How do you test whether a model has actually forgotten something?
The standard approach is to compare the unlearned model against an oracle: a model retrained from scratch on the retained data only. If the two behave the same, the unlearning was faithful. The TOFU benchmark built this setup using 200 fictional author profiles with forget sets of 1, 5 and 10 percent, and its headline finding was that none of the tested baselines produced effective unlearning.
That's the distilled version.