Robust Decentralized Learning for Neural Networks

Yao Zhou, Jun Wu, Jingrui He

Abstract

Federated learning learns a neural network model by aggregating the knowledge from a group of distributed clients under the privacy-preserving constraint. In this work, we show that this paradigm might inherit the adversarial vulnerability of the centralized neural network, i.e., it has deteriorated performance on adversarial examples when the model is deployed. This is even more alarming when federated learning paradigm is designed to approximate the updating behavior of a centralized neural network. To solve this problem, we propose an adversarially robust federated learning framework, named Fed_BVA, with improved server and client update mechanisms. This is motivated by our observation that the generalization error in federated learning can be naturally decomposed into the bias and variance triggered by multiple clients' predictions. Thus, we propose to generate the adversarial examples via maximizing the bias and variance during server update, and learn the adversarially robust model updates with those examples during client update. As a result, an adversarially robust neural network can be aggregated from these improved local clients' model updates. The experiments are conducted on multiple benchmark data sets using several prevalent neural network models, and the empirical results show that our framework is robust against white-box and black-box adversarial corruptions under both IID and non-IID settings.

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for training global models across distributed clients—such as smartphones or medical institutions—without compromising raw data privacy. However, these models often inherit the inherent vulnerabilities of centralized neural networks, specifically their susceptibility to adversarial attacks. These attacks involve small, intentional perturbations to input data that can lead to confident but incorrect model predictions.

While Adversarial Training (AT) is a standard defense in centralized settings, its direct application to FL is hindered by the limited computational resources of edge devices. Furthermore, locally generated adversarial examples may only reflect local data biases, failing to enhance the robustness of the aggregated global model. This paper introduces Fed_BVA, a framework designed to build robust global models efficiently by shifting the burden of attack generation to the server.

Methodology: The Fed_BVA Framework

The core of the Fed_BVA (Bias-Variance Attack) algorithm lies in utilizing bias-variance decomposition to generate "global" adversarial examples on the server side. This approach leverages the server's broader view of the network's state to create more effective training signals for clients.

  1. Bias-Variance Decomposition: The generalization error of the federated model is decomposed into bias (the distance between average prediction and ground truth) and variance (the deviation between individual client predictions).
  2. Server-Side Adversarial Generation: Using a small auxiliary dataset, the server calculates gradients for both bias and variance based on client updates. It generates adversarial examples by maximizing these values through methods like BV-FGSM and BV-PGD.
  3. Asymmetrical Training: The server transmits these global adversarial examples to clients. Clients then update their local models using a mix of their private clean data and the server-provided adversarial examples. This process encourages local models to remain stable even under perturbations that would typically cause high variance across the network.
Visualization of bias and variance gradients used to generate adversarial examples.

Experimental Evaluation

The researchers evaluated Fed_BVA on several standard benchmarks, including MNIST, Fashion-MNIST, CIFAR-10, and CIFAR-100. The experiments covered both IID (Independent and Identically Distributed) and non-IID scenarios to simulate the data imbalances common in real-world federated environments.

Key Results

Fed_BVA consistently outperformed standard Federated Averaging (FedAvg) and basic local adversarial training (FedAvg_AT) across all tested datasets:

  • Resilience to Strong Attacks: In non-IID Fashion-MNIST settings under a PGD-20 attack, standard FedAvg accuracy dropped to 1.7%. Fed_BVA maintained 9.3% accuracy, which improved to 10.6% when combined with Ensemble Adversarial Training (EAT).
  • IID Performance: On MNIST (IID), Fed_BVA achieved 61.3% accuracy under PGD-20, a significant improvement over the 26.7% achieved by standard FedAvg.
  • Black-Box Transferability: Models trained with Fed_BVA demonstrated superior resistance to "black-box" attacks, where the attacker lacks knowledge of the model's internal parameters.
Comparison of model robustness versus performance across different federated learning frameworks.

Discussion and Conclusion

A critical insight from this work is the "Global Advantage": by attacking points where clients disagree most (maximizing variance), the server forces the global model toward a more stable decision boundary. This asymmetrical approach is particularly suited for edge computing, where devices are often bandwidth-rich but compute-poor.

While Fed_BVA introduces a slight trade-off between clean-data accuracy and robustness, it prevents the catastrophic performance collapses seen in standard FL models under attack. Future work may focus on reducing the reliance on server-side auxiliary data and further optimizing the communication overhead associated with sending adversarial examples to clients.

Summary updated

BibTeX
@inproceedings{zhou2020robust,
  author = {Yao Zhou and Jun Wu and Jingrui He},
  title = {{Robust Decentralized Learning for Neural Networks}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2020},
}
Figure