Efficient Machine Unlearning via Influence Approximation

Jiawei Liu, Chenwang Wu, Defu Lian, Enhong ChenarXiv 2025 · OpenReview

Abstract

Due to growing privacy concerns, machine unlearning, which aims at enabling machine learning models to "forget" specific training data, has received increasing attention. Among existing methods, influence-based unlearning has emerged as a prominent approach due to its ability to estimate the impact of individual training samples on model parameters without retraining. However, this approach suffers from prohibitive computational overhead arising from the necessity to compute the Hessian matrix and its inverse across all training samples and parameters, rendering it impractical for large-scale models and scenarios involving frequent data deletion requests. Inspired by cognitive science, which suggests that memorizing is easier than forgetting, this paper establishes a theoretical link between memorizing (incremental learning) and forgetting (unlearning). This connection allows machine unlearning to be addressed from the perspective of incremental learning. Based on this connection, we introduce the Influence Approximation Unlearning (IAU) algorithm for efficient machine unlearning from the incremental perspective. Extensive empirical evaluations demonstrate that IAU achieves a superior balance among removal guarantee, unlearning efficiency, and comparable model utility, while outperforming state-of-the-art methods across diverse datasets and model architectures.

Introduction

As privacy regulations like the GDPR grant individuals the "right to be forgotten," machine learning models must be able to "unlearn" specific training samples. The gold standard for this process is retraining the model from scratch without the deleted data, but this is computationally infeasible for modern large-scale models.

Existing "approximate unlearning" methods often rely on influence functions to estimate a sample's impact. However, these require calculating and inverting the Hessian matrix (the second-order derivative of the loss function). For a model with $p$ parameters, this operation scales at $O(p^3)$ or $O(p^2)$, making it a massive bottleneck for deep neural networks. The Influence Approximation Unlearning (IAU) framework seeks to achieve the precision of influence-based unlearning without the prohibitive "Hessian headache."

Methodology: The IAU Framework

The core innovation of IAU is its shift in perspective: memorizing is easier than forgetting. The authors establish a theoretical bridge showing that unlearning a point is mathematically similar to incrementally learning its "opposite." The IAU framework consists of three main modules:

  1. Incremental Approximation: Instead of using the Hessian to calculate influence, the model performs a simple gradient update. Unlearning a sample $z_-$ is approximated by performing gradient ascent on that sample.
  2. Gradient Correction: To prevent "over-forgetting" (where the model loses general performance) and to maintain the influence of the remaining data, IAU performs a simultaneous gradient descent step on the retained dataset.
  3. Gradient Restriction (GR): This is a "pre-emptive" strategy applied during the initial training phase. The authors introduce a novel loss function that penalizes large gradients: $$\ell_{GR}(z, \theta) = \ell(z, \theta) + \alpha \cdot \|\nabla_\theta \ell(z, \theta)\|_2$$ By smoothing the gradient landscape during training, the model becomes more stable and easier to adjust during the unlearning phase.

Experimental Setup

The authors evaluated IAU across diverse data formats and model architectures, including image data (CIFAR-10, SVHN, CIFAR-100) and tabular data (Purchase100). Tested backbones included LeNet5, ResNet18, VGG19, and a 3-layer MLP.

Key Results

IAU consistently outperformed state-of-the-art baselines (like Fisher, Amnesiac Unlearning, and USGD) across several critical metrics:

  • Efficiency: On ResNet18 with CIFAR-10, IAU completed unlearning in 19 seconds, compared to 3,078 seconds for the Fisher-based method—a speedup of over 160x.
  • Model Utility (MU): IAU maintained accuracy levels very close to the retrained model. For example, on SVHN with LeNet5, IAU achieved a Model Utility score of 0.09 (lower is better), outperforming most baselines.
  • Unlearning Efficacy (UE): Using Membership Inference Attacks (MIA) to test if the "forgotten" data was truly gone, IAU showed strong privacy protection, often ranking first or second in average rank across all tests.
Performance comparison on CIFAR10 and SVHN datasets. IAU demonstrates superior speed and competitive model utility across different backbones.

Visual Fidelity: As seen in the activation maps, IAU produces a model that closely mirrors the feature focus of a retrained model. In the top row of the figure below, IAU effectively removes the activation on the target bird, while in the bottom row, it preserves the activation on the retained sample.

Visual comparison of activation maps across unlearning methods. IAU (Ours) closely mirrors the 'Retrain' gold standard on both unlearned and retained images.

Conclusion

IAU reframes the "forgetting" problem in machine learning as a more efficient "memorizing" task. By leveraging a theoretical link between unlearning and incremental learning, IAU avoids the prohibitive computational cost of Hessian matrix inversions, delivering a scalable, high-speed solution that maintains model utility and privacy guarantees. While highly efficient, the authors note that as the percentage of data to be forgotten increases, the approximation becomes less precise, suggesting a need for further exploration into advanced incremental strategies for high-ratio unlearning.

Summary updated

BibTeX
@misc{liu2025efficient,
  author = {Jiawei Liu and Chenwang Wu and Defu Lian and Enhong Chen},
  title = {{Efficient Machine Unlearning via Influence Approximation}},
  year = {2025},
  eprint = {2507.23257},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.23257},
}
Figure