TL;DR
STL-SGD (STagewise Local SGD) significantly reduces communication overhead in distributed machine learning by gradually increasing the time between client synchronizations as the learning rate decreases. This approach achieves state-of-the-art communication complexity while maintaining the optimal convergence rates and linear speedup of standard mini-batch SGD for both convex and non-convex problems.
What Problem Does This Paper Address?
In large-scale distributed learning, communication is often the primary bottleneck. Traditional Synchronous SGD requires every client to send updates to a central server at every single iteration, leading to massive network congestion. Local SGD (also known as Federated Averaging or FedAvg) mitigates this by allowing clients to perform multiple local updates before synchronizing.
However, existing theoretical analyses of Local SGD often rely on a fixed communication period ($k$) or suboptimal adaptive schemes. There has been a persistent gap in understanding whether we can further reduce communication frequency without sacrificing the optimal $O(1/NT)$ convergence rate (where $N$ is the number of clients and $T$ is the total iterations). The authors tackle this by asking: can we intelligently vary the communication period to get the best of both worlds—fast convergence and minimal communication?
Methods
The authors propose STL-SGD, which operates in stages. In each stage, the learning rate ($\eta$) is fixed, and the communication period ($k$) is also fixed. As the algorithm progresses to the next stage, it decreases $\eta$ and increases $k$.
- STL-SGDsc (Strongly Convex): For strongly convex problems, the learning rate is decreased geometrically (e.g., halved), while the communication period is increased geometrically (e.g., doubled in the IID case, or increased by $\sqrt{2}$ in the non-IID case).
- STL-SGDnc (Non-Convex): To handle non-convexity, the authors use a proximal-point style approach. In each stage, they optimize a regularized version of the objective function, which effectively makes the sub-problem convex.
- Option 1: For functions satisfying the Polyak-Łojasiewicz (PL) condition, they use geometric updates similar to the convex case.
- Option 2: For general non-convex functions, they use a linear increase for both the stage length and the communication period.
The core algorithmic innovation is the theoretical insight that the communication period $k$ is negatively correlated with the learning rate $\eta$. As the model approaches a solution and the learning rate drops, the "drift" between local models grows more slowly, allowing for much longer intervals between synchronizations.
Datasets
The authors evaluated STL-SGD on several standard benchmarks to simulate both IID (Identical and Independently Distributed) and Non-IID data scenarios:
- Convex Problems: Logistic regression on the a9a dataset (32,561 examples) and a subset of the MNIST dataset.
- Non-Convex Problems: Training ResNet18 and VGG16 architectures on the CIFAR-10 dataset (50,000 images across 10 classes).
Key Insights and Ideas
- The $\eta$-$k$ Relationship: The most important theoretical finding is that the convergence rate $O(1/\sqrt{NT})$ for general convex functions can be maintained as long as $k$ is roughly proportional to $1/\eta$. This justifies the "stagewise" increase of $k$ as $\eta$ decays.
- Significant Communication Gains: By increasing $k$ stagewise, STL-SGD achieves a communication complexity of $O(N \log T)$ for IID strongly convex problems. This is a massive improvement over the standard Local SGD's $O(N^{1/2} T^{1/2})$.
- Robustness to Non-IID Data: The stagewise approach is particularly effective in Federated Learning settings where data is non-IID. The authors provide specific scaling rules for $k$ that prevent the local model drift from destroying convergence in these heterogeneous environments.
Key Results
STL-SGD consistently outperformed SyncSGD, Large-Batch SGD (LB-SGD), and standard Local SGD in terms of communication efficiency.
- Convex Performance: On the
a9adataset (IID), STL-SGDsc reached the target objective gap in just 61 communication rounds, compared to 184 for standard Local SGD and over 100,000 for SyncSGD. - Non-Convex Performance: For ResNet18 on CIFAR-10 (IID), STL-SGDnc required only 434 rounds to reach 99% training accuracy, whereas standard Local SGD needed 755 rounds (a ~1.7x speedup).
As seen in the figure above, STL-SGDsc (the black line with triangles) drops to the target objective gap much earlier than other methods, demonstrating its superior communication efficiency.
In the non-convex experiments (Figure 2), the stagewise variants again show a clear advantage, reaching lower training loss with fewer communication rounds across different architectures and data distributions.
Limitations and Future Work
- Hyperparameter Sensitivity: While the stagewise schedule is theoretically grounded, the initial learning rate and stage lengths still require tuning for optimal performance.
- Orthogonal Techniques: The authors note that their work is "orthogonal" to variance reduction techniques like SCAFFOLD or momentum-based variants. A promising future direction is combining STL-SGD with these methods to further push the boundaries of communication efficiency.
- Weak Convexity Assumption: The non-convex analysis assumes the objective is $\rho$-weakly convex, which, while common in literature, may not capture all the complexities of every deep learning landscape.
Summary updated