[Paper Review] Layered SGD: A Decentralized and Synchronous SGD Algorithm for Scalable Deep Neural Network Training
Layered SGD (LSGD) is a decentralized, synchronous SGD algorithm that partitions workers into subgroups with dedicated communication nodes to overlap I/O and communication latency, achieving linear scalability and preserving the accuracy of standard SGD. Experiments on ImageNet show LSGD maintains high accuracy (72.79%) while scaling efficiently to 256 GPUs with 93.1% scaling efficiency.
Stochastic Gradient Descent (SGD) is the most popular algorithm for training deep neural networks (DNNs). As larger networks and datasets cause longer training times, training on distributed systems is common and distributed SGD variants, mainly asynchronous and synchronous SGD, are widely used. Asynchronous SGD is communication efficient but suffers from accuracy degradation due to delayed parameter updating. Synchronous SGD becomes communication intensive when the number of nodes increases regardless of its advantage. To address these issues, we introduce Layered SGD (LSGD), a new decentralized synchronous SGD algorithm. LSGD partitions computing resources into subgroups that each contain a communication layer (communicator) and a computation layer (worker). Each subgroup has centralized communication for parameter updates while communication between subgroups is handled by communicators. As a result, communication time is overlapped with I/O latency of workers. The efficiency of the algorithm is tested by training a deep network on the ImageNet classification task.
Motivation & Objective
- Address the scalability bottleneck in synchronous distributed SGD, where communication overhead increases with the number of nodes.
- Overcome accuracy degradation in asynchronous SGD caused by delayed parameter updates.
- Design a decentralized yet mathematically equivalent alternative to standard SGD that maintains unbiased gradients and consistent parameter updates.
- Enable efficient training on large-scale clusters by overlapping communication with I/O latency through a hierarchical, layered communication structure.
- Achieve linear throughput scaling while preserving the convergence properties of standard SGD
Proposed method
- Partition distributed workers into subgroups, each containing multiple computation workers and one dedicated communication-only node (communicator) acting as a local parameter server.
- Use local all-reduce operations within each subgroup to synchronize parameters, reducing inter-group communication frequency.
- Overlap the time spent on all-reduce communication within subgroups with I/O latency (e.g., data loading) of the computation workers.
- Enable inter-group communication via the communicators, which act as relay nodes to aggregate and propagate updated parameters across subgroups.
- Ensure mathematical equivalence to standard SGD by maintaining identical parameter update rules (same learning rate, batch size, and initialization), guaranteeing unbiased gradients.
- Apply a linear scaling rule with learning rate warmup to stabilize training when using large minibatch sizes
Experimental results
Research questions
- RQ1Can a decentralized SGD variant maintain the same accuracy as standard synchronous SGD while improving communication efficiency?
- RQ2Can communication latency be effectively overlapped with I/O latency in distributed DNN training to improve scalability?
- RQ3Does the hierarchical, layered communication structure in LSGD achieve linear throughput scaling as the number of workers increases?
- RQ4How does LSGD perform in terms of accuracy and training speed compared to conventional synchronous SGD (CSGD) on large-scale DNNs like ResNet-50?
- RQ5Can LSGD maintain convergence stability when using large minibatch sizes and linearly scaled learning rates?
Key findings
- LSGD achieves 93.1% scaling efficiency on 256 GPUs, significantly outperforming CSGD, which drops to 63.8% efficiency at the same scale.
- LSGD demonstrates near-perfect linear throughput scaling up to 32 workers and maintains high efficiency even at scale, due to overlapping communication with I/O.
- LSGD maintains the same accuracy as standard SGD: 72.79% top-1 validation accuracy on ImageNet with 256 workers and a 16,384-batch size.
- The accuracy of CSGD is slightly higher (73.49%) under the same conditions, but this is attributed to the well-known accuracy drop from large minibatch sizes, not algorithmic bias.
- LSGD preserves unbiased gradients and identical parameter update rules as standard SGD, ensuring theoretical equivalence and consistent convergence behavior.
- The warmup strategy effectively mitigates training instability during early epochs when using large learning rates (e.g., 6.4 with 256 workers)
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.