On the Role of Server Momentum in Federated Learning

Jianhui Sun, Xidong Wu, Heng Huang, Aidong Zhang

Abstract

Federated Learning (FL) often struggles with "client drift" due to non-identical data distributions and varying hardware capabilities across devices. This paper introduces Federated General Momentum (FedGM), a unified framework that stabilizes global model updates by integrating historical information through advanced momentum schemes and stagewise hyperparameter scheduling. We provide a rigorous convergence analysis for server-side schedulers and demonstrate that FedGM consistently outperforms standard methods like FedAvg and FedAvgM. Furthermore, we propose Autonomous FedGM to handle the practical challenges of asynchronous updates and heterogeneous local computation in cross-device FL environments.

1. Introduction

Standard Federated Averaging (FedAvg) is prone to client drift, where local models diverge toward their respective local optima, hindering global convergence. While server-side momentum has been suggested as a remedy, existing research often lacks diversity in momentum schemes, assumes static hyperparameters, and relies on idealized, synchronized system assumptions. This work addresses these gaps by proposing FedGM, a framework that supports diverse momentum types and realistic system dynamics, backed by the first convergence analysis for stagewise server-side hyperparameter schedulers.

2. Federated General Momentum (FedGM)

FedGM employs a generalized update rule involving three key hyperparameters: the server learning rate ($\eta$), the momentum factor ($\beta$), and a novel instant discount factor ($\nu$). By adjusting $\nu$, FedGM can "morph" into different optimizers; for instance, setting $\nu=1$ recovers standard momentum (FedAvgM), while $\nu=\beta$ implements a federated version of Nesterov’s Accelerated Gradient (NAG).

The framework is extended into two specialized variants:

  • Multistage FedGM: Implements a "constant and drop" scheduler common in deep learning, where the learning rate decreases and momentum increases across discrete training stages to balance exploration and exploitation.
  • Autonomous Multistage FedGM: A realistic version designed for cross-device FL, accommodating asynchronous updates (clients returning results at different times) and heterogeneous local computing (varying numbers of local SGD steps).

3. Experimental Evaluation

The framework was evaluated using CIFAR-10 with ResNet and VGG architectures. To simulate real-world heterogeneity, data was distributed among 100 clients using a Dirichlet distribution ($\alpha=0.5$), creating a non-identical data distribution across devices.

4. Key Results and Insights

FedGM consistently outperformed both vanilla FedAvg and the standard FedAvgM (Heavy Ball) in training accuracy and testing generalization. The theoretical and empirical results validate that stagewise scheduling is a mathematically sound way to achieve faster convergence in FL.

Test accuracy comparison showing FedGM's superior performance over FedSGD and FedAvgM baselines.

In the autonomous setting, FedGM maintains high performance despite significant delays and varying local work. A key insight is the importance of normalizing updates by the number of local steps, which prevents "faster" clients from disproportionately influencing the global model.

Performance of Autonomous FedGM compared to Autonomous FedSGD and the ideal FedGM case.

5. Conclusion and Future Work

FedGM provides a robust, theoretically grounded framework for server-side momentum in FL. While it shows significant promise, future work should investigate the exact impact of the number of local updates ($K$) on convergence and validate the framework on larger-scale tasks such as Large Language Models (LLMs). Additionally, the memory costs of maintaining large momentum buffers on the server in massive-scale deployments warrant further exploration.

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