Abstract
Auxiliary Classifier GANs (AC-GANs) are a popular framework for conditional image generation, yet they frequently suffer from mode collapse and low intra-class diversity as the number of categories scales. This paper demonstrates that this failure is rooted in a missing conditional entropy term within the AC-GAN objective function. To address this, we introduce Twin Auxiliary Classifiers GAN (TAC-GAN), a novel architecture that employs a second classifier in a minimax game to restore the missing entropy term. Experimental results on synthetic mixtures, CIFAR100, ImageNet, and VGGFace2 show that TAC-GAN dramatically improves sample diversity and distribution matching, particularly in datasets with overlapping class features.
The Problem: The "Perfect Separability" Trap
Conditional GANs (cGANs) are designed to generate images belonging to specific categories. AC-GAN achieves this by adding an auxiliary classifier alongside the standard discriminator. However, as the number of classes increases, AC-GAN often produces near-identical images for each class, a phenomenon known as mode collapse.
Theoretical analysis reveals that AC-GAN's loss function implicitly omits a crucial conditional entropy term ($-H_Q(Y|X)$) when updating the generator. Without this term, the model forces the generator to produce perfectly separable classes to satisfy the auxiliary classifier. In real-world data where classes often overlap (e.g., similar dog breeds), AC-GAN artificially shrinks the generated distributions to avoid confusion, resulting in a degenerate, low-diversity output.
Methodology: The Twin Auxiliary Classifier
To recover the missing entropy term without the computational burden of explicit density estimation, TAC-GAN introduces a Twin Auxiliary Classifier ($C^{mi}$) into the GAN minimax game.
As shown in the architecture above, the system operates through three primary components:
- Standard Components: The Generator ($G$), Discriminator ($D$), and Auxiliary Classifier ($C$) function as they do in a standard AC-GAN.
- The Twin Classifier ($C^{mi}$): This classifier is trained exclusively on fake images generated by $G$ to predict their class labels.
- The Minimax Game: While $C^{mi}$ attempts to accurately classify fake images, the Generator $G$ is penalized if $C^{mi}$ becomes too confident. $G$ actively works to "confuse" $C^{mi}$.
By forcing the generator to compete against $C^{mi}$, TAC-GAN implicitly maximizes the conditional entropy of the generated data. This encourages the generator to explore the full, overlapping distribution of the real data rather than collapsing into narrow, easily separable modes. To maintain efficiency, $C$ and $C^{mi}$ share the same convolutional layers.
Experimental Results
Synthetic and Distributional Analysis
On synthetic 1D and 2D Mixture of Gaussians (MoG) datasets, TAC-GAN demonstrated a superior ability to match ground-truth density functions. While AC-GAN collapsed into narrow spikes to ensure class separability, TAC-GAN successfully modeled the overlapping regions between classes.
Large-Scale Benchmarks
The model was evaluated across several challenging datasets, showing significant improvements in Fréchet Inception Distance (FID), where lower scores indicate higher quality and diversity:
- CIFAR100: TAC-GAN improved FID from 82.45 (AC-GAN) to 7.22.
- ImageNet1000: FID improved from 184.41 (AC-GAN) to 23.75.
- VGGFace2: On a 500-identity subset, TAC-GAN achieved an FID of 12.42, significantly outperforming the state-of-the-art Projection cGAN (43.10).
Conclusion and Future Work
TAC-GAN provides a theoretically grounded solution to the diversity issues inherent in AC-GANs. By using adversarial play to estimate and maximize conditional entropy, it allows generators to faithfully model complex, overlapping class distributions. While TAC-GAN is empirically robust, future work may explore the trade-offs between faithful distribution modeling and metrics like Inception Score (IS), which can sometimes penalize the realistic blurring of class boundaries that occurs in natural data.
Summary updated