Skip to main content
QUICK REVIEW

[Paper Review] Knowledge Removal in Sampling-based Bayesian Inference

Shaopeng Fu, Fengxiang He|arXiv (Cornell University)|Mar 24, 2022
Bayesian Methods and Mixture ModelsComputer Science5 citations
TL;DR

This paper proposes the first machine unlearning algorithm for sampling-based Bayesian inference using Markov Chain Monte Carlo (MCMC), converting the implicit posterior distribution into an explicit optimization problem via KL-divergence approximation. It introduces an MCMC influence function to quantify and remove knowledge from specific data, proving provable $\varepsilon$-knowledge removal and minimal impact on generalization, validated on Gaussian mixture models and Bayesian neural networks with state-of-the-art performance.

ABSTRACT

The right to be forgotten has been legislated in many countries, but its enforcement in the AI industry would cause unbearable costs. When single data deletion requests come, companies may need to delete the whole models learned with massive resources. Existing works propose methods to remove knowledge learned from data for explicitly parameterized models, which however are not appliable to the sampling-based Bayesian inference, i.e., Markov chain Monte Carlo (MCMC), as MCMC can only infer implicit distributions. In this paper, we propose the first machine unlearning algorithm for MCMC. We first convert the MCMC unlearning problem into an explicit optimization problem. Based on this problem conversion, an {\it MCMC influence function} is designed to provably characterize the learned knowledge from data, which then delivers the MCMC unlearning algorithm. Theoretical analysis shows that MCMC unlearning would not compromise the generalizability of the MCMC models. Experiments on Gaussian mixture models and Bayesian neural networks confirm the effectiveness of the proposed algorithm. The code is available at \url{https://github.com/fshp971/mcmc-unlearning}.

Motivation & Objective

  • Address the legal and computational challenge of the 'right to be forgotten' in AI, where retraining models after data deletion incurs high costs.
  • Overcome the limitation of existing unlearning methods that require explicitly parameterized models, which do not apply to sampling-based Bayesian inference like MCMC.
  • Enable knowledge removal in MCMC, which infers implicit posterior distributions, by transforming the unlearning problem into an explicit optimization task.
  • Develop a theoretical framework to ensure that unlearning does not compromise model generalization performance.
  • Provide a practical, efficient unlearning solution for MCMC-based models in real-world applications such as Bayesian neural networks and Gaussian mixture models.

Proposed method

  • Convert the MCMC unlearning problem into an explicit optimization problem by approximating the learned implicit posterior distribution using KL-divergence minimization.
  • Design an MCMC influence function to quantify the contribution of individual data points to the learned posterior distribution.
  • Use the influence function to compute and subtract the knowledge contribution of the requested data from the posterior distribution.
  • Apply the influence-based correction directly to the MCMC samples to achieve unlearning without full retraining.
  • Establish theoretical guarantees using a PAC-Bayesian generalization bound to show that unlearning introduces only a small, bounded deviation in generalization error.
  • Implement the algorithm on both synthetic (Gaussian mixture models) and real-world (Bayesian neural networks on CIFAR-10 and Fashion-MNIST) datasets to validate effectiveness.

Experimental results

Research questions

  • RQ1Can knowledge learned from specific data in MCMC-based Bayesian models be effectively and provably removed without full retraining?
  • RQ2How can the implicit posterior distribution of MCMC be analyzed and manipulated for unlearning, given its non-explicit parameterization?
  • RQ3What is the impact of MCMC unlearning on the generalization performance of the model, and can it be theoretically bounded?
  • RQ4How does the proposed MCMC influence function compare to existing influence functions in terms of accuracy and efficiency for unlearning?
  • RQ5Can the proposed unlearning method maintain model performance on remaining and test data while effectively removing knowledge from deleted data?

Key findings

  • The proposed MCMC unlearning algorithm achieves $\varepsilon$-knowledge removal, with theoretical proof that the removed knowledge is bounded and provable.
  • The generalization upper bound of the unlearned model differs from the original by at most $\mathcal{O}(\sqrt{|S'|}/N)$, indicating minimal degradation in generalization performance.
  • On CIFAR-10 with SGLD, the prediction difference between retrained and unlearned models on the test set was 0.19 ± 0.01, compared to 0.25 ± 0.01 for IS and 0.19 ± 0.00 for the proposed method.
  • On Fashion-MNIST with SGHMC, the prediction difference on the test set was 0.15 ± 0.03 for the proposed method, significantly lower than the 0.30 ± 0.02 of the original model.
  • The algorithm effectively reduces prediction differences on the removed set $S_f$ to near zero (e.g., 1.25 ± 0.67 on CIFAR-10 with SGLD), confirming successful knowledge removal.
  • The method maintains high accuracy on remaining data (e.g., 98.13 ± 1.61% on Fashion-MNIST with 4,000 examples), showing that knowledge from other data is preserved.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.