Invertible generative models for inverse problems: mitigating representation error and dataset bias

Muhammad Asim, Ali Ahmed, Paul Hand

TL;DR

This paper introduces invertible neural networks (INNs) as a powerful new class of priors for solving inverse problems in imaging. Unlike traditional generative models like GANs, INNs have zero representation error, allowing them to reconstruct images that are outside their training distribution and mitigating biases present in the training data. This leads to improved performance in tasks like denoising and compressive sensing, even outperforming state-of-the-art methods.

What Problem Does This Paper Address?

Generative models, particularly GANs, have revolutionized image reconstruction for inverse problems (e.g., denoising, compressive sensing) by acting as powerful "priors" that guide the reconstruction process. These priors help recover images from incomplete or noisy measurements by leveraging learned knowledge about natural image statistics. However, GANs suffer from two major limitations:

  1. Representation Error: GANs learn a low-dimensional manifold of natural images. This means they might not be able to represent certain valid images, especially those that are "out-of-distribution" (i.e., not well-represented in the training data). This can lead to reconstruction failures.
  2. Dataset Bias: GANs inherit biases from their training datasets. For example, a GAN trained on faces might learn to associate certain features (like beards or glasses) with specific demographics, leading to biased reconstructions.

These limitations hinder the reliability and generalizability of GAN priors, especially in applications where novel or unexpected data is common (e.g., medical imaging). This paper aims to address these issues by proposing a new type of generative prior that overcomes representation error and dataset bias.

Methods

The core of this paper is the use of invertible neural networks (INNs) as generative priors. INNs are designed such that they are mathematically invertible, meaning there's a one-to-one mapping between the input (latent space) and output (image space). This property is key because:

  • Zero Representation Error: By design, INNs can represent any image. This eliminates the problem of GANs failing to represent out-of-distribution images.
  • Direct Likelihood Estimation: INNs allow for efficient computation of the likelihood of any given image. This is crucial for formulating inverse problems as maximum likelihood estimation problems.

The authors propose solving inverse problems by finding an image that is consistent with the measurements and has a high likelihood under the INN prior. They formulate this as an optimization problem in the latent space of the INN. For denoising, they use a regularized objective that penalizes the norm of the latent representation. For compressive sensing and inpainting, they simplify this by using an initialization at zero in the latent space, which implicitly regularizes the solution.

They specifically use the Glow architecture (Kingma & Dhariwal, 2018) for their INN experiments. They also compare their approach to:

  • GAN Priors: DCGAN and PGGAN.
  • Unlearned Priors: Deep Decoder and sparsity priors (Lasso-DCT, Lasso-WVT).
  • Classical Methods: BM3D for denoising.

Datasets

  • Training: CelebA dataset (used for training the Glow, DCGAN, and PGGAN models).
  • Evaluation:
    • In-distribution: A validation split of the CelebA-HQ dataset.
  • Out-of-distribution: Flickr Faces High Quality (FFHQ) dataset, and other natural images like cars, houses, and butterflies.

Key Insights and Ideas

  • Zero Representation Error is a Game-Changer: The most significant insight is that by having zero representation error, INNs can handle out-of-distribution data gracefully, unlike GANs which saturate due to their inherent representation limitations.
  • Mitigating Dataset Bias: INNs, by not being constrained to a low-dimensional manifold, are less susceptible to biases present in the training data. This allows for more faithful reconstructions of images that deviate from the training set's typical characteristics.
  • Implicit Regularization via Initialization: For compressive sensing, initializing the latent code to zero (z0=0) provides a surprisingly effective implicit regularization, leading to strong performance without explicit likelihood penalization.
  • Theoretical Guarantees: The paper provides theoretical bounds for compressive sensing with linear invertible models, showing that recovery error decreases with the number of measurements, unlike GANs where it saturates at the representation error.
  • INNs as General-Purpose Priors: A single trained INN can be used as a prior for various inverse problems (denoising, CS, inpainting) without needing to be retrained for each specific task.

Key Results

  • Denoising: The Glow prior outperforms BM3D by up to 2 dB and the DCGAN prior by a significant margin, especially at higher noise levels. Recoveries are sharper than BM3D.
  • Compressive Sensing (In-distribution): The Glow prior achieves higher PSNRs than GANs (DCGAN, PGGAN) and Deep Decoder across a wide range of undersampling ratios.
  • Compressive Sensing (Out-of-distribution): The Glow prior exhibits graceful performance decay and significantly outperforms GANs, while remaining comparable to the Deep Decoder. It also shows better performance than LASSO-based methods on arbitrary natural images.
  • Inpainting: Glow prior reconstructions are of noticeably higher visual quality, sharper, and more coherent than those from DCGAN.
  • Theoretical Bounds: For linear invertible models, the paper establishes upper and lower bounds on expected squared recovery error, showing it decreases with the number of measurements, unlike GANs which saturate.

Limitations and Future Work

  • Computational Cost: Training and using INNs can be computationally expensive. For example, solving a 128x128px problem took about 11 minutes on a GPU.
  • Instability with Arbitrary Out-of-Distribution Images: While INNs handle semantically related out-of-distribution images well, they can become unstable when faced with completely unrelated natural images (e.g., cars, houses) that are assigned very low likelihood scores. This can lead to diverging outputs. The authors mention efforts to handle these instabilities by clipping activations and adding small constants.
  • Future Work: The authors suggest developing new architectures and frameworks that balance low representation error, ease of training, and ease of inversion, potentially being cheaper to train and use than current INNs. They also highlight the need for further research into optimizing the bounds derived in their theoretical analysis.

Summary updated

Abstract

Trained generative models have shown remarkable performance as priors for inverse problems in imaging – for example, Generative Adversarial Network priors permit recovery of test images from 5-10x fewer measurements than sparsity priors. Unfortunately, these models may be unable to represent any particular image because of architectural choices, mode collapse, and bias in the training dataset. In this paper, we demonstrate that invertible neural networks, which have zero representation error by design, can be effective natural signal priors at inverse problems such as denoising, compressive sensing, and inpainting. Given a trained generative model, we study the empirical risk formulation of the desired inverse problem under a regularization that promotes high likelihood images, either directly by penalization or algorithmically by initialization. For compressive sensing, invertible priors can yield higher accuracy than sparsity priors across almost all undersampling ratios, and due to their lack of representation error, invertible priors can yield better reconstructions than GAN priors for images that have rare features of variation within the biased training set, including out-of-distribution natural images. We additionally compare performance for compressive sensing to unlearned methods, such as the deep decoder, and we establish theoretical bounds on expected recovery error in the case of a linear invertible model.
BibTeX
@inproceedings{asim2020invertible,
  author = {Muhammad Asim and Ali Ahmed and Paul Hand},
  title = {{Invertible generative models for inverse problems: mitigating representation error and dataset bias}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=gm7HhfR8ST},
}
Figure