Amortised MAP Inference for Image Super-resolution

Casper Kaae Sønderby, Jose Caballero, Lucas Theis, Wenzhe Shi, Ferenc Huszár

Overview

This paper introduces a way to perform "amortised" Maximum a Posteriori (MAP) inference for image super-resolution using a novel neural network architecture. By incorporating an affine projection layer that guarantees the high-resolution output is consistent with the low-resolution input, the authors show that training for perceptual quality becomes a problem of matching image distributions, which they solve effectively using Generative Adversarial Networks (GANs).

What Problem Does This Paper Address?

Image Super-Resolution (SR) is a classic "underdetermined" inverse problem: for any given low-resolution (LR) image, there are infinitely many high-resolution (HR) images that could have produced it.

Most standard SR models are trained using Mean Squared Error (MSE) loss. Mathematically, an MSE-optimized model learns to output the mean of all possible plausible HR images. In the complex space of natural images, this "average" solution looks blurry and over-smoothed.

The authors argue we should instead seek the Maximum a Posteriori (MAP) estimate—the single most likely HR image given the LR input and our prior knowledge of what natural images look like. However, direct MAP inference is computationally expensive to perform for every image. This paper proposes "amortising" that cost by training a convolutional neural network (CNN) to predict the MAP estimate in a single forward pass.

Methods

The researchers introduce two major innovations:

  1. The Affine Projection Layer: They designed a specific CNN architecture that performs a projection onto the affine subspace of valid SR solutions. This ensures that if you downsample the network's HR output, you get the exact LR input back. This hard constraint reduces the search space for the network and ensures mathematical consistency.
  2. Three Training Strategies: To find the MAP estimate (which requires knowing the "prior" distribution of natural images), they proposed three methods:
  3. AffGAN (Affine Projected GAN): Uses a discriminator to push the network toward the distribution of real images.
  4. AffDG (Denoiser-Guided): Uses a pre-trained Denoising Autoencoder (DAE) to provide gradients that guide the SR network toward "cleaner," more probable image manifolds.
  5. AffLL (Density-Guided): Uses a differentiable generative model (like PixelCNN) to directly provide log-likelihood gradients.

Additionally, they introduced Instance Noise—adding Gaussian noise to both real and generated samples during GAN training—to prevent the discriminator from becoming too powerful too quickly, which stabilizes training.

Key Insights and Ideas

  • Consistency as a Constraint: By forcing the network to be consistent with the input via the affine projection layer, the model doesn't have to "learn" how to downsample; it can focus entirely on hallucinating high-frequency details.
  • The "Mean" is the Enemy of "Sharp": The toy Swiss-roll experiment elegantly demonstrates that MSE and MAE (Mean Absolute Error) solutions often land in "low-probability" regions (the empty space between the curves), while MAP inference finds the "mode" (the actual data points).
Toy Swiss-roll experiment comparing MSE, MAE, and MAP inference.
  • GANs as Variational Inference: The paper provides a theoretical bridge, showing that a stochastic version of their AffGAN is essentially performing amortised variational inference, similar to a Variational Autoencoder (VAE).

Key Results

  • Perceptual Superiority: The GAN-based approach (AffGAN) produced the most visually plausible and sharpest results, especially on textures and faces, compared to MSE baselines.
  • Training Efficiency: The affine projection layer allowed models to converge faster and achieve better consistency than "soft" constraints (like adding a penalty term to the loss function).
Training curves demonstrating convergence and consistency.
  • Quantitative vs. Qualitative Trade-off: Interestingly, while AffGAN looked better to humans, it scored lower on traditional metrics like PSNR (Peak Signal-to-Noise Ratio). This highlights the known "perception-distortion" trade-off: higher mathematical accuracy to the ground truth often results in lower visual quality.

Limitations and Future Work

  • Atypical Modes: The authors acknowledge a classic criticism of MAP inference: the "mode" of a high-dimensional distribution (like the space of all images) can sometimes be an "atypical" sample that doesn't look like a standard representative of the class.
  • Hallucination Errors: In the ImageNet results, the GAN sometimes "dreams up" plausible but incorrect details. For example, a snake's scales might be super-resolved into a water-like texture because water has a higher probability in the model's learned prior.
  • Stochastic Extension: The authors suggest that moving from a single MAP estimate to a stochastic model (sampling from the posterior) is a promising next step to capture the full uncertainty of the super-resolution problem.

Summary updated

BibTeX
@inproceedings{snderby2017amortised,
  author = {Casper Kaae Sønderby and Jose Caballero and Lucas Theis and Wenzhe Shi and Ferenc Huszár},
  title = {{Amortised MAP Inference for Image Super-resolution}},
  booktitle = {International Conference on Learning Representations},
  year = {2017},
  url = {https://openreview.net/forum?id=S1RP6GLle},
}
Figure