{"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/stein-latent-optimization-for-gans","title":"Stein Latent Optimization for Generative Adversarial Networks","arxiv_id":"2106.05319","date":"2021-06-09","proceeding":"ICLR 2022 4","authors":["Uiwon Hwang","Heeseung Kim","Dahuin Jung","Hyemi Jang","Hyungyu Lee","Sungroh Yoon"],"abstract":"Generative adversarial networks (GANs) with clustered latent spaces can perform conditional generation in a completely unsupervised manner. In the real world, the salient attributes of unlabeled data can be imbalanced. However, most of existing unsupervised conditional GANs cannot cluster attributes of these data in their latent spaces properly because they assume uniform distributions of the attributes. To address this problem, we theoretically derive Stein latent optimization that provides reparameterizable gradient estimations of the latent distribution parameters assuming a Gaussian mixture prior in a continuous latent space. Structurally, we introduce an encoder network and novel unsupervised conditional contrastive loss to ensure that data generated from a single mixture component represent a single attribute. We confirm that the proposed method, named Stein Latent Optimization for GANs (SLOGAN), successfully learns balanced or imbalanced attributes and achieves state-of-the-art unsupervised conditional generation performance even in the absence of attribute information (e.g., the imbalance ratio). Moreover, we demonstrate that the attributes to be learned can be manipulated using a small amount of probe data.","url_abs":"https://arxiv.org/abs/2106.05319v7","url_pdf":"https://arxiv.org/pdf/2106.05319v7.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":"stein-latent-optimization-for-gans","repo_url":"https://github.com/shinyflight/SLOGAN","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"tf","reach":null}],"tasks":[{"task_slug":"attribute","task_name":"Attribute"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2106.05319","atlas_url":"https://app.syntology.ai/?focus=2106.05319","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2106.05319"}},"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":"deterministic:regex_extraction","url":"https://github.com/shinyflight/SLOGAN","reach":null}],"summary":{"ran_honours":1,"ran_violates":2,"ran_draft_wrong":1,"unverified":2},"by_repo_kind":{"official":{"samples":5,"ran":3,"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":6,"samples":[{"code_sha256_prefix":"6ea0806448657822","entry":"arcface","repo":"shinyflight/SLOGAN","repo_kind":"official","path":"slogan_cifar2.py","file_url":"https://github.com/shinyflight/SLOGAN/blob/HEAD/slogan_cifar2.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"6ea0806448657822"}},{"code_sha256_prefix":"effae2ca204c6bfd","entry":"cosine_similarity","repo":"shinyflight/SLOGAN","repo_kind":"official","path":"slogan_cifar2.py","file_url":"https://github.com/shinyflight/SLOGAN/blob/HEAD/slogan_cifar2.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"effae2ca204c6bfd"}},{"code_sha256_prefix":"5ab5c90dcea6bcef","entry":"cosine_similarity_matrix","repo":"shinyflight/SLOGAN","repo_kind":"official","path":"slogan_cifar2.py","file_url":"https://github.com/shinyflight/SLOGAN/blob/HEAD/slogan_cifar2.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"5ab5c90dcea6bcef"}},{"code_sha256_prefix":"c41924e881d94c2e","entry":"unpickle","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"c41924e881d94c2e"}},{"code_sha256_prefix":"30d2efd203b69262","entry":"cosine_contrastive_loss","repo":"shinyflight/SLOGAN","repo_kind":"official","path":"slogan_cifar2.py","file_url":"https://github.com/shinyflight/SLOGAN/blob/HEAD/slogan_cifar2.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"30d2efd203b69262"}},{"code_sha256_prefix":"4eccf0c138321d1d","entry":"remove_diag","repo":"shinyflight/SLOGAN","repo_kind":"official","path":"slogan_cifar2.py","file_url":"https://github.com/shinyflight/SLOGAN/blob/HEAD/slogan_cifar2.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"4eccf0c138321d1d"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}