[Paper Review] Decentralized Stochastic Gradient Tracking for Non-convex Empirical Risk Minimization
This paper proposes a decentralized stochastic gradient tracking (DSGT) algorithm for non-convex empirical risk minimization in peer-to-peer networks, where each node uses mini-batch stochastic gradients proportional to local data size. It establishes a non-asymptotic convergence rate of $ O(1/ ext{sum of stepsizes}) $, showing network independence under conditions and achieving linear speedup in some cases, with performance comparable to centralized SGD.
This paper studies a decentralized stochastic gradient tracking (DSGT) algorithm for non-convex empirical risk minimization problems over a peer-to-peer network of nodes, which is in sharp contrast to the existing DSGT only for convex problems. To ensure exact convergence and handle the variance among decentralized datasets, each node performs a stochastic gradient (SG) tracking step by using a mini-batch of samples, where the batch size is designed to be proportional to the size of the local dataset. We explicitly evaluate the convergence rate of DSGT with respect to the number of iterations in terms of algebraic connectivity of the network, mini-batch size, gradient variance, etc. Under certain conditions, we further show that DSGT has a network independence property in the sense that the network topology only affects the convergence rate up to a constant factor. Hence, the convergence rate of DSGT can be comparable to the centralized SGD method. Moreover, a linear speedup of DSGT with respect to the number of nodes is achievable for some scenarios. Numerical experiments for neural networks and logistic regression problems on CIFAR-10 finally illustrate the advantages of DSGT.
Motivation & Objective
- Address the lack of convergence guarantees for decentralized stochastic gradient methods in non-convex settings, particularly for heterogeneous and decentralized datasets.
- Develop a decentralized algorithm that ensures exact convergence to a stationary point despite variance in local data distributions and sizes.
- Analyze the convergence rate of the proposed DSGT algorithm in terms of network algebraic connectivity, mini-batch size, gradient variance, and stepsize rules.
- Investigate whether the network topology affects convergence beyond a constant factor, aiming for network independence in convergence behavior.
- Demonstrate linear speedup with respect to the number of nodes under certain conditions, improving scalability for decentralized learning.
Proposed method
- Propose a decentralized stochastic gradient tracking (DSGT) algorithm where each node maintains a local estimate of the global gradient using a mini-batch of its local data.
- Design the mini-batch size to be proportional to the local dataset size to balance variance and communication efficiency.
- Introduce a gradient tracking mechanism that allows nodes to track the average gradient across the network using neighbor communication.
- Use a consensus-based update rule with a mixing matrix $ W $ to aggregate local gradients and states, ensuring alignment across nodes.
- Apply both constant and diminishing stepsize rules to analyze convergence under different conditions.
- Leverage algebraic connectivity $ (1 - ho) $ of the communication graph as a key parameter in convergence rate bounds.
Experimental results
Research questions
- RQ1Can a decentralized stochastic gradient method achieve exact convergence for non-convex empirical risk minimization with heterogeneous local datasets?
- RQ2How does the convergence rate of DSGT depend on network algebraic connectivity, mini-batch size, and gradient variance?
- RQ3Under what conditions does the network topology affect the convergence rate only up to a constant factor, implying network independence?
- RQ4Can the DSGT algorithm achieve linear speedup with respect to the number of nodes in decentralized training?
- RQ5Does the DSGT method converge to the optimal solution when the objective function is convex, and how does its rate compare to centralized SGD?
Key findings
- The DSGT algorithm achieves a non-asymptotic convergence rate of $ Oig{(} rac{1}{ ext{sum of stepsizes}} ig{(} D + ho^2 rac{ ho^2 ho^2}{(1- ho)^3} ext{sum of stepsizes}^3 ig{)} ig{)} $, where $ D $ is related to initial error, $ ho $ is the algebraic connectivity, and $ ho^2 rac{ ho^2 ho^2}{(1- ho)^3} $ captures gradient variance effects.
- With constant stepsizes, the convergence rate is $ Oig{(} rac{D heta}{ heta} + rac{ ho^2 D^2}{(1- ho)^3 K} ig{)} $, showing a $ 1/K $-rate under suitable conditions.
- For diminishing stepsizes $ heta_k = O(1/k^p) $ with $ p eq 0.5 $, the rate is $ O(1/k^{1-p}) $, and for $ p = 0.5 $, it is $ O( ext{ln}(k)/ heta) $, indicating sublinear convergence.
- The algorithm exhibits network independence when $ rac{ ho^2}{(1- ho)^3} ext{sum of stepsizes}^3 = O( ext{sum of stepsizes}^2) $, meaning the network only affects convergence up to a constant factor.
- Under this condition, the convergence rate of DSGT becomes comparable to centralized SGD, implying that decentralized training can match centralized performance in terms of convergence speed.
- Numerical experiments on CIFAR-10 show that DSGT achieves competitive performance in training deep neural networks and logistic regression, validating the theoretical findings and speedup potential.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.