[Paper Review] Training GANs with Stronger Augmentations via Contrastive Discriminator
This paper proposes ContraD, a contrastive discriminator that enables GANs to use stronger data augmentations without training instability, significantly improving FID and IS scores. By aligning real and fake samples through contrastive representation learning, ContraD enhances discriminator generalization and enables unsupervised conditional generation via latent sampling.
Recent works in Generative Adversarial Networks (GANs) are actively revisiting various data augmentation techniques as an effective way to prevent discriminator overfitting. It is still unclear, however, that which augmentations could actually improve GANs, and in particular, how to apply a wider range of augmentations in training. In this paper, we propose a novel way to address these questions by incorporating a recent contrastive representation learning scheme into the GAN discriminator, coined ContraD. This fusion enables the discriminators to work with much stronger augmentations without increasing their training instability, thereby preventing the discriminator overfitting issue in GANs more effectively. Even better, we observe that the contrastive learning itself also benefits from our GAN training, i.e., by maintaining discriminative features between real and fake samples, suggesting a strong coherence between the two worlds: good contrastive representations are also good for GAN discriminators, and vice versa. Our experimental results show that GANs with ContraD consistently improve FID and IS compared to other recent techniques incorporating data augmentations, still maintaining highly discriminative features in the discriminator in terms of the linear evaluation. Finally, as a byproduct, we also show that our GANs trained in an unsupervised manner (without labels) can induce many conditional generative models via a simple latent sampling, leveraging the learned features of ContraD. Code is available at this https URL.
Motivation & Objective
- To address discriminator overfitting in GANs caused by limited data augmentation.
- To explore whether stronger augmentations can improve GAN performance when stabilized.
- To integrate contrastive representation learning into the GAN discriminator to improve feature discriminability.
- To investigate the mutual benefit between contrastive learning and GAN training.
- To enable conditional generation from unsupervised GANs using learned features.
Proposed method
- Integrate a contrastive learning objective into the GAN discriminator to learn invariant representations under data augmentations.
- Apply strong augmentations (e.g., random crops, color jitter) to both real and fake images during training.
- Use momentum encoders to stabilize the contrastive learning process, similar to MoCo or SimCLR.
- Train the discriminator to distinguish real from fake samples while simultaneously maximizing contrastive similarity between augmented views of the same sample.
- Optimize the GAN loss and contrastive loss jointly using a weighted combination.
- Leverage the final discriminator features for downstream tasks, including conditional generation via latent sampling.
Experimental results
Research questions
- RQ1Can stronger data augmentations be effectively used in GAN training without increasing instability?
- RQ2Does incorporating contrastive representation learning improve GAN discriminator generalization?
- RQ3Is there a mutual benefit between contrastive learning and GAN training in terms of feature quality?
- RQ4Can unsupervised GANs with ContraD generate conditional samples without labels?
- RQ5How does ContraD compare to other augmentation-integrated GAN methods in FID and IS?
Key findings
- GANs with ContraD achieve consistently lower FID and higher IS scores compared to recent augmentation-based GAN methods.
- The discriminator trained with ContraD maintains highly discriminative features, as validated by linear evaluation protocols.
- Stronger augmentations are effectively utilized due to the stabilizing effect of contrastive learning in the discriminator.
- The contrastive objective improves the quality of learned representations, which in turn enhances GAN performance.
- Unsupervised GANs trained with ContraD can generate conditional samples by sampling in the latent space, leveraging the learned features.
- The method demonstrates strong coherence between contrastive representation learning and GAN training, where better representations lead to better GANs and vice versa.
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.