Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Least Squares Generative Adversarial Networks

Least squares loss stabilizes GAN training and yields higher quality images

  • Problem Regular GANs use a sigmoid cross entropy loss in the discriminator. Once generated samples are classified as real, this loss gives almost no error, so the generator gets little signal to move them toward the real data.
  • Method LSGANs swap the sigmoid loss for a least squares loss in the discriminator.
  • Results On LSUN bedroom, LSGANs without batch normalization in G, trained with Adam, produced relatively good images in 5 of 10 runs. Regular GANs never learned successfully in that setting.

Where the sigmoid loss stalls the generator

When the generator is trained to make the discriminator label these samples as real, the sigmoid loss returns almost no error, because the samples are already classified correctly. The generator therefore gets little signal to move them closer to the real data.

Figure 1 illustrates this with a one-dimensional toy setting. Panel (b) shows the sigmoid decision boundary, where fake samples for updating G yield very small errors, and panel (c) shows the least squares boundary, which penalizes the same samples and moves the generator's output toward the boundary.

Least squares objective for the discriminator

The objectives use an a-b coding scheme, in which a is the label for fake data and b is the label for real data. The discriminator is trained with squared errors that push D(x) on real samples toward b and D(G(z)) on generated samples toward a, averaged over the real and fake distributions. The generator is trained to move D(G(z)) toward c, which the authors define as the value the generator wants the discriminator to believe for fake data.

Because the discriminator parameters are fixed during the generator update, the decision boundary stays put. The least squares term then pulls generated samples toward that boundary, and the authors argue that a boundary crossing the real data manifold pulls the generated samples toward the real data manifold.

Connection to the Pearson χ2 divergence

The original GAN objective is known to minimize the Jensen-Shannon divergence. The authors extend the analysis to the least squares objective, using a generator loss in which both real and fake terms are pulled toward c. For a fixed G, the optimal discriminator is a weighted average of b and a, with weights given by the real density pd and the generator density pg.

Substituting it into the generator loss and collecting terms gives a single integral over the sum of the two densities, normalized by pd plus pg.

When b minus c equals 1 and b minus a equals 2, the expression reduces to the Pearson χ2 divergence between pd plus pg and 2pg. Minimizing the least squares objective therefore minimizes this divergence under those two conditions. The identity is conditional on those differences between a, b and c. It is not stated for other choices of these labels.

Choosing the a, b and c labels

Two ways of setting a, b and c are given. One sets a to -1, b to 1 and c to 0. The other sets c equal to b, which means the generator aims for the same value as real data, and is paired with a 0-1 binary coding. The authors report similar performance for the two settings and select the 0-1 version, Equation 9, to train the models in the following sections.

The 0-1 setting has b minus c equal to 0, which does not satisfy the condition b minus c equals 1 required for the Pearson χ2 identity. The chosen setting is therefore justified by the experiments, not by that divergence argument.

Two model architectures

Figure 3 lists the layers, with a 1024-dimensional z fed to a fully connected layer and BN after most convolutional layers. ReLU activations are used in the generator and LeakyReLU in the discriminator, following DCGANs.

For tasks with many classes, the authors observed that training an unconditional GAN on multiple classes did not produce readable characters, because multiple classes appear in the input but the output is a single class.

Scene image results

The scene experiments use LSUN, with Bedroom, Church, Dining, Kitchen and Conference datasets. Bedroom has 3,033,042 samples and Church has 126,227, with one category each. Training uses a learning rate of 0.001 for scenes and 0.0002 for Chinese characters, with β1 set to 0.5 for the Adam optimizer following DCGANs.

On LSUN bedroom, the LSGAN images are compared with DCGAN and EBGAN samples in Figure 5. The authors judge the LSGAN images to be of better quality than the two baselines. Figure 6 shows LSGAN samples for church, dining room, kitchen and conference room scenes. The comparison is visual, and the text reports no quantitative image score for these scene results.

Stability with and without batch normalization

Following Arjovsky et al., the authors remove batch normalization from the generator (BN G) or from both networks (BN GD) and train with Adam or RMSProp, on LSUN bedroom for both LSGANs and regular GANs. The four settings are BN G with Adam, BN G with RMSProp, BN GD with Adam and BN GD with RMSProp, and each is compared between the two loss functions.

For BN G with Adam, the authors ran 10 tests, and 5 of them produced relatively good images with LSGANs. Regular GANs never learned successfully in this setting and suffered from a severe degree of mode collapse. For BN GD with RMSProp, LSGANs produced higher quality images than regular GANs, which showed a slight degree of mode collapse.

BN G with RMSProp and BN GD with Adam gave similar results for both losses. The authors also conclude that RMSProp is more stable than Adam, because regular GANs learned the data distribution with BN G and RMSProp but failed with Adam.

A second test uses a 2D mixture of 8 Gaussians with a simple architecture of three fully connected layers in each network. Regular GANs collapse to a single valid mode starting at step 15k, while LSGANs learn the full Gaussian mixture.

Handwritten Chinese characters

The conditional LSGAN is trained on HWDB1.0, a handwritten Chinese character dataset with 1,246,991 samples and 3740 classes. The authors report that the generated characters are readable.

Limitations

The stability evidence for BN G with Adam is a set of 10 runs in one setting, and the Gaussian mixture test uses one simple architecture on a 2D dataset. The scene comparisons are visual, and the text does not give a quantitative score for them.

Experiments cover five LSUN scene datasets and HWDB1.0, and the authors name ImageNet as a future target. They also state that designing a method that pulls generated samples directly toward the real data is worth investigating.

Paper info

Authors
Xudong Mao, Qing Li, Haoran Xie, Raymond Y. K. Lau, Zhen Wang, Stephen Paul Smolley
Venue
arXiv · Preprint
First published
2016-11-13
Added
2026-11-11
Updated
2017-4-5
Version
v3
arXiv
1611.04076
Category
cs.CV
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Xudong Mao, Qing Li, Haoran Xie, Raymond Y. K. Lau, Zhen Wang, Stephen Paul Smolley (2016). Least Squares Generative Adversarial Networks. arXiv:1611.04076v3. https://arxiv.org/abs/1611.04076v3

BibTeX
@misc{mao2016least,
  title = {{Least Squares Generative Adversarial Networks}},
  author = {Xudong Mao and Qing Li and Haoran Xie and Raymond Y. K. Lau and Zhen Wang and Stephen Paul Smolley},
  year = {2016},
  eprint = {1611.04076},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.04076v3}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up