Abstract
Learning class-conditional data distributions is crucial for Generative Adversarial Networks (GAN) in semi-supervised learning. To improve both instance synthesis and classification in this setting, we propose an enhanced TripleGAN (EnhancedTGAN) model in this work. We follow the adversarial training scheme of the original TripleGAN, but completely re-design the training targets of the generator and classifier. Specifically, we adopt feature-semantics matching to enhance the generator in learning class-conditional distributions from both the aspects of statistics in the latent space and semantics consistency with respect to the generator and classifier. Since a limited amount of labeled data is not sufficient to determine satisfactory decision boundaries, we include two classifiers, and incorporate collaborative learning into our model to provide better guidance for generator training. The synthesized high-fidelity data can in turn be used for improving classifier training. In the experiments, the superior performance of our approach on multiple benchmark datasets demonstrates the effectiveness of the mutual reinforcement between the generator and classifiers in facilitating semi-supervised instance synthesis and classification.
Introduction
In deep learning, the scarcity of labeled data remains a significant bottleneck. Semi-supervised learning (SSL) addresses this by leveraging a small amount of labeled data alongside a larger pool of unlabeled data. Generative Adversarial Networks (GANs) have emerged as a powerful framework for SSL, particularly through their ability to synthesize new data points. However, standard conditional GANs often struggle with class-conditional synthesis, where the generated data must not only look realistic but also align with specific class labels.
The original TripleGAN model introduced a three-player game involving a Generator, a Discriminator, and a Classifier to address these challenges. Despite its innovation, TripleGAN faced issues such as domain shift—where synthesized data distributions diverge from real data—and weak guidance from a single classifier trained on limited labels, which often led to mode collapse or poor synthesis quality.
Methodology
EnhancedTGAN introduces two major architectural shifts to overcome the limitations of the original framework: collaborative learning with dual classifiers and feature-semantics matching.
Collaborative Learning with Dual Classifiers
Rather than relying on a single classifier, EnhancedTGAN employs two classifiers ($C_1$ and $C_2$). These classifiers are trained to reach a consensus using a Jensen-Shannon (JS) divergence loss. By penalizing discrepancies between their predictions on unlabeled data, the model produces more stable and accurate pseudo-labels. This consensus provides a significantly stronger and more reliable teaching signal for the generator than a single network could provide.
Feature-Semantics Matching
To further refine the generator, EnhancedTGAN incorporates two specific constraints:
- Feature Matching: The generator is constrained to produce images whose internal feature representations (within the classifier's latent space) match the mean statistics of real labeled data. This prevents the generator from drifting into unrealistic regions of the feature space.
- Semantics Consistency: This ensures that if the generator is tasked with creating a specific class (e.g., a "dog"), the classifiers actually perceive the result as that class. This semantic matching term regularizes the generator based on direct feedback from the dual-classifier system.
Experimental Results
The model was evaluated on standard benchmarks including MNIST, SVHN, CIFAR-10, and FaceScrub. EnhancedTGAN consistently outperformed the baseline TripleGAN and other state-of-the-art methods in both classification accuracy and synthesis quality.
Classification Accuracy
On the CIFAR-10 dataset with 4000 labels, the error rate was reduced from 14.65% (TripleGAN*) to 9.42%. Similarly, on MNIST with only 100 labels, the model achieved a remarkably low error rate of 0.42%.
Synthesis Quality
Qualitative analysis via t-SNE embeddings demonstrates that EnhancedTGAN's synthetic data clusters much more tightly and accurately around real data points compared to the baseline. This indicates that the model effectively eliminates the domain shift that typically plagues conditional GANs.
On the FaceScrub dataset, the model produced high-fidelity faces that preserved human identity and facial structure significantly better than the original TripleGAN, which often suffered from structural degradation.
Discussion and Conclusion
The success of EnhancedTGAN lies in the creation of a "virtuous cycle": high-fidelity synthetic data acts as effective data augmentation to improve the classifiers, while more accurate classifiers provide superior guidance to the generator through feature matching. The dual-classifier collaborative learning framework significantly reduces the risk of the generator learning from noisy labels.
While the model introduces some computational complexity by maintaining two classifier networks, the gains in stability and accuracy are substantial. Future work may explore the integration of self-attention mechanisms or the application of this collaborative framework to even more complex, high-resolution datasets.
Summary updated