Abstract
Gradient tracking (GT) is an algorithm designed for solving decentralized optimization problems over a network (such as training a machine learning model). A key feature of GT is a tracking mechanism that allows to overcome data heterogeneity between nodes. We develop a novel decentralized tracking mechanism, $K$-GT, that enables communication-efficient local updates in GT while inheriting the data-independence property of GT. We prove a convergence rate for $K$-GT on smooth non-convex functions and prove that it reduces the communication overhead asymptotically by a linear factor $K$, where $K$ denotes the number of local steps. We illustrate the robustness and effectiveness of this heterogeneity correction on convex and non-convex benchmark problems and on a non-convex neural network training task with the MNIST dataset.
Introduction
In decentralized machine learning, models are trained across a network of nodes—such as mobile devices or edge servers—without a central coordinator. This setup faces two primary challenges: communication bottlenecks and data heterogeneity (client drift). Constant communication between nodes is slow and energy-intensive. To save time, researchers often use "local steps," where nodes update their models multiple times locally before sharing info. However, if Node A has different data than Node B, their local models will "drift" toward local optima rather than the global one.
Standard Decentralized SGD (D-SGD) handles local steps well but fails when data is heterogeneous. Conversely, "Gradient Tracking" (GT) algorithms fix the drift problem but traditionally require communication after every single update. This paper bridges the gap by creating a tracking mechanism that works efficiently with multiple local steps.
Methodology: The K-GT Algorithm
The authors propose K-GT (Gradient Sum Tracking). The core idea is to maintain a "tracking variable" that estimates the average gradient across the entire network, even though each node only sees its local data.
- Local Updates: Each node performs $K$ local stochastic gradient steps. To prevent drift, they apply a "correction term" derived from the tracking variable.
- Novel Tracking Mechanism: After $K$ steps, nodes exchange their accumulated model changes. The tracking variable is then updated using a "gossip" averaging process.
- Theoretical Innovation: The authors prove convergence for smooth, non-convex functions. Unlike previous methods, K-GT's convergence rate is shown to be independent of data heterogeneity (given proper initialization).
Key Insights and Results
Linear Speedup in Communication
The most significant finding is that K-GT reduces communication overhead asymptotically by a factor of $K$. If an algorithm performs 20 local steps, it roughly needs 20x fewer communication rounds to reach the same accuracy. In synthetic tests, K-GT reached target accuracy in 100 rounds with $K=20$, compared to 2000 rounds for the $K=1$ baseline—a perfect linear reduction.
Performance on Non-Convex Tasks (MNIST)
The algorithm was evaluated using the MNIST dataset with a 4-layer CNN. To test robustness, the authors used "Sorted" (non-i.i.d.) partitioning, where each node was restricted to only one or two specific digit classes. On this heterogeneous task, K-GT significantly outperformed D-SGD. While D-SGD suffered from severe client drift, K-GT achieved high test accuracy comparable to centralized training.
Noise Resilience
K-GT is superior to "Periodical GT" (a simpler approach that just skips communication rounds). Because K-GT uses an average of $K$ stochastic gradients for its tracking update, it effectively reduces the impact of stochastic noise, making it more stable in practical training scenarios.
Limitations and Future Work
- Network Sensitivity: K-GT is more sensitive to the network topology (how well-connected the nodes are) than some diffusion-based methods. In poorly connected networks, the dependency on the mixing rate is worse than vanilla D-SGD.
- Initialization: To achieve the theoretical "heterogeneity-independent" rate, the algorithm requires a specific initialization of the correction terms. While $c_i=0$ works well in practice, the theory relies on a more complex start.
- Step-size Tuning: The current analysis focuses on constant stepsizes. Future work could explore adaptive stepsizes to further improve practical performance.
Summary updated