Reducing the Representation Error of GAN Image Priors Using the Deep Decoder

Mara Daniels, Paul Hand, Reinhard Heckel

TL;DR

By combining a pretrained GAN with an untrained Deep Decoder via a simple linear combination, this paper introduces a hybrid image prior that drastically reduces representation errors in inverse problems. This approach captures high-level semantic features while retaining the flexibility to reconstruct fine details and handle out-of-distribution images gracefully.

What Problem Does This Paper Address?

When solving imaging inverse problems—such as compressed sensing (reconstructing an image from a few random measurements) or super-resolution—we rely on an "image prior" to fill in the blanks.

Recently, Generative Adversarial Networks (GANs) have been widely used as learned priors because they understand the high-level semantics of a specific image class (e.g., human faces). However, GAN priors suffer from representation error: they restrict reconstructions strictly to their learned, low-dimensional manifold. If an image has fine details, unique textures, or deviates from the training set (out-of-distribution), the GAN prior fails to reconstruct it accurately.

Conversely, untrained networks like the Deep Decoder act as unlearned structural priors. They don't need training data and excel at capturing low-frequency natural image statistics, but they lack semantic awareness and tend to over-smooth images when measurements are highly limited.

The authors address a fundamental question: How can we cheaply combine the semantic strengths of learned generative models with the robust, detail-oriented strengths of unlearned structural priors?

Methods

The authors propose a remarkably simple solution: model the target image as a linear combination of a pretrained GAN and an untrained Deep Decoder.

The hybrid model is defined mathematically as: $$H(z, \theta, \alpha, \beta) = \alpha G_\phi(z) + \beta DD(\theta)$$

Where:

  • $G_\phi(z)$ is a pretrained GAN (such as a DCGAN or BEGAN). Crucially, the network weights $\phi$ remain fixed; only the low-dimensional latent code $z$ is optimized.
  • $DD(\theta)$ is an untrained Deep Decoder network, where the weights $\theta$ are optimized from scratch for each specific image.
  • $\alpha$ and $\beta$ are learnable scalar coefficients that dynamically weight the contribution of each model.
Figure 2: The model includes parameters α, β, θ, and z, which together comprise the image representation enforced by our Hybrid model. The final output information is a learned linear combination of the two component images.

The Inversion Algorithm

To solve the inverse problem, the authors use a two-stage optimization process:

  1. Pre-inversion (500 steps): Optimize $G_\phi(z)$ and $DD(\theta)$ separately against the measurements to find good initial estimates for $z^*$ and $\theta^*$.
  2. Joint Optimization (5000 steps): Initialize $\alpha = 0.5$ and $\beta = 0.5$, then jointly optimize $z, \theta, \alpha,$ and $\beta$ using the Adam optimizer to minimize the reconstruction loss.

Datasets

The method was evaluated using two primary datasets:

  • CelebA: Used to pretrain the GANs on celebrity faces and evaluate in-distribution performance.
  • Caltech-UCSD Birds 200: Used to evaluate out-of-distribution performance by forcing the face-trained hybrid model to reconstruct images of birds.

Key Insights and Ideas

  • Semantic Base + Structural Residual: Philosophically, the hybrid model treats the GAN as a provider of a semantic "base image" (correctly placing eyes, noses, and mouths) while the Deep Decoder acts as a "residual corrector" that fixes skin hues, fine hair details, and sharp edges.
  • Automatic Gating for Out-of-Distribution Data: When reconstructing an out-of-distribution image (like a bird) using a face-trained GAN, the optimization automatically drives the GAN coefficient $\alpha$ toward zero. The model dynamically "filters out" the unhelpful GAN prior and relies entirely on the Deep Decoder.
  • The Power of Underparameterization: Unlike alternative methods (like IAGAN or "GAN as DIP") that optimize all the weights of a massive GAN at test time, this hybrid model keeps the GAN fixed and uses an underparameterized Deep Decoder. This prevents the network from overfitting to noise without needing algorithmic hacks like early stopping.

Key Results

  • In-Distribution Superiority: For celebrity faces, the hybrid model consistently yields higher Peak Signal-to-Noise Ratios (PSNR) than either a GAN or Deep Decoder alone. It beats a standalone Deep Decoder by ~1 dB and completely avoids the performance plateau that causes pure GAN priors to stall as more measurements become available.
Figure 3: Reconstruction PSNRs versus measurement numbers for in-distribution test images for our hybrid model, a Deep Decoder, and a GAN prior. The left panels zoom in to the low measurement regime of the right panels. Our hybrid model is able to yield higher PSNRs than both of its components, the Deep Decoder and a GAN, on in-distribution test images, in all but the lowest measurement regime. The effect is replicated both for the BEGAN (top row) and the DCGAN (bottom row).
  • Out-of-Distribution Graceful Degradation: When reconstructing birds, the hybrid model matches or slightly exceeds the performance of the standalone Deep Decoder, while the standalone GAN prior completely fails to produce a sensible image.
  • Extreme Parameter Efficiency: The hybrid model achieves these results using only ~10k to 20k optimizable parameters at test time, compared to the 2.5M to 3.5M parameters required by overparameterized test-time GAN tuning methods, while outperforming them by up to 1.5 dB in intermediate measurement regimes.

Limitations and Future Work

  • Test-Time Optimization Cost: Because the Deep Decoder component must be optimized from scratch for every single image, the reconstruction process requires thousands of gradient descent iterations. This makes it significantly slower at inference time than pure feed-forward, end-to-end deep learning networks.
  • Sensitivity to Initialization: The optimization relies heavily on the 500-step pre-inversion phase. If the initial independent fits fall into poor local minima, the subsequent joint optimization phase may struggle to recover.

Summary updated

BibTeX
@misc{daniels2020reducing,
  author = {Mara Daniels and Paul Hand and Reinhard Heckel},
  title = {{Reducing the Representation Error of GAN Image Priors Using the Deep Decoder}},
  year = {2020},
  eprint = {2001.08747},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.08747},
}

Loading related content...

Figure