Skip to main content
QUICK REVIEW

[Paper Review] Bayesian Image Reconstruction using Deep Generative Models

Razvan Marinescu, Daniel Moyer|arXiv (Cornell University)|Dec 8, 2020
Advanced Image Processing TechniquesComputer Science58 references11 citations
TL;DR

This paper proposes Bayesian Reconstruction through Generative Models (BRGM), a method that uses a pre-trained StyleGAN2 generator as a prior to perform image reconstruction via Bayesian maximum a posteriori (MAP) estimation over latent vectors. Without retraining, BRGM achieves competitive performance on super-resolution and in-painting across diverse datasets, including medical imaging, by optimizing latent codes at inference time using variational inference to sample multiple plausible reconstructions.

ABSTRACT

Machine learning models are commonly trained end-to-end and in a supervised setting, using paired (input, output) data. Examples include recent super-resolution methods that train on pairs of (low-resolution, high-resolution) images. However, these end-to-end approaches require re-training every time there is a distribution shift in the inputs (e.g., night images vs daylight) or relevant latent variables (e.g., camera blur or hand motion). In this work, we leverage state-of-the-art (SOTA) generative models (here StyleGAN2) for building powerful image priors, which enable application of Bayes' theorem for many downstream reconstruction tasks. Our method, Bayesian Reconstruction through Generative Models (BRGM), uses a single pre-trained generator model to solve different image restoration tasks, i.e., super-resolution and in-painting, by combining it with different forward corruption models. We keep the weights of the generator model fixed, and reconstruct the image by estimating the Bayesian maximum a-posteriori (MAP) estimate over the input latent vector that generated the reconstructed image. We further use variational inference to approximate the posterior distribution over the latent vectors, from which we sample multiple solutions. We demonstrate BRGM on three large and diverse datasets: (i) 60,000 images from the Flick Faces High Quality dataset (ii) 240,000 chest X-rays from MIMIC III and (iii) a combined collection of 5 brain MRI datasets with 7,329 scans. Across all three datasets and without any dataset-specific hyperparameter tuning, our simple approach yields performance competitive with current task-specific state-of-the-art methods on super-resolution and in-painting, while being more generalisable and without requiring any training. Our source code and pre-trained models are available online: https://razvanmarinescu.github.io/brgm/.

Motivation & Objective

  • To address the limitations of end-to-end supervised learning in image reconstruction, particularly the need for retraining under distribution shifts or new corruption models.
  • To enable generalization across multiple image restoration tasks using a single pre-trained generative model, avoiding task-specific fine-tuning.
  • To provide a Bayesian framework that estimates not just a single reconstruction but a distribution of plausible solutions via posterior sampling.
  • To demonstrate the method's effectiveness on diverse, real-world datasets, including medical imaging, without dataset-specific hyperparameter tuning.
  • To reduce reliance on large-scale paired training data and computational resources by leveraging pre-trained generative models as strong image priors.

Proposed method

  • The method uses a pre-trained StyleGAN2 generator as a prior to model the distribution of natural images, with fixed generator weights throughout inference.
  • For a given corrupted input image I, the method estimates the latent vector w* that maximizes the posterior p(w|I) using Bayesian MAP estimation: w* = argmax_w p(w)p(I|f∘G(w)).
  • The forward corruption model f is applied to the generated image G(w) to simulate the observed input I, and f can be any known corruption process (e.g., downsampling, masking, blurring).
  • Variational Inference is used to approximate the true posterior p(w|I), enabling sampling of multiple plausible reconstructions from the latent space.
  • The method is applied at inference time without any model fine-tuning, making it adaptable to new corruption models or input distributions.
  • The approach is evaluated on three datasets: FlickFaces, MIMIC-III chest X-rays, and brain MRI scans, with consistent performance across all.

Experimental results

Research questions

  • RQ1Can a single pre-trained generative model be used to solve multiple image restoration tasks without retraining?
  • RQ2How does Bayesian MAP estimation with a deep generative prior compare to end-to-end supervised methods in terms of reconstruction quality and diversity?
  • RQ3Can variational inference over the latent space of a pre-trained generator provide a meaningful distribution of plausible reconstructions?
  • RQ4How generalizable is the method across diverse data distributions, including medical imaging with domain shifts?
  • RQ5Does the method outperform state-of-the-art models in super-resolution and in-painting while avoiding the averaging effect common in pixel-wise loss methods?

Key findings

  • On the FFHQ super-resolution benchmark at 16² resolution, BRGM achieved an LPIPS of 0.24 and RMSE of 25.66, outperforming PULSE (0.29/27.14) and ESRGAN (0.35/29.32).
  • At 64² resolution, BRGM achieved an LPIPS of 0.36 and RMSE of 16.07 on FFHQ, outperforming SRFBN (0.23/9.40) in RMSE but slightly behind in LPIPS.
  • In in-painting, BRGM achieved an LPIPS of 0.19 and RMSE of 24.28 on FFHQ, outperforming SN-PatchGAN (0.24/30.75) in both metrics.
  • In human evaluation, BRGM received 42% of votes for the best reconstruction at 16² resolution, significantly outperforming PULSE (32%) and ESRGAN (11%).
  • On the MIMIC-III X-ray dataset, BRGM achieved an LPIPS of 0.18 and RMSE of 11.61 at 16² resolution, outperforming ESRGAN (0.32/14.67) and SRFBN (0.37/12.28).
  • On brain MRI scans, BRGM achieved an LPIPS of 0.12 and RMSE of 12.42 at 16² resolution, significantly outperforming ESRGAN (0.34/22.81) and SRFBN (0.33/12.57).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.