On the Role of Server Momentum in Federated Learning

Jianhui Sun, Xidong Wu, Heng Huang, Aidong Zhang

This paper, recently published in the proceedings of AAAI 2024, provides a rigorous look at how server-side momentum can be a game-changer for Federated Learning (FL). By introducing a generalized framework and analyzing it under realistic "messy" conditions—like asynchronous clients and varying hardware capabilities—the authors bridge the gap between idealized theory and practical deployment.

TL;DR

The authors propose FedGM, a unified framework for server momentum in Federated Learning that supports diverse momentum schemes and stagewise hyperparameter scheduling. Crucially, they prove its convergence in highly heterogeneous and asynchronous environments, showing that server momentum acts as a vital stabilizer against "client drift."

What Problem Does This Paper Address?

Federated Averaging (FedAvg) is the workhorse of FL, but it has a major weakness: client drift. When clients have very different data (data heterogeneity) or different hardware speeds (system heterogeneity), their local updates pull the global model in conflicting directions, leading to slow or unstable convergence.

While server-side momentum (incorporating past updates into the current one) has been proposed as a fix, existing research was limited. Most studies only looked at one type of momentum (Heavy Ball), assumed constant hyperparameters, and ignored the reality of modern cross-device FL—where clients are rarely synchronized and might perform different amounts of work before checking back in with the server.

Methods

The authors introduce three key advancements:

  1. FedGM (Federated General Momentum): A unified mathematical formulation that uses two parameters—a momentum factor ($\beta$) and an instant discount factor ($\nu$). By tuning these, FedGM can replicate a wide variety of optimizers, including Heavy Ball (SHB) and Nesterov’s Accelerated Gradient (NAG), many of which had never been formally analyzed in an FL context.
  2. Multistage FedGM: In centralized deep learning, we often "step decay" the learning rate. This paper brings that practice to FL, proposing a scheduler that drops the learning rate and increases momentum in discrete stages.
  3. Autonomous Multistage FedGM: This is the most "real-world" version of the algorithm. It allows clients to:
  4. Participate at will.
  5. Use "stale" versions of the global model (asynchrony).
  6. Run a different number of local training epochs based on their own computational capacity.

The researchers provided rigorous convergence proofs for all these settings, specifically showing how momentum helps manage the noise introduced by system delays and data variance.

Datasets

The framework was evaluated using standard computer vision benchmarks:

  • CIFAR-10 using ResNet and VGG architectures.
  • To simulate data heterogeneity, they used a Dirichlet distribution ($\alpha=0.5$) to create label imbalances across 100 clients.
  • To simulate system heterogeneity, they introduced random delays (stale models) and randomized the number of local epochs each client performed per round.

Key Insights and Ideas

  • Momentum as a Buffer: One of the most interesting "aha moments" is that server momentum allows for much higher server learning rates. In vanilla FedAvg, a high learning rate often leads to immediate divergence. In FedGM, the momentum buffer "absorbs" the shock of aggressive updates, leading to faster, more stable training.
  • The Power of Scheduling: The authors show that stagewise scheduling isn't just a heuristic; it's theoretically sound for FL. Starting with a high learning rate for exploration and dropping it for "refined training" significantly boosts final accuracy.
  • Resilience to Asynchrony: The "Autonomous" version of the algorithm proves that you don't need perfect synchronization. Even when clients are working on models that are several rounds old, the global momentum helps keep the training trajectory on track.

Key Results

The experimental results validate the theoretical claims across multiple dimensions:

  • Superiority over Baselines: FedGM consistently outperformed both vanilla FedAvg and FedAvgM (the standard Heavy Ball implementation). As seen in Figure 1, FedGM achieves higher training and testing accuracy more quickly.
Figure 1: 1(a) Training and 1(b) Testing Curves for FedGM (ResNet on CIFAR-10). FedGM outperforms Fe- dAvg/FedAvgM. 1(c) Training and 1(d) Testing for Au- tonomous FedGM (ResNet on CIFAR-10).
  • Multistage Gains: The multistage scheduler provided a clear advantage over single-stage (constant learning rate) approaches. Figure 2 illustrates how dropping the learning rate in stages stabilizes the dramatic fluctuations seen with high constant rates.
Comparison of Multistage vs. Single-stage FedGM.
  • Robustness to Delay: Even with a random delay of up to 10 rounds, Autonomous FedGM remained within a small margin of the "ideal" synchronous case, significantly outperforming an autonomous version of FedAvg.

Limitations and Future Work

While the paper is comprehensive, the authors note a few areas for further exploration:

  • Impact of Local Work ($K$): The exact relationship between the number of local updates ($K$) and convergence speed is still debated in the literature; this paper observes a slowdown effect from more local computation that warrants deeper study.
  • Hyperparameter Sensitivity: While FedGM is powerful, it introduces more hyperparameters ($\beta, \nu$). Automating the selection of these for different datasets remains a challenge.
  • Scale: Future work could test these algorithms on even larger, more complex datasets beyond CIFAR-10 to see if the stability benefits hold at massive scales.

Overall, this work provides a much-needed theoretical foundation for using advanced optimization techniques in the messy, heterogeneous world of federated learning.

Summary updated

BibTeX
@inproceedings{sun2024role,
  author = {Jianhui Sun and Xidong Wu and Heng Huang and Aidong Zhang},
  title = {{On the Role of Server Momentum in Federated Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i13.29439},
}
Figure