Delving into the Adversarial Robustness of Federated Learning

Jie Zhang, Bo Li, Chen Chen, Lingjuan Lyu, Shuang Wu, Shouhong Ding, Chao Wu · DOI

Abstract

Federated Learning (FL) has emerged as a powerful paradigm for privacy-preserving collaborative machine learning. However, recent research highlights a significant vulnerability: FL models are often as susceptible to adversarial perturbations as their centrally trained counterparts. This paper, originally presented at AAAI 2023, investigates the unique challenges of applying Adversarial Training (AT) within a federated framework, particularly under conditions of data heterogeneity (non-IID). We discuss the proposed DBFAT (Decision Boundary based Federated Adversarial Training) method, which leverages local sample re-weighting and global model regularization to bridge the gap between clean accuracy and adversarial robustness.

Introduction

In Federated Learning, multiple clients—ranging from mobile devices to healthcare institutions—collaboratively train a global model without sharing their raw, sensitive data. While this architecture provides a layer of privacy, it does not inherently protect the model from adversarial attacks. Adversarial attacks involve subtle, calculated perturbations to input data that lead a model to make incorrect predictions with high confidence.

In centralized learning, the standard defense is Adversarial Training (AT), where the model is trained on a mix of clean and adversarial examples. However, directly porting AT to the federated setting introduces two primary complications: a severe drop in "clean accuracy" (performance on unperturbed data) and the "non-IID penalty," where heterogeneous data distributions across clients cause local decision boundaries to diverge significantly from the optimal global boundary.

The DBFAT Framework

To address these challenges, the authors introduce DBFAT, a dual-strategy approach designed to stabilize training and enhance robustness without sacrificing accuracy.

1. Local Re-weighting via Boundary Awareness

Not all adversarial examples contribute equally to a model's robustness. DBFAT introduces a technique called PGD-S to measure the geometric distance of a specific sample to the model's decision boundary. In this framework, samples that lie closer to the boundary are considered more critical for defining the model's robustness. By assigning higher weights to these "boundary-adjacent" samples during local training, DBFAT forces the local model to focus on the most vulnerable regions of the feature space, effectively creating a more robust "buffer zone."

2. Global Regularization

Data heterogeneity (non-IID) often causes local models to drift toward biased solutions that reflect only the client's specific data distribution. When these biased models are averaged, the resulting global model often performs poorly on both clean and adversarial data. DBFAT mitigates this by using the global model as an "anchor." It incorporates a regularization term based on KL-divergence that encourages local models to maintain predictions on natural data that are consistent with the global model. This acts as a sanity check, preventing local models from over-fitting to their specific, skewed datasets and preserving overall clean accuracy.

Experimental Evaluation

The researchers conducted an extensive evaluation of DBFAT across several computer vision benchmarks, ranging from small-scale datasets like MNIST and Fashion-MNIST to medium-scale (CIFAR-10, CIFAR-100) and large-scale (Tiny-ImageNet, ImageNet-12) datasets. To simulate real-world FL environments, they utilized Dirichlet sampling and Sharding to create varied non-IID conditions.

Key Results

DBFAT consistently outperformed state-of-the-art baselines, including FedAvg combined with TRADES and FedProx combined with PGD-AT.

  • Robustness in Non-IID Settings: On CIFAR-10 (non-IID), DBFAT achieved a clean accuracy ($A_{cln}$) of 52.24% and a robust accuracy ($A_{rob}$) of 27.02%. In contrast, standard PGD-AT saw clean accuracy drop to 15.27% in the same setting.
  • Scalability: On the ImageNet-12 dataset, DBFAT maintained a high clean accuracy of 61.38% while achieving the highest robust accuracy among all tested methods.
  • Convergence: Unlike many adversarial FL methods that exhibit wild fluctuations during training, DBFAT demonstrated a significantly smoother and more stable convergence rate.

Discussion and Future Directions

The study confirms that data heterogeneity is the primary obstacle to achieving robustness in Federated Learning. The "aha moment" of the research lies in the realization that the distance to the decision boundary serves as an effective proxy for sample importance. By prioritizing these samples and anchoring local updates to the global model, DBFAT effectively manages the trade-off between accuracy and robustness.

Despite its success, the method has limitations. The regularization strength ($\beta$) currently requires manual tuning for different datasets (e.g., 1.5 for MNIST vs. 2.0 for FMNIST). Future work may focus on adaptive parameter selection and the exploration of certified robustness, which aims to provide mathematical guarantees of model security in decentralized environments. As FL continues to be adopted in security-sensitive domains, methods like DBFAT will be essential for ensuring that privacy-preserving models are also resilient against malicious interference.

Summary updated

BibTeX
@inproceedings{zhang2023delving,
  author = {Jie Zhang and Bo Li and Chen Chen and Lingjuan Lyu and Shuang Wu and Shouhong Ding and Chao Wu},
  title = {{Delving into the Adversarial Robustness of Federated Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i9.26331},
}
Figure