Abstract
Generative Adversarial Networks (GANs) are powerful tools for image synthesis but frequently suffer from "mode collapse," a state where the generator loses diversity and produces a limited set of outputs. This paper introduces BEGAN-CS, an evolution of the Boundary Equilibrium GAN that addresses this instability by introducing a lightweight latent-space constraint. By enforcing consistency between sampled latent vectors and their encoded representations, BEGAN-CS achieves superior training stability, even on small datasets, and enables efficient one-shot image editing without the need for expensive optimization.
Introduction
While GANs have revolutionized generative modeling, they remain notoriously difficult to train. A primary failure mode is mode collapse, where the generator finds a few "safe" images that fool the discriminator, leading to a loss of output variety.
The authors investigate BEGAN, a high-performing variant that utilizes an auto-encoder as a discriminator. Despite its quality, BEGAN is prone to sudden collapses. The researchers discovered that during training, the latent space—the mathematical manifold representing possible images—expands too rapidly and non-uniformly. This creates "empty" zones that confuse the generator, eventually trapping it in a single mode. BEGAN-CS is designed to regularize this space, keeping it uniform and stable.
Methods
The core innovation of this work is the Latent-Space Constraint Loss ($L_C$). In the standard BEGAN architecture, the discriminator already contains an encoder ($Enc$). The authors propose that for any randomly sampled latent vector $z$ used to generate an image $G(z)$, the encoder should be able to recover the original $z$ from that generated image.
The loss is defined as: $L_C = \|z - Enc(G(z))\|$.
Several technical nuances are critical to its success:
- Discriminator-only optimization: This loss is exclusively used to update the discriminator. If the generator were aware of this constraint, it could learn to "cheat" more effectively, potentially accelerating collapse.
- Regularization without overhead: Unlike other "bijective" GANs that require auxiliary networks, BEGAN-CS leverages the encoder already present in the BEGAN discriminator, adding no extra parameters.
- Latent Uniformity: This constraint acts as a regularizer, preventing the variance of the latent space from "exploding" and ensuring a more uniform distribution of data points.
Key Insights: Visualizing Stability
To understand why BEGAN-CS succeeds, the authors employed PCA visualization to track the variance of latent vectors for real and generated images over time. In standard BEGAN, the variance grows rapidly, causing the density of real data points to drop and making it harder for the generator to find the real image manifold.
Beyond stability, this mapping enables One-Shot Latent Mapping. Typically, finding the latent vector $z$ for a real image requires a slow, iterative optimization process. Because BEGAN-CS enforces $Enc(G(z)) \approx z$, the encoder can find the $z$ for any image in a single forward pass. This allows for real-time image editing by manipulating specific dimensions of the recovered latent vector (e.g., changing age or gender) on-the-fly.
Experimental Results
The model was evaluated on the CelebA face dataset and a synthetic 25-Gaussian toy dataset designed to measure mode capture.
- Superior Stability: On CelebA, standard BEGAN collapsed by epoch 25, while BEGAN-CS remained stable and continued to improve beyond 100 epochs.
- Robustness to Small Data: When trained on only 10% of the CelebA dataset, BEGAN-CS still converged to high-quality results, whereas the original model failed entirely.
- Quantitative Performance: The Fréchet Inception Distance (FID) for BEGAN-CS remained low and stable throughout training. In the toy task, it successfully captured all 25 modes with higher fidelity than competing models like VEEGAN or ALI.
Conclusion
BEGAN-CS provides a simple yet effective solution to mode collapse in auto-encoder-based GANs. By regularizing the latent space, it ensures training stability and unlocks efficient image manipulation. While currently demonstrated at resolutions up to 128x128, future work may involve scaling this constraint to high-resolution architectures like StyleGAN or exploring its application in broader unsupervised representation learning tasks.
Summary updated