{"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/an-orthogonal-classifier-for-improving-the","title":"An Orthogonal Classifier for Improving the Adversarial Robustness of Neural Networks","arxiv_id":"2105.09109","date":"2021-05-19","proceeding":null,"authors":["Cong Xu","Xiang Li","Min Yang"],"abstract":"Neural networks are susceptible to artificially designed adversarial perturbations. Recent efforts have shown that imposing certain modifications on classification layer can improve the robustness of the neural networks. In this paper, we explicitly construct a dense orthogonal weight matrix whose entries have the same magnitude, thereby leading to a novel robust classifier. The proposed classifier avoids the undesired structural redundancy issue in previous work. Applying this classifier in standard training on clean data is sufficient to ensure the high accuracy and good robustness of the model. Moreover, when extra adversarial samples are used, better robustness can be further obtained with the help of a special worst-case loss. Experimental results show that our method is efficient and competitive to many state-of-the-art defensive approaches. Our code is available at \\url{https://github.com/MTandHJ/roboc}.","url_abs":"https://arxiv.org/abs/2105.09109v2","url_pdf":"https://arxiv.org/pdf/2105.09109v2.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":"an-orthogonal-classifier-for-improving-the","repo_url":"https://github.com/MTandHJ/roboc","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"adversarial-attack","task_name":"Adversarial Attack"},{"task_slug":"adversarial-robustness","task_name":"Adversarial Robustness"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/adversarial-attack-on-cifar-10","task":"Adversarial Attack","dataset":"CIFAR-10","model":"Xu et al.","rank_in_archive_order":1,"of":6,"metrics":{"Attack: AutoAttack":"44.150","Attack: DeepFool":"51.310","Attack: PGD20":"78.680"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2105.09109","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2105.09109"}},"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/MTandHJ/roboc","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":7},"by_repo_kind":{"official":{"samples":7,"ran":0,"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":"94eee0c533880ae7","entry":"conv1x1","repo":"MTandHJ/roboc","repo_kind":"official","path":"models/resnet.py","file_url":"https://github.com/MTandHJ/roboc/blob/HEAD/models/resnet.py","link_basis":"first_harvest_node","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":"94eee0c533880ae7"}},{"code_sha256_prefix":"3600f032ac79fc6b","entry":"conv3x3","repo":"MTandHJ/roboc","repo_kind":"official","path":"models/resnet.py","file_url":"https://github.com/MTandHJ/roboc/blob/HEAD/models/resnet.py","link_basis":"first_harvest_node","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":"3600f032ac79fc6b"}},{"code_sha256_prefix":"d44273824b416e40","entry":"enter_attack_exit","repo":"MTandHJ/roboc","repo_kind":"official","path":"src/base.py","file_url":"https://github.com/MTandHJ/roboc/blob/HEAD/src/base.py","link_basis":"first_harvest_node","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":"d44273824b416e40"}},{"code_sha256_prefix":"5732e16eed21a0a5","entry":"generate_weights","repo":"MTandHJ/roboc","repo_kind":"official","path":"models/base.py","file_url":"https://github.com/MTandHJ/roboc/blob/HEAD/models/base.py","link_basis":"first_harvest_node","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":"5732e16eed21a0a5"}},{"code_sha256_prefix":"a0fcd7383413cd2a","entry":"get_num_classes","repo":"MTandHJ/roboc","repo_kind":"official","path":"src/loadopts.py","file_url":"https://github.com/MTandHJ/roboc/blob/HEAD/src/loadopts.py","link_basis":"first_harvest_node","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":"a0fcd7383413cd2a"}},{"code_sha256_prefix":"e2723183c9740a56","entry":"load_loss_func","repo":"MTandHJ/roboc","repo_kind":"official","path":"src/loadopts.py","file_url":"https://github.com/MTandHJ/roboc/blob/HEAD/src/loadopts.py","link_basis":"first_harvest_node","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":"e2723183c9740a56"}},{"code_sha256_prefix":"f3b694c6c2fed2b1","entry":"load_model","repo":"MTandHJ/roboc","repo_kind":"official","path":"src/loadopts.py","file_url":"https://github.com/MTandHJ/roboc/blob/HEAD/src/loadopts.py","link_basis":"first_harvest_node","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":"f3b694c6c2fed2b1"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}