AVAE: Adversarial Variational Auto Encoder

Antoine Plumerault, Hervé Le Borgne, Céline Hudelot

Abstract

Generative modeling has long been divided between the structured latent spaces of Variational Auto Encoders (VAEs) and the high-fidelity synthesis of Generative Adversarial Networks (GANs). VAEs suffer from blurry reconstructions due to pixel-wise losses, while GANs are difficult to invert and prone to mode collapse. We present the Adversarial Variational Auto Encoder (AVAE), a hybrid framework that eliminates this trade-off. By introducing a novel latent reconstruction loss that accounts for encoder variance, AVAE produces sharp, GAN-quality images while maintaining the reconstruction fidelity and training stability of VAEs.

Introduction: The Blurriness Problem

Deep generative models typically face a choice between representation quality and sample realism. VAEs learn a continuous latent manifold but produce blurry outputs. This blurriness is a direct consequence of using Mean Squared Error (MSE) or similar pixel-wise reconstruction losses. When the model is uncertain about high-frequency details (like the exact position of a hair strand), the mathematical optimum for MSE is the average of all possible configurations, leading to a hazy result.

The optimal reconstruction in a standard VAE often results in blurriness as it averages over potential outcomes.

Conversely, GANs generate sharp textures by using a discriminator to enforce realism. However, GANs lack an inherent inference mechanism (encoder) and are notoriously unstable during training, often failing to cover the full diversity of the data distribution (mode collapse). Previous attempts to combine these architectures often resulted in a compromise where either realism or reconstruction fidelity was sacrificed.

The AVAE Framework

The proposed AVAE architecture bridges this gap by integrating four key components: an Encoder ($E_{\theta_e}$), a Decoder ($D_{\theta_d}$), a Generator ($G_{\theta_g}$), and a Critic ($C_{\theta_c}$).

The AVAE architecture integrates VAE and GAN components with specific loss functions for reconstruction, manifold realism, and latent consistency.

Core Components and Losses

The innovation of AVAE lies in the interaction between its components, governed by three primary loss terms:

  1. Standard Reconstruction Loss ($\mathcal{L}_{\mathcal{R}}$): Maintains the basic VAE path for stable training and latent space organization.
  2. Latent Reconstruction Loss ($\mathcal{L}_{\mathcal{Z}}$): To ensure the generator respects the latent space, AVAE enforces consistency: an image generated from a latent code $z$, when re-encoded, should return to $z$. Crucially, the authors derive a loss function that incorporates the encoder's variance, ensuring the generator and encoder converge to a shared optimum rather than competing.
  3. Manifold Loss ($\mathcal{L}_{\mathcal{M}}$): A critic network evaluates the realism of generated samples, pushing the generator toward the "natural image manifold." This allows the model to synthesize sharp details, such as hair or skin textures, that a pixel-wise loss would otherwise smooth out.

Experimental Results

AVAE was evaluated on several standard benchmarks, including CelebA, FFHQ (256x256), and LSUN Bedrooms, to test its performance across different resolutions and domains.

  • Image Quality: On the CelebA dataset, AVAE achieved a Fréchet Inception Distance (FID) of approximately 15.0, a significant improvement over the ~60.0 FID typically seen in standard VAEs.
  • Reconstruction Fidelity: Unlike BiGAN or other adversarial autoencoders that often sacrifice identity preservation for realism, AVAE maintains high reconstruction accuracy. The resulting images look like the original subjects but with the clarity of high-resolution photographs.
  • Scalability: The framework successfully scales to 256x256 resolution using a StyleGAN2-based backbone, demonstrating that the method is not limited to low-resolution data.

Conclusion

AVAE demonstrates that the goals of VAEs and GANs are not mutually exclusive. By carefully framing the interaction between the encoder and generator in the latent space, it is possible to achieve both high-fidelity reconstruction and state-of-the-art image realism. This framework provides a robust path forward for high-resolution generative modeling where both synthesis and inference are required.

Summary updated

BibTeX
@inproceedings{plumerault2020avae,
  author = {Antoine Plumerault and Hervé Le Borgne and Céline Hudelot},
  title = {{AVAE: Adversarial Variational Auto Encoder}},
  booktitle = {ICPR},
  year = {2020},
  doi = {10.1109/icpr48806.2021.9412727},
}
Figure