Problemresearch
Machine unlearning
Also called data deletion from models.
Remove the effect of chosen training points from a trained model, so that it matches a model trained without them.
- Origin
- Yinzhi Cao, Junfeng Yang, Antonio Ginart, James Zou, Chuan Guo, Laurens van der Maaten, Lucas Bourtoule, Nicolas Papernot, 2015
Machine unlearning is the problem of removing the effect of some training points from a trained model, at less cost than training again, so that the result is the model, or the distribution of models, that training without those points would give. Retraining from scratch always solves it and is the baseline; the question is how much faster an algorithm can be, and what it must store. The problem has an exact form (Ginart et al. 2019: the same distribution as retraining) and an approximate form in the style of differential privacy (Guo et al. 2020: certified removal). It matters for the right to erasure in data protection law, for removing poisoned or wrong points found after training, and for the privacy of people who leave a dataset.
In plain words
A model is trained on many records. Later someone asks that their record be deleted. Deleting the record from the database is easy. But the model has already learned from it, and it may still remember it.
The sure way to forget is to train a new model on the data that is left. That can take days for a large model, and requests may come every hour. Machine unlearning asks for a faster way that gives the same result as training again, or a result that nobody can tell apart from it.
Some models make this easy. A model that only keeps a total of the records can subtract the deleted record from the total. Other models mix every record into every number they hold, and for them the only exact methods either keep extra data or train parts of the model again.
Definition
Let be the set of datasets, finite multisets of records from a universe . A learning algorithm maps a dataset to a model in a set ; it may be randomized, and it may also output a state (stored data, checkpoints, statistics) beside the model. A deletion request is a subset .
Exact unlearning (Ginart et al. 2019). An unlearning algorithm takes , the output of on , and , and returns a model and a new state. It is exact if for every and every ,
equality in distribution of the model and the state. For a deterministic this says that returns exactly the model of training on .
Approximate unlearning (Guo et al. 2020, certified removal). For and , is an -certified removal for if for every , every and every measurable set of models,
Guo et al. state the case as two ratio bounds and ; the form above is the same with added, as in approximate differential privacy.
Cost. The cost of is its time per request (or per batch of requests) and the size of the state , compared with the time of on . An algorithm is useful when the time per request is much smaller than retraining, amortized over a stated sequence of requests.
Variants
- One request, a batch, or a sequence. A sequence of requests may be adaptive: a user may choose what to delete after seeing the published models. Gupta et al. and later work treat this case; a guarantee for one request does not compose for free.
- Deterministic exact unlearning. The model must be bit for bit the model of retraining with the same random seed. SISA training meets this.
- Distributional exact unlearning. Only the distribution must match (Ginart et al.), which allows randomized algorithms such as quantized k-means.
- Certified (approximate) unlearning. An bound as above, for example for L2-regularized linear models (Guo et al. 2020).
- Heuristic unlearning. Fine-tuning on the remaining data, or ascent on the loss of the deleted points, with no guarantee. These are tested with membership inference after deletion, which can show a failure but cannot prove success.
Examples
A sum can be unlearned exactly. Least squares through the origin in one dimension has . Keep the state . For the points , and , the state is and . To delete , subtract its terms: the state becomes and , which is exactly the result of training on the two points that remain. This is the summation form of Cao and Yang (2015): a learner that reads the data only through sums of per-point terms is unlearned by subtraction, in time independent of . Ridge regression with the state works the same way in per deleted point plus one solve.
The median cannot be unlearned from the median alone. The datasets and have the same median . Delete from each: the medians of what is left are and . So no algorithm that is given only the median and the deleted point can return the right answer for both. An exact unlearner for the median must keep more state, for example the sorted data in a balanced search tree, with time per deletion.
A differentially private learner certifies removal by doing nothing. If is -differentially private under the add/remove relation, then and are neighbors, and the identity satisfies both inequalities of certified removal for one request, by the definition of DP. For requests the bound degrades as in the group privacy theorem. The price is the loss of accuracy that DP costs.
Known algorithms
- Retraining from scratch. Exact, with the time of training on per request and no extra state beyond the data.
- Summation form (Cao and Yang 2015). Exact for learners that use only sums of per-point statistics: naive Bayes, linear and ridge regression, and statistical query learners.
- SISA training (Bourtoule et al. 2021). Exact and deterministic for any learner: split the data into disjoint shards, train one model per shard in slices with checkpoints, and aggregate the predictions; a deletion retrains one shard from the checkpoint before the slice that held the point. See SISA training.
- Deletion efficient k-means (Ginart et al. 2019). Quantized k-means, which keeps the output unchanged unless a deletion moves a center across a quantization cell, and divide and conquer k-means, which keeps a tree of sub-problems; both are exact in distribution, with an amortized deletion time well below retraining for their stated settings. See k-means.
- Certified removal for linear models (Guo et al. 2020). For an L2-regularized convex loss, remove by one Newton step , where is the Hessian of the loss on , and train with a random linear term added to the objective so that the small residual gradient of the Newton step is hidden; this gives -certified removal under their assumptions on the loss.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| SISA training | O(E d n R) build | O(S R d) extra | deterministicexactonlineiterative | 1 language |
Bounds
- Upper bound. Retraining gives exact unlearning at the cost of training; no algorithm needs more.
- State lower bounds. For a deterministic , an exact unlearner that keeps state must be able to compute from and for every allowed . So must determine all those models; the median example above shows that the model alone is often not enough. The size of needed depends on the learner and has no general formula.
- Approximate unlearning and privacy. A DP learner gives certified removal of one point with no extra time, with the identity as ; the converse is false, since a learner that is not private at all can still have a certified removal algorithm. A certified removal guarantee is a statement about distributions, so like DP it holds against every later test, including membership inference.
Reductions
- To retraining. Every instance reduces to training on , in the time of .
- From differential privacy. An -DP learner under add/remove is an -certified removal for one request with the identity as (Examples above).
- To partition and aggregation. A learner that can be split into independent parts, each trained on a disjoint subset, reduces exact unlearning to retraining one part. This is the design of SISA, and the same partition gives a certificate against poisoning (data poisoning).
Applications
- The right to erasure. Article 17 of the EU General Data Protection Regulation gives a person the right to have personal data erased. Whether that right extends to models trained on the data is a legal question; unlearning gives a technical way to meet the strongest reading.
- Removing bad data. Points found later to be poisoned, mislabeled or obtained without consent can be removed without a full retrain (Cao and Yang 2015 name pollution attacks as one motive).
- Privacy audits. Unlearning is tested by comparing the model after deletion with retrained models, and by membership inference on the deleted points.
References
- Yinzhi Cao and Junfeng Yang, Towards making systems forget with machine unlearning, IEEE Symposium on Security and Privacy 2015, pages 463 to 480, the problem, the summation form of statistical query learners, and unlearning by subtracting the terms of the removed points
- Antonio Ginart, Melody Y. Guan, Gregory Valiant and James Zou, Making AI forget you, data deletion in machine learning, Advances in Neural Information Processing Systems 32 (NeurIPS) 2019, arXiv:1907.05012, the definition of a deletion operation whose output has the distribution of retraining, and the deletion efficient k-means algorithms (quantized and divide and conquer)
- Chuan Guo, Tom Goldstein, Awni Hannun and Laurens van der Maaten, Certified data removal from machine learning models, Proceedings of the 37th International Conference on Machine Learning (ICML), PMLR 119, 2020, pages 3832 to 3842, the definition of epsilon-certified removal, the Newton step removal for L2-regularized linear models, and the loss perturbation that hides the residual gradient
- Lucas Bourtoule, Varun Chandrasekaran, Christopher A. Choquette-Choo, Hengrui Jia, Adelin Travers, Baiwu Zhang, David Lie and Nicolas Papernot, Machine unlearning, IEEE Symposium on Security and Privacy 2021, pages 141 to 159, SISA training, the cost of a deletion, and the discussion of what unlearning must guarantee
- Varun Gupta, Christopher Jung, Seth Neel, Aaron Roth, Saeed Sharifi-Malvajerdi and Chris Waites, Adaptive machine unlearning, Advances in Neural Information Processing Systems 34 (NeurIPS) 2021, deletion requests that depend on the published models, and why guarantees for fixed requests do not carry over
- Regulation (EU) 2016/679, the General Data Protection Regulation, Article 17, the right to erasure
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag XG7BKF Edit this page History Report an error Markdown