For the complete documentation index, see llms.txt. This page is also available as Markdown.

Unlearning

Machine unlearning (MU) refers to the challenge of erasing a data point's influence on the input-output mapping of an ML model. Privacy and fairness sometimes demand that a model forget, and retraining from scratch is rarely an option. The page moves from the papers that define the problem, to Medium posts that explain it, to the GitHub code that implements it, and ends with the community competition that tests it.

The same notes are in Large Language Models (LLMs).

Papers

The field is young enough that a survey is the right first read. (really good) A survey of MU, "A Survey of Machine Unlearning", starts from the fact that computer systems hold large amounts of personal data that can threaten user privacy and weaken trust between humans and AI, and that recent regulations now require private information about a user to be removed on request. From there, Existing literature on MU collects the papers, and the Kaggle notebook Machine Unlearning: The Right to be Forgotten, built on the 2023 Kaggle AI Report, walks the algorithms.

The broadest map is (really good) Awesome MU on Github (website)- a collection of academic articles, published methodology, and datasets on the subject of machine unlearning. model agnostic, intrinsic, and data-driven approaches, evaluation metrics, and datasets. The figure below is its taxonomy.

Awesome machine unlearning.

For language models, the reference case is "Who's Harry Potter? Approximate Unlearning in LLMs" on Arxiv: LLMs trained on internet corpora often contain copyrighted content, and the paper proposes unlearning a subset of the training data without retraining from scratch. The paper is described by Microsoft Research, and Jesus Rodriguez's medium post looks inside that fine-tuning method for unlearning concepts in LLMs.

Other methods trade exactness for speed. fast yet effective MU is "Fast Yet Effective Machine Unlearning", and one shot MU is "Zero-Shot Machine Unlearning". Two Springer reviews widen the view: A review on MU and Machine Un-learning: An Overview of Techniques, Applications, and Future Directions. The exact approach is Machine Unlearning, which starts from the point that once users share data it is hard to revoke, that any model trained on it may have memorized it, and introduces SISA training to make unlearning tractable.

Medium

The papers are dense; the Medium posts explain the same ideas with practical angles. A fresh perspective on machine unlearning, with a real-world solution! a solution that uses three of the following approaches. Data Augmentation, Weight Decay, Fine-Tuning, Selective Retraining, and Neural Architecture Modifications.

Christopher Choquette's series asks What is MU? Part 1 starts from why privacy regulation such as the ‘right to be forgotten’ matters and defines the key terms, and part 2 compares the different methods of unlearning.

GitHub

Once a method is chosen, the code is on GitHub. A plain repository search gives the search results for unlearning. For the exact method, this repository contains the core code used in the SISA experiments of our Machine Unlearning paper along with some example scripts. Implementations of various data deletion methods also used to be here; that repository is kept at the end of the page.

Measuring whether a model really forgot is its own problem, and the Evaluation Doc. collects related work on unlearning evaluation, from data deletion in k-means to certified and approximate data removal. This repository contains the code used in our experiments of our paper on Evaluating Machine Unlearning in the src/ folder along with some sample scripts in the scripts/ folder; the paper is "Towards Adversarial Evaluations for Inexact Machine Unlearning".

Two more entries close the list, the SCRUB repo for unbounded machine unlearning and the Chris Waites data-deletion repository:

  1. This is a Python implementation of "Towards Unbounded Machine Unlearning"

  2. data deletion

Community

The code is tested in public. NeurIPS 2023 Kaggle - Machine Unlearning Erase the influence of requested samples without hurting accuracy.

  • paper. This address no longer opens: https://browse.arxiv.org/pdf/2310.02238

  • Implementations of various data deletion methods.. This address no longer opens: https://github.com/ChrisWaites/data-deletion?tab=readme-ov-file

Last updated

Was this helpful?