Solving Inverse Problems with a Flow-based Noise Model

Jay Whang, Qi Lei, Alexandros G. Dimakis · DOI

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.

Introduction

In signal processing, an "inverse problem" involves recovering an original signal ($x$) from a noisy observation ($y$). The standard mathematical model is $y = f(x) + \delta$, where $f$ is a forward operator (such as blurring or downsampling) and $\delta$ represents noise. Historically, researchers have assumed that noise is white Gaussian noise—random and uncorrelated. However, real-world noise is often highly structured, such as hand-drawn scribbles or specific interference patterns.

Example of structured noise where MNIST digits obscure a face image.

While recent "Deep Generative Priors" using GANs or VAEs have improved signal modeling, they often still rely on Gaussian assumptions for the noise component. This paper addresses this gap by using Normalizing Flows (NFs) to model both the signal and the noise, providing a principled way to handle complex, non-linear interference.

Methodology

The authors propose using Normalizing Flows for both the image prior and the noise model. NFs are a class of generative models that use invertible transformations to map simple distributions to complex ones, allowing for exact log-likelihood calculation.

The core of the approach is a Maximum A Posteriori (MAP) formulation. The model minimizes a loss function that simultaneously evaluates:

  1. The likelihood that the residual component is noise (using the flow-based noise model $p_\Delta$).
  2. The likelihood that the reconstructed image is a natural image (using the flow-based signal prior $p_G$).

By optimizing in the latent space of the flow models via gradient descent, the system finds the most plausible reconstruction. The framework also incorporates a smoothing parameter ($\beta$) to balance these terms, enhancing robustness against imperfect density estimates.

Experimental Results

The researchers evaluated their method using MNIST, CelebA-HQ, and custom structured noise patterns (e.g., "MNIST noise" where digits obscure faces).

  • Denoising Excellence: In the "MNIST-on-Face" task, the proposed method significantly outperformed standard baselines like BM3D. While traditional solvers struggled to distinguish the "noise" digits from the "signal" face, the flow-based model effectively "learned" to subtract the specific digit patterns.
  • Compressed Sensing: On CelebA-HQ, the method achieved a Peak Signal-to-Noise Ratio (PSNR) of ~30 dB with 5,000 measurements, whereas baselines plateaued around 22 dB.
  • 1-Bit Compressed Sensing: The framework handled non-linear forward operators (like the sign function) efficiently, achieving target reconstruction quality with 2x fewer measurements than the best baseline.
Reconstructed face image using the proposed flow-based noise model.

Discussion and Limitations

The primary strength of this approach is its ability to treat noise as a signal with its own complex distribution, allowing for the removal of specific patterns that general filters miss. Furthermore, the invertibility of Normalizing Flows provides an "unrestricted range," making the model more robust to out-of-distribution images than GAN-based alternatives.

The main limitation is the requirement for a pre-trained noise model; the system must know or be able to model the expected noise type beforehand. Future work may explore "Blind Source Separation" or the integration of score-based and energy-based models (EBMs) within this MAP framework to further increase flexibility.

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{whang2021solving,
  author = {Jay Whang and Qi Lei and Alexandros G. Dimakis},
  title = {{Solving Inverse Problems with a Flow-based Noise Model}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
}
Figure