{"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/arxiv-2509-20383","title":"MARS: A Malignity-Aware Backdoor Defense in Federated Learning","arxiv_id":"2509.20383","date":"2025-09-21","proceeding":"NeurIPS","authors":["Wei Wan","Yuxuan Ning","Zhicong Huang","Cheng Hong","Shengshan Hu","Ziqi Zhou","Yechao Zhang","Tianqing Zhu","Wanlei Zhou","Leo Yu Zhang"],"abstract":"Federated Learning (FL) is a distributed paradigm aimed at protecting participant data privacy by exchanging model parameters to achieve high-quality model training. However, this distributed nature also makes FL highly vulnerable to backdoor attacks. Notably, the recently proposed state-of-the-art (SOTA) attack, 3DFed (SP2023), uses an indicator mechanism to determine whether the backdoor models have been accepted by the defender and adaptively optimizes backdoor models, rendering existing defenses ineffective. In this paper, we first reveal that the failure of existing defenses lies in the employment of empirical statistical measures that are loosely coupled with backdoor attacks. Motivated by this, we propose a Malignity-Aware backdooR defenSe (MARS) that leverages backdoor energy (BE) to indicate the malicious extent of each neuron. To amplify malignity, we further extract the most prominent BE values from each model to form a concentrated backdoor energy (CBE). Finally, a novel Wasserstein distance-based clustering method is introduced to effectively identify backdoor models. Extensive experiments demonstrate that MARS can defend against SOTA backdoor attacks and significantly outperforms existing defenses.","url_abs":"https://arxiv.org/abs/2509.20383","url_pdf":"https://arxiv.org/pdf/2509.20383","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2509.20383","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2509.20383"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/yunming181920/MARS","reach":null}],"summary":{"ran_honours":1,"ran":4,"ran_draft_wrong":1,"ran_violates":1,"unverified":3},"by_repo_kind":{"found_in_text":{"samples":10,"ran":7,"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":10,"samples":[{"code_sha256_prefix":"982b23e6640ba82d","entry":"CBE","repo":"yunming181920/MARS","repo_kind":"found_in_text","path":"defenses/mars.py","file_url":"https://github.com/yunming181920/MARS/blob/HEAD/defenses/mars.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"982b23e6640ba82d"}},{"code_sha256_prefix":"ae1369a008e4ad61","entry":"calculate_tpr_fpr","repo":"yunming181920/MARS","repo_kind":"found_in_text","path":"defenses/mars.py","file_url":"https://github.com/yunming181920/MARS/blob/HEAD/defenses/mars.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ae1369a008e4ad61"}},{"code_sha256_prefix":"5ef5c6f8b861b8a2","entry":"cluster_and_detect_anomalies","repo":"yunming181920/MARS","repo_kind":"found_in_text","path":"defenses/mars.py","file_url":"https://github.com/yunming181920/MARS/blob/HEAD/defenses/mars.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5ef5c6f8b861b8a2"}},{"code_sha256_prefix":"90b6dcd97ea38eb8","entry":"compute_cluster_centers","repo":"yunming181920/MARS","repo_kind":"found_in_text","path":"defenses/mars.py","file_url":"https://github.com/yunming181920/MARS/blob/HEAD/defenses/mars.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"90b6dcd97ea38eb8"}},{"code_sha256_prefix":"a6cd14576a7d063c","entry":"compute_wasserstein_distance_matrix","repo":"yunming181920/MARS","repo_kind":"found_in_text","path":"defenses/mars.py","file_url":"https://github.com/yunming181920/MARS/blob/HEAD/defenses/mars.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a6cd14576a7d063c"}},{"code_sha256_prefix":"8593889efebe9287","entry":"detect_anomaly","repo":"yunming181920/MARS","repo_kind":"found_in_text","path":"defenses/mars.py","file_url":"https://github.com/yunming181920/MARS/blob/HEAD/defenses/mars.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8593889efebe9287"}},{"code_sha256_prefix":"ce15f794a671d919","entry":"kmeans_wasserstein_clustering","repo":"yunming181920/MARS","repo_kind":"found_in_text","path":"defenses/mars.py","file_url":"https://github.com/yunming181920/MARS/blob/HEAD/defenses/mars.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ce15f794a671d919"}},{"code_sha256_prefix":"05179368187f7e1e","entry":"FedAvg","repo":"yunming181920/MARS","repo_kind":"found_in_text","path":"defenses/mars.py","file_url":"https://github.com/yunming181920/MARS/blob/HEAD/defenses/mars.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"05179368187f7e1e"}},{"code_sha256_prefix":"758feb0d7ddba85a","entry":"MARS","repo":"yunming181920/MARS","repo_kind":"found_in_text","path":"defenses/mars.py","file_url":"https://github.com/yunming181920/MARS/blob/HEAD/defenses/mars.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"758feb0d7ddba85a"}},{"code_sha256_prefix":"cd880d69d29a3f09","entry":"Params","repo":"yunming181920/MARS","repo_kind":"found_in_text","path":"defenses/mars.py","file_url":"https://github.com/yunming181920/MARS/blob/HEAD/defenses/mars.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cd880d69d29a3f09"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CR","source":"arxiv_api"},"syntology_extracted_results":null}