Denoising Deep Generative Models

Gabriel Loaiza-Ganem, Brendan Leigh Ross, Luhuan Wu, John P. Cunningham, Jesse C. Cresswell, Anthony L. Caterini

TL;DR

Likelihood-based generative models often suffer from "manifold overfitting," where they fail to capture the true distribution of data that lives on low-dimensional surfaces. This paper tests two theoretically sound denoising strategies—Tweedie’s formula and conditional noise—to fix this, but finds that these intuitive "plug-and-play" solutions surprisingly fail to provide consistent empirical gains.

What Problem Does This Paper Address?

Most high-dimensional data, like images, actually resides on a much lower-dimensional "manifold" embedded in space. For example, while a 32x32 image has 1,024 dimensions, the set of all "natural images" occupies only a tiny, structured fraction of that space.

Standard likelihood-based Deep Generative Models (DGMs), such as Variational Autoencoders (VAEs) and Normalizing Flows (NFs), struggle with this. Because they try to model a high-dimensional density for low-dimensional data, they often fall into manifold overfitting. As shown in Figure 1, the model might assign a very high likelihood to the correct area of space but fail to distribute that probability correctly across the manifold itself. This results in "spiky" distributions that look good on paper (high log-likelihood) but produce poor samples.

Figure 1: Illustration of manifold overfitting, where the ground truth distribution p(x) in the 1-dimensional curve (purple) is poorly approximated by the 2- dimensional density pη(x) (orange), which nonetheless achieves large log-likelihoods Ep(x)[log pη(x)].

Methods

The authors proposed two simple modifications to existing models to bridge the dimensionality gap by adding Gaussian noise during training and removing it during sampling.

  1. Tweedie Denoising DGMs (TD-DGMs):
    • Training: Add a fixed amount of Gaussian noise to the data. This "fills" the ambient space, ensuring the distribution is no longer strictly low-dimensional.
  2. Sampling: After generating a noisy sample from the model, use Tweedie’s formula—a classic statistical tool—to shift the sample back toward the original manifold. This correction only requires the gradient of the model's own log-density.
  3. Conditional Denoising DGMs (CD-DGMs):
    • Training: Train the model to be conditional on the noise level ($\sigma$). The model learns a continuum of distributions, from very noisy to clean.
  4. Sampling: Simply set the noise level to zero ($\sigma = 0$) when generating new data. This approach is conceptually similar to how modern diffusion models operate.

Datasets

The researchers evaluated their methods on four standard image benchmarks:

  • MNIST: Handwritten digits.
  • FMNIST: Fashion-MNIST (clothing items).
  • SVHN: Street View House Numbers.
  • CIFAR-10: Diverse natural images.

Key Insights and Ideas

  • The "Negative Result" Value: This paper was presented at the I Can't Believe It's Not Better workshop at NeurIPS, highlighting that even well-motivated ideas can fail. The core "aha moment" is that simply adding noise and denoising isn't a silver bullet for manifold overfitting.
  • Manifold Overfitting is Persistent: The authors conjecture that even after adding noise, the target distribution remains extremely "peaked" around the manifold. The models might still overfit to these sharp peaks, preventing Tweedie’s formula or $\sigma=0$ conditioning from working as intended.
  • The Gap with Diffusion Models: While diffusion models successfully use noise to learn manifolds, they do so through a complex, iterative denoising process. This paper shows that trying to achieve similar results with a single-step "plug-in" method for VAEs or Flows is significantly harder.

Key Results

The results were measured using FID scores (lower is better), which evaluate the quality and diversity of generated images. As seen in Table 1, the proposed denoising models (TD and CD) rarely outperformed their simpler counterparts.

Table 1: FID scores (lower is better). Means ± standard errors across 3 runs are shown. Best models and those whose standard errors overlap with those of the best model are bolded.
  • Sporadic Success: The CD-NF model showed a significant improvement on MNIST, and CD-VAE helped on SVHN.
  • The "No Denoising" Surprise: In many cases, simply adding noise during training without any special denoising step (the "ND" models) performed just as well as, or better than, the more complex proposed methods.
  • Marginal Gains: On more complex datasets like CIFAR-10, the differences between the vanilla models and the denoised versions were often within the margin of error.

Limitations and Future Work

The authors acknowledge several reasons why these methods might have underperformed:

  • Small Noise Levels: To keep the learning task manageable, the authors used small noise values ($\sigma \approx 0.01$). This might not have been enough to "blur" the manifold sufficiently to prevent overfitting.
  • Model Capacity: It is possible that standard VAEs and NFs simply aren't powerful enough to learn the complex score functions required for effective Tweedie denoising.
  • Inherent Data Noise: Real-world datasets are already noisy. Adding more noise might make the optimization problem too difficult before it solves the manifold dimensionality problem.

Future research may look into more sophisticated ways to schedule noise or investigate why the iterative nature of diffusion models succeeds where these single-step methods fail.

Summary updated

BibTeX
@inproceedings{loaizaganem2022denoising,
  author = {Gabriel Loaiza-Ganem and Brendan Leigh Ross and Luhuan Wu and John P. Cunningham and Jesse C. Cresswell and Anthony L. Caterini},
  title = {{Denoising Deep Generative Models}},
  booktitle = {ICBINB @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=2Ze_U-JilX},
}

Loading related content...

Figure