Conditional GANs with Auxiliary Discriminative Classifier

Liang Hou, Qi Cao, Huawei Shen, Xueqi Cheng

TL;DR: ADC-GAN introduces a "generator-aware" auxiliary classifier that distinguishes between real and fake samples while simultaneously identifying their class labels. This simple yet powerful architectural shift fixes the notorious "low intra-class diversity" problem in standard AC-GANs, allowing the model to faithfully capture complex joint distributions of data and labels.

The Problem: Mode Collapse in AC-GANs

Conditional Generative Adversarial Networks (cGANs) are designed to generate specific types of data (e.g., "generate an image of a cat") by feeding label information into the model. A popular variant, the Auxiliary Classifier GAN (AC-GAN), uses a side-car classifier to tell the generator if its output looks like the intended class.

However, AC-GANs suffer from a major flaw: low intra-class diversity. While the generated images might look like cats, they tend to look like the same cat.

The authors identify the root cause: the AC-GAN classifier is generator-agnostic. It only evaluates the probability of a label given an image ($p(y|x)$), regardless of whether that image is real or generated. To satisfy this "blind" classifier, the generator takes the path of least resistance, producing "prototypical" samples that are easy to classify but lack the rich variety found in real data. Mathematically, this forces the generator to minimize conditional entropy, effectively causing it to collapse into a few safe modes.

Proposed Method: The ADC-GAN Architecture

To resolve this, the authors propose the Auxiliary Discriminative Classifier (ADC-GAN).

Instead of a standard classifier that predicts $K$ classes, the ADC-GAN uses a discriminative classifier ($C_d$) that predicts $2K$ classes. For every class $y$, the classifier must decide two things:

  1. Is this a Real sample of class $y$? ($y^+$)
  2. Is this a Fake (generated) sample of class $y$? ($y^-$)
Architectural comparison of cGAN variants. ADC-GAN (d) introduces a discriminative classifier predicting real/fake status alongside the class label.

By forcing the classifier to distinguish real from fake within the classification task, it becomes generator-aware.

The Core Dynamic: * The Classifier's Goal: Correctly identify the class and the "realness" of both real and generated data. * The Generator's Goal: Fool the classifier into thinking its generated samples are actually real samples of the target class.

The authors prove theoretically that this setup aligns the generator’s objective with matching the true joint distribution of data and labels ($P(X, Y)$), rather than just the conditional distribution ($P(Y|X)$).

Key Insights

  • Distribution Awareness: The fundamental failure of AC-GAN is that the classifier doesn't know the "density" of the generated data. ADC-GAN fixes this by making the classifier a mini-discriminator for every class.
  • Harmonious Objectives: In previous attempts to fix AC-GAN (like TAC-GAN), the objectives of the discriminator and the classifier often contradicted each other, leading to training instability. The authors show that ADC-GAN's objectives are "harmonious," making the training process much more stable.
  • Robustness to Hyperparameters: ADC-GAN is less sensitive to the weight ($\lambda$) assigned to the classification loss. Remarkably, even without the primary discriminator, the ADC-GAN classifier alone can guide the generator to the correct distribution.

Experimental Results

The model was evaluated on a mix of synthetic (1D Gaussian mixtures) and standard computer vision benchmarks (CIFAR-10, CIFAR-100, Tiny-ImageNet, and ImageNet $128 \times 128$). ADC-GAN consistently outperformed state-of-the-art classifier-based and projection-based cGANs across multiple metrics:

  • Diversity (Intra-FID): ADC-GAN showed a massive improvement in intra-class diversity. On CIFAR-10, it achieved an Intra-FID of 40.45, significantly better than AC-GAN's 57.67.
  • Overall Quality (FID): It achieved top FID scores on CIFAR-10 (5.66), CIFAR-100 (8.12), and Tiny-ImageNet (19.02).
  • Training Stability: Unlike AC-GAN and TAC-GAN, which often diverge during training on complex datasets like Tiny-ImageNet, ADC-GAN remained stable throughout.
  • ImageNet Performance: At a batch size of 2048, ADC-GAN reached an Inception Score (IS) of 108.10, outperforming BigGAN and ReACGAN in similar settings.

Limitations and Future Work

  • Computational Overhead: By doubling the number of output logits in the classifier ($2K$ instead of $K$), there is a slight increase in computational cost, though this is generally negligible compared to the overall cost of training a GAN.
  • Hyperparameter Tuning: While more robust than its predecessors, the weight $\lambda$ still requires some tuning depending on dataset complexity to find the perfect balance between image fidelity and diversity.
  • Future Directions: The authors suggest that the "generator-aware" classification concept could be extended to other generative frameworks beyond GANs, such as Diffusion Models or VAEs, to improve conditional control.

Summary updated

BibTeX
@inproceedings{hou2022conditional,
  author = {Liang Hou and Qi Cao and Huawei Shen and Xueqi Cheng},
  title = {{Conditional GANs with Auxiliary Discriminative Classifier}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=Yn4CPz_LRKO},
}
Figure