Adaptive Weighted Discriminator for Training Generative Adversarial Networks

Vasily Zadorozhnyy, Qiang Cheng, Qiang Ye
12/5/2020
cs.LG

Official code: vasily789/adaptive-weighted-gans (13 stars, last commit 2022-01-13).

Abstract

Generative adversarial network (GAN) has become one of the most important neural network models for classical unsupervised machine learning. A variety of discriminator loss functions have been developed to train GAN's discriminators and they all have a common structure: a sum of real and fake losses that only depends on the actual and generated data respectively. One challenge associated with an equally weighted sum of two losses is that the training may benefit one loss but harm the other, which we show causes instability and mode collapse. In this paper, we introduce a new family of discriminator loss functions that adopts a weighted sum of real and fake parts, which we call adaptive weighted loss functions or aw-loss functions. Using the gradients of the real and fake parts of the loss, we can adaptively choose weights to train a discriminator in the direction that benefits the GAN's stability. Our method can be potentially applied to any discriminator model with a loss that is a sum of the real and fake parts. Experiments validated the effectiveness of our loss functions on an unconditional image generation task, improving the baseline results by a significant margin on CIFAR-10, STL-10, and CIFAR-100 datasets in Inception Scores and FID.

View on arXivView PDF

Code Implementations(1)

135PythonMar 25, 20214 years ago

Similar Papers

Cite this paper

@article{zadorozhnyy2020adaptive,
  title  = {Adaptive Weighted Discriminator for Training Generative Adversarial Networks},
  author = {Vasily Zadorozhnyy and Qiang Cheng and Qiang Ye},
  year   = {2020},
  eprint = {2012.03149},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.03149}
}

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/2012.03149.svg)](https://codeofpaper.com/paper/2012.03149)

Discussion