Papers › Least Squares Generative Adversarial Networks

Least Squares Generative Adversarial Networks

13 Nov 2016ICCV 2017 10arXiv:1611.04076archive 2025-07-28

Xudong Mao, Qing Li, Haoran Xie, Raymond Y. K. Lau, Zhen Wang, Stephen Paul Smolley

Unsupervised learning with generative adversarial networks (GANs) has proven 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 function for the discriminator. We show that minimizing the objective function of LSGAN yields minimizing the Pearson χ² divergence. 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 stable during the learning process. We evaluate LSGANs on five scene datasets and the experimental results show that the images generated by LSGANs are of better quality than the ones generated by regular GANs. We also conduct two comparison experiments between LSGANs and regular GANs to illustrate the stability of LSGANs.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1611.04076")

Code

Syntology Ran 5 of 9 code samples harvested from 3 repositories linked to this paper; 4 have no recorded run. Of those that ran: 3 ran · honoured contract; 1 ran · violated contract; 1 ran · our draft was wrong.

By repository: community (archive-listed): 9 samples from 3 repositories, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

24 repositories listed; official and paper-mentioned ones first.

xudonmao/LSGAN officialmentioned in papertf report
JeongHyunjin/SolarFarsideMagneticFields mentioned on GitHubpytorchMIT report
Jittor/lsgan-jittor mentioned on GitHubpytorch report
MakeDirtyCode/DC-GAN-pytorch mentioned on GitHubpytorch report
MakeDirtyCode/DCGAN-celebA-pytorch mentioned on GitHubpytorchMIT report
SongDark/generate_normal mentioned on GitHubtf report
beelze-b/LSGAN-Implementation mentioned on GitHubpytorch report
beresandras/gan-flavours-keras mentioned on GitHubtfMIT report
bmeenakshi123/lsgan mentioned on GitHubtf report
conan7882/tf-gans mentioned on GitHubtf report
eriklindernoren/Keras-GAN mentioned on GitHubpytorch report
eriklindernoren/PyTorch-GAN mentioned on GitHubpytorch report
kang205/DVBPR mentioned on GitHubtf report
kangyeolk/pytorch-gan-collections mentioned on GitHubpytorch report
marload/GANs-TensorFlow2 mentioned on GitHubtf report
marload/TensorFlow2-GANs mentioned on GitHubtf report
masataka46/demo_LSGAN_TF mentioned on GitHubtf report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

9 samples harvested; 5 ran; 3 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · honoured contract
1ran · violated contract
1ran · our draft was wrong
4unverified

Licence: 0 of the 9 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

convert_np2pil masataka46/demo_LSGAN_TF/utility.py community (archive-listed) ran · honoured contract MIT (permissive) · ebefb865cf54a7ee · report
convert_to_10class masataka46/demo_LSGAN_TF/utility.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 120e89c447407dfc · report
get_minibatch MaximeVandegar/Papers-in-100-Lines-of-Code/Least_Squares_Generative_Adversarial_Networks/lsgan.py community (archive-listed) ran · honoured contract MIT (permissive) · ab1e91f948a776f3 · report
sample_noise MaximeVandegar/Papers-in-100-Lines-of-Code/Least_Squares_Generative_Adversarial_Networks/lsgan.py community (archive-listed) ran · honoured contract MIT (permissive) · cbc13ef676058576 · report
unnorm_img masataka46/demo_LSGAN_TF/utility.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · 9db731fbd1aac357 · report
get_grid JeongHyunJin/Jeong2020_SolarFarsideMagnetograms/utils.py community (archive-listed) unverified MIT (permissive) · 01c68e1ee8740fd7 · report
get_norm_layer JeongHyunJin/Jeong2020_SolarFarsideMagnetograms/utils.py community (archive-listed) unverified MIT (permissive) · a7c8f4d82aed45aa · report
get_pad_layer JeongHyunJin/Jeong2020_SolarFarsideMagnetograms/utils.py community (archive-listed) unverified MIT (permissive) · 09b6a14bbc70261c · report
train MaximeVandegar/Papers-in-100-Lines-of-Code/Least_Squares_Generative_Adversarial_Networks/lsgan.py community (archive-listed) unverified MIT (permissive) · 7d6b4d1002b99d2f · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Introduced by this paper: GAN Least Squares Loss, LSGAN

AdamBatch NormalizationConvolutionDense ConnectionsGAN Least Squares LossLSGANRMSPropReLU

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections