[Paper Review] Distributed Stochastic Gradient Descent Using LDGM Codes
This paper proposes a distributed stochastic gradient descent (SGD) scheme using Low-Density Generator Matrix (LDGM) codes to mitigate straggler effects in master-worker systems. By leveraging iterative peeling decoding to recover an unbiased, high-quality gradient estimator with low computational cost, the method achieves faster convergence than full gradient descent with traditional gradient coding, especially under low straggler probability.
We consider a distributed learning problem in which the computation is carried out on a system consisting of a master node and multiple worker nodes. In such systems, the existence of slow-running machines called stragglers will cause a significant decrease in performance. Recently, coding theoretic framework, which is named Gradient Coding (GC), for mitigating stragglers in distributed learning has been established by Tandon et al. Most studies on GC are aiming at recovering the gradient information completely assuming that the Gradient Descent (GD) algorithm is used as a learning algorithm. On the other hand, if the Stochastic Gradient Descent (SGD) algorithm is used, it is not necessary to completely recover the gradient information, and its unbiased estimator is sufficient for the learning. In this paper, we propose a distributed SGD scheme using Low-Density Generator Matrix (LDGM) codes. In the proposed system, it may take longer time than existing GC methods to recover the gradient information completely, however, it enables the master node to obtain a high-quality unbiased estimator of the gradient at low computational cost and it leads to overall performance improvement.
Motivation & Objective
- Address the performance degradation in distributed learning caused by stragglers—slow-running worker nodes—common in master-worker architectures.
- Overcome the limitation of existing Gradient Coding (GC) schemes that require full gradient recovery, which is unnecessary for SGD.
- Develop a low-complexity coding scheme that enables fast, accurate gradient estimation for SGD, improving convergence speed.
- Extend coding-theoretic approaches beyond squared loss functions to broader machine learning applications.
- Optimize the trade-off between decoding delay and approximation error in gradient estimation for distributed SGD.
Proposed method
- Use LDGM codes to encode data batches across worker nodes, where each worker computes a linear combination of partial gradients based on sparse generator matrices.
- Employ a peeling-based iterative decoding algorithm at the master node to recover an unbiased estimator of the full gradient from a subset of worker responses.
- Design the code structure to favor degree-1 generator nodes, improving decoding efficiency and convergence under straggler conditions.
- Integrate the decoded gradient estimator into the SGD update rule, using a diminishing learning rate $\eta^{(t)} = \eta^{(0)}/t$.
- Apply Density Evolution (DE) analysis to model the decoding process and predict the fraction of recovered gradients under various straggler probabilities.
- Balance the trade-off between waiting time and decoding quality by setting a threshold on the number of worker responses before decoding begins.
Experimental results
Research questions
- RQ1Can LDGM-coded distributed SGD outperform uncoded SGD and traditional gradient coding in terms of convergence speed under straggler conditions?
- RQ2How does the choice of code structure—particularly the number of degree-1 generator nodes—affect decoding performance and learning convergence?
- RQ3To what extent can iterative decoding with LDGM codes reduce approximation error in gradient estimation while maintaining low computational cost?
- RQ4How does the proposed scheme compare to existing GC methods that require full gradient recovery, especially when the loss function is not squared?
- RQ5What is the optimal trade-off between decoding time and approximation accuracy in the proposed scheme?
Key findings
- When the straggler probability is low (e.g., μ = 1.0 or 2.0), the LDGM-coded SGD scheme converges faster than both uncoded SGD and RS-coded GD, achieving the best performance in terms of objective function reduction over time.
- For high straggler probability (e.g., μ = 0.5), uncoded SGD outperforms LDGM-coded SGD due to poor decoding performance, indicating that coding is most effective when stragglers are rare.
- The proposed scheme achieves a faster convergence rate than full gradient descent with traditional GC, even though it does not fully recover the gradient, due to high-quality approximation with low decoding cost.
- The decoding algorithm converges reliably when the number of degree-1 generator nodes is increased, improving recovery performance under straggler conditions.
- The RS-coded GD scheme requires a longer expected wait time (e.g., 12.112 for μ = 0.5) and performs worse than LDGM-coded SGD in terms of convergence speed, despite full gradient recovery.
- The proposed method enables faster learning by combining low-complexity decoding with an unbiased gradient estimator, making it suitable for large-scale, real-time distributed learning systems.
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.