{"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/controllable-orthogonalization-in-training","title":"Controllable Orthogonalization in Training DNNs","arxiv_id":"2004.00917","date":"2020-04-02","proceeding":"CVPR 2020 6","authors":["Lei Huang","Li Liu","Fan Zhu","Diwen Wan","Zehuan Yuan","Bo Li","Ling Shao"],"abstract":"Orthogonality is widely used for training deep neural networks (DNNs) due to its ability to maintain all singular values of the Jacobian close to 1 and reduce redundancy in representation. This paper proposes a computationally efficient and numerically stable orthogonalization method using Newton's iteration (ONI), to learn a layer-wise orthogonal weight matrix in DNNs. ONI works by iteratively stretching the singular values of a weight matrix towards 1. This property enables it to control the orthogonality of a weight matrix by its number of iterations. We show that our method improves the performance of image classification networks by effectively controlling the orthogonality to provide an optimal tradeoff between optimization benefits and representational capacity reduction. We also show that ONI stabilizes the training of generative adversarial networks (GANs) by maintaining the Lipschitz continuity of a network, similar to spectral normalization (SN), and further outperforms SN by providing controllable orthogonality.","url_abs":"https://arxiv.org/abs/2004.00917v1","url_pdf":"https://arxiv.org/pdf/2004.00917v1.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":"controllable-orthogonalization-in-training","repo_url":"https://github.com/huangleiBuaa/ONI","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"BSD-2-Clause"}}],"tasks":[{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[{"method_slug":"spectral-normalization","method_name":"Spectral Normalization"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2004.00917","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2004.00917"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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/huangleiBuaa/ONI","reach":{"status":"ok","spdx":"BSD-2-Clause"}}],"summary":{"ran":3,"ran_draft_wrong":1,"unverified":4},"by_repo_kind":{"official":{"samples":8,"ran":4,"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":"52d10a10fb72fb9f","entry":"find_classes","repo":"huangleiBuaa/ONI","repo_kind":"official","path":"ONI_PyTorch/GAN/datasets.py","file_url":"https://github.com/huangleiBuaa/ONI/blob/HEAD/ONI_PyTorch/GAN/datasets.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"52d10a10fb72fb9f"}},{"code_sha256_prefix":"4e6a8faaf8e44abe","entry":"is_image_file","repo":"huangleiBuaa/ONI","repo_kind":"official","path":"ONI_PyTorch/GAN/datasets.py","file_url":"https://github.com/huangleiBuaa/ONI/blob/HEAD/ONI_PyTorch/GAN/datasets.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"4e6a8faaf8e44abe"}},{"code_sha256_prefix":"bedff51745d2cf84","entry":"l2normalize","repo":"huangleiBuaa/ONI","repo_kind":"official","path":"ONI_PyTorch/GAN/spectral_normalization.py","file_url":"https://github.com/huangleiBuaa/ONI/blob/HEAD/ONI_PyTorch/GAN/spectral_normalization.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"bedff51745d2cf84"}},{"code_sha256_prefix":"79e61b6269a450e8","entry":"make_dataset","repo":"huangleiBuaa/ONI","repo_kind":"official","path":"ONI_PyTorch/GAN/datasets.py","file_url":"https://github.com/huangleiBuaa/ONI/blob/HEAD/ONI_PyTorch/GAN/datasets.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"79e61b6269a450e8"}},{"code_sha256_prefix":"a8ef2238d374d6cd","entry":"accuracy","repo":"huangleiBuaa/ONI","repo_kind":"official","path":"ONI_PyTorch/ImageNet/imagenet.py","file_url":"https://github.com/huangleiBuaa/ONI/blob/HEAD/ONI_PyTorch/ImageNet/imagenet.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":"a8ef2238d374d6cd"}},{"code_sha256_prefix":"54af0200eab3163f","entry":"numpy_calculate_frechet_distance","repo":"huangleiBuaa/ONI","repo_kind":"official","path":"ONI_PyTorch/GAN/inception_utils.py","file_url":"https://github.com/huangleiBuaa/ONI/blob/HEAD/ONI_PyTorch/GAN/inception_utils.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":"54af0200eab3163f"}},{"code_sha256_prefix":"c39eebccbb5e86a6","entry":"sqrt_newton_schulz","repo":"huangleiBuaa/ONI","repo_kind":"official","path":"ONI_PyTorch/GAN/inception_utils.py","file_url":"https://github.com/huangleiBuaa/ONI/blob/HEAD/ONI_PyTorch/GAN/inception_utils.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":"c39eebccbb5e86a6"}},{"code_sha256_prefix":"4a2b2f288be2a186","entry":"torch_cov","repo":"huangleiBuaa/ONI","repo_kind":"official","path":"ONI_PyTorch/GAN/inception_utils.py","file_url":"https://github.com/huangleiBuaa/ONI/blob/HEAD/ONI_PyTorch/GAN/inception_utils.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":"4a2b2f288be2a186"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}