Compressed Sensing with Invertible Generative Models and Dependent Noise.

Jay Whang, Qi Lei, Alexandros G. Dimakis

TL;DR

Traditional inverse problem solvers break down when noise is highly structured or correlated, such as hand-drawn scribbles or periodic patterns. This paper introduces a novel framework that leverages normalizing flows to model both the image prior and complex noise distributions. This approach enables accurate image reconstruction even in the presence of non-Gaussian noise and non-linear forward operators.

What Problem Does This Paper Address?

Inverse problems—such as denoising, compressed sensing, and magnetic resonance imaging (MRI)—seek to reconstruct an unknown signal $x$ from noisy, lossy measurements $y = f(x) + \delta$. While recent deep learning approaches use generative models (like GANs or VAEs) as powerful "priors" to guess what the original image should look like, they almost universally assume that the noise $\delta$ is simple, independent Gaussian noise.

In the real world, noise is rarely that well-behaved. Corruptions can be highly structured and dependent across pixels—think of an image defaced by text overlays, sensor artifacts, or watermarks. Standard algorithms struggle here because they cannot differentiate between the structured noise and the actual signal. This paper tackles the challenge of solving inverse problems under these complex, non-Gaussian noise distributions and non-linear forward operators.

Methods

The core innovation is using Normalizing Flows to model the noise distribution $p_\Delta$, alongside a generative model for the signal $p_G$. Normalizing flows are a class of generative models that pass a simple distribution through an invertible mapping, making exact likelihood evaluation tractable.

The authors propose two main formulations depending on the nature of the signal prior:

  1. Maximum A Posteriori (MAP) Formulation: Used when the signal prior also has a tractable likelihood (e.g., another flow model). The objective minimizes a joint loss balancing the noise likelihood and the signal prior likelihood: $$L_{MAP}(z; y, \beta) = -\log p_\Delta(y - f(G(z))) - \beta \log p_G(G(z))$$ Here, $\beta$ is a smoothing parameter introduced to stabilize optimization against the counter-intuitive density estimates sometimes produced by flow models.

  2. Maximum Likelihood Estimation (MLE) Formulation: Used when the signal prior's likelihood is intractable (e.g., a GAN). This formulation simply maximizes the noise likelihood strictly within the support (the latent space) of the generator.

Crucially, the authors find that optimizing these losses within the low-dimensional latent space $z$ of the generative model yields significantly better results than optimizing directly in the pixel space $x$. They also provide a theoretical recovery guarantee for denoising, bounding the reconstruction error based on the local strong convexity of the log-prior.

Datasets

The method was evaluated using:

  • MNIST: Used both as a standard image dataset and as a source of highly structured "noise" (by overlaying digits onto other images).
  • CelebA-HQ: High-quality face images, resized to $64 \times 64$, used as the primary signal dataset.
  • Out-of-Distribution (OOD) Images: A custom set of diverse images (e.g., a Shiba Inu dog, a Starbucks cup, a cartoon Pikachu) used to test how well the flow prior generalizes beyond its training distribution.

Key Insights and Ideas

  • Noise is Just Another Distribution: Instead of treating noise as an unpredictable nuisance to be averaged out, treating it as a complex distribution modeled by a neural network allows the optimization process to explicitly "explain away" structured corruptions.
  • Latent Space Optimization is Key: Searching for the optimal reconstruction in the latent space $z$ of the flow model consistently outperforms pixel-space optimization. The invertibility of flows ensures an unrestricted range, allowing them to represent out-of-distribution images better than GANs.
  • Graceful Failure Mode: In extreme settings like 1-bit compressed sensing (where only the sign of the measurements is kept), the flow-based noise model fails gracefully. Even when the reconstruction isn't perfect, substantial parts of the image remain correct, whereas baseline methods predict entirely wrong classes.

Key Results

  • MNIST Noise Removal: When MNIST digits were added as structured noise to CelebA-HQ faces, the proposed MAP and MLE methods successfully wiped them out. Baseline methods like BM3D or Bora et al. left heavy artifacts or failed entirely because they lacked an understanding of the noise structure.
Figure 2. Result of removing MNIST noise from CelebA-HQ faces. Notice that without any understanding of the complex noise structure, baseline methods fail to produce good reconstructions.
  • Noisy Compressed Sensing: Under sinusoidal noise variance, the proposed method's Peak Signal-to-Noise Ratio (PSNR) scaled significantly better as more measurements were added. Baselines plateaued early due to their rigid Gaussian noise assumptions.
Figure 4. Experiment results for noisy compressed sensing on CelebA-HQ images.
  • Noisy 1-Bit Compressed Sensing: Even when combining a highly non-linear forward operator ($y = \text{sign}(Ax) + \delta$) with non-Gaussian noise, the proposed method achieved the same reconstruction performance using up to $2\times$ fewer measurements than the best baseline.

Limitations and Future Work

  • Density Estimation Quirks: Normalizing flows can sometimes assign higher likelihoods to out-of-distribution data or pure noise than to in-distribution data. While the authors mitigated this using the smoothing parameter $\beta$, it remains a fundamental hurdle in unsupervised density estimation.
  • Optimization Landscape: The theoretical guarantees provided in the paper rely on local strong convexity assumptions. A full theoretical analysis of the highly non-convex optimization landscape during gradient descent remains an open problem.
  • Future Horizons: The authors suggest extending this framework to blind source separation (since signal and noise are mathematically exchangeable in the MAP formulation) and exploring even more flexible generative architectures, such as score-based or energy-based models.

Summary updated

Abstract

We study image inverse problems with a normalizing flow prior. Our formulation views the solution as the maximum a posteriori estimate of the image conditioned on the measurements. This formulation allows us to use noise models with arbitrary dependencies as well as non-linear forward operators. We empirically validate the efficacy of our method on various inverse problems, including compressed sensing with quantized measurements and denoising with highly structured noise patterns. We also present initial theoretical recovery guarantees for solving inverse problems with a flow prior.
BibTeX
@inproceedings{whang2021compressed,
  author = {Jay Whang and Qi Lei and Alexandros G. Dimakis},
  title = {{Compressed Sensing with Invertible Generative Models and Dependent Noise.}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
}
Figure