Abstract
Federated Learning (FL) allows several clients to cooperatively train machine learning models without disclosing the raw data. In practical applications, asynchronous FL (AFL) can address the straggler effect compared to synchronous FL. However, Non-IID data and stale models pose significant challenges to AFL, as they can diminish the practicality of the global model and even lead to training failures. In this work, we propose a novel AFL framework called Federated Historical Learning (FedHist), which effectively addresses the challenges posed by both Non-IID data and gradient staleness based on the concept of knowledge rumination. FedHist enhances the stability of local gradients by performing weighted fusion with historical global gradients cached on the server. Relying on hindsight, it assigns aggregation weights to each participant in a multi-dimensional manner during each communication round. To further enhance the efficiency and stability of the training process, we introduce an intelligent $\ell_2$-norm amplification scheme, which dynamically regulates the learning progress based on the $\ell_2$-norms of the submitted gradients. Extensive experiments indicate FedHist outperforms state-of-the-art methods in terms of convergence performance and test accuracy.
Introduction
Federated Learning (FL) is a decentralized machine learning paradigm that enables training across multiple devices while preserving data privacy. However, real-world deployments are often hindered by two primary forms of heterogeneity:
- System Heterogeneity (The Straggler Effect): Devices have varying computational and network capabilities. Synchronous FL suffers from the "straggler effect," where the server must wait for the slowest device. Asynchronous FL (AFL) mitigates this but introduces "gradient staleness," where updates are based on outdated global model versions.
- Statistical Heterogeneity (Non-IID Data): Clients possess diverse data distributions, leading to "client drift," where local updates pull the global model in conflicting directions.
Existing AFL solutions often fail to address both challenges simultaneously or require sensitive prior knowledge about client hardware. FedHist addresses these by "ruminating" on historical updates to evaluate client utility in hindsight, achieving up to a 2x speedup in convergence.
Methods: The FedHist Framework
FedHist stabilizes and accelerates training through three integrated components that manage gradient stability, aggregation weights, and update magnitudes.
Enhancement of Gradient Stability (EGS)
Upon receiving a client gradient, the server performs a "weighted fusion" with historical global gradients. By selecting historical gradients with minimum similarity to the new update, EGS rectifies local bias and promotes diversity, preventing the model from converging to local optima caused by biased local data.
History-Aware Aggregation (HAA) & Knowledge Rumination
HAA re-evaluates past communication rounds using "knowledge rumination." The server calculates an "ideal" unbiased gradient based on hindsight and compares it to actual client submissions. This allows the server to assign higher weights to high-utility updates, even from slow clients, ensuring their unique data contributions are not ignored.
Intelligent $\ell_2$-Norm Amplification (INA)
Aggregating numerous local gradients often results in "magnitude collapse," where the global update's norm becomes too small, slowing convergence. INA dynamically rescales the aggregated gradient's $\ell_2$-norm to match the average magnitude of input gradients, maintaining training momentum.
Experimental Evaluation
FedHist was evaluated on standard computer vision benchmarks including CIFAR-10, CIFAR-100, and Fashion MNIST. Data heterogeneity was simulated using a Dirichlet distribution ($\beta$), and staleness was controlled via the client participation ratio ($N/K$).
Key Results
- Superior Accuracy: FedHist consistently outperformed baselines like FedAvg, FedProx, and MOON. For instance, on CIFAR-10 with high heterogeneity ($\beta=0.3$), FedHist achieved 57.19% accuracy, compared to FedAvg’s 51.39%.
- Faster Convergence: FedHist reached target accuracy levels roughly 1.8x to 2.0x faster than standard FedAvg across various data distributions.
- Fairness and Robustness: In scenarios where specific data labels were held only by slow clients, FedHist maintained high accuracy for those labels, whereas other methods effectively marginalized the slow clients' contributions.
Conclusion
FedHist provides a robust solution for asynchronous federated learning in heterogeneous environments. By leveraging historical gradient information and dynamic norm amplification, it achieves significant gains in both accuracy and convergence speed. While the server-side memory overhead for caching historical gradients is a consideration, the performance benefits make it a compelling framework for real-world AFL deployments.
Summary updated