{"about":{"site":"https://codewithpapers.app","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.","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"},"url":"/paper/the-gan-is-dead-long-live-the-gan-a-modern","title":"The GAN is dead; long live the GAN! A Modern GAN Baseline","arxiv_id":"2501.05441","date":"2025-01-09","proceeding":null,"authors":["Yiwen Huang","Aaron Gokaslan","Volodymyr Kuleshov","James Tompkin"],"abstract":"There is a widely-spread claim that GANs are difficult to train, and GAN architectures in the literature are littered with empirical tricks. We provide evidence against this claim and build a modern GAN baseline in a more principled manner. First, we derive a well-behaved regularized relativistic GAN loss that addresses issues of mode dropping and non-convergence that were previously tackled via a bag of ad-hoc tricks. We analyze our loss mathematically and prove that it admits local convergence guarantees, unlike most existing relativistic losses. Second, our new loss allows us to discard all ad-hoc tricks and replace outdated backbones used in common GANs with modern architectures. Using StyleGAN2 as an example, we present a roadmap of simplification and modernization that results in a new minimalist baseline -- R3GAN. Despite being simple, our approach surpasses StyleGAN2 on FFHQ, ImageNet, CIFAR, and Stacked MNIST datasets, and compares favorably against state-of-the-art GANs and diffusion models.","url_abs":"https://arxiv.org/abs/2501.05441v1","url_pdf":"https://arxiv.org/pdf/2501.05441v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"the-gan-is-dead-long-live-the-gan-a-modern","repo_url":"https://github.com/brownvc/r3gan","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"image-generation","task_name":"Image Generation"}],"methods":[{"method_slug":"convolution","method_name":"Convolution"},{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"path-length-regularization","method_name":"Path Length Regularization"},{"method_slug":"r1-regularization","method_name":"R1 Regularization"},{"method_slug":"relativistic-gan","method_name":"Relativistic GAN"},{"method_slug":"stylegan2","method_name":"StyleGAN2"},{"method_slug":"weight-demodulation","method_name":"Weight Demodulation"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/image-generation-on-cifar-10","task":"Image Generation","dataset":"CIFAR-10","model":"R3GAN","rank_in_archive_order":13,"of":78,"metrics":{"FID":"1.96"},"uses_additional_data":false},{"leaderboard":"/sota/image-generation-on-ffhq-256-x-256","task":"Image Generation","dataset":"FFHQ 256 x 256","model":"R3GAN","rank_in_archive_order":9,"of":51,"metrics":{"FID":"2.75"},"uses_additional_data":false},{"leaderboard":"/sota/image-generation-on-imagenet-32x32","task":"Image Generation","dataset":"ImageNet 32x32","model":"R3GAN","rank_in_archive_order":3,"of":35,"metrics":{"FID":"1.27"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2501.05441","atlas_url":"https://app.syntology.ai/?focus=2501.05441","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2501.05441"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/brownvc/r3gan","reach":null}],"summary":{"ran_honours":1,"ran":6,"ran_fixture":1,"ran_draft_wrong":1,"unverified":2},"by_repo_kind":{"official":{"samples":11,"ran":9,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":11,"samples":[{"code_sha256_prefix":"1b2f3a460f20fe80","entry":"parse_range","repo":"brownvc/R3GAN","repo_kind":"official","path":"gen_images.py","file_url":"https://github.com/brownvc/R3GAN/blob/HEAD/gen_images.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":2,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1b2f3a460f20fe80"}},{"code_sha256_prefix":"ffd166d111627ef5","entry":"BiasedActivationCUDA","repo":"brownvc/r3gan","repo_kind":"official","path":"R3GAN/Networks.py","file_url":"https://github.com/brownvc/r3gan/blob/HEAD/R3GAN/Networks.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ffd166d111627ef5"}},{"code_sha256_prefix":"ffbd2f9b496e557e","entry":"Convolution","repo":"brownvc/r3gan","repo_kind":"official","path":"R3GAN/Networks.py","file_url":"https://github.com/brownvc/r3gan/blob/HEAD/R3GAN/Networks.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ffbd2f9b496e557e"}},{"code_sha256_prefix":"3481139cd7f05792","entry":"CreateLowpassKernel","repo":"brownvc/r3gan","repo_kind":"official","path":"R3GAN/Networks.py","file_url":"https://github.com/brownvc/r3gan/blob/HEAD/R3GAN/Networks.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3481139cd7f05792"}},{"code_sha256_prefix":"46a8ec5bade99c66","entry":"GenerativeBasis","repo":"brownvc/r3gan","repo_kind":"official","path":"R3GAN/Networks.py","file_url":"https://github.com/brownvc/r3gan/blob/HEAD/R3GAN/Networks.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"46a8ec5bade99c66"}},{"code_sha256_prefix":"6b8ebb2ffae5dcd5","entry":"InterpolativeUpsamplerCUDA","repo":"brownvc/r3gan","repo_kind":"official","path":"R3GAN/Networks.py","file_url":"https://github.com/brownvc/r3gan/blob/HEAD/R3GAN/Networks.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6b8ebb2ffae5dcd5"}},{"code_sha256_prefix":"4eff2a4b4ab2fd50","entry":"MSRInitializer","repo":"brownvc/r3gan","repo_kind":"official","path":"R3GAN/Networks.py","file_url":"https://github.com/brownvc/r3gan/blob/HEAD/R3GAN/Networks.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4eff2a4b4ab2fd50"}},{"code_sha256_prefix":"ed135ae9467af3f3","entry":"ResidualBlock","repo":"brownvc/r3gan","repo_kind":"official","path":"R3GAN/Networks.py","file_url":"https://github.com/brownvc/r3gan/blob/HEAD/R3GAN/Networks.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ed135ae9467af3f3"}},{"code_sha256_prefix":"3264c99e2e9bff17","entry":"UpsampleLayer","repo":"brownvc/r3gan","repo_kind":"official","path":"R3GAN/Networks.py","file_url":"https://github.com/brownvc/r3gan/blob/HEAD/R3GAN/Networks.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3264c99e2e9bff17"}},{"code_sha256_prefix":"c39e48f4dd6a80bc","entry":"Generator","repo":"brownvc/r3gan","repo_kind":"official","path":"R3GAN/Networks.py","file_url":"https://github.com/brownvc/r3gan/blob/HEAD/R3GAN/Networks.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c39e48f4dd6a80bc"}},{"code_sha256_prefix":"788ae187e0ba38f8","entry":"GeneratorStage","repo":"brownvc/r3gan","repo_kind":"official","path":"R3GAN/Networks.py","file_url":"https://github.com/brownvc/r3gan/blob/HEAD/R3GAN/Networks.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"788ae187e0ba38f8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}