Machine Unlearning: A Comprehensive Survey

Weiqi Wang, Zhiyi Tian, Shui YuarXiv 2024 · DOI

Introduction

As global privacy laws like the General Data Protection Regulation (GDPR) establish the "Right to be Forgotten," machine learning models must now be able to "unlearn" specific data points without undergoing costly retraining from scratch. Machine Unlearning (MU) is the process of removing the influence of specific training samples from a model so that the resulting model behaves as if it had never seen that data.

Traditional "naive retraining"—deleting the data and starting over—is computationally prohibitive for modern deep learning. However, simply deleting a row from a database isn't enough; models "memorize" training data in their weights. This survey provides a comprehensive taxonomy of MU, categorizing methods into exact and approximate approaches while highlighting the critical trade-offs between computational efficiency, model utility, and privacy verification.

Taxonomy of Machine Unlearning

The field of machine unlearning can be broadly categorized into centralized and federated approaches, with further subdivisions based on techniques and verification methods.

Taxonomy of Machine Unlearning

Core Challenges

The authors identify three primary hurdles in MU:

  1. Stochasticity: Randomness in training (like weight initialization and dropout) makes it hard to predict exactly how a single data point influenced the final weights.
  2. Incrementality: Training is a sequence; one data point influences the gradients of all subsequent points.
  3. Catastrophe of Unlearning: Aggressive unlearning can lead to a sharp degradation in model utility, where the model forgets more than intended.

The Unlearning Workflow

The unlearning process typically follows a structured pipeline starting from a trained model and a specific unlearning request.

The general workflow of machine unlearning, from data request to verification.

As shown in the workflow, the process involves:

  • Step 1: Request: Identifying the specific samples, classes, or nodes to be removed ($D_e$).
  • Step 2: Unlearning Methods: Applying exact or approximate techniques to produce an unlearned model ($M_{-D_e}$).
  • Step 3: Verification: Using metrics like L2-norm or backdoor tests to ensure the data has been successfully removed.

Technical Lineages

Exact Unlearning

These methods guarantee the model is identical to one retrained from scratch. The most notable is SISA (Sharded, Isolated, Sliced, and Aggregated), which partitions data into shards and trains constituent models. When a delete request arrives, only the affected shard is retrained, significantly saving time.

Approximate Unlearning

These methods use mathematical approximations to "subtract" a data point's influence.

  • Certified Data Removal: Uses the Hessian matrix and influence functions to estimate how weights would change if a sample were removed.
  • Bayesian-based Unlearning: Employs Variational Inference (VBI) or Markov Chain Monte Carlo (MCMC) to update the posterior distribution of the model weights.

Specialized Domains

  • Federated Unlearning: A specialized field for distributed learning where the server must remove a client's contribution without ever having access to their raw data.
  • Graph Unlearning: Addresses the unique challenge of structural dependencies, where removing a node also requires unlearning the edges and "feature mixing" that occurred during graph convolutions.

Verification and Security Risks

The Verification Paradox

How do you prove a model has forgotten something? The authors highlight Membership Inference Attacks (MIA) as a verification tool. If an attacker can no longer distinguish if a "deleted" point was in the training set, the unlearning is considered successful. Other metrics include the Forgetting Rate (FR) and Membership Inference via Backdooring (MIB).

MU as a Security Risk

Ironically, the process of unlearning can leak privacy. The discrepancy between the model before and after unlearning can be exploited via "Privacy Reconstruction Attacks" to figure out exactly what was deleted. Conversely, MU can be a tool for security hygiene, used to "scrub" backdoor triggers or poisoned data from a model without needing to redo weeks of training.

Future Frontiers

The survey identifies several open challenges:

  • LLMs and Generative AI: Unlearning specific facts or copyrighted styles from Large Language Models remains an unsolved and computationally daunting task.
  • Multi-sample Efficiency: Most approximate methods struggle when asked to delete large batches of data simultaneously.
  • Audit Protocols: There is currently no standard protocol for companies to prove compliance with "Right to be Forgotten" requests to regulators.

Summary updated

BibTeX
@misc{wang2024machine,
  author = {Weiqi Wang and Zhiyi Tian and Shui Yu},
  title = {{Machine Unlearning: A Comprehensive Survey}},
  year = {2024},
  eprint = {2405.07406},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.07406},
}
Figure