Introduction
Federated Learning (FL) is a promising paradigm for training machine learning models across decentralized devices while preserving data privacy. However, real-world deployments often encounter Negative Federated Learning (NFL)—a state where the resulting global model performs worse on a client's local data than a model trained solely on that client's private data. This phenomenon is typically driven by extreme data heterogeneity (non-IID data), malicious actors, or noise introduced by privacy-preserving mechanisms.
FL-GUARD is proposed as a "plug-and-play" framework designed to detect and mitigate NFL in real-time. Unlike existing solutions that are either always active (incurring constant overhead) or post-hoc (fixing issues too late), FL-GUARD ensures that recovery measures are only triggered when necessary, minimizing the "complexity tax" on the system.
The Challenge of Negative Federated Learning
Existing research into FL failures often overlooks the practical constraints of large-scale systems. Current mitigation strategies frequently assume that all clients will adopt complex new protocols simultaneously. Moreover, many personalization techniques degrade performance when the federation is actually healthy (Ideal FL), creating a "personalization tax." FL-GUARD addresses these gaps by acting as a protective wrapper that remains dormant during healthy training rounds and activates only upon detecting performance degradation.
The FL-GUARD Framework
The framework consists of two primary stages: run-time detection and dynamic recovery.
1. Run-Time Detection
To avoid the high cost of frequent evaluation rounds, FL-GUARD utilizes the first training batch of each round as a "surrogate" to estimate the Performance Gain (PG). Clients calculate this estimated gain and report it to the server. To ensure robustness against malicious clients who might report false data, the server employs median-based aggregation and a moving average to determine if the system has entered an NFL state.
2. Dynamic Recovery
Once NFL is detected, clients initiate a local adaptation process. They maintain and train an adapted model in parallel with the global model. The core of this recovery is a dynamic parameter, $\lambda$, which regulates the deviation of the adapted model from the global model. When high gradient divergence indicates that global knowledge contradicts local data, $\lambda$ automatically decreases, allowing the client to prioritize its local data distribution.
Experimental Evaluation
The framework was tested against harsh simulated conditions, including 30% malicious attackers and high noise, using two benchmarks:
- CIFAR-10: Image classification with a non-IID distribution where class counts vary across clients.
- Shakespeare (LEAF benchmark): Language modeling partitioned by speaking roles to simulate natural heterogeneity.
Key Results and Insights
FL-GUARD demonstrates significant improvements over vanilla FedAvg and state-of-the-art personalization methods like Ditto and APFL.
- Performance in NFL Scenarios: On CIFAR-10 under high stress, FL-GUARD achieved approximately 85% accuracy, while vanilla FedAvg dropped to 48%—performing worse than standalone local training.
- Detection Efficiency: The system successfully identifies the onset of NFL within a few dozen rounds, preventing hundreds of rounds of wasted computation.
- Preserving Ideal FL: In scenarios where data is IID and no attackers are present, FL-GUARD correctly identifies the healthy state. It matches the performance of vanilla FL, avoiding the 3-6% accuracy drop often seen with other personalization techniques.
Conclusion
FL-GUARD provides a robust, backward-compatible solution for modern FL systems. By using training data as a validation set and implementing a dynamic recovery mechanism, it offers protection against NFL without sacrificing performance in ideal conditions. Future work will focus on automating per-client thresholding and further reducing the memory footprint of recovery measures on resource-constrained devices.
Summary updated