Adversarial Robustness through Bias Variance Decomposition: A New Perspective for Federated Learning

Yao Zhou, Jun Wu, Haixun Wang, 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: The Vulnerability of Federated Learning

Federated Learning (FL) allows multiple parties (clients) to train a global model without sharing their private data. While this paradigm offers significant privacy advantages, these models inherit a major flaw common in centralized deep learning: adversarial vulnerability. A tiny, invisible perturbation to an input at test time can cause the model to fail spectacularly.

Existing solutions usually involve "adversarial training" (AT), which requires training on perturbed examples. However, implementing AT in a federated setting is challenging. If every client generates their own adversarial examples, it becomes computationally prohibitive for low-power devices like smartphones or IoT sensors. Furthermore, local training often ignores the "variance" between how different clients perceive the data, which is a critical factor in the overall robustness of an aggregated global model.

The Fed_BVA Framework

To address these challenges, the authors propose Fed_BVA, a framework that decomposes the generalization error of the aggregated server model into two components: bias (how far the average client prediction is from the ground truth) and variance (how much individual client predictions disagree with each other).

1. Server-Side Attack Generation

The server maintains a small, non-private auxiliary dataset. Using the current global model and recent client updates, it generates "Bias-Variance" adversarial examples. Instead of searching for generic hard examples, it specifically crafts perturbations that maximize both the bias and the disagreement (variance) among clients. This process uses adapted algorithms like BV-FGSM and BV-PGD.

2. Asymmetrical Communication and Robust Updates

Unlike standard FL, where only model weights are exchanged, the server sends these crafted adversarial examples down to the clients. Clients then train on their private, clean data combined with these server-provided adversarial examples. This dual-training objective forces local models to remain accurate while converging toward a prediction consistent with the global consensus, effectively minimizing both bias and variance.

Visualization of bias and variance gradients and the bias-variance curve relative to model complexity.

Key Insights: Complexity and Robustness

A significant finding in this research is the relationship between model complexity and the bias-variance trade-off in FL. The authors observed that in deep learning FL, both bias and variance tend to decrease as model complexity (e.g., the number of filters) increases. This differs from the classical "U-shaped" bias-variance curves seen in simpler models, suggesting that larger models in FL may inherently possess better potential for robustness if trained with the right objectives.

Experimental Results

The framework was evaluated on four standard computer vision benchmarks: MNIST, Fashion-MNIST, CIFAR-10, and CIFAR-100, using architectures like 4-layer CNNs and VGG9. Tests covered both IID and non-IID settings, the latter representing the realistic scenario where client data distributions vary significantly.

  • Superior Robustness: In white-box PGD-20 attacks on Fashion-MNIST, standard FedAvg accuracy dropped to ~3.6%. Fed_BVA maintained 18% accuracy, which increased to 22.6% when combined with Ensemble Adversarial Training (EAT).
  • Non-IID Performance: On MNIST, Fed_BVA achieved 46.9% accuracy under PGD-20 attack, compared to just 15.8% for standard FedAvg.
  • Black-Box Defense: The model demonstrated strong resistance to transferability attacks, remaining robust even when attackers used different architectures (like ResNet or MobileNet) to generate perturbations.
Comparison of convergence, performance under attack, and robustness-performance efficiency across different FL frameworks.

Conclusion and Future Work

Fed_BVA provides a scalable way to improve the adversarial robustness of federated models by shifting the computational burden of attack generation to the server and leveraging the bias-variance decomposition.

While effective, the method does introduce some communication overhead by sending adversarial data to clients. Additionally, it relies on the availability of a representative auxiliary dataset at the server. Future research may focus on optimizing this communication or developing methods to generate effective attacks without auxiliary data. Nonetheless, Fed_BVA represents a significant step toward making distributed machine learning resilient to adversarial threats.

Summary updated

BibTeX
@inproceedings{zhou2020adversarial,
  author = {Yao Zhou and Jun Wu and Haixun Wang and Jingrui He},
  title = {{Adversarial Robustness through Bias Variance Decomposition: A New Perspective for Federated Learning}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2020},
}
Figure