{"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/towards-verifying-robustness-of-neural","title":"Towards Verifying Robustness of Neural Networks Against Semantic Perturbations","arxiv_id":"1912.09533","date":"2019-12-19","proceeding":null,"authors":["Jeet Mohapatra","Tsui-Wei","Weng","Pin-Yu Chen","Sijia Liu","Luca Daniel"],"abstract":"Verifying robustness of neural networks given a specified threat model is a fundamental yet challenging task. While current verification methods mainly focus on the $\\ell_p$-norm threat model of the input instances, robustness verification against semantic adversarial attacks inducing large $\\ell_p$-norm perturbations, such as color shifting and lighting adjustment, are beyond their capacity. To bridge this gap, we propose \\textit{Semantify-NN}, a model-agnostic and generic robustness verification approach against semantic perturbations for neural networks. By simply inserting our proposed \\textit{semantic perturbation layers} (SP-layers) to the input layer of any given model, \\textit{Semantify-NN} is model-agnostic, and any $\\ell_p$-norm based verification tools can be used to verify the model robustness against semantic perturbations. We illustrate the principles of designing the SP-layers and provide examples including semantic perturbations to image classification in the space of hue, saturation, lightness, brightness, contrast and rotation, respectively. In addition, an efficient refinement technique is proposed to further significantly improve the semantic certificate. Experiments on various network architectures and different datasets demonstrate the superior verification performance of \\textit{Semantify-NN} over $\\ell_p$-norm-based verification frameworks that naively convert semantic perturbation to $\\ell_p$-norm. The results show that \\textit{Semantify-NN} can support robustness verification against a wide range of semantic perturbations. Code available https://github.com/JeetMo/Semantify-NN","url_abs":"https://arxiv.org/abs/1912.09533v2","url_pdf":"https://arxiv.org/pdf/1912.09533v2.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":"towards-verifying-robustness-of-neural","repo_url":"https://github.com/JeetMo/Semantify-NN","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1912.09533","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1912.09533"}},"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/JeetMo/Semantify-NN","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":16},"by_repo_kind":{"official":{"samples":16,"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":"2dc5034ca17fd4bd","entry":"gen_image","repo":"JeetMo/Semantify-NN","repo_kind":"official","path":"main_attack.py","file_url":"https://github.com/JeetMo/Semantify-NN/blob/HEAD/main_attack.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":"2dc5034ca17fd4bd"}},{"code_sha256_prefix":"a4d2f938720b56d4","entry":"get_first_layers","repo":"JeetMo/Semantify-NN","repo_kind":"official","path":"threat_models/threat_bandc.py","file_url":"https://github.com/JeetMo/Semantify-NN/blob/HEAD/threat_models/threat_bandc.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":"a4d2f938720b56d4"}},{"code_sha256_prefix":"d0116430981ceec3","entry":"get_first_layers","repo":"JeetMo/Semantify-NN","repo_kind":"official","path":"threat_models/threat_hue.py","file_url":"https://github.com/JeetMo/Semantify-NN/blob/HEAD/threat_models/threat_hue.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":"d0116430981ceec3"}},{"code_sha256_prefix":"5e205a469e2f1f44","entry":"get_first_layers","repo":"JeetMo/Semantify-NN","repo_kind":"official","path":"threat_models/threat_lighten.py","file_url":"https://github.com/JeetMo/Semantify-NN/blob/HEAD/threat_models/threat_lighten.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":"5e205a469e2f1f44"}},{"code_sha256_prefix":"62ca2ee8e41b356b","entry":"get_first_layers","repo":"JeetMo/Semantify-NN","repo_kind":"official","path":"threat_models/threat_saturate.py","file_url":"https://github.com/JeetMo/Semantify-NN/blob/HEAD/threat_models/threat_saturate.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":"62ca2ee8e41b356b"}},{"code_sha256_prefix":"425759c9c3bffdaf","entry":"get_first_layers_cnn","repo":"JeetMo/Semantify-NN","repo_kind":"official","path":"threat_models/threat_bandc.py","file_url":"https://github.com/JeetMo/Semantify-NN/blob/HEAD/threat_models/threat_bandc.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":"425759c9c3bffdaf"}},{"code_sha256_prefix":"8c54db56cb682eb8","entry":"get_first_layers_cnn","repo":"JeetMo/Semantify-NN","repo_kind":"official","path":"threat_models/threat_hue.py","file_url":"https://github.com/JeetMo/Semantify-NN/blob/HEAD/threat_models/threat_hue.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":"8c54db56cb682eb8"}},{"code_sha256_prefix":"2b3f7bdf9b590e8d","entry":"get_first_layers_cnn","repo":"JeetMo/Semantify-NN","repo_kind":"official","path":"threat_models/threat_lighten.py","file_url":"https://github.com/JeetMo/Semantify-NN/blob/HEAD/threat_models/threat_lighten.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":"2b3f7bdf9b590e8d"}},{"code_sha256_prefix":"64afcfd2156e3509","entry":"get_first_layers_cnn","repo":"JeetMo/Semantify-NN","repo_kind":"official","path":"threat_models/threat_saturate.py","file_url":"https://github.com/JeetMo/Semantify-NN/blob/HEAD/threat_models/threat_saturate.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":"64afcfd2156e3509"}},{"code_sha256_prefix":"67bd753068aa89ba","entry":"handle_parser","repo":"JeetMo/Semantify-NN","repo_kind":"official","path":"main_attack.py","file_url":"https://github.com/JeetMo/Semantify-NN/blob/HEAD/main_attack.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":"67bd753068aa89ba"}},{"code_sha256_prefix":"5cbc3c9756e510c7","entry":"handle_parser","repo":"JeetMo/Semantify-NN","repo_kind":"official","path":"main_semantic_hsl.py","file_url":"https://github.com/JeetMo/Semantify-NN/blob/HEAD/main_semantic_hsl.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":"5cbc3c9756e510c7"}},{"code_sha256_prefix":"7872e4a763ce993f","entry":"handle_parser","repo":"JeetMo/Semantify-NN","repo_kind":"official","path":"main_semantic_rotate.py","file_url":"https://github.com/JeetMo/Semantify-NN/blob/HEAD/main_semantic_rotate.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":"7872e4a763ce993f"}},{"code_sha256_prefix":"cccee9750469bb0a","entry":"loss","repo":"JeetMo/Semantify-NN","repo_kind":"official","path":"utils/save_nlayer_weights.py","file_url":"https://github.com/JeetMo/Semantify-NN/blob/HEAD/utils/save_nlayer_weights.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":"cccee9750469bb0a"}},{"code_sha256_prefix":"54fb221cde340265","entry":"sigmoid","repo":"JeetMo/Semantify-NN","repo_kind":"official","path":"utils/activations.py","file_url":"https://github.com/JeetMo/Semantify-NN/blob/HEAD/utils/activations.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":"54fb221cde340265"}},{"code_sha256_prefix":"dfab2f10bd0e8f01","entry":"sigmoidd","repo":"JeetMo/Semantify-NN","repo_kind":"official","path":"utils/activations.py","file_url":"https://github.com/JeetMo/Semantify-NN/blob/HEAD/utils/activations.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":"dfab2f10bd0e8f01"}},{"code_sha256_prefix":"fca193ce378f2c1e","entry":"sigmoidid","repo":"JeetMo/Semantify-NN","repo_kind":"official","path":"utils/activations.py","file_url":"https://github.com/JeetMo/Semantify-NN/blob/HEAD/utils/activations.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":"fca193ce378f2c1e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}