Top-K Training of GANs: Improving GAN Performance by Throwing Away Bad Samples

Abstract

We introduce a simple (one line of code) modification to the Generative Adversarial Network (GAN) training algorithm that materially improves results with no increase in computational cost. When updating the generator parameters, we simply zero out the gradient contributions from the elements of the batch that the critic scores as least realistic'. Through experiments on many different GAN variants, we show that thistop-k update' procedure is a generally applicable improvement. In order to understand the nature of the improvement, we conduct extensive analysis on a simple mixture-of-Gaussians dataset and discover several interesting phenomena. Among these is that, when gradient updates are computed using the worst-scoring batch elements, samples can actually be pushed further away from the their nearest mode. We also apply our method to state-of-the-art GAN models including BigGAN and improve state-of-the-art FID for conditional generation on CIFAR-10 from 9.21 to 8.57.

Cite

Text

Sinha et al. "Top-K Training of GANs: Improving GAN Performance by Throwing Away Bad Samples." Neural Information Processing Systems, 2020.

Markdown

[Sinha et al. "Top-K Training of GANs: Improving GAN Performance by Throwing Away Bad Samples." Neural Information Processing Systems, 2020.](https://mlanthology.org/neurips/2020/sinha2020neurips-topk/)

BibTeX

@inproceedings{sinha2020neurips-topk,
  title     = {{Top-K Training of GANs: Improving GAN Performance by Throwing Away Bad Samples}},
  author    = {Sinha, Samarth and Zhao, Zhengli and Goyal, Anirudh Goyal ALIAS PARTH and Raffel, Colin A and Odena, Augustus},
  booktitle = {Neural Information Processing Systems},
  year      = {2020},
  url       = {https://mlanthology.org/neurips/2020/sinha2020neurips-topk/}
}