Abstract
This paper introduces Decentralized Markov Chain Gradient Descent (DMGD), a novel algorithm for solving large-scale optimization problems across a network of agents. Unlike traditional methods that require independent and identically distributed (i.i.d.) data samples, DMGD operates on samples drawn directly from a Markov chain trajectory. This approach significantly enhances sample efficiency and practicality in scenarios where i.i.d. sampling is computationally expensive or infeasible. We provide a rigorous convergence analysis for non-convex functions and demonstrate that DMGD achieves performance comparable to centralized methods while drastically reducing communication overhead.
Introduction
In distributed machine learning, a common assumption is that nodes can easily obtain i.i.d. samples from their local data distributions. However, in fields such as reinforcement learning or complex statistical modeling, generating i.i.d. samples is often impossible. Instead, researchers rely on Markov Chain Monte Carlo (MCMC) methods. The standard integration of MCMC with Gradient Descent (SGD-T) is inefficient, as it requires the Markov chain to reach its stationary distribution (mixing time) before a single "nearly i.i.d." sample is taken, discarding all intermediate data. Furthermore, centralized methods create communication bottlenecks in large networks. DMGD addresses these issues by utilizing every sample along the Markov chain trajectory in a decentralized manner.
Methods
The proposed DMGD algorithm allows nodes to update parameters using samples taken along the trajectory of the Markov chain.
First-Order and Zeroth-Order DMGD
- First-Order DMGD: Each node maintains a local parameter vector, computes a gradient based on its current Markov chain state, and performs a weighted average with its neighbors using a mixing matrix $W$ to achieve consensus.
- Zeroth-Order DMGD: For applications where gradients are unavailable, a derivative-free version uses "two-point feedback" to estimate gradient directions by querying function values at two nearby points.
Theoretical Framework
The authors provide a convergence analysis for non-convex objective functions. A key challenge addressed is the "biased expectations" resulting from the sequential dependence of samples in a Markov chain. By employing diminishing step sizes ($\gamma_k$), the algorithm ensures that the bias eventually vanishes, allowing for convergence to a stationary point.
Experimental Evaluation
The algorithm was evaluated using a synthetic Autoregressive Model across networks of 10 to 20 agents. The goal was to recover a consensus vector from time-series data where each state depends on the previous one, naturally forming a Markov chain.
Key Results
Numerical experiments confirm that DMGD is significantly more sample-efficient than the traditional DSGD-T approach. As shown in Figure 1, DMGD (labeled as DP-MCGD in the plots) achieves a much lower objective error for the same sampling cost.
Beyond sample efficiency, DMGD also optimizes communication. While it maintains a convergence rate similar to centralized methods, it significantly reduces the communication burden on the "busiest nodes" in the network. This is crucial for maintaining network stability and hardware longevity in sparse, large-scale deployments.
Conclusion
DMGD represents a significant step forward in decentralized optimization for non-i.i.d. data sources. By leveraging the full trajectory of Markov chains, it eliminates the wasteful "mixing time" wait inherent in traditional methods. Future research directions include extending the framework to asynchronous update settings and incorporating communication compression techniques like quantization or sparsification to further enhance efficiency in low-bandwidth environments.
Summary updated