An Empirical Study on GANs with Margin Cosine Loss and Relativistic Discriminator

Cuong V. Nguyen, Tien-Dung Cao, Tram Truong-Huu, Khanh N. Pham, Binh T. Nguyen
10/21/2021
cs.CV

Official code: Cuongvn08/RMCosGAN (3 stars, Python, PyTorch, last commit 2021-10-23).

Abstract

Generative Adversarial Networks (GANs) have emerged as useful generative models, which are capable of implicitly learning data distributions of arbitrarily complex dimensions. However, the training of GANs is empirically well-known for being highly unstable and sensitive.

Show full abstract

The loss functions of both the discriminator and generator concerning their parameters tend to oscillate wildly during training. Different loss functions have been proposed to stabilize the training and improve the quality of images generated. In this paper, we perform an empirical study on the impact of several loss functions on the performance of standard GAN models, Deep Convolutional Generative Adversarial Networks (DCGANs). We introduce a new improvement that employs a relativistic discriminator to replace the classical deterministic discriminator in DCGANs and implement a margin cosine loss function for both the generator and discriminator. This results in a novel loss function, namely Relativistic Margin Cosine Loss (RMCosGAN). We carry out extensive experiments with four datasets: CIFAR-$10$, MNIST, STL-$10$, and CAT. We compare RMCosGAN performance with existing loss functions based on two metrics: Frechet inception distance and inception score. The experimental results show that RMCosGAN outperforms the existing ones and significantly improves the quality of images generated.

View on arXivView PDF

Code Implementations(1)

Cuongvn08/RMCosGANOfficial100%
PyTorch

This repository contains all source code, pre-trained models related to the paper "An Empirical Study on GANs with Margin Cosine Loss and Relativistic Discriminator"

30Python, ShellMar 6, 20205 years ago
generative-adversarial-networkloss-functionsmargin-cosine-losspytorch

Similar Papers

Cite this paper

@article{nguyen2021empirical,
  title  = {An Empirical Study on GANs with Margin Cosine Loss and Relativistic Discriminator},
  author = {Cuong V. Nguyen and Tien-Dung Cao and Tram Truong-Huu and Khanh N. Pham and Binh T. Nguyen},
  year   = {2021},
  eprint = {2110.11293},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.11293}
}

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

Discussion