{"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/pruning-adversarially-robust-neural-networks","title":"Pruning Adversarially Robust Neural Networks without Adversarial Examples","arxiv_id":"2210.04311","date":"2022-10-09","proceeding":null,"authors":["Tong Jian","Zifeng Wang","Yanzhi Wang","Jennifer Dy","Stratis Ioannidis"],"abstract":"Adversarial pruning compresses models while preserving robustness. Current methods require access to adversarial examples during pruning. This significantly hampers training efficiency. Moreover, as new adversarial attacks and training methods develop at a rapid rate, adversarial pruning methods need to be modified accordingly to keep up. In this work, we propose a novel framework to prune a previously trained robust neural network while maintaining adversarial robustness, without further generating adversarial examples. We leverage concurrent self-distillation and pruning to preserve knowledge in the original model as well as regularizing the pruned model via the Hilbert-Schmidt Information Bottleneck. We comprehensively evaluate our proposed framework and show its superior performance in terms of both adversarial robustness and efficiency when pruning architectures trained on the MNIST, CIFAR-10, and CIFAR-100 datasets against five state-of-the-art attacks. Code is available at https://github.com/neu-spiral/PwoA/.","url_abs":"https://arxiv.org/abs/2210.04311v1","url_pdf":"https://arxiv.org/pdf/2210.04311v1.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":"pruning-adversarially-robust-neural-networks","repo_url":"https://github.com/neu-spiral/pwoa","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"adversarial-robustness","task_name":"Adversarial Robustness"}],"methods":[{"method_slug":"pruning","method_name":"Pruning"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2210.04311","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2210.04311"}},"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/neu-spiral/pwoa","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_honours":1,"ran_draft_wrong":1,"unverified":12},"by_repo_kind":{"official":{"samples":14,"ran":2,"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":"ca565da6831e8ade","entry":"distmat","repo":"neu-spiral/pwoa","repo_kind":"official","path":"source/hsicbt/math/hsic.py","file_url":"https://github.com/neu-spiral/pwoa/blob/HEAD/source/hsicbt/math/hsic.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ca565da6831e8ade"}},{"code_sha256_prefix":"9cb35dd6de9569b7","entry":"sigma_estimation","repo":"neu-spiral/pwoa","repo_kind":"official","path":"source/hsicbt/math/hsic.py","file_url":"https://github.com/neu-spiral/pwoa/blob/HEAD/source/hsicbt/math/hsic.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9cb35dd6de9569b7"}},{"code_sha256_prefix":"8c6c6e7ad6a13f4b","entry":"L1_pruning","repo":"neu-spiral/pwoa","repo_kind":"official","path":"source/hsicbt/math/admm.py","file_url":"https://github.com/neu-spiral/pwoa/blob/HEAD/source/hsicbt/math/admm.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":"8c6c6e7ad6a13f4b"}},{"code_sha256_prefix":"36113cd19ffcf229","entry":"activations_extraction","repo":"neu-spiral/pwoa","repo_kind":"official","path":"source/hsicbt/core/train_misc.py","file_url":"https://github.com/neu-spiral/pwoa/blob/HEAD/source/hsicbt/core/train_misc.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":"36113cd19ffcf229"}},{"code_sha256_prefix":"4aaf1bfa9b5dd486","entry":"conv_layer","repo":"neu-spiral/pwoa","repo_kind":"official","path":"source/hsicbt/model/vgg.py","file_url":"https://github.com/neu-spiral/pwoa/blob/HEAD/source/hsicbt/model/vgg.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":"4aaf1bfa9b5dd486"}},{"code_sha256_prefix":"bfffabcb63821aaf","entry":"hsic_objective","repo":"neu-spiral/pwoa","repo_kind":"official","path":"source/hsicbt/core/train_misc.py","file_url":"https://github.com/neu-spiral/pwoa/blob/HEAD/source/hsicbt/core/train_misc.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":"bfffabcb63821aaf"}},{"code_sha256_prefix":"882769c04ee627eb","entry":"kernelmat","repo":"neu-spiral/pwoa","repo_kind":"official","path":"source/hsicbt/math/hsic.py","file_url":"https://github.com/neu-spiral/pwoa/blob/HEAD/source/hsicbt/math/hsic.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":"882769c04ee627eb"}},{"code_sha256_prefix":"e9abb1fd0f40cc11","entry":"random_pruning","repo":"neu-spiral/pwoa","repo_kind":"official","path":"source/hsicbt/math/admm.py","file_url":"https://github.com/neu-spiral/pwoa/blob/HEAD/source/hsicbt/math/admm.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":"e9abb1fd0f40cc11"}},{"code_sha256_prefix":"60f9636984fa3cae","entry":"set_optimizer","repo":"neu-spiral/pwoa","repo_kind":"official","path":"source/hsicbt/core/train_misc.py","file_url":"https://github.com/neu-spiral/pwoa/blob/HEAD/source/hsicbt/core/train_misc.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":"60f9636984fa3cae"}},{"code_sha256_prefix":"fc259fbd461d739e","entry":"training_hsic_prune","repo":"neu-spiral/pwoa","repo_kind":"official","path":"source/hsicbt/core/engine.py","file_url":"https://github.com/neu-spiral/pwoa/blob/HEAD/source/hsicbt/core/engine.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":"fc259fbd461d739e"}},{"code_sha256_prefix":"d658a923c90c237a","entry":"training_standard","repo":"neu-spiral/pwoa","repo_kind":"official","path":"source/hsicbt/core/engine.py","file_url":"https://github.com/neu-spiral/pwoa/blob/HEAD/source/hsicbt/core/engine.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":"d658a923c90c237a"}},{"code_sha256_prefix":"a912b0f0007d76e5","entry":"vgg_conv_block","repo":"neu-spiral/pwoa","repo_kind":"official","path":"source/hsicbt/model/vgg.py","file_url":"https://github.com/neu-spiral/pwoa/blob/HEAD/source/hsicbt/model/vgg.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":"a912b0f0007d76e5"}},{"code_sha256_prefix":"d28a2414aed5b400","entry":"vgg_fc_layer","repo":"neu-spiral/pwoa","repo_kind":"official","path":"source/hsicbt/model/vgg.py","file_url":"https://github.com/neu-spiral/pwoa/blob/HEAD/source/hsicbt/model/vgg.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":"d28a2414aed5b400"}},{"code_sha256_prefix":"29119d7db33e57bf","entry":"weight_pruning","repo":"neu-spiral/pwoa","repo_kind":"official","path":"source/hsicbt/math/admm.py","file_url":"https://github.com/neu-spiral/pwoa/blob/HEAD/source/hsicbt/math/admm.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":"29119d7db33e57bf"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}