{"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/orthogonal-jacobian-regularization-for","title":"Orthogonal Jacobian Regularization for Unsupervised Disentanglement in Image Generation","arxiv_id":"2108.07668","date":"2021-08-17","proceeding":"ICCV 2021 10","authors":["Yuxiang Wei","Yupeng Shi","Xiao Liu","Zhilong Ji","Yuan Gao","Zhongqin Wu","WangMeng Zuo"],"abstract":"Unsupervised disentanglement learning is a crucial issue for understanding and exploiting deep generative models. Recently, SeFa tries to find latent disentangled directions by performing SVD on the first projection of a pre-trained GAN. However, it is only applied to the first layer and works in a post-processing way. Hessian Penalty minimizes the off-diagonal entries of the output's Hessian matrix to facilitate disentanglement, and can be applied to multi-layers.However, it constrains each entry of output independently, making it not sufficient in disentangling the latent directions (e.g., shape, size, rotation, etc.) of spatially correlated variations. In this paper, we propose a simple Orthogonal Jacobian Regularization (OroJaR) to encourage deep generative model to learn disentangled representations. It simply encourages the variation of output caused by perturbations on different latent dimensions to be orthogonal, and the Jacobian with respect to the input is calculated to represent this variation. We show that our OroJaR also encourages the output's Hessian matrix to be diagonal in an indirect manner. In contrast to the Hessian Penalty, our OroJaR constrains the output in a holistic way, making it very effective in disentangling latent dimensions corresponding to spatially correlated variations. Quantitative and qualitative experimental results show that our method is effective in disentangled and controllable image generation, and performs favorably against the state-of-the-art methods. Our code is available at https://github.com/csyxwei/OroJaR","url_abs":"https://arxiv.org/abs/2108.07668v1","url_pdf":"https://arxiv.org/pdf/2108.07668v1.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":"orthogonal-jacobian-regularization-for","repo_url":"https://github.com/csyxwei/orojar","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"BSD-2-Clause"}}],"tasks":[{"task_slug":"disentanglement","task_name":"Disentanglement"},{"task_slug":"image-generation","task_name":"Image Generation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2108.07668","atlas_url":"https://app.syntology.ai/?focus=2108.07668","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2108.07668"}},"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/csyxwei/orojar","reach":{"status":"ok","spdx":"BSD-2-Clause"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/csyxwei/OroJaR","reach":{"status":"ok","spdx":"BSD-2-Clause"}}],"summary":{"ran_draft_wrong":7,"ran_honours":1,"ran_fixture":1,"unverified":12},"by_repo_kind":{"official":{"samples":21,"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":0,"samples":[{"code_sha256_prefix":"85eb95cce203dfc7","entry":"D_arch","repo":"csyxwei/orojar","repo_kind":"official","path":"biggan_discovery/BigGAN.py","file_url":"https://github.com/csyxwei/orojar/blob/HEAD/biggan_discovery/BigGAN.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":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"85eb95cce203dfc7"}},{"code_sha256_prefix":"e8c308c9283407d7","entry":"G_arch","repo":"csyxwei/orojar","repo_kind":"official","path":"biggan_discovery/BigGAN.py","file_url":"https://github.com/csyxwei/orojar/blob/HEAD/biggan_discovery/BigGAN.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":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"e8c308c9283407d7"}},{"code_sha256_prefix":"c41836f3e51fa8f1","entry":"gram_schmidt","repo":"csyxwei/orojar","repo_kind":"official","path":"biggan_discovery/layers.py","file_url":"https://github.com/csyxwei/orojar/blob/HEAD/biggan_discovery/layers.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"c41836f3e51fa8f1"}},{"code_sha256_prefix":"47b42795fd222ceb","entry":"listify","repo":"csyxwei/orojar","repo_kind":"official","path":"biggan_discovery/orojar.py","file_url":"https://github.com/csyxwei/orojar/blob/HEAD/biggan_discovery/orojar.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"47b42795fd222ceb"}},{"code_sha256_prefix":"f6b513df7a8f90bf","entry":"multi_layer_first_directional_derivative","repo":"csyxwei/OroJaR","repo_kind":"official","path":"orojar_pytorch.py","file_url":"https://github.com/csyxwei/OroJaR/blob/HEAD/orojar_pytorch.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"f6b513df7a8f90bf"}},{"code_sha256_prefix":"16fa0b0146a66a69","entry":"multi_stack_var_and_reduce","repo":"csyxwei/OroJaR","repo_kind":"official","path":"orojar_pytorch.py","file_url":"https://github.com/csyxwei/OroJaR/blob/HEAD/orojar_pytorch.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"16fa0b0146a66a69"}},{"code_sha256_prefix":"a2ed9ad66857123a","entry":"orojar","repo":"csyxwei/OroJaR","repo_kind":"official","path":"orojar_pytorch.py","file_url":"https://github.com/csyxwei/OroJaR/blob/HEAD/orojar_pytorch.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"a2ed9ad66857123a"}},{"code_sha256_prefix":"8de600fe2220e241","entry":"rademacher","repo":"csyxwei/orojar","repo_kind":"official","path":"orojar_pytorch.py","file_url":"https://github.com/csyxwei/orojar/blob/HEAD/orojar_pytorch.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"8de600fe2220e241"}},{"code_sha256_prefix":"97ecfd58b1dab254","entry":"stack_var_and_reduce","repo":"csyxwei/OroJaR","repo_kind":"official","path":"orojar_pytorch.py","file_url":"https://github.com/csyxwei/OroJaR/blob/HEAD/orojar_pytorch.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"97ecfd58b1dab254"}},{"code_sha256_prefix":"a99a05ac52533be9","entry":"D_arch","repo":"csyxwei/orojar","repo_kind":"official","path":"biggan_discovery/BigGANdeep.py","file_url":"https://github.com/csyxwei/orojar/blob/HEAD/biggan_discovery/BigGANdeep.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"a99a05ac52533be9"}},{"code_sha256_prefix":"44d6a6343f6eb182","entry":"G_arch","repo":"csyxwei/orojar","repo_kind":"official","path":"biggan_discovery/BigGANdeep.py","file_url":"https://github.com/csyxwei/orojar/blob/HEAD/biggan_discovery/BigGANdeep.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"44d6a6343f6eb182"}},{"code_sha256_prefix":"4da4d6bc0bd3244a","entry":"build_job_name","repo":"csyxwei/orojar","repo_kind":"official","path":"progan_experiments/train_orojar.py","file_url":"https://github.com/csyxwei/orojar/blob/HEAD/progan_experiments/train_orojar.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"4da4d6bc0bd3244a"}},{"code_sha256_prefix":"09e8b81f44dc0143","entry":"first_directional_derivative","repo":"csyxwei/orojar","repo_kind":"official","path":"biggan_discovery/orojar.py","file_url":"https://github.com/csyxwei/orojar/blob/HEAD/biggan_discovery/orojar.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"09e8b81f44dc0143"}},{"code_sha256_prefix":"84a7e309cd2bf8f6","entry":"get_current_hessian_penalty_loss_weight","repo":"csyxwei/orojar","repo_kind":"official","path":"progan_experiments/training/orojar.py","file_url":"https://github.com/csyxwei/orojar/blob/HEAD/progan_experiments/training/orojar.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"84a7e309cd2bf8f6"}},{"code_sha256_prefix":"982a26492dc6b7fb","entry":"loss_dcgan_dis","repo":"csyxwei/orojar","repo_kind":"official","path":"biggan_discovery/losses.py","file_url":"https://github.com/csyxwei/orojar/blob/HEAD/biggan_discovery/losses.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"982a26492dc6b7fb"}},{"code_sha256_prefix":"6c34831223553b6f","entry":"loss_dcgan_gen","repo":"csyxwei/orojar","repo_kind":"official","path":"biggan_discovery/losses.py","file_url":"https://github.com/csyxwei/orojar/blob/HEAD/biggan_discovery/losses.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"6c34831223553b6f"}},{"code_sha256_prefix":"290cd37ab0098d5c","entry":"loss_hinge_dis","repo":"csyxwei/orojar","repo_kind":"official","path":"biggan_discovery/losses.py","file_url":"https://github.com/csyxwei/orojar/blob/HEAD/biggan_discovery/losses.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"290cd37ab0098d5c"}},{"code_sha256_prefix":"2de3863ec32c1c1f","entry":"norm","repo":"csyxwei/orojar","repo_kind":"official","path":"biggan_discovery/layers.py","file_url":"https://github.com/csyxwei/orojar/blob/HEAD/biggan_discovery/layers.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"2de3863ec32c1c1f"}},{"code_sha256_prefix":"ff29a0906a2963fb","entry":"orojar","repo":"csyxwei/orojar","repo_kind":"official","path":"orojar_pytorch.py","file_url":"https://github.com/csyxwei/orojar/blob/HEAD/orojar_pytorch.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"ff29a0906a2963fb"}},{"code_sha256_prefix":"4015ab1f3ab9b881","entry":"proj","repo":"csyxwei/orojar","repo_kind":"official","path":"biggan_discovery/layers.py","file_url":"https://github.com/csyxwei/orojar/blob/HEAD/biggan_discovery/layers.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"4015ab1f3ab9b881"}},{"code_sha256_prefix":"58800b4db4b14ffd","entry":"rademacher","repo":"csyxwei/orojar","repo_kind":"official","path":"biggan_discovery/orojar.py","file_url":"https://github.com/csyxwei/orojar/blob/HEAD/biggan_discovery/orojar.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"58800b4db4b14ffd"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}