Langevin Unlearning: A New Perspective of Noisy Gradient Descent for Machine Unlearning

Eli Chien, Haoyu Peter Wang, Ziang Chen, Pan Li

Abstract

Machine unlearning has become a critical requirement in the era of data privacy regulations such as GDPR. However, traditional methods like retraining from scratch are computationally prohibitive, and existing approximate unlearning techniques often rely on restrictive convexity assumptions. This paper presents Langevin Unlearning, a novel framework that utilizes Projected Noisy Gradient Descent (PNGD) to efficiently remove data from trained models. By framing unlearning as a distribution shifting process within Langevin dynamics, we provide a theoretically grounded approach with formal privacy guarantees. Our method introduces the concept of "privacy recuperation," where noisy gradient steps effectively wash away the influence of deleted data. We demonstrate that Langevin Unlearning offers dimension-free privacy guarantees and handles non-convex objectives, significantly outperforming retraining in terms of computational efficiency while maintaining high model utility.

Introduction

The "Right to be Forgotten" necessitates mechanisms to remove specific user data from machine learning models. Simple data deletion is insufficient as models can memorize training samples, potentially allowing for the extraction of sensitive information from model weights. While retraining from scratch is the gold standard for unlearning, its computational cost is unsustainable for large-scale models or frequent requests. Langevin Unlearning addresses this by bridging Differential Privacy (DP) and machine unlearning, providing a scalable solution that works for modern deep learning architectures, including non-convex objectives.

Methodology

The core of Langevin Unlearning is Projected Noisy Gradient Descent (PNGD), which serves as a discretization of Langevin dynamics. In this framework, model weights are treated as samples from a probability distribution rather than fixed points.

  1. Learning as Sampling: Training a model with PNGD (adding Gaussian noise to gradients) causes the model weights to converge to a unique stationary distribution $\nu_D$.
  2. Unlearning as Distribution Shifting: Upon receiving an unlearning request to change dataset $D$ to $D'$, the process starts from the current distribution $\nu_D$ and performs additional noisy gradient steps on the new dataset $D'$.
  3. Privacy Recuperation: Unlike standard training which "erodes" privacy by leaking information, each unlearning iteration "recuperates" privacy. These steps move the model distribution closer to the target distribution $\nu_{D'}$, effectively washing away the influence of the deleted data.
Geometric interpretation of learning and unlearning processes. Learning leads to privacy erosion, while unlearning iterations facilitate privacy recuperation by shifting the weight distribution toward the target stationary state.

Theoretical Framework

The analysis relies on the Log-Sobolev Inequality (LSI), a tool from functional analysis that allows the authors to track the decay of "privacy loss" (measured by Rényi divergence) during the unlearning process. This approach yields several key theoretical advantages:

  • Dimension-Free Guarantees: Privacy guarantees do not depend on the number of model parameters, suggesting the method scales effectively to very large neural networks.
  • The DP-Unlearning Bridge: The framework shows that models trained with Differential Privacy (DP) are inherently easier to unlearn. Since a DP model is already statistically close to a model trained without any specific data point, fewer iterations are required to reach target privacy levels.
  • Efficiency for Large Datasets: For a dataset of size $n$, the initial distance between the old model and the retrained model is only $O(1/n^2)$. This proximity allows unlearning to reach the target distribution much faster than retraining from scratch.
  • Sequential and Batch Support: The framework naturally handles multiple unlearning requests, either sequentially or in groups, by leveraging the weak triangle inequality of Rényi divergence.
Illustration of (a) sequential unlearning and (b) batch unlearning. The framework maintains privacy guarantees across multiple removal requests.

Evaluation and Results

The framework was evaluated on standard benchmarks including MNIST, CIFAR-10, and the Adult census dataset. Key findings include:

  • Superior Trade-offs: Langevin Unlearning achieved a better balance between privacy, model utility (accuracy), and computational complexity compared to state-of-the-art baselines like Delete-to-Descent (D2D).
  • Significant Speedup: For single data point removal, Langevin Unlearning required only one iteration to achieve high utility and strong privacy, whereas retraining would require thousands of iterations.
  • Non-Convex Capability: While practical experiments focused on convex cases for tighter bounds, the paper provides the first theoretical framework for certified approximate unlearning in non-convex settings.

Conclusion

Langevin Unlearning provides a robust, efficient, and theoretically sound alternative to retraining. By viewing unlearning through the lens of Langevin dynamics and privacy recuperation, it opens new avenues for handling large-scale unlearning requests in complex, non-convex models. Future work includes extending the framework to Noisy Stochastic Gradient Descent (NSGD) and exploring advanced sampling techniques to further enhance efficiency.

Summary updated

BibTeX
@inproceedings{chien2024langevin,
  author = {Eli Chien and Haoyu Peter Wang and Ziang Chen and Pan Li},
  title = {{Langevin Unlearning: A New Perspective of Noisy Gradient Descent for Machine Unlearning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=3LKuC8rbyV},
}
Figure