Adversarial Generator-Encoder Networks

Dmitry Ulyanov, Andrea Vedaldi, Victor S. Lempitsky

TL;DR

This paper introduces Adversarial Generator-Encoder (AGE) networks, a novel architecture that unifies generative and inference capabilities within a single, two-component system. By setting up an adversarial game directly between the encoder and generator, AGE networks achieve high-quality sample generation and reconstruction without the need for a separate discriminator, leading to simpler training and improved efficiency.

What Problem Does This Paper Address?

Generative models like Variational Autoencoders (VAEs) and Generative Adversarial Networks (GANs) have complementary strengths and weaknesses. VAEs excel at learning bidirectional mappings for both generation and inference, but often produce less realistic samples. GANs, on the other hand, generate highly realistic samples but typically lack inference capabilities. Existing hybrid approaches attempt to combine these strengths, but often introduce significant complexity by requiring multiple deep mappings (encoder, generator, discriminator). This paper addresses the challenge of achieving both high-quality generation and robust inference in a more streamlined and efficient manner.

Methods

The core innovation is the Adversarial Generator-Encoder (AGE) network. Unlike traditional GANs that use a discriminator to distinguish real from generated data, AGE networks set up an adversarial game directly between the encoder and the generator.

Here's how it works:

  • Two Components: The network consists of only two main parts: a generator ($g$) that maps a simple prior distribution in the latent space ($Z$) to the data space ($X$), and an encoder ($e$) that maps data samples from $X$ to $Z$.
  • Adversarial Game in Latent Space: The adversarial game is played in the latent space. The generator tries to make its encoded output ($e(g(Z))$) match the prior distribution ($Z$), while the encoder tries to push the encoded real data ($e(X)$) towards the prior distribution ($Z$) and simultaneously push the encoded generated data ($e(g(Z))$) away from the prior. This creates a "tug-of-war" in the latent space.
  • Divergence Measure: The game objective compares divergences between distributions in the latent space, specifically between $e(g(Z))$ and $Z$, and $e(X)$ and $Z$. This avoids direct comparison of high-dimensional data distributions, which can be problematic.
  • Reciprocity and Reconstruction: To ensure that the encoder and generator form a coherent pair for reconstruction, the authors introduce optional reconstruction losses. These losses encourage the generator to reconstruct samples from their encoded representations, and vice-versa.

Datasets

The paper evaluates AGE networks on several standard image datasets:

  • Tiny ImageNet: Used for unconditional generation and reconstruction.
  • SVHN (Street View House Numbers): Used for unconditional generation and reconstruction.
  • CIFAR-10: Used for unconditional generation and reconstruction, and for quantitative evaluation using Inception score.
  • CelebA: Used for unconditional generation and reconstruction, and for latent space interpolation.
  • MNIST: Used for quantitative evaluation of log-likelihood.
  • Stanford Cars: Used for conditional colorization experiments.

No new benchmarks were introduced; existing datasets were used to compare against state-of-the-art methods.

Key Insights and Ideas

  • Simplicity is Key: The most significant insight is that a complex discriminator is not necessary for achieving high-quality generative models. By directly pitting the encoder against the generator in the latent space, the authors achieve comparable or better results with a simpler architecture.
  • Latent Space Alignment is Powerful: The adversarial game in the latent space effectively drives the alignment of the real data distribution with the generated distribution in the data space. This is a more indirect but effective way to achieve the desired generative outcome.
  • Unifying Generation and Inference: The AGE architecture naturally supports both generation (from latent space to data) and inference (from data to latent space) within a single, tightly coupled system. This is a significant advantage over traditional GANs.
  • Efficiency Gains: The simplified architecture and training process lead to faster convergence and reduced computational cost compared to more complex multi-component models.

Key Results

  • High-Quality Samples and Reconstructions: AGE networks produce samples and reconstructions that are comparable to or better than state-of-the-art methods like ALI [6] and GANs [8, 23] on datasets like Tiny ImageNet, SVHN, and CelebA.
  • Faster Training: The paper reports that AGE networks train significantly faster than ALI, with one epoch of AGE training taking about one-third the time of ALI.
  • Improved Quantitative Metrics: On CIFAR-10, AGE achieved a higher Inception score (5.90 ± 0.04) than ALI (5.34 ± 0.05). On MNIST, AGE achieved a higher log-likelihood score (746) than ALI (721), VAE (705.375), and GAN (346.679).
  • Effective Conditional Generation: The AGE approach demonstrates strong performance in conditional settings, particularly for image colorization, producing diverse and plausible results where other GAN-based methods struggled.

Limitations and Future Work

  • Unsupervised Feature Learning: While AGE networks show promise, the paper notes that their performance in unsupervised feature learning tasks for discriminative purposes was slightly lower than ALI on the SVHN dataset. The authors suggest this discrepancy warrants further investigation.
  • Latent Space Complexity: The authors mention that exploring more complex latent space distributions (beyond uniform on sphere or Gaussian) could be a fruitful area for future research.
  • Divergence Measures: Investigating alternative divergence measures between distributions could also lead to further improvements.

Summary updated

BibTeX
@inproceedings{ulyanov2018adversarial,
  author = {Dmitry Ulyanov and Andrea Vedaldi and Victor S. Lempitsky},
  title = {{Adversarial Generator-Encoder Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11449},
}
Figure