Abstract
Federated Learning (FL) is increasingly utilized for decentralized model training, yet it remains highly vulnerable to Byzantine attacks where malicious participants submit poisoned updates. Traditional defenses often struggle with high attacker ratios, Sybil attacks, and non-IID data distributions. This paper presents MAB-RFL, a novel framework that treats client selection as a Multi-Armed Bandit problem. By integrating Thompson Sampling for adaptive selection with a dual-stage detection system for Sybil and non-Sybil attacks, MAB-RFL maintains model integrity even when nearly half of the participants are malicious. Experimental results on MNIST and CIFAR-10 demonstrate that MAB-RFL significantly outperforms state-of-the-art robust aggregation methods in both security and accuracy.
Introduction
Federated Learning (FL) enables multiple clients to collaboratively train a global model without sharing their raw data, preserving privacy in sensitive domains. However, the decentralized nature of FL introduces a significant security risk: Byzantine attacks. In these scenarios, malicious clients send "poisoned" updates to the central server to degrade model performance or install backdoors.
Existing defenses against these attacks often fail under three specific conditions: when the server continues to select known bad actors (irrational selection), when attackers collude to overwhelm the system (Sybil attacks), or when honest clients have highly diverse data (non-IID distributions). MAB-RFL addresses these gaps by introducing a "memory" mechanism for client reliability and a sophisticated filtering pipeline.
The Challenges of Robust Aggregation
1. Irrational Selection
Most FL frameworks employ random client selection in each round. This "forgetfulness" is a liability; even if a client is detected sending malicious updates in round $t$, they have an equal chance of being selected again in round $t+1$. This allows attackers to persistently influence the global model.
2. Sybil Vulnerability
In a Sybil attack, a single adversary controls multiple nodes that submit identical or nearly identical malicious updates. Many statistical defenses rely on the assumption that malicious updates are outliers. When Sybil nodes dominate the update pool, they can shift the "mean" or "median" toward the poisoned direction, causing the server to reject honest updates instead.
3. The Non-IID Struggle
In real-world FL, data is rarely Independent and Identically Distributed (IID). When clients have unique local data, their honest updates may look like outliers compared to the rest of the population. Standard robust aggregators often fail to distinguish between a "unique but honest" update and a "malicious" one, leading to poor performance in heterogeneous environments.
The MAB-RFL Framework
MAB-RFL (Multi-Armed Bandit Robust Federated Learning) introduces a three-tiered defense strategy to secure the aggregation process.
Adaptive Client Selection (ACS)
The server treats each client as an "arm" in a Multi-Armed Bandit problem. Using Thompson Sampling, the server maintains a Beta distribution for each client based on their historical performance. Clients who provide updates that pass the filtering stage receive "rewards," increasing their future selection probability. Conversely, suspicious clients are sidelined over time, effectively pruning the participant pool to favor honest actors.
Identifying Sybil Attacks (ISA)
To counter colluding attackers, MAB-RFL constructs a similarity graph of all received updates. The system leverages the Cosine Similarity Paradox: as a model converges, honest updates naturally become less similar in direction. By identifying "maximal connected subgraphs" of suspiciously similar updates, the server can flag and reject Sybil clusters.
Identifying Non-Sybil Attacks (INSA)
For attackers who do not collude, the framework employs a multi-step outlier detection pipeline:
- Momentum: Historical update information is used to smooth out noise and stabilize the detection process.
- Dimensionality Reduction: Principal Component Analysis (PCA) is applied to the high-dimensional weight vectors.
- Clustering: Agglomerative Clustering isolates outliers that deviate from the primary cluster of honest updates.
Robust Aggregation
Once filtering is complete, the server aggregates the remaining updates using normalized momentum vectors. This ensures that even if a malicious update manages to bypass both ISA and INSA, its magnitude is constrained, preventing it from dominating the global model update.
Experimental Evaluation
The authors evaluated MAB-RFL using the MNIST and CIFAR-10 datasets under non-IID conditions. The framework was tested against three primary attack types:
- Label Flipping (LF): Attackers change the labels of their local data.
- Little Is Enough (LIE): Attackers introduce small, calculated perturbations to bypass statistical filters.
- AGR-tailored (AGRT): Attacks specifically designed to circumvent robust aggregation methods.
Key Results
- High Resilience: While state-of-the-art defenses like Centered Clip (CC) and FABA experience significant accuracy drops when attackers exceed 30%, MAB-RFL remains stable even with an attacker volume of 48%.
- Non-IID Performance: On the CIFAR-10 dataset with 40% attackers, MAB-RFL achieved approximately 73% accuracy. In the same scenario, competing defenses often dropped to 10% accuracy, failing to perform better than random guessing.
- Zero-Tax Defense: In environments with no attackers, MAB-RFL performs comparably to standard FedAvg, ensuring that the defense mechanism does not degrade model utility during "peacetime."
Conclusion
MAB-RFL represents a significant shift in federated security by introducing rationality to client selection. By combining the long-term memory of Thompson Sampling with sophisticated graph-based and clustering-based detection, the framework provides a robust shield against complex Byzantine threats. Future work will focus on reducing the computational overhead of PCA and clustering to ensure scalability for large-scale cross-device FL deployments.
Summary updated