{"about":{"non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","site":"https://codewithpapers.app","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page","syntology":{"site":"https://syntology.ai","developers":"https://syntology.ai/developers","mcp":{"server":"https://syntology.ai/mcp","transport":"streamable-http","server_card":"https://syntology.ai/.well-known/mcp/server-card.json","auth":{"type":"trial token, no account","trial_token":"https://syntology.ai/api/oauth/trial/token","method":"POST","docs":"https://syntology.ai/developers"}},"have":"https://syntology.ai/api/graph/have?x=<method, arXiv id or title> (free, answers coverage only)","paper_base":"https://syntology.ai/paper/","atlas_base":"https://app.syntology.ai/?focus="},"machine_readable":[{"url":"https://codewithpapers.app/llms.txt","what":"the machine catalog: every machine-readable file, counted"},{"url":"https://codewithpapers.app/index/manifest.json","what":"paper-to-code index by arXiv id, with Syntology's counts"},{"url":"https://codewithpapers.app/search/manifest.json","what":"site search index (titles, authors) and its files"},{"url":"https://codewithpapers.app/download","what":"bulk files: Syntology's layer, described there"},{"url":"https://codewithpapers.app/build_manifest.json","what":"the build record: inputs, counts, exclusions, probes"}]},"url":"/method/lsgan","slug":"lsgan","name":"LSGAN","full_name":"LSGAN","full_name_withheld":false,"description_markdown":"**LSGAN**, or **Least Squares GAN**, is a type of generative adversarial network that adopts the least squares loss function for the discriminator. Minimizing the objective function of LSGAN yields minimizing the Pearson $\\chi^{2}$ divergence. The objective function can be defined as:\r\n\r\n$$ \\min\\_{D}V\\_{LSGAN}\\left(D\\right) = \\frac{1}{2}\\mathbb{E}\\_{\\mathbf{x} \\sim p\\_{data}\\left(\\mathbf{x}\\right)}\\left[\\left(D\\left(\\mathbf{x}\\right) - b\\right)^{2}\\right] + \\frac{1}{2}\\mathbb{E}\\_{\\mathbf{z}\\sim p\\_{\\mathbf{z}}\\left(\\mathbf{z}\\right)}\\left[\\left(D\\left(G\\left(\\mathbf{z}\\right)\\right) - a\\right)^{2}\\right] $$\r\n\r\n$$ \\min\\_{G}V\\_{LSGAN}\\left(G\\right) = \\frac{1}{2}\\mathbb{E}\\_{\\mathbf{z} \\sim p\\_{\\mathbf{z}}\\left(\\mathbf{z}\\right)}\\left[\\left(D\\left(G\\left(\\mathbf{z}\\right)\\right) - c\\right)^{2}\\right] $$\r\n\r\nwhere $a$ and $b$ are the labels for fake data and real data and $c$ denotes the value that $G$ wants $D$ to believe for fake data.","description_state":"present","introduced_year":null,"introduced_by":{"title":"Least Squares Generative Adversarial Networks","paper":"/paper/least-squares-generative-adversarial-networks","first_author":"Xudong Mao","n_authors":6,"url_abs":null,"archive_paper_url":"https://paperswithcode.com/paper/least-squares-generative-adversarial-networks"},"source":{"url":"http://arxiv.org/abs/1611.04076v3","title":"Least Squares Generative Adversarial Networks","url_on_a_paper_host":true},"code_snippet_url":"https://github.com/eriklindernoren/PyTorch-GAN/blob/master/implementations/lsgan/lsgan.py","code_snippet_url_on_a_code_host":true,"categories":[{"area":"Computer Vision","area_id":"computer-vision","collection":"Generative Adversarial Networks","url":"/methods/category/generative-adversarial-networks","pwc_aliases":[]},{"area":"Computer Vision","area_id":"computer-vision","collection":"Generative Models","url":"/methods/category/generative-models","pwc_aliases":[]}],"n_papers_tagged":18,"archive_num_papers":18,"papers_newest_first":[{"paper":null,"slug":"low-light-enhancement-method-based-on","title":"Low-light Enhancement Method Based on Attention Map Net","date":"2022-08-19","arxiv_id":"2208.09330","n_code_links":0,"syntology":null},{"paper":"/paper/gm-score-incorporating-inter-class-and-intra","slug":"gm-score-incorporating-inter-class-and-intra","title":"GM Score: Incorporating inter-class and intra-class generator diversity, discriminability of disentangled representation, and sample fidelity for evaluating GANs","date":"2021-12-13","arxiv_id":"2112.06431","n_code_links":1,"syntology":null},{"paper":null,"slug":"generative-adversarial-networks-and-4","title":"Generative Adversarial Networks and Adversarial Autoencoders: Tutorial and Survey","date":"2021-11-26","arxiv_id":"2111.13282","n_code_links":0,"syntology":null},{"paper":"/paper/a-closer-look-at-fourier-spectrum","slug":"a-closer-look-at-fourier-spectrum","title":"A Closer Look at Fourier Spectrum Discrepancies for CNN-generated Images Detection","date":"2021-03-31","arxiv_id":"2103.17195","n_code_links":1,"syntology":{"ran":4,"of":8,"n_ran_checked":4,"n_instrument":0,"unverified":4,"pointer_only":0,"phrase":"4 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 0 honoured, 0 violated, 4 with no contract checked; 0 where Syntology's instrument failed) · 4 unverified","official":{"repos":["sutd-visual-computing-group/Fourier-Discrepancies-CNN-Detection"],"state":"official (archive's flag): 4 ran","n_ran":4,"n_constructed":0,"n_ran_no_instrument_failure":4,"n_unverified":4,"ran_from_kinds":["official"]}}},{"paper":null,"slug":"improve-gan-based-neural-vocoder-using","title":"Improve GAN-based Neural Vocoder using Pointwise Relativistic LeastSquare GAN","date":"2021-03-26","arxiv_id":"2103.14245","n_code_links":0,"syntology":null},{"paper":"/paper/priorgan-real-data-prior-for-generative","slug":"priorgan-real-data-prior-for-generative","title":"PriorGAN: Real Data Prior for Generative Adversarial Nets","date":"2020-06-30","arxiv_id":"2006.16990","n_code_links":1,"syntology":null},{"paper":null,"slug":"neural-graphics-pipeline-for-controllable","title":"Towards a Neural Graphics Pipeline for Controllable Image Generation","date":"2020-06-18","arxiv_id":"2006.10569","n_code_links":0,"syntology":null},{"paper":"/paper/fastspeech-2-fast-and-high-quality-end-to-end","slug":"fastspeech-2-fast-and-high-quality-end-to-end","title":"FastSpeech 2: Fast and High-Quality End-to-End Text to Speech","date":"2020-06-08","arxiv_id":"2006.04558","n_code_links":37,"syntology":{"ran":83,"of":119,"n_ran_checked":70,"n_instrument":13,"unverified":36,"pointer_only":40,"phrase":"83 ran (of which 27 constructed an object rather than computing a result; 70 with no instrument failure: 9 honoured, 1 violated, 60 with no contract checked; 13 where Syntology's instrument failed) · 36 unverified","official":null}},{"paper":null,"slug":"renyi-generative-adversarial-networks","title":"Least $k$th-Order and Rényi Generative Adversarial Networks","date":"2020-06-03","arxiv_id":"2006.02479","n_code_links":0,"syntology":null},{"paper":null,"slug":"identity-preserving-realistic-talking-face","title":"Identity-Preserving Realistic Talking Face Generation","date":"2020-05-25","arxiv_id":"2005.12318","n_code_links":0,"syntology":null},{"paper":"/paper/a-study-into-echocardiography-view-conversion","slug":"a-study-into-echocardiography-view-conversion","title":"A Study into Echocardiography View Conversion","date":"2019-12-05","arxiv_id":"1912.03120","n_code_links":1,"syntology":null},{"paper":"/paper/rankgan-a-maximum-margin-ranking-gan-for","slug":"rankgan-a-maximum-margin-ranking-gan-for","title":"RankGAN: A Maximum Margin Ranking GAN for Generating Faces","date":"2018-12-19","arxiv_id":"1812.08196","n_code_links":1,"syntology":null},{"paper":"/paper/gans-beyond-divergence-minimization","slug":"gans-beyond-divergence-minimization","title":"GANs beyond divergence minimization","date":"2018-09-06","arxiv_id":"1809.02145","n_code_links":1,"syntology":null},{"paper":"/paper/the-relativistic-discriminator-a-key-element","slug":"the-relativistic-discriminator-a-key-element","title":"The relativistic discriminator: a key element missing from standard GAN","date":"2018-07-02","arxiv_id":"1807.00734","n_code_links":10,"syntology":{"ran":1,"of":9,"n_ran_checked":1,"n_instrument":0,"unverified":8,"pointer_only":3,"phrase":"1 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 1 violated, 0 with no contract checked; 0 where Syntology's instrument failed) · 8 unverified","official":{"repos":["AlexiaJM/RelativisticGAN"],"state":"official (archive's flag): 1 ran","n_ran":1,"n_constructed":0,"n_ran_no_instrument_failure":1,"n_unverified":0,"ran_from_kinds":["official"]}}},{"paper":null,"slug":"tempered-adversarial-networks","title":"Tempered Adversarial Networks","date":"2018-02-12","arxiv_id":"1802.04374","n_code_links":0,"syntology":null},{"paper":"/paper/on-the-effectiveness-of-least-squares","slug":"on-the-effectiveness-of-least-squares","title":"On the Effectiveness of Least Squares Generative Adversarial Networks","date":"2017-12-18","arxiv_id":"1712.06391","n_code_links":3,"syntology":{"ran":1,"of":1,"n_ran_checked":1,"n_instrument":0,"unverified":0,"pointer_only":1,"phrase":"1 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 1 honoured, 0 violated, 0 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified","official":{"repos":["xudonmao/LSGAN","xudonmao/improved_LSGAN"],"state":"official (archive's flag): 1 ran","n_ran":1,"n_constructed":0,"n_ran_no_instrument_failure":1,"n_unverified":0,"ran_from_kinds":["official"]}}},{"paper":"/paper/deep-generative-adversarial-networks-for","slug":"deep-generative-adversarial-networks-for","title":"Deep Generative Adversarial Networks for Compressed Sensing Automates MRI","date":"2017-05-31","arxiv_id":"1706.00051","n_code_links":2,"syntology":null},{"paper":"/paper/least-squares-generative-adversarial-networks","slug":"least-squares-generative-adversarial-networks","title":"Least Squares Generative Adversarial Networks","date":"2016-11-13","arxiv_id":"1611.04076","n_code_links":24,"syntology":{"ran":8,"of":9,"n_ran_checked":7,"n_instrument":1,"unverified":1,"pointer_only":1,"phrase":"8 ran (of which 0 constructed an object rather than computing a result; 7 with no instrument failure: 3 honoured, 1 violated, 3 with no contract checked; 1 where Syntology's instrument failed) · 1 unverified","official":{"repos":["xudonmao/LSGAN"],"state":"community repositories only","n_ran":0,"n_constructed":0,"n_ran_no_instrument_failure":0,"n_unverified":0,"ran_from_kinds":["listed"]}}}],"papers_shown":18,"papers_order":"date (newest first), then slug","paper_counts":{"archive_papers_tagged":18,"with_a_code_link":11,"where_syntology_ran_a_sample":5,"not_listed_spam_title":0,"listed":18,"listed_where_code_ran":5,"where_syntology_ran_a_sample_split":{"with_a_run_with_no_instrument_failure":5,"every_run_a_failure_of_syntologys_instrument":0,"listed_with_a_run_with_no_instrument_failure":5,"listed_every_run_a_failure_of_syntologys_instrument":0,"filter":{"states":["a run with no instrument failure","any run, instrument failures included"],"default":"a run with no instrument failure","note":"on the 'only where code ran' pages the default hides, in the browser, the rows where every run was a failure of Syntology's instrument; the second state shows them again. Rows are hidden, never re-ordered; these twins list every row"}},"definition":"distinct papers the archive tags; 'where Syntology ran a sample' counts papers with at least one harvested sample that ran, which is not a correctness claim"},"papers_where_code_ran":5,"papers_where_code_ran_first_page":"/method/lsgan/papers/ran/1","papers_where_code_ran_caption":"We ran code from the paper's repository; we did not isolate this method inside it.","pages":[{"order":"ran","page":1,"of":1,"url":"/method/lsgan/papers/ran/1","json":"/method/lsgan/papers/ran/1.json","rows":5}],"tasks":[{"task":"/task/face-generation","name":"Face Generation","papers":3},{"task":"/task/image-generation","name":"Image Generation","papers":3},{"task":null,"name":"Generative Adversarial Network","papers":2},{"task":"/task/audio-visual-synchronization","name":"Audio-Visual Synchronization","papers":1},{"task":"/task/diagnostic","name":"Diagnostic","papers":1},{"task":"/task/dimensionality-reduction","name":"Dimensionality Reduction","papers":1},{"task":"/task/diversity","name":"Diversity","papers":1},{"task":"/task/fairness","name":"Fairness","papers":1},{"task":"/task/image-enhancement","name":"Image Enhancement","papers":1},{"task":"/task/image-reconstruction","name":"Image Reconstruction","papers":1},{"task":"/task/image-segmentation","name":"Image Segmentation","papers":1},{"task":"/task/image-to-image-translation","name":"Image-to-Image Translation","papers":1},{"task":"/task/knowledge-distillation","name":"Knowledge Distillation","papers":1},{"task":"/task/low-light-image-enhancement","name":"Low-Light Image Enhancement","papers":1},{"task":"/task/mri-reconstruction","name":"MRI Reconstruction","papers":1},{"task":"/task/neural-rendering","name":"Neural Rendering","papers":1},{"task":"/task/semantic-segmentation","name":"Semantic Segmentation","papers":1},{"task":"/task/speech-synthesis","name":"Speech Synthesis","papers":1},{"task":"/task/survey","name":"Survey","papers":1},{"task":"/task/synthetic-image-detection","name":"Synthetic Image Detection","papers":1}],"tasks_shown":20,"n_tasks":27,"usage_by_year":[{"year":"2016","papers":1},{"year":"2017","papers":2},{"year":"2018","papers":4},{"year":"2019","papers":1},{"year":"2020","papers":5},{"year":"2021","papers":4},{"year":"2022","papers":1}],"row_source":"methods_table","archive":{"source":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","archive_url":"https://paperswithcode.com/method/lsgan"},"syntology_read_at":"2026-10-05T00:36:11+00:00","syntology":{"source":"Syntology's have check for this name (the free coverage lookup), read from Syntology's graph","have_url":"https://syntology.ai/api/graph/have?x=LSGAN","read_at":"2026-10-05T00:58:47+00:00","query":"LSGAN","kind":"method","have":"unknown_name","tier":null,"verified_implementation":null,"level":null,"level_meaning":"the served verification level, per answer; never summed across methods","resolved_to":null,"resolution":null,"resolved_name_differs":false,"absence_asserted":false,"absence_unchecked":null,"no_code_is_about_this_method":false,"subject":null,"archive_paper_arxiv_id":"1611.04076","repositories":null,"retrieve_with":null,"name_competition":{"verdict":"none","may_be_wrong_sense":false,"bearers_found":0,"served":null,"leading_other_bearer":null,"n_other_bearers_listed":0,"note":"Nothing in this corpus is named 'LSGAN' -- no method node, no paper announcing it in its title, no expanded form declaring it as an acronym."},"name_competition_text":null,"near_matches":[],"code_nearby":[],"code_nearby_caption":null,"origin_paper":null,"line":"name not resolved (unknown_name). The lookup matched no method, paper or venue by this name; that asserts nothing about whether code exists.","level_legend":null},"syntology_have_state":"loaded","record_sha256":"05a32ff494a5f6226fb9af36536da373cbb20b448a5b8e7fb85065a5825d9d79","record_changed_at":"2026-10-05","record_changed_at_basis":"changed"}