Activation Maximization Generative Adversarial Nets

Zhiming Zhou, Han Cai, Shu Rong, Yuxuan Song, Kan Ren, Weinan Zhang, Jun Wang, Yong Yu

Overview

AM-GAN (Activation Maximization Generative Adversarial Networks) improves the quality and stability of image generation by providing clearer, class-aware gradient guidance to the generator. By treating the "fake" class as just another category in a unified discriminator and using a new metric called the AM Score, the authors achieve state-of-the-art results on CIFAR-10 while exposing hidden flaws in the widely used Inception Score.

The Problem with Existing Label-Based GANs

While Generative Adversarial Networks (GANs) have revolutionized image synthesis, they often struggle with datasets that have high variability, such as CIFAR-10. Researchers have found that incorporating class labels helps, but the exact mechanisms for doing so effectively have remained fuzzy.

The authors identify two major issues in existing label-based GANs:

1. The Overlaid-Gradient Problem In models like LabelGAN, the generator is encouraged to look like any real class. If a generated sample sits between two classes (e.g., "cat" and "dog"), the gradients from both classes might cancel each other out or point toward a blurry mess that belongs to neither category.

The Overlaid-Gradient Problem

2. Missing Adversarial Training In architectures like AC-GAN, the auxiliary classifier (which identifies the class) is trained only on real data. It does not "fight" the generator to distinguish between a real image of a class and a fake image of that same class. This missing adversarial dynamic makes the model prone to mode collapse, where the generator produces the same few images repeatedly.

Missing Adversarial Training in standard GAN architectures

The AM-GAN Approach

To resolve these issues, the authors propose AM-GAN, which refines the relationship between labels and the generator through three key innovations:

  • Explicit Target Classes: Instead of asking the generator to be "generally real," AM-GAN assigns each sample a specific target class. This provides a clear "activation maximization" signal, pushing the generator to produce features that strongly activate a specific class logit in the discriminator.
  • Non-Hierarchical Discriminator: Unlike AC-GAN, which uses one "head" for real/fake and another for classification, AM-GAN uses a single $K+1$ classifier (where $K$ is the number of real classes and $+1$ is the fake class). This ensures that every class logit participates in adversarial training.
  • Dynamic Labeling: Rather than pre-assigning labels—which can lead to intra-class mode collapse—the authors propose assigning the target class "on the fly" based on which class the discriminator currently thinks the sample most resembles. This allows for smooth interpolation in the latent space.

Rethinking Evaluation: The AM Score

A significant contribution of this paper is its critique of the standard Inception Score (IS). The authors mathematically demonstrate that IS primarily tracks the diversity of the generator. A model can achieve a high IS simply by covering all classes, even if the individual images are of poor quality.

To fix this, the authors introduce the AM Score. It replaces the entropy of the marginal distribution with a KL divergence between the training label distribution and the generated label distribution. This ensures the model doesn't just produce "sharp" images, but images that match the intended class distribution of the real data.

Key Results

The model was evaluated on CIFAR-10 (60,000 $32\times32$ images across 10 classes) and Tiny-ImageNet (200 classes, downsized to $32\times32$).

  • State-of-the-Art Performance: AM-GAN achieved an Inception Score of 8.91 on CIFAR-10, outperforming strong baselines like Improved GAN (8.09) and AC-GAN (8.25).
  • Superior Quality: Across both datasets, AM-GAN consistently outperformed LabelGAN and AC-GAN on the new AM Score metric, indicating higher per-sample quality and better mode coverage.
  • Stability: The use of dynamic labeling and the non-hierarchical structure significantly reduced the jitter and instability often seen during GAN training.

Limitations and Future Work

  • Classifier Dependency: The AM Score relies on a pre-trained classifier. Finding the "optimal" classifier remains an open challenge, as different architectures yield slightly different scores.
  • Adversarial Samples: There is a risk that the generator learns to produce "adversarial samples"—images that look like noise to humans but highly activate a specific class in the classifier.
  • Scaling: While successful on $32\times32$ images, the paper does not explore how these specific class-aware gradients scale to high-resolution image synthesis (e.g., $1024\times1024$).

Summary updated

BibTeX
@inproceedings{zhou2018activation,
  author = {Zhiming Zhou and Han Cai and Shu Rong and Yuxuan Song and Kan Ren and Weinan Zhang and Jun Wang and Yong Yu},
  title = {{Activation Maximization Generative Adversarial Nets}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=HyyP33gAZ},
}
Figure