Introduction
While Deep Neural Networks (DNNs) have achieved remarkable success in discriminative tasks, such as image classification and object detection, generative modeling remains a significant challenge in computer vision. Standard Generative Adversarial Networks (GANs) often struggle to map a single, low-dimensional noise vector to the complex, high-dimensional distributions of real-world images. This difficulty frequently manifests as "mode collapse," where the generator produces a limited variety of samples, or as a lack of fine-grained structural coherence in the generated images.
The Stacked Generative Adversarial Network (SGAN) addresses these issues by decomposing the complex task of image generation into a top-down hierarchy of simpler sub-tasks. By mirroring the hierarchical feature representations learned by discriminative models, SGAN provides a structured approach to building high-quality, diverse, and interpretable generative models.
The SGAN Architecture
The core innovation of SGAN is its hierarchical structure, which consists of a stack of GANs corresponding to the layers of a pre-trained, fixed bottom-up encoder (typically a standard CNN). Instead of attempting to generate pixels directly from noise in one step, the model generates images in stages.
In this top-down approach, the highest-level GAN generates abstract features (such as object shapes) conditioned on a class label. Each subsequent GAN in the stack then generates lower-level, more detailed features conditioned on the representation produced by the layer above it. To ensure these intermediate features are realistic, SGAN employs "representation discriminators" at every level of the hierarchy. These discriminators verify that the generated features match the distribution of real features produced by the pre-trained encoder.
Training Objectives: The Three Losses
To effectively train each generator ($G_i$) within the stack, the authors introduce a weighted combination of three distinct loss functions:
- Adversarial Loss: This is the standard GAN objective where the generator attempts to fool the representation discriminator. It ensures that intermediate features at every level are indistinguishable from real features.
- Conditional Loss: This loss ensures that the generator remains faithful to the conditioning information provided by the layer above. By passing the generated feature back through the encoder, the model checks if it can "recover" the original conditioning feature, enforcing consistency across the hierarchy.
- Entropy Loss: A key contribution of the paper is the use of an entropy loss to prevent mode collapse. A "Q-network" is trained to predict the input noise from the output feature. This forces the generator to utilize the random noise to create meaningful variations, effectively maximizing the conditional entropy of the output and ensuring sample diversity.
Experimental Results and Insights
The SGAN model was evaluated on several benchmark datasets, including MNIST, SVHN, and CIFAR-10. The results demonstrated significant improvements over existing generative models.
On the CIFAR-10 dataset, SGAN achieved a state-of-the-art Inception score of 8.59, outperforming contemporary models like AC-GAN (8.25). Furthermore, in a "Visual Turing Test" conducted via Amazon Mechanical Turk, human evaluators found SGAN's images significantly more convincing than those from standard DCGANs, with SGAN achieving a 24.4% error rate compared to DCGAN's 15.6%.
Beyond performance metrics, SGAN offers enhanced interpretability. Because the model is hierarchical, researchers can "freeze" high-level structural features (like the pose of a digit) and vary only the low-level noise to observe how the model handles fine details like stroke thickness or background textures. This "divide and conquer" strategy effectively turns a single impossible mapping into several manageable ones by leveraging proven discriminative features.
Conclusion
Stacked Generative Adversarial Networks represent a significant step forward in hierarchical generative modeling. By piggybacking on the powerful representations of discriminative encoders and employing a principled entropy loss for diversity, SGAN produces high-quality images that are both coherent and varied. While current implementations rely on pre-trained encoders and manual stacking, future work may explore unsupervised encoders and automated architecture search to further generalize this powerful hierarchical approach.
Summary updated