Abstract
This paper proposes the Doubly Compressed Momentum-assisted stochastic gradient tracking algorithm (DoCoM) for communication-efficient decentralized optimization. The algorithm features two main ingredients to achieve a near-optimal sample complexity while allowing for communication compression. First, the algorithm tracks both the averaged iterate and stochastic gradient using compressed gossiping consensus. Second, a momentum step is incorporated for adaptive variance reduction with the local gradient estimates. We show that DoCoM finds a near-stationary solution at all participating agents satisfying $\mathbb{E}[ \| \nabla f( \theta ) \|^2 ] = {\cal O}( 1 / T^{2/3} )$ in $T$ iterations, where $f(\theta)$ is a smooth (possibly non-convex) objective function. Notice that the proof is achieved via analytically designing a new potential function that tightly tracks the one-iteration progress of DoCoM. As a corollary, our analysis also established the linear convergence of DoCoM to a global optimal solution for objective functions with the Polyak-Łojasiewicz condition. Numerical experiments demonstrate that our algorithm outperforms several state-of-the-art algorithms in practice.
Introduction
In decentralized machine learning, a network of agents (such as mobile phones or edge sensors) collaborates to solve optimization problems without a central server. This paradigm faces two primary bottlenecks: communication constraints and sample efficiency. Moving high-dimensional model updates across bandwidth-limited networks is expensive, and standard decentralized Stochastic Gradient Descent (SGD) often requires a massive number of data samples ($O(\epsilon^{-4})$) to reach high-precision solutions, particularly with non-i.i.d. data.
While some algorithms utilize compression (quantization or sparsification) to save bandwidth, they often sacrifice sample efficiency. Conversely, sample-efficient methods typically require full-precision communication. DoCoM is designed to bridge this gap, achieving near-optimal sample complexity while supporting aggressive communication compression.
The DoCoM Algorithm
DoCoM (Doubly Compressed Momentum-assisted stochastic gradient tracking) relies on three main pillars:
- Gradient Tracking: Agents maintain and communicate an estimate of the global average gradient, allowing the algorithm to handle data heterogeneity much better than standard decentralized SGD.
- Double Compression: To minimize bandwidth, DoCoM compresses both the model iterates and the tracked gradient estimates. An error-feedback mechanism is employed to stabilize the algorithm against accumulated compression noise.
- Momentum-based Variance Reduction: Inspired by algorithms like STORM, DoCoM incorporates a recursive momentum step. This adaptively reduces the variance of local gradient estimates, enabling convergence with fewer samples ($O(1)$ sample per iteration) compared to large-batch methods.
Theoretical Contributions and Comparison
The primary theoretical achievement of DoCoM is hitting the $O(\epsilon^{-3})$ sample complexity barrier—the theoretical lower bound for first-order stochastic optimization—while simultaneously enabling communication compression.
As illustrated in the table above, DoCoM is the first compression-enabled decentralized algorithm to achieve this near-optimal complexity under mean square smoothness assumptions. Unlike algorithms like BEER, which require large batch sizes, DoCoM remains effective with small batches, making it practical for memory-constrained edge devices.
Experimental Evaluation
The researchers evaluated DoCoM across three distinct setups:
- Synthetic Linear Model: Using the LEAF framework with 25 agents on a ring graph.
- MNIST: Training a 1-layer feed-forward neural network where each agent was given data from only one specific digit class to simulate extreme heterogeneity.
- FEMNIST (Federated MNIST): A complex benchmark using a LeNet-5 architecture across 36 agents.
Key results showed that DoCoM reached target accuracy using significantly fewer bits than CHOCO-SGD and achieved a lower consensus gap by a factor of 10. It demonstrated robust performance even when agents possessed wildly different local datasets.
Conclusion and Future Work
DoCoM hits a "sweet spot" in decentralized learning by combining communication efficiency with near-optimal sample complexity. While it introduces a higher memory footprint (storing approximately $9d$ variables), its performance gains are significant. Future research may explore "lazy" communication schemes to further reduce network overhead and adapt the algorithm for time-varying or random network topologies.
Summary updated