Approximate Data Deletion in Generative Models

Zhifeng Kong, Scott Alfeld

TL;DR

This paper introduces a framework for "machine unlearning" in generative models using density-ratio estimation. Instead of the computationally prohibitive process of re-training a model from scratch to delete specific user data, the authors propose a method to adjust the model's output distribution through rejection sampling, making it statistically indistinguishable from a fully re-trained model.

What Problem Does This Paper Address?

With the rise of privacy regulations like GDPR and CCPA, users now have a "right to erasure." In the context of machine learning, simply deleting a row from a database isn't enough; a savvy attacker might still be able to extract information about the deleted data by probing the model trained on it.

The gold standard for deletion is "full re-training"—deleting the data and starting the training process over. However, for modern deep learning models (like GANs), this can take days or weeks and cost thousands of dollars. While researchers have found ways to perform "approximate deletion" for supervised models (like classifiers), doing so for generative models (which learn complex data distributions) has remained a significant challenge. This paper fills that gap.

Methods

The authors propose a density-ratio-based framework. The core idea is that if you have a pre-trained model $\hat{p}$ and you want to "delete" a subset of data $X'$, you don't necessarily need to change the model's weights. Instead, you can find the density ratio ($\rho$) between the distribution of the "clean" dataset and the original dataset.

Key components include:

  • Density Ratio Estimator (DRE): They train a small, efficient model to estimate the ratio between the original training set and the training set minus the deleted points.
  • Rejection Sampling: To generate samples from the "unlearned" model, they draw samples from the original pre-trained model and use the DRE to decide whether to keep or "reject" them. This effectively reshapes the original distribution to match what a re-trained model would have produced.
  • Two DRE Approaches:
    1. Probabilistic Classification: Used for simpler models like Kernel Density Estimation (KDE).
  • Variational Divergence Minimization (VDM): Used for complex models like GANs, leveraging techniques similar to how GAN discriminators are trained.
  • Statistical Deletion Test: They provide a way for a user or auditor to verify if data was actually deleted by comparing samples from the model against a hypothesis of what a "clean" model should look like.

Datasets

The authors evaluated their methods on both synthetic and real-world datasets:

  • Synthetic 2D Datasets: A Mixture of 8 Gaussians (MoG-8) and an $8 \times 8$ Checkerboard (CKB-8). These allow for clear visualization of how the "deleted" regions of the distribution are suppressed.
  • Image Datasets: MNIST (handwritten digits) and Fashion-MNIST. In these experiments, they "deleted" specific classes or subsets of classes (e.g., removing a portion of the "even" digits) to see if the model would stop generating them.

Key Insights and Ideas

  • Unlearning via Sampling, not Weight Tuning: The most profound insight is that for generative models, "forgetting" doesn't have to involve changing the neural network's parameters. By treating the model as a base distribution and applying a "correction layer" during sampling, you achieve the same statistical result much faster.
  • The "Subset" Advantage: Unlike general density ratio estimation, which is notoriously difficult, the authors leverage the fact that the "clean" dataset is a strict subset of the original. This prior knowledge makes the DRE training much more stable and accurate.
  • Verification is Possible: The paper proves that you can statistically test for deletion even if you only have "sample access" to the model (i.e., you can't see the weights, you can only ask it to generate images).

Key Results

  • Indistinguishability: Using Kolmogorov-Smirnov (KS) tests, the authors showed that the samples from their "fast deletion" method were statistically indistinguishable from samples produced by a model that was fully re-trained from scratch.
  • Efficiency: Training the DRE is significantly faster than re-training a full GAN. For example, on MNIST, the approximated model successfully suppressed the generation of deleted digit classes.
  • Test Accuracy: Their proposed Likelihood Ratio (LR) and ASC statistics were highly effective at distinguishing between a model that still "remembered" the data and one that had "forgotten" it.

Limitations and Future Work

  • The Curse of Dimensionality: While the method works well on MNIST, the authors acknowledge that density ratio estimation remains challenging for very high-dimensional, complex datasets (like high-resolution ImageNet).
  • Rejection Sampling Overhead: If you delete a very large portion of the dataset, the rejection rate might become high, making it slow to generate new samples.
  • Scaling to Large Models: Future work is needed to see how this framework handles massive transformer-based generative models (like LLMs or Diffusion models), where the "rejection" might need to be integrated more deeply into the latent space.

Summary updated

BibTeX
@inproceedings{kong2023approximate,
  author = {Zhifeng Kong and Scott Alfeld},
  title = {{Approximate Data Deletion in Generative Models}},
  booktitle = {ECAI},
  year = {2023},
  doi = {10.3233/faia230407},
}
Figure