Machine Unlearning with Minimal Gradient Dependence for High Unlearning Ratios

Tao Huang, Ziyang Chen, Jiayang Meng, Qingyu Huang, Xu Yang, Xun Yi, Ibrahim KhalilarXiv 2024

TL;DR

Mini-Unlearning is a new, lightweight approach to machine unlearning that effectively removes private data from trained models using only a tiny fraction of historical training gradients. By exploiting the mathematical property of "contraction mapping," it achieves high accuracy and strong privacy protection even when deleting up to 15% of the original training set—a scenario where traditional methods often fail.

What Problem Does This Paper Address?

As privacy regulations like GDPR grant users the "right to be forgotten," machine learning models must be able to "unlearn" specific data points without requiring a full, expensive retrain from scratch.

Current gradient-based unlearning methods face a major scalability wall. They typically rely on extensive archives of historical gradients to "undo" the influence of specific data. This creates three main problems:

  1. Efficiency: Storing and processing massive amounts of historical data is impractical.
  2. Privacy: Ironically, historical gradients themselves can leak sensitive information about the data being removed.
  3. High Unlearning Ratios: Most existing methods work well when deleting a few samples (e.g., 0.005% of the data), but their performance collapses when users request the removal of large chunks of data (e.g., 5-15%).

Methods

The authors introduce Mini-Unlearning, which operates on a critical theoretical observation: the difference between a model trained on all data and one trained only on "retained" data behaves like a contraction mapping.

Mathematically, this means that the influence of training gradients from early epochs diminishes exponentially over time. Consequently, the authors prove that you only need the gradients and Hessians from the last $k$ epochs (where $k$ is a small number, like 10) to accurately approximate the "unlearned" model parameters.

Key technical highlights include:

  • Minimal Gradient Dependence: It ignores redundant early-stage gradients, reducing storage and computation.
  • L-BFGS Inspiration: To avoid the massive computational cost of storing and multiplying full Hessian matrices (second-order derivatives), the method uses a technique inspired by the L-BFGS optimization algorithm to compute Hessian-vector products efficiently.
  • Parallel Implementation: Unlike methods that require sequential retraining steps, Mini-Unlearning can be executed in parallel across multiple devices, significantly speeding up the process.

Datasets

The researchers evaluated their method using three standard benchmarks for classification tasks:

  • MNIST: The classic handwritten digit dataset.
  • Covtype: A dataset for predicting forest cover types from cartographic variables.
  • HIGGS: A high-energy physics dataset used to distinguish between signal and background processes.

They specifically tested these under "high unlearning ratios" of 5%, 10%, and 15% to push the limits of the algorithm.

Key Insights and Ideas

  • The "Recency" of Information: The most important "aha moment" is that for the purposes of unlearning, the model's state in the final few epochs contains almost all the necessary information to adjust for the missing data. Gradients from the beginning of training are largely redundant.
  • Contraction Mapping as a Shield: Because the method uses fewer historical gradients, there is less "surface area" for privacy leaks. The paper shows that this mathematical property naturally enhances resistance to Membership Inference Attacks (MIA).
  • Approximation vs. Retraining: The authors provide a theoretical bound (Theorem 1) showing that the approximation error of their method decays at a rate of $O(r^k)$, where $r < 1$. This gives a formal guarantee that using just a few recent epochs is sufficient.

Key Results

Mini-Unlearning consistently outperformed state-of-the-art baselines like DeltaGrad, Certified Data Removal, and Amnesiac Unlearning.

Table 1: Performance of Unlearned Models

As seen in Figure 1, while baselines like "Certified Data Removal" saw accuracy drop to near-random levels (e.g., 0.13 on Covtype) at a 15% unlearning ratio, Mini-Unlearning maintained an accuracy of 0.66, very close to the "Gold Standard" of full traditional retraining (0.77).

Furthermore, in Membership Inference Attack (MIA) tests, Mini-Unlearning achieved the lowest precision/recall scores for unlearned samples. This indicates it is the most effective at "erasing" the model's memory of the deleted data, making it harder for an attacker to guess if a specific piece of data was ever part of the training set.

Limitations and Future Work

The current theoretical framework assumes the loss function is $\mu$-strongly convex and L-smooth (standard for models like Logistic Regression). While these are common in many applications, extending these proofs to non-convex landscapes—like those found in deep neural networks—remains a challenge for future research.

The authors also noted that while the impact of the hyperparameter $k$ (number of epochs) is relatively small, future work could involve optimizing the selection of specific gradients to further boost efficiency without sacrificing any accuracy.

Summary updated

BibTeX
@misc{huang2024machine,
  author = {Tao Huang and Ziyang Chen and Jiayang Meng and Qingyu Huang and Xu Yang and Xun Yi and Ibrahim Khalil},
  title = {{Machine Unlearning with Minimal Gradient Dependence for High Unlearning Ratios}},
  year = {2024},
  eprint = {2406.16986},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.16986},
}
Figure