Introduction
Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models across decentralized clients while preserving data privacy. However, this decentralization introduces significant security vulnerabilities, most notably backdoor attacks. In these scenarios, a malicious client injects poisoned updates into the global model. The resulting model performs correctly on standard inputs but misclassifies samples containing a specific "trigger" pattern (e.g., a small pixel patch).
Existing defenses typically focus on the aggregation phase, attempting to identify and filter out malicious updates. These methods often struggle in non-IID (Independent and Identically Distributed) environments, where legitimate updates from diverse clients can appear as statistical outliers, effectively masking malicious activity. While neuron pruning is a proven defense in centralized settings, it traditionally requires a trusted, clean dataset to identify dormant neurons—a luxury not available to an FL server without violating privacy. This paper proposes a novel three-step post-training defense strategy to "cleanse" backdoored models without requiring centralized clean data.
Proposed Methodology
The authors introduce a comprehensive pipeline designed to identify and neutralize backdoor neurons while maintaining high utility for benign tasks. The defense consists of three primary stages: Federated Pruning, Fine-tuning, and Extreme Weight Adjustment.
1. Federated Pruning
The core insight is that backdoor triggers are rare in natural data; thus, neurons dedicated to recognizing them remain dormant during normal operation. To identify these neurons without accessing raw client data, the authors propose two privacy-preserving consensus mechanisms:
- Rank Aggregation-based Pruning (RAP): Clients rank neurons based on their average activation levels on local data. The server aggregates these rankings to identify globally "quiet" neurons.
- Majority Voting-based Pruning (MVP): Clients vote on which neurons are the least active. This method is highly robust against a minority of attackers attempting to manipulate the pruning process.
2. Fine-tuning
Pruning dormant neurons can inadvertently impact the model's accuracy on legitimate tasks. To mitigate this "bruising," the server returns the pruned model to the clients for several rounds of standard FL training. This allows the model to recover its performance on benign data using the remaining healthy neurons.
3. Adjusting Extreme Weights
Even after pruning, some backdoor behavior may persist. The researchers observed that backdoors often rely on "extreme" weights in the final layers to override the collective signal from legitimate neurons. The defense scans the weights of the last convolutional layer and zeroes out statistical outliers—those exceeding a specific number of standard deviations (defined by a parameter $\Delta$) from the mean. This effectively "mutes" the backdoor signal.
Experimental Evaluation
The defense was evaluated using standard benchmarks: MNIST, Fashion-MNIST, and CIFAR-10, specifically focusing on challenging non-IID scenarios.
Key Results
- Attack Mitigation: On the MNIST dataset, the defense reduced the average Attack Success Rate (ASR) from 99.7% to 4.7%, with a negligible accuracy loss of approximately 1.4%.
- Robustness against Distributed Attacks: Against state-of-the-art Distributed Backdoor Attacks on CIFAR-10, the ASR dropped by over 70% while maintaining validation accuracy within 2% of the original model.
- Efficiency: The pruning stage is highly efficient, requiring only a single round of communication between the server and clients.
As shown in the figure above, the attack success rate (atk) drops precipitously as the number of pruned neurons increases, while the test accuracy (acc) remains remarkably stable until a critical threshold is reached. This demonstrates the surgical precision of the federated pruning approach.
Discussion and Limitations
While the proposed method significantly outperforms centralized baselines like Neural Cleanse, it faces certain challenges. A sophisticated "pruning-aware" attacker might attempt to use neurons essential for benign tasks to trigger the backdoor, making them impossible to remove without destroying model utility. Additionally, the effectiveness of Majority Voting depends on the assumption that fewer than 50% of clients are malicious. Finally, the weight adjustment step is sensitive to the hyper-parameter $\Delta$, which currently requires manual tuning or a small server-side validation set. Future research will focus on automating threshold selection and enhancing robustness against adaptive attackers.
Summary updated