Combating Exacerbated Heterogeneity for Robust Models in Federated Learning

Jianing Zhu, Jiangchao Yao, Tongliang Liu, quanming yao, Jianliang Xu, Bo Han

The Challenge of Federated Adversarial Training

Federated Learning (FL) allows machine learning models to be trained across decentralized devices, preserving user data privacy. However, these distributed models remain vulnerable to adversarial attacks—small, intentional perturbations designed to fool the AI. The logical defense is to integrate Adversarial Training (AT) into the federated framework, creating Federated Adversarial Training (FAT).

Unfortunately, a straightforward combination of FL and AT introduces a mysterious problem: robustness deterioration. In the later stages of training, the model's ability to defend against attacks often drops sharply.

The authors of this paper discovered that the culprit is exacerbated heterogeneity. When local clients generate adversarial examples based on their own biased local models, it creates a feedback loop. The adversarial data makes already-different client datasets look even more divergent. This intensified heterogeneity makes it nearly impossible for the central server to aggregate the models into a single, robust global version.

The Solution: Slack Federated Adversarial Training (SFAT)

To fix this feedback loop, the authors propose a novel framework called Slack Federated Adversarial Training (SFAT).

The core innovation of SFAT is the $\alpha$-slack mechanism, which rethinks how client updates are aggregated on the central server:

  1. Objective Relaxation: Instead of trying to perfectly solve the standard "min-max" adversarial objective—which leads to overfitting on local biases—SFAT relaxes the objective into a lower bound.
  2. Counter-intuitive Client Reweighting: In standard training, high-loss "hard" examples are often prioritized. SFAT does the opposite. During the server aggregation phase, clients are ranked by their adversarial training loss. SFAT upweights clients with smaller adversarial losses and downweights those with large losses.

Why does this work? In a heterogeneous federated setting, a very high adversarial loss indicates that a client's local adversarial generation has drifted too far from the global consensus. By "slacking" on these extreme updates, the global model avoids being pulled in conflicting directions.

Vector diagram illustrating how FAT exacerbates client bias and how SFAT corrects the aggregation direction.

Importantly, SFAT is designed as a "plug-and-play" module, meaning it is fully compatible with existing federated optimizers like FedAvg, FedProx, and Scaffold.

Key Results and Performance

The researchers evaluated SFAT on several benchmark and real-world datasets, focusing on Non-IID (not identically and independently distributed) settings to simulate real-world data diversity, including CIFAR-10, CIFAR-100, SVHN, and CelebA.

  • Superior Robustness: On CIFAR-10 (Non-IID), SFAT improved robust accuracy against PGD-20 attacks by roughly 5% over standard FAT (37.14% vs 32.56%).
  • No "Robustness Tax": Many defense methods trade off standard accuracy for robustness. SFAT, however, actually improved natural accuracy by about 5% on CIFAR-10.
  • Eliminating Deterioration: SFAT successfully stabilized the training process. Robust accuracy remained stable or improved throughout the entire training lifecycle, whereas standard FAT peaked early and then sharply declined.
Comparison of robust accuracy over communication rounds between standard FAT and the proposed SFAT method.

Furthermore, the method proved highly scalable, holding up effectively on the CelebA dataset distributed across 455 clients.

Limitations and Future Directions

While SFAT significantly improves the aggregation phase of federated adversarial training, the local training phase still requires generating adversarial examples. This remains computationally expensive for edge devices like smartphones or IoT sensors.

Additionally, the current study primarily focuses on $L_\infty$-bounded adversarial attacks. Future work could explore how the slack mechanism handles other types of perturbations, such as spatially transformed attacks, or how it might naturally resist malicious poisoning attacks by downweighting extreme client updates.

Summary updated

BibTeX
@inproceedings{zhu2023combating,
  author = {Jianing Zhu and Jiangchao Yao and Tongliang Liu and quanming yao and Jianliang Xu and Bo Han},
  title = {{Combating Exacerbated Heterogeneity for Robust Models in Federated Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=eKllxpLOOm},
}
Figure