{"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/unicorn-a-unified-backdoor-trigger-inversion","title":"UNICORN: A Unified Backdoor Trigger Inversion Framework","arxiv_id":"2304.02786","date":"2023-04-05","proceeding":null,"authors":["Zhenting Wang","Kai Mei","Juan Zhai","Shiqing Ma"],"abstract":"The backdoor attack, where the adversary uses inputs stamped with triggers (e.g., a patch) to activate pre-planted malicious behaviors, is a severe threat to Deep Neural Network (DNN) models. Trigger inversion is an effective way of identifying backdoor models and understanding embedded adversarial behaviors. A challenge of trigger inversion is that there are many ways of constructing the trigger. Existing methods cannot generalize to various types of triggers by making certain assumptions or attack-specific constraints. The fundamental reason is that existing work does not consider the trigger's design space in their formulation of the inversion problem. This work formally defines and analyzes the triggers injected in different spaces and the inversion problem. Then, it proposes a unified framework to invert backdoor triggers based on the formalization of triggers and the identified inner behaviors of backdoor models from our analysis. Our prototype UNICORN is general and effective in inverting backdoor triggers in DNNs. The code can be found at https://github.com/RU-System-Software-and-Security/UNICORN.","url_abs":"https://arxiv.org/abs/2304.02786v1","url_pdf":"https://arxiv.org/pdf/2304.02786v1.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":"unicorn-a-unified-backdoor-trigger-inversion","repo_url":"https://github.com/ru-system-software-and-security/unicorn","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"backdoor-attack","task_name":"Backdoor Attack"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2304.02786","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2304.02786"}},"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/ru-system-software-and-security/unicorn","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":1,"ran":2,"unverified":9},"by_repo_kind":{"official":{"samples":12,"ran":3,"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":"583f9780bdd00a45","entry":"conv3x3","repo":"ru-system-software-and-security/unicorn","repo_kind":"official","path":"models/resnet.py","file_url":"https://github.com/ru-system-software-and-security/unicorn/blob/HEAD/models/resnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"583f9780bdd00a45"}},{"code_sha256_prefix":"4304a326c593f8db","entry":"drop_connect","repo":"ru-system-software-and-security/unicorn","repo_kind":"official","path":"models/efficientnet.py","file_url":"https://github.com/ru-system-software-and-security/unicorn/blob/HEAD/models/efficientnet.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4304a326c593f8db"}},{"code_sha256_prefix":"8737c82de631cffc","entry":"swish","repo":"ru-system-software-and-security/unicorn","repo_kind":"official","path":"models/efficientnet.py","file_url":"https://github.com/ru-system-software-and-security/unicorn/blob/HEAD/models/efficientnet.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8737c82de631cffc"}},{"code_sha256_prefix":"4642fceedc1f27a6","entry":"DenseNet121","repo":"ru-system-software-and-security/unicorn","repo_kind":"official","path":"models/densenet.py","file_url":"https://github.com/ru-system-software-and-security/unicorn/blob/HEAD/models/densenet.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":"4642fceedc1f27a6"}},{"code_sha256_prefix":"e61e6b5783832755","entry":"EfficientNetB0","repo":"ru-system-software-and-security/unicorn","repo_kind":"official","path":"models/efficientnet.py","file_url":"https://github.com/ru-system-software-and-security/unicorn/blob/HEAD/models/efficientnet.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":"e61e6b5783832755"}},{"code_sha256_prefix":"e863d93198592d05","entry":"back_to_np_4d","repo":"ru-system-software-and-security/unicorn","repo_kind":"official","path":"inversion.py","file_url":"https://github.com/ru-system-software-and-security/unicorn/blob/HEAD/inversion.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":"e863d93198592d05"}},{"code_sha256_prefix":"aee98f0db85a942a","entry":"get_dataloader_label_partial","repo":"ru-system-software-and-security/unicorn","repo_kind":"official","path":"dataloader.py","file_url":"https://github.com/ru-system-software-and-security/unicorn/blob/HEAD/dataloader.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":"aee98f0db85a942a"}},{"code_sha256_prefix":"9354d7c1d4974478","entry":"get_dataloader_partial_split","repo":"ru-system-software-and-security/unicorn","repo_kind":"official","path":"dataloader.py","file_url":"https://github.com/ru-system-software-and-security/unicorn/blob/HEAD/dataloader.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":"9354d7c1d4974478"}},{"code_sha256_prefix":"3e9cae1550f9ce0a","entry":"get_transform","repo":"ru-system-software-and-security/unicorn","repo_kind":"official","path":"dataloader.py","file_url":"https://github.com/ru-system-software-and-security/unicorn/blob/HEAD/dataloader.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":"3e9cae1550f9ce0a"}},{"code_sha256_prefix":"8291eec0040fb057","entry":"inception_v3","repo":"ru-system-software-and-security/unicorn","repo_kind":"official","path":"models/inception.py","file_url":"https://github.com/ru-system-software-and-security/unicorn/blob/HEAD/models/inception.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":"8291eec0040fb057"}},{"code_sha256_prefix":"4d251b55950a67e5","entry":"np_4d_to_tensor","repo":"ru-system-software-and-security/unicorn","repo_kind":"official","path":"inversion.py","file_url":"https://github.com/ru-system-software-and-security/unicorn/blob/HEAD/inversion.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":"4d251b55950a67e5"}},{"code_sha256_prefix":"cfa114b8e35f877b","entry":"plant_sin_trigger","repo":"ru-system-software-and-security/unicorn","repo_kind":"official","path":"inversion.py","file_url":"https://github.com/ru-system-software-and-security/unicorn/blob/HEAD/inversion.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":"cfa114b8e35f877b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}