Abstract
Federated Learning (FL) allows for decentralized model training but introduces vulnerabilities due to the "black box" nature of client updates. Distinguishing between benign data heterogeneity (non-IID) and malicious poisoning is a critical challenge. This paper introduces Federated Behavioural Planes (FBPs), a framework that visualizes client dynamics through Error Behavioural Planes (EBP) and Counterfactual Behavioural Planes (CBP). By tracking behavioural trajectories, we propose Federated Behavioural Shields (FBSs) to filter malicious updates. Our results indicate that FBSs significantly enhance model robustness and accuracy, outperforming traditional aggregation methods like Krum and RFA by up to 16 percentage points on benchmark tasks.
Introduction
The primary challenge in Federated Learning is the lack of visibility into client data, which can lead to model poisoning. Traditional defenses often rely on the geometric properties of gradients, which struggle to differentiate between honest clients with unique data distributions and attackers. We propose shifting the focus from gradient geometry to client behaviour—specifically, how clients make errors and how their decision boundaries evolve over time.
Methodology
Overview of the Federated Behavioural Planes framework and performance on small-MNIST. Source, p. 2
The FBP framework utilizes two primary visualization spaces to monitor client dynamics:
- Error Behavioural Plane (EBP): This plane maps predictive performance. The server records specific errors made by each client's model on a small validation set. Using Principal Component Analysis (PCA), these patterns are mapped to a 2D space. Clients in the same region are not just similarly accurate; they are making the same mistakes on the same samples.
- Counterfactual Behavioural Plane (CBP): This plane captures decision-making logic. It uses counterfactual explanations—identifying the minimal input changes needed to flip a model's prediction—to map decision boundaries via t-SNE. This reveals how a model thinks, which is a more robust fingerprint than error rates alone.
- Federated Behavioural Shields (FBSs): This defense mechanism assigns a "behavioural score" based on a client's position in these planes. Updates from clients that cluster with the honest group are prioritized, while outliers are down-weighted or excluded.
Experimental Results
We evaluated the framework across five datasets, including medical (Diabetes, Breast Cancer) and image (small-MNIST, small-CIFAR-10) data, to ensure versatility across tabular and image formats.
Key Insights
- Trajectories as Identifiers: Honest clients tend to converge toward a common "behavioural center" over training rounds, whereas attackers follow distinct, identifiable trajectories.
- Robustness of Decision Logic: Attackers find it significantly harder to mimic the complex decision boundaries of honest clients (CBP) than to hide their error patterns (EBP).
- Performance Gains: FBSs significantly outperformed traditional robust aggregators like Krum, Median, and RFA. On the small-MNIST dataset, FBSs improved accuracy by up to 16 percentage points compared to the best baselines and successfully mitigated attacks like label-flipping and inverted-loss.
- Efficiency: The computational overhead for generating counterfactuals was optimized to just 1.8% to 5.1% of the total operations of the main predictor model.
Conclusion and Future Work
Federated Behavioural Planes provide a novel way to "open the black box" of FL. While the framework currently requires a small server-side validation set, it offers superior protection against sophisticated poisoning attacks. Future research will explore using these planes for "Clustered FL" to improve model personalization and integrating advanced privacy techniques like Homomorphic Encryption to further secure the validation process.
Summary updated