Federated Learning (FL) allows a central server to train a global model using data residing on thousands of edge devices without ever seeing their raw data. However, real-world applications face two major hurdles that often break standard optimization algorithms: statistical heterogeneity (non-IID data across clients) and partial participation (only a tiny fraction of clients are available at any given round).
This paper introduces a robust way to make momentum work in FL, specifically targeting the "client drift" caused by these challenges. The authors propose Generalized Heavy-Ball Momentum (GHBM), a novel FL optimizer that achieves state-of-the-art performance on large-scale tasks while maintaining the same communication efficiency as standard FedAvg.
The Problem with Standard Momentum in FL
Training locally on one client pushes the model toward that client's local optimum, causing it to "drift" away from the global goal. While momentum is a classic tool to smooth out optimization in centralized machine learning, the authors show that in FL, standard momentum becomes biased.
Because the server only sees a few clients per round, the momentum term ends up over-indexing on the most recently sampled clients. This bias is so severe that traditional momentum-based FL methods often fail to beat the simple baseline, FedAvg, in high-heterogeneity settings.
The Solution: Generalized Heavy-Ball Momentum (GHBM)
The core innovation of this paper is GHBM. Instead of updating the momentum using only the current round's results, GHBM uses a decayed average of the "pseudo-gradients" from the last $\tau$ rounds.
- The Lag Trade-off: Reusing old gradients introduces a slight "lag" because the gradients are slightly outdated. However, the authors demonstrate that the benefit of reducing client-sampling bias far outweighs the cost of this lag.
- Optimal Window: Theory suggests that the optimal window size $\tau$ is approximately $1/C$, where $C$ is the client participation rate. For example, if you only sample 10% of clients per round, averaging over the last 10 rounds provides a much more accurate picture of the global population.
Increasing the window $\tau$ is empirically shown to be highly effective at reducing the deviation from the true global gradient, smoothing out the optimization path far better than simply increasing the number of clients sampled per round.
To keep the algorithm practical, the authors developed FedHBM, a communication-efficient variant. By having clients store their own local state, FedHBM achieves these gains with 1x communication cost—transferring the exact same amount of data as standard FedAvg.
Theoretical Breakthrough
Unlike methods like SCAFFOLD, which require doubling communication to send "control variates," GHBM proves that momentum alone can correct client drift if formulated to account for the sampling process.
The paper provides the first convergence proof for a momentum-based FL method under unbounded data heterogeneity in cyclic partial participation, without relying on variance reduction. As shown in the theoretical comparison, GHBM achieves a highly competitive convergence rate while relaxing the restrictive "bounded heterogeneity" assumptions required by prior methods.
Key Empirical Results
The authors evaluated their method across a rigorous suite of benchmarks, including Computer Vision (CIFAR-10/100, Google Landmarks v2, iNaturalist) and NLP (Shakespeare, StackOverflow) tasks.
- Superior Accuracy: On CIFAR-100 with extreme heterogeneity ($\alpha=0$), FedHBM achieved 42.5% accuracy, nearly doubling FedAvg’s 24.7%.
- Massive Speedup: To reach the same accuracy level as FedAvg, FedHBM required 55% to 80% less total communication and wall-clock time across various tasks.
- Scalability: In large-scale settings like GLDv2 (with over 1,200 clients and very low participation), GHBM was often the only advanced optimizer that converged reliably and outperformed the baseline.
Limitations and Future Work
While highly effective, the approach has a few limitations. The most efficient version (FedHBM) requires clients to be "stateful" (able to store a model locally between rounds). While common in "cross-silo" FL (e.g., between hospitals), this can be challenging in "cross-device" FL (e.g., mobile phones) where a client might not be seen again for a long time. Additionally, the theoretical proof assumes "cyclic participation" (clients appear in a fixed, repeating order). While experiments show the algorithm works perfectly with random uniform sampling, closing the theoretical gap for purely random sampling remains an open challenge.
Summary updated