Generative Adversarial Networks (GANs) are powerful tools for synthesizing realistic data, but they are notoriously difficult to train due to a phenomenon called mode collapse. In a perfect scenario, a GAN should learn to generate every type of image present in a dataset (e.g., every digit from 0-9). In reality, the generator often discovers that it can "fool" the discriminator by perfecting just one or two types of images (modes) and completely ignoring the rest.
The root cause of this issue is a lack of incentive: if the discriminator cannot tell the difference between a "collapsed" generator and a diverse one, the generator has no reason to cover the entire data distribution. Previous attempts to fix this often involved autoencoding the data itself (mapping image $\to$ latent $\to$ image). However, using a pixel-wise loss (like $\ell_2$) on complex images usually results in blurry, unrealistic outputs.
VEEGAN introduces a novel solution by adding a "reconstructor" network that maps data back to its original noise distribution. By autoencoding noise vectors instead of data points, it provides a stable training signal that prevents the generator from collapsing, resulting in highly diverse and realistic samples.
The VEEGAN Approach
VEEGAN adds a third player to the traditional two-player GAN game: a reconstructor network ($F_\theta$).
- The Architecture: While the standard Generator ($G_\gamma$) maps noise ($z$) to data ($x$), the Reconstructor ($F_\theta$) attempts to map that generated data ($x$) back to the original noise ($z$).
- The "Noise Autoencoder": Instead of trying to reconstruct pixels, VEEGAN focuses on reconstructing the latent noise. The objective function minimizes the distance between the original noise $z$ and the reconstructed noise $F_\theta(G_\gamma(z))$.
- Implicit Variational Learning: The authors derive a training objective based on the KL divergence between the joint distribution of (noise, real data) and (noise, generated data).
- The Discriminator's New Job: Unlike a standard GAN discriminator that only looks at images, VEEGAN’s discriminator evaluates pairs of (data, noise). It must distinguish between a real image paired with its reconstructed noise versus a noise vector paired with its generated image.
Key Insights
- Autoencode Noise, Not Pixels: Defining a "similarity loss" for complex images is difficult (e.g., is a blurry face "close" to a sharp one?). However, defining it for noise is straightforward. Since the noise is sampled from a standard Normal distribution, a simple $\ell_2$ loss is mathematically natural and doesn't degrade the visual quality of the generated images.
- Signal in the Silence: In a standard GAN, if the discriminator becomes too good or too bad, the generator's gradient vanishes, and it stops learning. In VEEGAN, the reconstruction loss provides a constant "learning signal" to the generator even if the discriminator is temporarily unhelpful.
- Bijective Pressure: By forcing the network to map $z \to x$ and then $x \to z$, VEEGAN encourages a one-to-one mapping. This prevents multiple noise vectors from mapping to the same "safe" output, directly combating mode collapse.
Key Results
The authors evaluated VEEGAN on both synthetic benchmarks (where "ground truth" modes are known) and standard image datasets, including Stacked MNIST and CIFAR-10. VEEGAN significantly outperformed standard GANs and other state-of-the-art variants like ALI and Unrolled GANs.
- Mode Capture on Synthetic Data: On a 2D Grid containing 25 distinct modes, a standard GAN captured only 3.3 modes on average. VEEGAN successfully captured 24.6 out of 25 modes.
- Stacked MNIST: In a variant where three MNIST digits are stacked into color channels to create 1,000 possible combinations (modes), VEEGAN captured 150 modes. In contrast, a standard DCGAN captured 99, and the ALI model captured only 16.
- Visual Quality: On the CIFAR-10 dataset, VEEGAN produced sharper, more recognizable images (such as distinct dog faces and car wheels) compared to the more "blob-like" outputs of competing models.
- Inference via Optimization (IvOM): VEEGAN achieved the lowest scores on the IvOM metric, indicating that it could generate images much closer to actual test-set images than other models.
Limitations and Future Work
While VEEGAN presents a robust solution to mode collapse, it does come with trade-offs. The authors noted that pre-training the reconstructor network on real data samples was sometimes necessary to achieve the best results. Additionally, adding a third network and a more complex discriminator increases the memory and computational requirements compared to a vanilla GAN. Finally, while successful on $32 \times 32$ images, future work is needed to explore whether the noise-reconstruction signal remains strong enough for high-resolution (e.g., $1024 \times 1024$) image synthesis.
Summary updated