{"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/ibd-psc-input-level-backdoor-detection-via","title":"IBD-PSC: Input-level Backdoor Detection via Parameter-oriented Scaling Consistency","arxiv_id":"2405.09786","date":"2024-05-16","proceeding":null,"authors":["Linshan Hou","Ruili Feng","Zhongyun Hua","Wei Luo","Leo Yu Zhang","Yiming Li"],"abstract":"Deep neural networks (DNNs) are vulnerable to backdoor attacks, where adversaries can maliciously trigger model misclassifications by implanting a hidden backdoor during model training. This paper proposes a simple yet effective input-level backdoor detection (dubbed IBD-PSC) as a `firewall' to filter out malicious testing images. Our method is motivated by an intriguing phenomenon, i.e., parameter-oriented scaling consistency (PSC), where the prediction confidences of poisoned samples are significantly more consistent than those of benign ones when amplifying model parameters. In particular, we provide theoretical analysis to safeguard the foundations of the PSC phenomenon. We also design an adaptive method to select BN layers to scale up for effective detection. Extensive experiments are conducted on benchmark datasets, verifying the effectiveness and efficiency of our IBD-PSC method and its resistance to adaptive attacks. Codes are available at \\href{https://github.com/THUYimingLi/BackdoorBox}{BackdoorBox}.","url_abs":"https://arxiv.org/abs/2405.09786v3","url_pdf":"https://arxiv.org/pdf/2405.09786v3.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":"ibd-psc-input-level-backdoor-detection-via","repo_url":"https://github.com/thuyimingli/backdoorbox","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"ibd-psc-input-level-backdoor-detection-via","repo_url":"https://github.com/vtu81/backdoor-toolbox","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2405.09786","atlas_url":"https://app.syntology.ai/?focus=2405.09786","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2405.09786"}},"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/vtu81/backdoor-toolbox","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/thuyimingli/backdoorbox","reach":null}],"summary":{"ran":2,"ran_fixture":1,"unverified":4},"by_repo_kind":{"official":{"samples":6,"ran":2,"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":7,"samples":[{"code_sha256_prefix":"b54ad0b1951a013f","entry":"Base","repo":"thuyimingli/backdoorbox","repo_kind":"official","path":"core/defenses/IBD_PSC.py","file_url":"https://github.com/thuyimingli/backdoorbox/blob/HEAD/core/defenses/IBD_PSC.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"b54ad0b1951a013f"}},{"code_sha256_prefix":"e6ae719ff0fda7d5","entry":"Log","repo":"thuyimingli/backdoorbox","repo_kind":"official","path":"core/defenses/IBD_PSC.py","file_url":"https://github.com/thuyimingli/backdoorbox/blob/HEAD/core/defenses/IBD_PSC.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"e6ae719ff0fda7d5"}},{"code_sha256_prefix":"c70af6aa43a490cb","entry":"accuracy","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"c70af6aa43a490cb"}},{"code_sha256_prefix":"91fac429b14b8dc1","entry":"IBD_PSC","repo":"thuyimingli/backdoorbox","repo_kind":"official","path":"core/defenses/IBD_PSC.py","file_url":"https://github.com/thuyimingli/backdoorbox/blob/HEAD/core/defenses/IBD_PSC.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"91fac429b14b8dc1"}},{"code_sha256_prefix":"2829fcd1f540902b","entry":"_seed_worker","repo":"thuyimingli/backdoorbox","repo_kind":"official","path":"core/defenses/IBD_PSC.py","file_url":"https://github.com/thuyimingli/backdoorbox/blob/HEAD/core/defenses/IBD_PSC.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"2829fcd1f540902b"}},{"code_sha256_prefix":"fa250ca519fc627c","entry":"_test","repo":"thuyimingli/backdoorbox","repo_kind":"official","path":"core/defenses/IBD_PSC.py","file_url":"https://github.com/thuyimingli/backdoorbox/blob/HEAD/core/defenses/IBD_PSC.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"fa250ca519fc627c"}},{"code_sha256_prefix":"4689f052cb4bdf86","entry":"test","repo":"thuyimingli/backdoorbox","repo_kind":"official","path":"core/defenses/IBD_PSC.py","file_url":"https://github.com/thuyimingli/backdoorbox/blob/HEAD/core/defenses/IBD_PSC.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-2.0","inline_ok":false,"mcp_get_code":{"code_sha256":"4689f052cb4bdf86"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}