Skip to main content
QUICK REVIEW

[Paper Review] Conditional Image Generation by Conditioning Variational Auto-Encoders

William R. Harvey, Saeid Naderiparizi|arXiv (Cornell University)|Feb 24, 2021
Generative Adversarial Networks and Image SynthesisComputer Science10 citations
TL;DR

This paper proposes a method to efficiently train conditional variational auto-encoders (cVAEs) by leveraging a pretrained unconditional VAE as a foundation model, avoiding costly training from scratch. By training only a lightweight inference artifact to map conditioning inputs to latent codes, the approach achieves GAN-level sample quality and coverage of the true posterior distribution—particularly excelling in stochastic image inpainting with faithful uncertainty representation—while avoiding mode collapse.

ABSTRACT

We present a conditional variational auto-encoder (VAE) which, to avoid the substantial cost of training from scratch, uses an architecture and training objective capable of leveraging a foundation model in the form of a pretrained unconditional VAE. To train the conditional VAE, we only need to train an artifact to perform amortized inference over the unconditional VAE's latent variables given a conditioning input. We demonstrate our approach on tasks including image inpainting, for which it outperforms state-of-the-art GAN-based approaches at faithfully representing the inherent uncertainty. We conclude by describing a possible application of our inpainting model, in which it is used to perform Bayesian experimental design for the purpose of guiding a sensor.

Motivation & Objective

  • To address the long training times of conditional VAEs by reusing pretrained unconditional VAEs.
  • To enable efficient fine-tuning of cVAEs without retraining the entire model from scratch.
  • To achieve high-quality, diverse image completions that faithfully represent posterior uncertainty.
  • To demonstrate the method's superiority over GAN-based approaches in capturing mode diversity, especially in stochastic image inpainting.
  • To enable applications requiring full posterior coverage, such as Bayesian experimental design for sensor guidance.

Proposed method

  • The method uses a pretrained unconditional VAE as a fixed decoder and prior, freezing its parameters.
  • A new inference network (the 'artifact') is trained to map conditioning inputs (e.g., masked images) to approximate posterior distributions over the VAE's latent space.
  • The model is trained via the standard VAE objective, maximizing the ELBO with respect to the conditional data distribution.
  • The inference artifact performs amortized inference, enabling fast, scalable sampling during generation.
  • The approach supports transfer learning: a single pretrained VAE can be adapted to multiple conditional tasks (e.g., inpainting, colorization).
  • The method is shown to minimize the mass-covering KL divergence, leading to better posterior coverage than GANs.

Experimental results

Research questions

  • RQ1Can a pretrained unconditional VAE be effectively repurposed for conditional image generation with minimal additional training?
  • RQ2Does the proposed method achieve competitive sample quality and diversity compared to state-of-the-art GAN-based approaches in image inpainting?
  • RQ3Can the model faithfully represent uncertainty in image completions, avoiding mode collapse common in GANs?
  • RQ4Is the method scalable and transferable across different conditional image generation tasks using a single foundation VAE?
  • RQ5Can the model be used effectively in downstream applications requiring full posterior coverage, such as Bayesian experimental design?

Key findings

  • The proposed method achieves image completion quality comparable to state-of-the-art GANs, such as CoModGAN, on CIFAR-10, ImageNet-64, and FFHQ-256.
  • Unlike GANs, the method avoids mode collapse: in 20 inspected test images, CoModGAN exhibited mode collapse in 5 cases, while IPA consistently produced diverse completions.
  • The model demonstrates superior coverage of the true posterior distribution, as evidenced by more diverse and plausible completions under uncertainty.
  • The use of a pretrained VAE reduces training time significantly compared to training a cVAE from scratch, while maintaining high sample quality.
  • The method generalizes across datasets: a VAE pretrained on ImageNet successfully enables high-quality image inpainting on photo datasets like FFHQ and CIFAR-10.
  • The model is effective in Bayesian experimental design, where accurate posterior representation is critical for optimal sensor guidance.

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.