Training GANs with Stronger Augmentations via Contrastive Discriminator

Jongheon Jeong, Jinwoo Shin
3/17/2021
cs.LGcs.AIcs.CV
contrastive-ssl

Official code: jh-jeong/ContraD (192 stars, Python, MIT, PyTorch, last commit 2021-10-26).

Abstract

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.

Show full abstract

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 https://github.com/jh-jeong/ContraD.

View on arXivView PDF

Code Implementations(1)

jh-jeong/ContraDOfficial100%
PyTorchMIT

Code for the paper "Training GANs with Stronger Augmentations via Contrastive Discriminator" (ICLR 2021)

19223Python, CudaMar 1, 20215 years agoMIT
contrastive-learningdata-augmentationdeep-learninggangenerative-adversarial-network+3 more

Similar Papers

Cite this paper

@article{jeong2021training,
  title  = {Training GANs with Stronger Augmentations via Contrastive Discriminator},
  author = {Jongheon Jeong and Jinwoo Shin},
  year   = {2021},
  eprint = {2103.09742},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.09742}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2103.09742.svg)](https://codeofpaper.com/paper/2103.09742)

Discussion