{"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/trigger-hunting-with-a-topological-prior-for-1","title":"Trigger Hunting with a Topological Prior for Trojan Detection","arxiv_id":"2110.08335","date":"2021-10-15","proceeding":"ICLR 2022 4","authors":["Xiaoling Hu","Xiao Lin","Michael Cogswell","Yi Yao","Susmit Jha","Chao Chen"],"abstract":"Despite their success and popularity, deep neural networks (DNNs) are vulnerable when facing backdoor attacks. This impedes their wider adoption, especially in mission critical applications. This paper tackles the problem of Trojan detection, namely, identifying Trojaned models -- models trained with poisoned data. One popular approach is reverse engineering, i.e., recovering the triggers on a clean image by manipulating the model's prediction. One major challenge of reverse engineering approach is the enormous search space of triggers. To this end, we propose innovative priors such as diversity and topological simplicity to not only increase the chances of finding the appropriate triggers but also improve the quality of the found triggers. Moreover, by encouraging a diverse set of trigger candidates, our method can perform effectively in cases with unknown target labels. We demonstrate that these priors can significantly improve the quality of the recovered triggers, resulting in substantially improved Trojan detection accuracy as validated on both synthetic and publicly available TrojAI benchmarks.","url_abs":"https://arxiv.org/abs/2110.08335v2","url_pdf":"https://arxiv.org/pdf/2110.08335v2.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":"trigger-hunting-with-a-topological-prior-for-1","repo_url":"https://github.com/HuXiaoling/TopoTrigger","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"diversity","task_name":"Diversity"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2110.08335","atlas_url":"https://app.syntology.ai/?focus=2110.08335","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2110.08335"}},"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/HuXiaoling/TopoTrigger","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":3,"unverified":7},"by_repo_kind":{"official":{"samples":10,"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":"687666fb75913cea","entry":"compute_dgm_force","repo":"HuXiaoling/TopoTrigger","repo_kind":"official","path":"TDFMain.py","file_url":"https://github.com/HuXiaoling/TopoTrigger/blob/HEAD/TDFMain.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":"687666fb75913cea"}},{"code_sha256_prefix":"e52968879d6b2cba","entry":"loadim","repo":"HuXiaoling/TopoTrigger","repo_kind":"official","path":"extract_fv_color_v2r.py","file_url":"https://github.com/HuXiaoling/TopoTrigger/blob/HEAD/extract_fv_color_v2r.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":"e52968879d6b2cba"}},{"code_sha256_prefix":"42e022869b094e71","entry":"to_cols","repo":"HuXiaoling/TopoTrigger","repo_kind":"official","path":"parse_r3v3r.py","file_url":"https://github.com/HuXiaoling/TopoTrigger/blob/HEAD/parse_r3v3r.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":"42e022869b094e71"}},{"code_sha256_prefix":"6829ea1de70f7643","entry":"compute_dgm_force","repo":"HuXiaoling/TopoTrigger","repo_kind":"official","path":"topo_efficient.py","file_url":"https://github.com/HuXiaoling/TopoTrigger/blob/HEAD/topo_efficient.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":"6829ea1de70f7643"}},{"code_sha256_prefix":"46c3034bb8ac762d","entry":"compute_persistence_2DImg_1DHom_gt","repo":"HuXiaoling/TopoTrigger","repo_kind":"official","path":"TDFMain.py","file_url":"https://github.com/HuXiaoling/TopoTrigger/blob/HEAD/TDFMain.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":"46c3034bb8ac762d"}},{"code_sha256_prefix":"6bc84bb47a0fc39b","entry":"compute_persistence_2DImg_1DHom_lh","repo":"HuXiaoling/TopoTrigger","repo_kind":"official","path":"TDFMain.py","file_url":"https://github.com/HuXiaoling/TopoTrigger/blob/HEAD/TDFMain.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":"6bc84bb47a0fc39b"}},{"code_sha256_prefix":"a1601b0f2173c41c","entry":"extract_fv","repo":"HuXiaoling/TopoTrigger","repo_kind":"official","path":"extract_fv_color_v2r.py","file_url":"https://github.com/HuXiaoling/TopoTrigger/blob/HEAD/extract_fv_color_v2r.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":"a1601b0f2173c41c"}},{"code_sha256_prefix":"de43ade8b746a8f3","entry":"extract_fv","repo":"HuXiaoling/TopoTrigger","repo_kind":"official","path":"extract_fv_color_v2xy.py","file_url":"https://github.com/HuXiaoling/TopoTrigger/blob/HEAD/extract_fv_color_v2xy.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":"de43ade8b746a8f3"}},{"code_sha256_prefix":"776ae6b2c1b02331","entry":"extract_fv","repo":"HuXiaoling/TopoTrigger","repo_kind":"official","path":"extract_fv_v17r.py","file_url":"https://github.com/HuXiaoling/TopoTrigger/blob/HEAD/extract_fv_v17r.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":"776ae6b2c1b02331"}},{"code_sha256_prefix":"b0cfebcb03feb140","entry":"getTopoLoss","repo":"HuXiaoling/TopoTrigger","repo_kind":"official","path":"topoloss.py","file_url":"https://github.com/HuXiaoling/TopoTrigger/blob/HEAD/topoloss.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":"b0cfebcb03feb140"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}