Skip to main content
QUICK REVIEW

[Paper Review] On the Effectiveness of Least Squares Generative Adversarial Networks

Xudong Mao, Qing Li|arXiv (Cornell University)|Dec 18, 2017
Generative Adversarial Networks and Image SynthesisComputer Science42 references16 citations
TL;DR

This paper proposes Least Squares Generative Adversarial Networks (LSGANs), which replace the standard sigmoid cross-entropy loss in GANs with a least squares loss for both discriminator and generator. By minimizing the Pearson χ² divergence, LSGANs mitigate the vanishing gradient problem, resulting in more stable training and higher-quality image generation than standard GANs, with LSGANs-GP achieving stability comparable to WGANs-GP on challenging architectures like 101-layer ResNet.

ABSTRACT

Unsupervised learning with generative adversarial networks (GANs) has proven to be hugely successful. Regular GANs hypothesize the discriminator as a classifier with the sigmoid cross entropy loss function. However, we found that this loss function may lead to the vanishing gradients problem during the learning process. To overcome such a problem, we propose in this paper the Least Squares Generative Adversarial Networks (LSGANs) which adopt the least squares loss for both the discriminator and the generator. We show that minimizing the objective function of LSGAN yields minimizing the Pearson $χ^2$ divergence. We also show that the derived objective function that yields minimizing the Pearson $χ^2$ divergence performs better than the classical one of using least squares for classification. There are two benefits of LSGANs over regular GANs. First, LSGANs are able to generate higher quality images than regular GANs. Second, LSGANs perform more stably during the learning process. For evaluating the image quality, we conduct both qualitative and quantitative experiments, and the experimental results show that LSGANs can generate higher quality images than regular GANs. Furthermore, we evaluate the stability of LSGANs in two groups. One is to compare between LSGANs and regular GANs without gradient penalty. We conduct three experiments, including Gaussian mixture distribution, difficult architectures, and a newly proposed method --- datasets with small variability, to illustrate the stability of LSGANs. The other one is to compare between LSGANs with gradient penalty (LSGANs-GP) and WGANs with gradient penalty (WGANs-GP). The experimental results show that LSGANs-GP succeed in training for all the difficult architectures used in WGANs-GP, including 101-layer ResNet.

Motivation & Objective

  • To address the vanishing gradient problem in standard GANs during generator training.
  • To improve training stability and image quality in deep generative models.
  • To explore whether minimizing Pearson χ² divergence leads to better generative performance than standard GAN objectives.
  • To evaluate the effectiveness of LSGANs and LSGANs with gradient penalty (LSGANs-GP) on challenging architectures and datasets.

Proposed method

  • Replace the standard sigmoid cross-entropy loss in GANs with a least squares loss for both discriminator and generator.
  • Formulate the objective function to minimize the Pearson χ² divergence between real and generated data distributions.
  • Apply gradient penalty to LSGANs (LSGANs-GP) using hyper-parameters c=30 and λ=150, following WGAN-GP settings.
  • Use a stable architecture with LeNet-like discriminator and three transposed convolutional layers in the generator for image generation tasks.
  • Train and compare LSGANs against NS-GANs and WGANs-GP on MNIST, SVHN, LSUN, and synthetic datasets with varying data variability.
  • Evaluate performance using FID scores, visual quality, and training dynamics across multiple architectures, including 101-layer ResNet.

Experimental results

Research questions

  • RQ1Does replacing the standard GAN loss with a least squares loss improve training stability and image quality?
  • RQ2Can minimizing the Pearson χ² divergence lead to better generative performance than minimizing cross-entropy or least squares for classification?
  • RQ3How does LSGANs-GP compare in stability and performance to WGANs-GP on difficult architectures like 101-layer ResNet?
  • RQ4Does increasing dataset variability through data augmentation improve LSGANs' ability to avoid mode collapse?

Key findings

  • LSGANs generate higher quality images than standard GANs, as confirmed by both qualitative and quantitative evaluations on MNIST, SVHN, and LSUN datasets.
  • LSGANs successfully learn on all three datasets, including synthetic digit datasets where NS-GANs fail, indicating improved robustness and reduced mode collapse.
  • LSGANs-GP successfully train on all six difficult architectures tested, including 101-layer ResNet, demonstrating stability comparable to WGANs-GP.
  • The LSGANs(-110) parameter scheme converges faster and achieves better FID scores than LSGANs(011), indicating superior training dynamics.
  • LSGANs without gradient penalty can outperform standard GANs, but when they fail, LSGANs-GP with c=30 and λ=150 provides a stable and effective alternative.
  • Data augmentation that increases dataset variability improves image quality and helps mitigate mode collapse in LSGANs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.