Abstract
In Federated Learning (FL) client devices connected over the internet collaboratively train a machine learning model without sharing their private data with a central server or with other clients. The seminal Federated Averaging (FedAvg) algorithm trains a single global model by performing rounds of local training on clients followed by model averaging. FedAvg can improve the communication-efficiency of training by performing more steps of Stochastic Gradient Descent (SGD) on clients in each round. However, client data in real-world FL is highly heterogeneous, which has been extensively shown to slow model convergence and harm final performance when $K > 1$ steps of SGD are performed on clients per round. In this article we propose decaying $K$ as training progresses, which can jointly improve the final performance of the FL model whilst reducing the wall-clock time and the total computational cost of training compared to using a fixed $K$. We analyse the convergence of FedAvg with decaying $K$ for strongly-convex objectives, providing novel insights into the convergence properties, and derive three theoretically-motivated decay schedules for $K$. We then perform thorough experiments on four benchmark FL datasets (FEMNIST, CIFAR100, Sentiment140, Shakespeare) to show the real-world benefit of our approaches in terms of real-world convergence time, computational cost, and generalisation performance.
Introduction
Federated Learning (FL) enables training global models across decentralized edge devices while preserving data privacy. The standard optimization algorithm, Federated Averaging (FedAvg), operates in rounds where clients perform $K$ local steps of Stochastic Gradient Descent (SGD) before synchronizing with a central server.
A fundamental trade-off exists in selecting $K$:
- High $K$ enhances communication efficiency by maximizing local work per round.
- Low $K$ mitigates "client drift," where heterogeneous (non-IID) data causes local models to diverge toward local optima, degrading global model performance.
While traditional approaches utilize a fixed $K$, this paper explores whether dynamically decaying $K$ during training can capture the benefits of both regimes—high communication efficiency early on and high precision later.
Proposed Methods: Decaying Local Steps
Based on a theoretical analysis of FedAvg for strongly convex objectives, the authors derive optimal decay rates for $K$. They propose three practical schedules to manage the trade-off between local computation and global convergence:
- $K_r$-rounds: A time-based schedule where $K$ decreases according to the round number ($K \propto 1/\sqrt[3]{r}$).
- $K_r$-error: A loss-based schedule where $K$ is proportional to the cube root of the current global loss ($K \propto \sqrt[3]{Loss}$).
- $K_r$-step: A heuristic where $K$ is reduced by a fixed factor (e.g., 10x) upon validation error plateauing, mirroring traditional learning rate decay strategies.
These schedules are designed to reduce the "waste" of excessive local computation in later stages of training, where high $K$ values contribute more to drift than to progress.
Experimental Evaluation
The proposed schedules were evaluated on four benchmark FL datasets: Sentiment140 (Linear), FEMNIST (DNN), CIFAR100 (CNN), and Shakespeare (GRU). These tasks span convex and non-convex domains, testing the robustness of the decay strategies.
Key Results
The experiments demonstrate that decaying $K$ consistently outperforms fixed-$K$ baselines in terms of both final accuracy and wall-clock convergence.
- Improved Generalization: On the CIFAR100 dataset, the $K_r$-rounds schedule achieved an 18% improvement in validation accuracy over fixed-$K$ counterparts.
- Computational Efficiency: Decaying schedules often reached target performance levels with over 10x less total computation. By "sprinting" early with high $K$ and "refining" later with low $K$, the models avoid the computational overhead of performing many local steps when they are no longer beneficial.
- Superiority over Learning Rate Decay: While decaying the learning rate ($\eta$) is a common technique to handle drift, decaying $K$ is more efficient as it simultaneously reduces the computational burden of later training rounds.
Conclusion and Future Work
Decaying the number of local steps $K$ is a simple yet effective optimization for Federated Learning. It addresses the challenge of client drift in non-IID settings while maintaining communication efficiency. While the theoretical foundations are rooted in strong convexity, the empirical success on deep neural networks suggests broader applicability. Future research may explore the interaction between decaying $K$ and variable client participation rates in real-world, unstable network environments.
Summary updated