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

TL;DR

This paper introduces a hybrid generative model that combines the stable, structured latent space of Variational Auto-encoders (VAEs) with the high-fidelity image generation of Generative Adversarial Networks (GANs). By simultaneously matching data, reconstruction loss, and latent distributions using an auto-encoder discriminator alongside an advanced PID-based feedback controller, the model achieves sharp, high-resolution image synthesis with excellent latent space control.

What Problem Does This Paper Address?

In deep generative modeling, researchers have long faced a trade-off between Variational Auto-encoders (VAEs) and Generative Adversarial Networks (GANs).

VAEs are highly stable and provide a well-behaved, invertible latent space, making them excellent for tasks like image editing via latent space arithmetic. However, because they rely on pixel-wise reconstruction losses (like $L_1$ or $L_2$), they tend to average out fine details, resulting in blurry and over-smoothed images.

GANs, on the other hand, use a discriminator to learn a flexible similarity metric, producing remarkably sharp and realistic images. Yet, they are notoriously difficult to train, suffer from mode collapse (where the generator outputs repetitive samples), and lack a direct way to map an existing image back into the latent space.

The authors address this gap by designing a framework that captures the best of both worlds: the sharpness of adversarial models and the structured control of variational models.

Methods

The proposed architecture consists of two primary components: a Generator (configured as a VAE) and a Discriminator (configured as a regular Auto-encoder).

Overview of the proposed VAE-GAN architecture showing the interaction and loss paths between the generator and discriminator.

To achieve high-fidelity generation and stable training, the authors introduce three key methodological innovations:

  1. Multi-Distribution Matching: Instead of just matching raw pixel data, the model simultaneously forces the real and generated (fake) samples to match across three levels: their data distributions, their reconstruction loss distributions (leveraging Wasserstein distance concepts from BEGAN), and their latent space distributions.
  2. Perceptual Guidance ($L_s$): The discriminator's internal encoder space is used as a learned similarity metric. The network minimizes the difference between the latent representations of real and fake images, providing abstract, structural guidance to the generator.
  3. PID Controller for Training Equilibrium: Adversarial training is a delicate balancing act between the generator and discriminator. Building on the proportional control mechanism of BEGAN, this paper introduces a full Proportional-Integral-Derivative (PID) style controller. By incorporating accumulated error (integral) and current error trends (derivative), it dampens training oscillations and prevents the discriminator from easily overpowering the generator early on.

Datasets

The model was trained and evaluated on two widely used benchmarks:

  • CelebA (CelebFaces Attribute Dataset): Contains over 202k celebrity face images annotated with 40 attributes. The authors used the aligned and cropped version to evaluate visual quality, latent space continuity, and attribute manipulation.
  • CIFAR-10: Consists of 60,000 $32\times32$ color images across 10 classes. This dataset was used primarily for quantitative benchmarking.

Key Insights and Ideas

  • Hierarchical Supervision Matters: Relying on pixel-level matching alone causes blurriness, while relying solely on adversarial loss causes instability. Supervising the network at the data, loss, and latent levels simultaneously provides a robust constraint framework.
  • The Discriminator as a Feature Space: Using an auto-encoder as a discriminator allows its internal bottleneck layer to naturally serve as a perceptual feature extractor, eliminating the need for a separate pre-trained network (like VGG) to compute perceptual loss.
  • Control Theory Stabilizes GANs: The introduction of a derivative term in the equilibrium controller is an "aha moment" for training stability. It acts as a brake, preventing the rapid, destabilizing oscillations common in standard adversarial feedback loops.

Key Results

Quantitative Performance

On the CIFAR-10 dataset, the model was evaluated using the Inception Score (higher is better), which measures the clarity and diversity of generated images. The proposed model achieved a score of 6.80, significantly outperforming standard DCGAN (4.89) and BEGAN (5.62), while performing competitively with other advanced VAE variants like AS-VAE-g (6.89).

Qualitative Performance

The model successfully scales up to generate high-quality, diverse facial expressions and attributes at both $64\times64$ and $128\times128$ resolutions.

Figure 2: Generated Images (64 × 64)
Figure 3: Generated Images (128 × 128)

When compared qualitatively to other architectures, the proposed method avoids both the severe blurriness of standard VAEs and the local/global visual artifacts seen in DCGAN and EBGAN.

Qualitative comparison against VAE, VAE-GAN, BSGAN, DCGAN, EBGAN, and BEGAN.

Latent Space Exploration

Because the generator retains a true VAE structure, the latent space is exceptionally smooth. Linear interpolations between two distinct faces show seamless, realistic transitions without abrupt jumps or unrealistic artifacts.

Smooth interpolation between two generated faces in the latent space.

Furthermore, the model successfully performs vector arithmetic in the latent space, allowing targeted attribute modifications (such as adding glasses, changing hair color, or altering skin tone) while preserving the subject's identity.

Limitations and Future Work

Despite the improvements, the authors note a slight smoothing effect when scaling the model to higher resolutions (e.g., from $64\times64$ to $128\times128$). They also observe that real images remain significantly more complex for the discriminator to reconstruct than generated ones, indicating room for improvement in the discriminator's capacity.

For future work, the authors suggest exploring conditional image generation frameworks to push the boundaries of photo-realism at even higher resolutions.

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