Abstract
Federated Learning (FL) enables collaborative model training without the need to share raw data, making it ideal for privacy-sensitive applications. However, real-world data is often non-independently and identically distributed (non-i.i.d.) across participants. While the impact of data heterogeneity on accuracy is well-documented, its effects on fairness and robustness are less understood. This paper demonstrates that fairness and security degrade significantly faster than overall accuracy in non-i.i.d. settings. Even a minor 2% dip in accuracy can mask a doubling of model bias and a significant increase in vulnerability to backdoor attacks.
Introduction
Federated Learning is a cornerstone for privacy-sensitive sectors like healthcare and finance. However, data is rarely uniform across participants; for instance, different hospitals may serve distinct demographic groups, leading to skewed class distributions. Existing research has primarily focused on how this heterogeneity affects global model accuracy. This study investigates two critical but often overlooked dimensions: fairness (performance parity across classes) and robustness (vulnerability to malicious updates).
Methodology
The study simulates an FL environment with 10 agents using the standard FedAvg protocol. Data heterogeneity is controlled using a Dirichlet distribution with a concentration parameter $\alpha$. A high $\alpha$ (1.0) represents uniform data, while a low $\alpha$ (0.25) represents highly skewed data.
Fairness and Robustness Metrics
- Fairness: Quantified as "Bias," defined by the difference between the highest and lowest class-wise accuracies.
- Robustness: Evaluated via a backdoor attack, where a malicious agent injects a "trojan" pattern—a 5x5 pixel plus sign—into training samples to force misclassification into a target class.
The experiments utilize two benchmarks: Fashion MNIST (LeNet architecture) and CIFAR10 (6-layer CNN). Additionally, the Robust Learning Rate (RLR) defense is tested for its ability to mitigate poisoning attacks.
Results and Analysis
Accuracy as a Deceptive Metric
The most significant finding is that accuracy is an insensitive indicator of model health. As data becomes more heterogeneous, fairness and robustness degrade disproportionately.
On Fashion MNIST, shifting from a uniform distribution ($\alpha=1.0$) to a skewed one ($\alpha=0.25$) resulted in a mere 2% drop in accuracy, yet the model's bias nearly doubled from 24.48% to 45.78%. This suggests that a seemingly high-performing global model may harbor significant class-level inequities.
Vulnerability to Poisoning
Data heterogeneity also weakens the "averaging" shield of FL. In uniform settings, malicious updates are outliers that are easily filtered. In non-i.i.d. settings, the diversity of honest updates provides "cover" for attackers. On Fashion MNIST, the success rate of backdoor attacks increased from 64.34% to 77.34% as data diversity grew.
The Defense Dilemma
While the RLR defense effectively neutralizes backdoor attacks, it introduces a critical trade-off. In highly skewed CIFAR10 scenarios ($\alpha=0.25$), the defense struggled, and the model's bias spiked significantly (reported as high as 90.26% in some configurations). This indicates that protecting security can inadvertently exacerbate unfairness.
Conclusion
This research highlights the hidden costs of data heterogeneity in Federated Learning. Accuracy alone is insufficient to evaluate the reliability and safety of FL models. Future work should explore a broader range of attacks and investigate whether advanced FL algorithms designed for heterogeneity can simultaneously address accuracy, fairness, and robustness gaps.
Summary updated