Attack-Resistant Federated Learning with Residual-based Reweighting

Shuhao Fu, Chulin Xie, Bo Li, Qifeng ChenarXiv 2019

Abstract

Federated learning has a variety of applications in multiple domains by utilizing private training data stored on different devices. However, the aggregation process in federated learning is highly vulnerable to adversarial attacks so that the global model may behave abnormally under attacks. To tackle this challenge, we present a novel aggregation algorithm with residual-based reweighting to defend federated learning. Our aggregation algorithm combines repeated median regression with the reweighting scheme in iteratively reweighted least squares. Our experiments show that our aggregation algorithm outperforms other alternative algorithms in the presence of label-flipping and backdoor attacks. We also provide theoretical analysis for our aggregation algorithm.

Introduction

Federated Learning (FL) allows multiple devices to collaboratively train a global model without sharing their raw, private data. However, this decentralized nature creates a significant security loophole: a central server has no way to verify if a client's update is based on honest data or malicious "poison." Existing defenses often rely on simple statistical measures like the median or "trimmed mean" to filter out outliers. While these work in controlled environments where data is Independent and Identically Distributed (IID), they often fail in real-world non-IID settings. In these cases, a legitimate user with unique data might be misidentified as an attacker, leading the server to discard useful information while potentially letting sophisticated attacks slip through. This paper introduces a robust aggregator designed to be attack-resistant even when data distributions vary wildly across participants.

Methodology

The proposed aggregation pipeline treats the combination of client updates as a robust regression problem. The approach consists of several key steps designed to identify and neutralize malicious updates while preserving the structural integrity of the neural network.

The proposed aggregation pipeline using repeated median regression and residual-based reweighting.
  1. Repeated Median Estimator: Instead of a simple average, the server uses the repeated median—a highly robust statistical estimator—to calculate a "baseline" for every parameter in the model. This estimator remains resilient even if nearly half the participants are malicious.
  2. Residual Computation: For every client, the server calculates the "residual," which is the distance between the client’s proposed parameter and the robust baseline.
  3. Parameter Confidence: Using a scheme inspired by Iteratively Reweighted Least Squares (IRLS), the algorithm assigns a confidence score to each parameter based on its residual. Updates far from the baseline receive lower confidence.
  4. Model-Level Reweighting: Crucially, the authors avoid purely coordinate-wise operations that can "break" model structure. They accumulate parameter-level confidence scores to create a single weight for the entire local model, maintaining relationships between layers and neurons.
  5. Extreme Value Correction: To prevent "explosive" updates, a thresholding mechanism clips or corrects values with extremely low confidence.

Experimental Setup

The researchers evaluated their algorithm across four diverse datasets to prove its generalizability: MNIST and CIFAR-10 (Computer Vision), Amazon Reviews (NLP), and Lending Club Loan Data (Tabular). To simulate realistic FL environments, these datasets were partitioned into non-IID distributions, such as dividing financial data by geographic region to reflect varying economic profiles.

Key Results

The proposed method consistently outperformed baselines like FedAvg, Median, and FoolsGold across various attack scenarios.

Comparison of model accuracy across different numbers of attackers, demonstrating the robustness of the proposed method.
  • Label-Flipping Attacks: On the Amazon Reviews dataset with 40% attackers, the proposed method maintained 91.38% accuracy, while the standard FedAvg plummeted to 9.78%.
  • Backdoor Attacks: In a backdoor attack on CIFAR-10, the Attack Success Rate (ASR) for FedAvg reached nearly 100%. The proposed method suppressed the ASR to just 9.65% while maintaining high main-task accuracy.
  • Scalability: The method remained stable when tested on complex models like ResNet-18, which contains significantly more parameters than the simple CNNs typically used in FL studies.

Conclusion

By utilizing repeated median regression and model-wise reweighting, this approach effectively distinguishes between unique legitimate data and malicious poisoning. While the repeated median regression is more computationally expensive than a simple mean—potentially increasing latency in massive-scale deployments—it provides a mathematically grounded defense with strong empirical performance. Future work may explore adaptive adversaries who attempt to mimic the repeated median distribution to bypass these filters.

Summary updated

BibTeX
@misc{fu2019attack,
  author = {Shuhao Fu and Chulin Xie and Bo Li and Qifeng Chen},
  title = {{Attack-Resistant Federated Learning with Residual-based Reweighting}},
  year = {2019},
  eprint = {1912.11464},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.11464},
}
Figure