NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Adversarial Training of Variational Auto-Encoders for High Fidelity Image Generation

Salman H. Khan, Munawar Hayat, Nick Barnes · DOI

Abstract

This paper introduces a hybrid generative model that combines the stable, structured latent space of Variational Auto-encoders (VAEs) with the high-fidelity output of Generative Adversarial Networks (GANs). By matching reconstruction loss distributions and latent representations through an auto-encoder-based discriminator and a PID-style controller, the authors achieve sharp image generation with a semantically meaningful latent space.

Introduction

Generative modeling has long been a tug-of-war between two primary architectures: Variational Auto-encoders (VAEs) and Generative Adversarial Networks (GANs). VAEs are stable to train and provide a structured latent space suitable for semantic manipulation, but they typically produce blurry, over-smoothed images due to their reliance on pixel-wise reconstruction losses. Conversely, GANs produce crisp, realistic images by optimizing an adversarial game between a generator and a discriminator. However, GANs are notoriously unstable, prone to "mode collapse," and lack a direct inference mechanism to map images back to a latent code.

This research aims to bridge this gap, creating a model that generates high-fidelity, sharp images while maintaining the controllable and interpretable latent space characteristic of a VAE.

Methodology

The proposed architecture is a sophisticated blend of VAE and GAN principles, featuring several novel components designed to stabilize training and improve output quality.

The proposed architecture featuring a VAE generator and an Auto-encoder (AE) discriminator with multi-level loss supervision.

Dual Auto-encoder Setup

Unlike standard GANs where the discriminator outputs a single probability, this model utilizes a standard Auto-encoder (AE) as the discriminator. The generator is a VAE. The training objective involves matching the distributions of reconstruction losses for real and fake images, a technique inspired by Boundary Equilibrium GANs (BEGAN). This approach focuses the model on the "energy" of the samples rather than just binary classification.

Perceptual Guidance and Stability

To move beyond blurry pixel-wise comparisons, the authors enforce an $\ell_1$ loss in the latent space of the discriminator. This forces the generator to produce images that the discriminator "perceives" as similar to real data at a high-level feature level. Furthermore, to address the inherent instability of adversarial training, the authors implement a feedback control loop—similar to a Proportional-Integral-Derivative (PID) controller. This controller dynamically balances the generator and discriminator, dampening oscillations and ensuring the adversarial "game" remains competitive throughout training.

Experimental Results

The model was evaluated on the CelebA dataset for high-resolution face generation (up to 128x128) and the CIFAR-10 dataset for quantitative benchmarking.

Qualitative comparison of real and fake images alongside their reconstructions from the discriminator.

Quantitative Performance

On CIFAR-10, the model achieved an Inception Score of 6.80, significantly outperforming standard BEGAN (5.62) and VAE-GAN (approx. 5.34) baselines. This performance approaches that of semi-supervised models despite being entirely unsupervised.

Qualitative Fidelity and Latent Structure

The model successfully generated 128x128 face images that were noticeably sharper and more diverse than those from standard VAEs. As shown in the figure above, the discriminator is capable of reconstructing both real and generated images, though it finds real images slightly more challenging, indicating areas for further refinement.

Crucially, the latent space remains highly structured. The authors demonstrated that by adding or subtracting "attribute vectors" (e.g., the average vector for "bald" minus the average for "hair"), they could deterministically modify generated faces—such as changing hair color or skin tone—while keeping the subject's identity relatively intact.

Conclusion and Future Work

By integrating hierarchical supervision—at the pixel, energy, and feature levels—the authors have developed a robust framework for high-fidelity image generation. While the model scales better than standard VAEs, some smoothing effects remain at higher resolutions. Future research directions include exploring conditional image generation to further push the boundaries of resolution and realism.

Summary updated

BibTeX
@inproceedings{khan2018adversarial,
  author = {Salman H. Khan and Munawar Hayat and Nick Barnes},
  title = {{Adversarial Training of Variational Auto-Encoders for High Fidelity Image Generation}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2018},
  doi = {10.1109/wacv.2018.00148},
}
Figure