Robust Federated Learning against both Data Heterogeneity and Poisoning Attack via Aggregation Optimization

Yueqi Xie, Weizhong Zhang, Renjie Pi, Fangzhao Wu, Qifeng Chen, Xing Xie, Sunghun Kim

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for collaborative model training without centralizing raw data. However, its practical deployment is hindered by two significant challenges: data heterogeneity (non-IID data distributions across clients) and vulnerability to poisoning attacks from malicious participants. Traditional methods like FedAvg often fail to converge to an optimal global model under high heterogeneity, and robust aggregators designed to mitigate attacks often struggle to distinguish between malicious updates and legitimate but diverse data from honest clients.

Methodology: SmartFL

This paper introduces SmartFL, a unified framework that addresses both heterogeneity and poisoning through Aggregation Optimization. Unlike standard FL which uses fixed or heuristic weights for averaging client models, SmartFL optimizes these weights ($p_m$) on the server side using a small amount of clean proxy data.

Subspace Training

To prevent the server from overfitting to the tiny proxy dataset, SmartFL employs Subspace Training. Instead of fine-tuning the entire high-dimensional model parameter space, the optimization is restricted to the convex hull spanned by the received client models. This reduces the number of parameters to tune from millions to just the number of clients (e.g., 80), acting as a powerful natural regularizer.

Handling Unlabelled Data (SmartFL-U)

For scenarios where the server lacks ground-truth labels for its proxy data, the authors propose SmartFL-U. This variant utilizes an ensemble of client predictions to generate pseudo-labels, allowing the server to optimize aggregation weights even in unsupervised settings.

Experimental Evaluation

The framework was evaluated on several benchmarks, including MNIST, CIFAR-10, and CIFAR-100, with heterogeneity simulated via Dirichlet distributions. The authors also tested robustness against various poisoning strategies, such as Label Flip, Omniscient, and Fang attacks, with malicious client ratios up to 70%.

Results and Discussion

SmartFL demonstrates significant performance gains over state-of-the-art baselines. On CIFAR-10 with extreme heterogeneity ($\alpha=0.01$), SmartFL achieved 52.96% accuracy, compared to 33.94% for FedAvg.

Test accuracy of SmartFL vs. baselines across different proxy dataset sizes for CIFAR-10 and CIFAR-100.

Robustness to Heterogeneity and Attacks

A key strength of SmartFL is its inherent defense mechanism. Malicious or highly divergent updates naturally receive lower weights during optimization because they perform poorly on the server's clean proxy data. This data-driven approach proves more effective than handcrafted statistical filters.

Robustness of SmartFL to varying degrees of data imbalance (heterogeneity) for different proxy data sizes.

Efficiency and Generalization

SmartFL exhibits remarkably fast convergence, reaching target accuracies in significantly fewer communication rounds than FedAvg. For example, on CIFAR-10, it reached baseline accuracy in 34.7 rounds, compared to 196.3 rounds for FedAvg. Theoretical analysis further supports these findings, showing that the generalization error of SmartFL is independent of the model's total parameter count, explaining its success with proxy datasets as small as 128 samples.

Conclusion

SmartFL provides a robust and efficient solution for federated learning in adversarial and heterogeneous environments. By shifting the focus to aggregation optimization within a low-dimensional subspace, it achieves superior accuracy and stability without the risks of traditional fine-tuning.

Summary updated

Abstract

Non-IID data distribution across clients and poisoning attacks are two main challenges in real-world federated learning (FL) systems. While both of them have attracted great research interest with specific strategies developed, no known solution manages to address them in a unified framework. To universally overcome both challenges, we propose SmartFL, a generic approach that optimizes the server-side aggregation process with a small amount of proxy data collected by the service provider itself via a subspace training technique. Specifically, the aggregation weight of each participating client at each round is optimized using the server-collected proxy data, which is essentially the optimization of the global model in the convex hull spanned by client models. Since at each round, the number of tunable parameters optimized on the server side equals the number of participating clients (thus independent of the model size), we are able to train a global model with massive parameters using only a small amount of proxy data (e.g., around one hundred samples). With optimized aggregation, SmartFL ensures robustness against both heterogeneous and malicious clients, which is desirable in real-world FL where either or both problems may occur. We provide theoretical analyses of the convergence and generalization capacity for SmartFL. Empirically, SmartFL achieves state-of-the-art performance on both FL with non-IID data distribution and FL with malicious clients. The source code will be released.
BibTeX
@misc{xie2022robust,
  author = {Yueqi Xie and Weizhong Zhang and Renjie Pi and Fangzhao Wu and Qifeng Chen and Xing Xie and Sunghun Kim},
  title = {{Robust Federated Learning against both Data Heterogeneity and Poisoning Attack via Aggregation Optimization}},
  year = {2022},
  eprint = {2211.05554},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.05554},
}
Figure