{"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/diffusion-models-already-have-a-semantic","title":"Diffusion Models already have a Semantic Latent Space","arxiv_id":"2210.10960","date":"2022-10-20","proceeding":null,"authors":["Mingi Kwon","Jaeseok Jeong","Youngjung Uh"],"abstract":"Diffusion models achieve outstanding generative performance in various domains. Despite their great success, they lack semantic latent space which is essential for controlling the generative process. To address the problem, we propose asymmetric reverse process (Asyrp) which discovers the semantic latent space in frozen pretrained diffusion models. Our semantic latent space, named h-space, has nice properties for accommodating semantic image manipulation: homogeneity, linearity, robustness, and consistency across timesteps. In addition, we introduce a principled design of the generative process for versatile editing and quality boost ing by quantifiable measures: editing strength of an interval and quality deficiency at a timestep. Our method is applicable to various architectures (DDPM++, iD- DPM, and ADM) and datasets (CelebA-HQ, AFHQ-dog, LSUN-church, LSUN- bedroom, and METFACES). Project page: https://kwonminki.github.io/Asyrp/","url_abs":"https://arxiv.org/abs/2210.10960v2","url_pdf":"https://arxiv.org/pdf/2210.10960v2.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":"diffusion-models-already-have-a-semantic","repo_url":"https://github.com/kwonminki/Asyrp_official","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"image-manipulation","task_name":"Image Manipulation"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2210.10960","atlas_url":"https://app.syntology.ai/?focus=2210.10960","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2210.10960"}},"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/kwonminki/Asyrp_official","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":3,"unverified":4},"by_repo_kind":{"official":{"samples":7,"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":0,"samples":[{"code_sha256_prefix":"8ab9a97df8161f31","entry":"center_crop_arr","repo":"kwonminki/Asyrp_official","repo_kind":"official","path":"datasets/IMAGENET_dataset.py","file_url":"https://github.com/kwonminki/Asyrp_official/blob/HEAD/datasets/IMAGENET_dataset.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":2,"contract_check":"MISDECLARED","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8ab9a97df8161f31"}},{"code_sha256_prefix":"fac5364e2f53c6db","entry":"conv3x3","repo":"kwonminki/Asyrp_official","repo_kind":"official","path":"losses/resnet.py","file_url":"https://github.com/kwonminki/Asyrp_official/blob/HEAD/losses/resnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fac5364e2f53c6db"}},{"code_sha256_prefix":"325b8d54f52e2421","entry":"create_layer_basic","repo":"kwonminki/Asyrp_official","repo_kind":"official","path":"losses/resnet.py","file_url":"https://github.com/kwonminki/Asyrp_official/blob/HEAD/losses/resnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"325b8d54f52e2421"}},{"code_sha256_prefix":"599135e129c4056e","entry":"get_afhq_dataset","repo":"kwonminki/Asyrp_official","repo_kind":"official","path":"datasets/AFHQ_dataset.py","file_url":"https://github.com/kwonminki/Asyrp_official/blob/HEAD/datasets/AFHQ_dataset.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"599135e129c4056e"}},{"code_sha256_prefix":"d43a24d992531304","entry":"get_celeba_dialog_dataset","repo":"kwonminki/Asyrp_official","repo_kind":"official","path":"datasets/CelebA_HQ_dataset_dialog.py","file_url":"https://github.com/kwonminki/Asyrp_official/blob/HEAD/datasets/CelebA_HQ_dataset_dialog.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d43a24d992531304"}},{"code_sha256_prefix":"40341a2f1fe9456e","entry":"get_imagenet_dataset","repo":"kwonminki/Asyrp_official","repo_kind":"official","path":"datasets/IMAGENET_dataset.py","file_url":"https://github.com/kwonminki/Asyrp_official/blob/HEAD/datasets/IMAGENET_dataset.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"40341a2f1fe9456e"}},{"code_sha256_prefix":"9aa64be32dcfd7ca","entry":"random_crop_arr","repo":"kwonminki/Asyrp_official","repo_kind":"official","path":"datasets/IMAGENET_dataset.py","file_url":"https://github.com/kwonminki/Asyrp_official/blob/HEAD/datasets/IMAGENET_dataset.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9aa64be32dcfd7ca"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}