SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2509.20383 · NeurIPS · 2025

MARS: A Malignity-Aware Backdoor Defense in Federated Learning

Zhang, Zhicong Huang, Cheng Hong, Yu Leo, Ziqi Zhou, Shengshan Hu, Yechao Zhang, Wei Wan, Yuxuan Ning, Tianqing Zhu, Wanlei Zhou

arXiv · PDF · Open in the Atlas

Code that ran

7 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 3 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2509.20383.json · badge: /api/ran/2509.20383.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
yunming181920/MARS community
Papers with Code archive
7 ran · 3 no recorded run
FunctionStatusWhere it lives
CBE Ran
ran, honoured the contract we drafted
yunming181920/MARS/defenses/mars.py
pointer only (licence: NONE) · get_code("982b23e6640ba82d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yunming181920/MARS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_tpr_fpr Ran
ran; our contract draft was wrong, not the code
yunming181920/MARS/defenses/mars.py
pointer only (licence: NONE) · get_code("ae1369a008e4ad61")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yunming181920/MARS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cluster_and_detect_anomalies Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yunming181920/MARS/defenses/mars.py
pointer only (licence: NONE) · get_code("5ef5c6f8b861b8a2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yunming181920/MARS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_cluster_centers Ran
ran; our contract draft was wrong, not the code
yunming181920/MARS/defenses/mars.py
pointer only (licence: NONE) · get_code("90b6dcd97ea38eb8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yunming181920/MARS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_wasserstein_distance_matrix Ran
ran, violated the contract we drafted
yunming181920/MARS/defenses/mars.py
pointer only (licence: NONE) · get_code("a6cd14576a7d063c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yunming181920/MARS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

detect_anomaly Ran
ran; our contract draft was wrong, not the code
yunming181920/MARS/defenses/mars.py
pointer only (licence: NONE) · get_code("8593889efebe9287")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yunming181920/MARS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

kmeans_wasserstein_clustering Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yunming181920/MARS/defenses/mars.py
pointer only (licence: NONE) · get_code("ce15f794a671d919")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yunming181920/MARS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

FedAvg Not yet run
unverified (harvested, no recorded run)
yunming181920/MARS/defenses/mars.py
pointer only (licence: NONE) · get_code("05179368187f7e1e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yunming181920/MARS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

MARS Not yet run
unverified (harvested, no recorded run)
yunming181920/MARS/defenses/mars.py
pointer only (licence: NONE) · get_code("758feb0d7ddba85a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yunming181920/MARS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Params Not yet run
unverified (harvested, no recorded run)
yunming181920/MARS/defenses/mars.py
pointer only (licence: NONE) · get_code("cd880d69d29a3f09")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yunming181920/MARS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2509.20383")
get_code_for_paper("2509.20383")
have("2509.20383")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2509.20383.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2509.20383.svg)](https://syntology.ai/paper/2509.20383)

Connect an agent — have() is free.