{"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/obfunas-a-neural-architecture-search-based","title":"ObfuNAS: A Neural Architecture Search-based DNN Obfuscation Approach","arxiv_id":"2208.08569","date":"2022-08-17","proceeding":null,"authors":["Tong Zhou","Shaolei Ren","Xiaolin Xu"],"abstract":"Malicious architecture extraction has been emerging as a crucial concern for deep neural network (DNN) security. As a defense, architecture obfuscation is proposed to remap the victim DNN to a different architecture. Nonetheless, we observe that, with only extracting an obfuscated DNN architecture, the adversary can still retrain a substitute model with high performance (e.g., accuracy), rendering the obfuscation techniques ineffective. To mitigate this under-explored vulnerability, we propose ObfuNAS, which converts the DNN architecture obfuscation into a neural architecture search (NAS) problem. Using a combination of function-preserving obfuscation strategies, ObfuNAS ensures that the obfuscated DNN architecture can only achieve lower accuracy than the victim. We validate the performance of ObfuNAS with open-source architecture datasets like NAS-Bench-101 and NAS-Bench-301. The experimental results demonstrate that ObfuNAS can successfully find the optimal mask for a victim model within a given FLOPs constraint, leading up to 2.6% inference accuracy degradation for attackers with only 0.14x FLOPs overhead. The code is available at: https://github.com/Tongzhou0101/ObfuNAS.","url_abs":"https://arxiv.org/abs/2208.08569v2","url_pdf":"https://arxiv.org/pdf/2208.08569v2.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":"obfunas-a-neural-architecture-search-based","repo_url":"https://github.com/tongzhou0101/obfunas","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"architecture-search","task_name":"Neural Architecture Search"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2208.08569","atlas_url":"https://app.syntology.ai/?focus=2208.08569","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2208.08569"}},"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/tongzhou0101/obfunas","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_fixture":1,"ran":2,"ran_draft_wrong":1,"unverified":2},"by_repo_kind":{"official":{"samples":6,"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":"3122aea73ebb5edf","entry":"ComputeVertexChannels","repo":"tongzhou0101/obfunas","repo_kind":"official","path":"network.py","file_url":"https://github.com/tongzhou0101/obfunas/blob/HEAD/network.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3122aea73ebb5edf"}},{"code_sha256_prefix":"9afb0e6e8cb492f3","entry":"Projection","repo":"tongzhou0101/obfunas","repo_kind":"official","path":"network.py","file_url":"https://github.com/tongzhou0101/obfunas/blob/HEAD/network.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9afb0e6e8cb492f3"}},{"code_sha256_prefix":"77137d76f02e37fe","entry":"Truncate","repo":"tongzhou0101/obfunas","repo_kind":"official","path":"network.py","file_url":"https://github.com/tongzhou0101/obfunas/blob/HEAD/network.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"77137d76f02e37fe"}},{"code_sha256_prefix":"5956f11bf3503e93","entry":"random_combination","repo":"tongzhou0101/obfunas","repo_kind":"official","path":"mutation.py","file_url":"https://github.com/tongzhou0101/obfunas/blob/HEAD/mutation.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5956f11bf3503e93"}},{"code_sha256_prefix":"9ee42e24f14050d4","entry":"acc_avg","repo":"tongzhou0101/obfunas","repo_kind":"official","path":"utils.py","file_url":"https://github.com/tongzhou0101/obfunas/blob/HEAD/utils.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":"9ee42e24f14050d4"}},{"code_sha256_prefix":"4b38f1e0a14733fe","entry":"mutate_spec","repo":"tongzhou0101/obfunas","repo_kind":"official","path":"mutation.py","file_url":"https://github.com/tongzhou0101/obfunas/blob/HEAD/mutation.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":"4b38f1e0a14733fe"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}