{"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/generalized-depthwise-separable-convolutions","title":"Generalized Depthwise-Separable Convolutions for Adversarially Robust and Efficient Neural Networks","arxiv_id":"2110.14871","date":"2021-10-28","proceeding":"NeurIPS 2021 12","authors":["Hassan Dbouk","Naresh R. Shanbhag"],"abstract":"Despite their tremendous successes, convolutional neural networks (CNNs) incur high computational/storage costs and are vulnerable to adversarial perturbations. Recent works on robust model compression address these challenges by combining model compression techniques with adversarial training. But these methods are unable to improve throughput (frames-per-second) on real-life hardware while simultaneously preserving robustness to adversarial perturbations. To overcome this problem, we propose the method of Generalized Depthwise-Separable (GDWS) convolution -- an efficient, universal, post-training approximation of a standard 2D convolution. GDWS dramatically improves the throughput of a standard pre-trained network on real-life hardware while preserving its robustness. Lastly, GDWS is scalable to large problem sizes since it operates on pre-trained models and doesn't require any additional training. We establish the optimality of GDWS as a 2D convolution approximator and present exact algorithms for constructing optimal GDWS convolutions under complexity and error constraints. We demonstrate the effectiveness of GDWS via extensive experiments on CIFAR-10, SVHN, and ImageNet datasets. Our code can be found at https://github.com/hsndbk4/GDWS.","url_abs":"https://arxiv.org/abs/2110.14871v2","url_pdf":"https://arxiv.org/pdf/2110.14871v2.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":"generalized-depthwise-separable-convolutions","repo_url":"https://github.com/hsndbk4/gdws","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"model-compression","task_name":"Model Compression"}],"methods":[{"method_slug":"convolution","method_name":"Convolution"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2110.14871","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2110.14871"}},"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":"deterministic:regex_extraction","url":"https://github.com/bethgelab/foolbox","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/hsndbk4/gdws","reach":null}],"summary":{"ran":4,"ran_draft_wrong":1,"unverified":6},"by_repo_kind":{"official":{"samples":8,"ran":5,"repositories":1},"found_in_text":{"samples":2,"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":9,"samples":[{"code_sha256_prefix":"bbf1434434ea4bef","entry":"BatchNorm2dStat","repo":"hsndbk4/gdws","repo_kind":"official","path":"archs/robnet/basic_operations.py","file_url":"https://github.com/hsndbk4/gdws/blob/HEAD/archs/robnet/basic_operations.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bbf1434434ea4bef"}},{"code_sha256_prefix":"ebb64b22c3b7c8d8","entry":"Conv2dStat","repo":"hsndbk4/gdws","repo_kind":"official","path":"archs/robnet/basic_operations.py","file_url":"https://github.com/hsndbk4/gdws/blob/HEAD/archs/robnet/basic_operations.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ebb64b22c3b7c8d8"}},{"code_sha256_prefix":"a54eb83659a77bf5","entry":"LEGO","repo":"hsndbk4/gdws","repo_kind":"official","path":"gdws_utils.py","file_url":"https://github.com/hsndbk4/gdws/blob/HEAD/gdws_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a54eb83659a77bf5"}},{"code_sha256_prefix":"ad0931d390d6ae0a","entry":"LinearStat","repo":"hsndbk4/gdws","repo_kind":"official","path":"archs/robnet/basic_operations.py","file_url":"https://github.com/hsndbk4/gdws/blob/HEAD/archs/robnet/basic_operations.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ad0931d390d6ae0a"}},{"code_sha256_prefix":"fe3d7b3b72919744","entry":"SepConv","repo":"hsndbk4/gdws","repo_kind":"official","path":"archs/robnet/basic_operations.py","file_url":"https://github.com/hsndbk4/gdws/blob/HEAD/archs/robnet/basic_operations.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fe3d7b3b72919744"}},{"code_sha256_prefix":"87e4b8ea4c1588d9","entry":"MEGO","repo":"hsndbk4/gdws","repo_kind":"official","path":"gdws_utils.py","file_url":"https://github.com/hsndbk4/gdws/blob/HEAD/gdws_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"87e4b8ea4c1588d9"}},{"code_sha256_prefix":"ce71e733d8a6259e","entry":"ModuleStat","repo":"hsndbk4/gdws","repo_kind":"official","path":"archs/robnet/basic_operations.py","file_url":"https://github.com/hsndbk4/gdws/blob/HEAD/archs/robnet/basic_operations.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ce71e733d8a6259e"}},{"code_sha256_prefix":"5d11d79b4e03238d","entry":"attack_pgd","repo":"hsndbk4/gdws","repo_kind":"official","path":"eval_robustness.py","file_url":"https://github.com/hsndbk4/gdws/blob/HEAD/eval_robustness.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5d11d79b4e03238d"}},{"code_sha256_prefix":"8a93e041134b597a","entry":"clamp","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"8a93e041134b597a"}},{"code_sha256_prefix":"c7eae778ac0b3cc3","entry":"get_device","repo":"bethgelab/foolbox","repo_kind":"found_in_text","path":"foolbox/models/pytorch.py","file_url":"https://github.com/bethgelab/foolbox/blob/HEAD/foolbox/models/pytorch.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":"c7eae778ac0b3cc3"}},{"code_sha256_prefix":"f80ad87b3a499407","entry":"get_device","repo":"bethgelab/foolbox","repo_kind":"found_in_text","path":"foolbox/models/tensorflow.py","file_url":"https://github.com/bethgelab/foolbox/blob/HEAD/foolbox/models/tensorflow.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":"f80ad87b3a499407"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}