[Paper Review] cGANs with Multi-Hinge Loss
This paper proposes a multi-class hinge loss for conditional GANs (MHGAN) that improves image generation quality and diversity on ImageNet-128 by enabling the generator and critic to learn class-specific features through multiple classification margins. The method achieves state-of-the-art Inception Score (169.68) and FID (8.87) in semi-supervised settings with minimal computational overhead, outperforming baseline GANs and demonstrating a controllable trade-off between image quality and diversity when parameters are shared.
We propose a new algorithm to incorporate class conditional information into the critic of GANs via a multi-class generalization of the commonly used Hinge loss that is compatible with both supervised and semi-supervised settings. We study the compromise between training a state of the art generator and an accurate classifier simultaneously, and propose a way to use our algorithm to measure the degree to which a generator and critic are class conditional. We show the trade-off between a generator-critic pair respecting class conditioning inputs and generating the highest quality images. With our multi-hinge loss modification we are able to improve Inception Scores and Frechet Inception Distance on the Imagenet dataset. We make our tensorflow code available at https://github.com/ilyakava/gan.
Motivation & Objective
- To address the challenge of training conditional GANs that simultaneously generate high-quality, diverse images and maintain accurate class conditioning.
- To develop a multi-class generalization of the hinge loss that enables effective training of a single generator-classifier pair in both supervised and semi-supervised settings.
- To measure and control the degree to which generator and critic updates are class-conditioned, balancing image fidelity and diversity.
- To improve training stability and performance on ImageNet-128 compared to existing GANs with auxiliary classifiers.
Proposed method
- Proposes a multi-class hinge loss that generalizes the standard hinge loss to multiple classes, allowing the critic to learn multiple classification margins per class.
- Uses a projection discriminator architecture with an auxiliary fully connected layer for class prediction, enabling joint training of generator and classifier.
- Applies spectral normalization to the projection discriminator to stabilize training and improve convergence.
- Trains with one discriminator step per generator step, accelerating training compared to methods requiring multiple D-steps.
- Introduces MHSharedGAN by sharing parameters between the projection discriminator and the auxiliary classifier, enabling parameter efficiency at the cost of reduced diversity.
- Employs a two-phase training strategy: pre-train with standard GAN loss, then switch to multi-hinge loss to rapidly improve Inception Score and FID.
Experimental results
Research questions
- RQ1Can a multi-class hinge loss improve both image quality and diversity in conditional GANs compared to standard hinge loss?
- RQ2How does sharing parameters between the discriminator and classifier affect the trade-off between image quality and diversity?
- RQ3Can the proposed multi-hinge loss achieve state-of-the-art performance in both fully and semi-supervised settings on ImageNet-128?
- RQ4What is the impact of using a single D-step per G-step on training speed and performance?
- RQ5How does the multi-hinge loss compare to existing approaches like ACGAN and SAGAN in terms of Inception Score and FID?
Key findings
- MHGAN achieves an Inception Score of 169.68 and FID of 8.87 on ImageNet-128 after switching from SAGAN training, demonstrating a significant performance boost.
- In semi-supervised learning, MHGAN-SSL reaches (IS, FID) of (32.40, 26.12), matching the performance of ACGAN-SSL while training faster.
- The MHSharedGAN variant shows a sharp drop in generator diversity when parameters are shared, indicating that close integration of classification and discrimination tasks harms sample diversity.
- The spectrum of the projection discriminator shifts from sigmoid to exponential shape under MHSharedGAN, indicating collapse to a few dominant dimensions.
- Switching from standard GAN loss to multi-hinge loss after 1M steps leads to a 250% increase in Inception Score (from 47.79 to 169.68) in just 5,000 iterations.
- The method maintains high classifier accuracy (validation accuracy ~40%, self-accuracy >80%) in semi-supervised settings, confirming effective joint learning of generation and classification.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.