Introduction
Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models across decentralized devices while maintaining data privacy. However, the practical implementation of FL faces two significant hurdles: data heterogeneity (non-IID data) and partial client participation. When data is non-identically distributed across devices, local training often leads to "client drift," where the model overfits to local data at the expense of global knowledge. This phenomenon is essentially a form of catastrophic forgetting (CF). Furthermore, in real-world networks, many devices are frequently offline; standard FL algorithms often ignore these "stragglers," causing the global model to lose the valuable insights contributed by these devices in previous rounds.
To address these challenges, we introduce GradMA (Gradient-Memory-based Accelerated FL), a framework that treats the drift in Federated Learning as a continual learning problem. By utilizing memory-based gradient correction and quadratic programming, GradMA ensures that updates from both active and inactive clients are preserved, leading to faster convergence and higher accuracy.
The GradMA Framework
GradMA draws inspiration from the field of Continual Learning, which focuses on preventing models from forgetting previously learned tasks. The framework operates through two primary modules designed to align local and global objectives.
Worker-Side Correction
During local training, instead of performing simple gradient descent, GradMA workers solve a Quadratic Programming (QP) problem. This constraint ensures that the local update direction remains "positively correlated" with both the previous local step and the current global model. By focusing on the direction of the update rather than just limiting the distance (as seen in methods like FedProx), GradMA allows for faster local progress while ensuring the model does not drift away from the collective knowledge of the federation.
Server-Side Correction and Memory Management
The server in GradMA acts as more than a passive aggregator. It maintains a memory state that stores accumulated updates from all workers, including those that are currently inactive. When calculating the new global model, the server performs another QP step to ensure the new update direction does not conflict with the stored knowledge of stragglers.
To maintain scalability in large-scale systems, GradMA employs a Memory Reduction Strategy. This strategy prunes the server's memory by keeping only the most relevant information based on how recently a worker was active, preventing the storage requirements from becoming a bottleneck.
Experimental Evaluation
The researchers evaluated GradMA against standard image classification benchmarks, including MNIST, CIFAR-10, CIFAR-100, and Tiny-ImageNet. To simulate real-world data heterogeneity, a Dirichlet process was used to partition data across 100 workers, allowing for strict control over the level of non-IIDness.
Key Results
- Superior Accuracy: In highly heterogeneous environments, GradMA consistently outperformed state-of-the-art baselines such as FedAvg, Scaffold, and MOON. In some top-1 accuracy tests, GradMA exceeded competitors by over 10%.
- Communication Efficiency: GradMA demonstrates a massive reduction in the number of communication rounds required to reach target accuracy. For instance, on the CIFAR-10 dataset with high heterogeneity, GradMA reached the target in just 37 rounds, whereas FedAvg required nearly 500 rounds.
- Theoretical Convergence: The authors provide theoretical proof that GradMA achieves a linear speedup in convergence as the number of active workers increases, even in complex, non-convex optimization scenarios.
Conclusion and Future Work
GradMA redefines the problem of client drift in Federated Learning as one of catastrophic forgetting. By implementing memory-based corrections on both the worker and server sides, the framework achieves a more stable and representative global model. While the current memory reduction strategy is effective, future research will explore more sophisticated heuristics for memory management and test the framework's resilience in environments with highly unreliable network connections or malicious participants.
Summary updated