NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Data Redaction from Pre-trained GANs

Zhifeng Kong, Kamalika Chaudhuri

TL;DR

Retraining deep generative models from scratch to remove undesirable outputs or artifacts is computationally wasteful, while standard machine unlearning often fails to stop generative models from producing them. This paper introduces a post-editing framework called data redaction, which fine-tunes pre-trained GANs to explicitly assign zero probability mass to an unwanted "redaction set" at a fraction of full training cost.

What Problem Does This Paper Address?

Generative Adversarial Networks (GANs) frequently generate undesirable samples, ranging from blurred or checkerboard artifacts to biased or offensive outputs. Traditionally, practitioners tackle this either by retraining the model from scratch with filtered data, or by using a post-generation classifier to filter bad outputs at test time. Both solutions are flawed: full retraining is prohibitively expensive, while post-generation filters add inference overhead and can be easily bypassed if the raw model weights are distributed.

One might expect machine unlearning (data deletion) to solve this, but the authors prove that deletion is fundamentally distinct from redaction:

  1. Deletion does not imply redaction: Removing a subset of points from the training set and refitting a model can still leave significant probability density over the removed region due to parametric constraints and inductive biases.
  2. Artifacts may not be in the training data: Many undesirable artifacts (e.g., unnatural audio or visual boundary glitches) arise purely from model architecture inductive biases, meaning there are no training samples to "delete" in the first place.

Methods

The paper defines data redaction as steering a pre-trained generator $G$ to learn the data distribution restricted to the complement of a target redaction set $\Omega$ ($p_{\text{data}}|_{\bar{\Omega}}$). By framing the negative samples as a mixture of the generator’s output and the redaction distribution ($p_{\text{fake}} = \lambda p_G + (1-\lambda) p_\Omega$), the authors propose three algorithms depending on how $\Omega$ is specified:

+-----------------------------------------------------------------------------------------+
|                                DATA REDACTION FRAMEWORK                                 |
+-----------------------------------------------------------------------------------------+
| 1. Data-Based (Alg 1)     | 2. Validity-Based (Alg 2)     | 3. Classifier-Based (Alg 3) |
| Known negative set Omega   | Black-box oracle v(x) in {0,1}| Differentiable model f(x)   |
| Treat Omega as fake data   | Iterative active querying to  | Guided discriminator steers |
| during minimax updates    | penalize high-probability bad | generator directly via soft |
|                           | samples                       | classification loss         |
+-----------------------------------------------------------------------------------------+
  • Data-Based Redaction (Alg. 1): Used when an explicit set $\Omega$ of negative samples is available. Both generated samples and $\Omega$ are penalized as fake data.
  • Validity-Based Redaction (Alg. 2): Used when $\Omega$ is defined by a black-box validity checker $v(x) \in \{0, 1\}$ (e.g., a code syntax compiler). It actively samples from $G$, queries $v$, and iteratively augments the fake distribution with discovered invalid samples.
  • Classifier-Based Redaction (Alg. 3): Used when a differentiable soft classifier $f(x)$ defines $\Omega = \{x : f(x) < \tau\}$. It defines a guided discriminator $\text{guide}(D, f)$ that injects classifier outputs directly into the discriminator loss, enabling end-to-end gradient feedback to push $G$ away from $\Omega$.

The authors provide theoretical proofs showing that under label smoothing (and extended to general $f$-GANs), the global optimum recovers the exact restricted distribution $p_{G^*} = p_{\text{data}}|_{\bar{\Omega}}$.

Datasets

The authors evaluated their methods on standard image benchmarks using DCGAN architectures:

  • MNIST ($28 \times 28$)
  • CIFAR-10 and CIFAR-100 ($32 \times 32$)
  • CelebA ($64 \times 64$, using 40 facial attribute labels)
  • STL-10 ($96 \times 96$)

No new dataset benchmarks were introduced; existing datasets were partitioned or paired with attribute/label classifiers to establish target redaction sets.

Key Insights and Ideas

  • Rapid Convergence: Undesirable modes can be suppressed rapidly—often in as little as 1 to 5 epochs—compared to the 200 epochs required to train the original GAN from scratch.
  • Manifold-Dependent Redaction Difficulty: By analyzing a "redaction score" ($RS(x) = D_0(x) - D'(x)$), the authors found a strong positive correlation between how realistic/on-manifold a sample was to the original discriminator and how easy it was to redact. Off-manifold, atypical samples are significantly harder to purge.
  • De-biasing Unseen Artifacts: Redaction successfully eliminated artifacts that were never present in the training set, such as spurious white boundary pixels on MNIST and semantically ambiguous "hybrid" classes (label bias) on CIFAR-10.
  • Connection to Adversarial Generation: Fixing the discriminator and running classifier-based redaction on $G$ turns the generator into an engine for synthesizing on-manifold adversarial examples—realistic-looking samples that fool the classifier.

Key Results

  • Class Redaction: When redacting label 0, invalidity (the fraction of generated samples falling into $\Omega$) dropped by orders of magnitude with minimal impact on quality:
  • MNIST: Invalidity plummeted from $1.1 \times 10^{-1}$ to $\sim 5.2 \times 10^{-5}$ in just 8 epochs (Inception Score remained high at $7.16$ vs. $7.82$ baseline).
  • CIFAR-10: Invalidity fell from $1.29 \times 10^{-1}$ to $7.5 \times 10^{-3}$ in 30 epochs (FID improved from $36.2$ to $33.2$–$34.8$).
  • Outperforming Machine Unlearning: On CIFAR-10, retraining after deleting correlated data points resulted in high residual invalidity (up to $10.1\%$) and worse FID ($\sim 40.0$). In contrast, redaction achieved lower invalidity ($0.2\% - 2.5\%$) and better FID ($28.1 - 36.8$).
  • Quality Improvement via De-biasing: Purging ambiguous, high-entropy label samples improved CIFAR-10 generation FID from $36.2$ down to $26.6$ ($\tau=0.5$).

Limitations and Future Work

  • Unconditional Models Only: The current formulation is strictly derived and evaluated for unconditional GANs; it does not yet support conditional GANs (cGANs) or other popular generative families (e.g., Diffusion Models or autoregressive transformers).
  • Simplified Theoretical Dynamics: The convergence proofs for the active learning setup (Alg. 2) assume an idealized, simplified two-state dynamical system (easy vs. hard samples); rigorous convergence analysis for deep non-linear networks remains an open theoretical problem.

Summary updated

BibTeX
@inproceedings{kong2023data,
  author = {Zhifeng Kong and Kamalika Chaudhuri},
  title = {{Data Redaction from Pre-trained GANs}},
  booktitle = {SaTML},
  year = {2023},
  url = {https://openreview.net/forum?id=bYV3bK_Azi},
}
Figure