Self-supervised GAN: Analysis and Improvement with Multi-class Minimax Game

Ngoc-Trung Tran, Viet-Hung Tran, Ngoc-Bao Nguyen, Linxiao Yang, Ngai-Man Cheung

Summary

This paper identifies a critical "loophole" in existing self-supervised GANs where a mode-collapsed generator can actually "cheat" the auxiliary task to achieve a high score. To fix this, the authors introduce a Multi-class Minimax Game (MS-GAN) that forces the generator to compete directly with the discriminator’s self-supervised classifier, leading to significantly better sample diversity and state-of-the-art image generation quality without requiring labeled data.

Problem Statement

Generative Adversarial Networks (GANs) are notoriously difficult to train, especially in "unconditional" settings where no labels are provided to guide the model. A popular recent fix has been Self-Supervised (SS) learning, where the discriminator is given an auxiliary task—like predicting the rotation of an image (0°, 90°, 180°, or 270°). This prevents the discriminator from "forgetting" important features as training progresses.

However, the authors discovered a fundamental flaw: in previous SS-GAN frameworks, the generator is simply tasked with making images that are "easy to rotate." This creates a loophole. A generator could suffer from severe mode collapse—producing only one single, highly recognizable image (like a horse) over and over—and still "win" the SS task because that one image is easy for the classifier to orient. This actually encourages the generator to ignore the true diversity of the data distribution.

Proposed Method

To address the loophole in standard SS-GANs, the authors propose a new architecture and objective function called the Multi-class Minimax Game (MS-GAN).

Comparison of the original SSGAN architecture and the proposed MS-GAN framework.
  1. The $(K+1)$ Classifier: Instead of having a standard binary discriminator (Real vs. Fake) and a separate 4-way rotation classifier, they combine them. The classifier now has $K+1$ classes: $K$ classes for the different rotations of real images, and a $(K+1)$-th class specifically for fake (generated) images.
  2. The Minimax Competition:
    • The Discriminator/Classifier tries to correctly identify the rotation of real images while simultaneously pushing all generated images into the "Fake" class.
  3. The Generator tries to produce images that the classifier mistakes for one of the $K$ real rotation classes, effectively trying to "avoid" the fake class.
  4. Distribution Matching: Unlike previous methods, the authors prove mathematically that this new objective includes a term equivalent to minimizing the KL divergence between the generated and real data distributions. This forces the generator to match the full variety of the data, not just produce "easy" samples.

Experimental Setup

The model was evaluated on several standard benchmarks for image synthesis:

  • CIFAR-10 & CIFAR-100: Small 32x32 natural images.
  • STL-10: 48x48 images (resized from 96x96).
  • CelebA: 64x64 face images.
  • ImageNet 32x32: A downsampled version of the massive ImageNet dataset.
  • Stacked-MNIST: Used specifically to measure mode collapse by checking how many of the 1,000 possible digit combinations the generator can produce.

Key Insights

  • The SS Loophole: The most striking insight is that auxiliary tasks can sometimes be too easy. If the generator can satisfy the auxiliary task by collapsing to a single "perfect" mode, the auxiliary task is actually harming the GAN's primary goal of diversity.
  • Coupling is Key: By making the "Fake" label a class within the self-supervised head, the GAN task and the SS task become "coupled." The generator can no longer satisfy the rotation task in a vacuum; it must do so while actively evading the "Fake" classification.
  • Theoretical Grounding: The authors provide a proof showing that their multi-class game naturally leads to better convergence properties and explicitly encourages the generator to leverage transformed (rotated) samples to better match the data distribution.

Results

The proposed MS-GAN achieved state-of-the-art Fréchet Inception Distance (FID) scores—a standard metric for image quality and diversity—across multiple datasets:

  • CIFAR-10: Achieved an FID of 11.40, outperforming previous SS-GANs (15.65) and even approaching the performance of conditional GANs that use ground-truth labels.
  • Stacked-MNIST: In tests for mode collapse, MS-GAN covered nearly all 1,000 modes, whereas previous state-of-the-art models often missed significant portions of the distribution.
  • ImageNet 32x32: Improved FID from 17.1 (standard SS) to 12.3, showing the method scales well to more complex, high-entropy datasets.

Limitations and Future Work

  • Transformation Dependency: The method relies on the choice of the self-supervised task (rotations). While rotations work well for objects with a clear "up" and "down," they might be less effective for datasets where orientation is ambiguous or less informative.
  • Hyperparameter Sensitivity: Like most GANs, the performance depends on the weights ($\lambda_d, \lambda_g$) assigned to the SS tasks. While the authors found their method more stable than previous ones, it still requires careful tuning.
  • Future Directions: The authors suggest that this multi-class minimax framework could be extended to other types of self-supervision beyond simple geometric rotations, potentially leading to even more robust unconditional models.

Summary updated

BibTeX
@inproceedings{tran2019self,
  author = {Ngoc-Trung Tran and Viet-Hung Tran and Ngoc-Bao Nguyen and Linxiao Yang and Ngai-Man Cheung},
  title = {{Self-supervised GAN: Analysis and Improvement with Multi-class Minimax Game}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure