Abstract
The parameter server architecture is prevalently used for distributed deep learning. Each worker machine in a parameter server system trains the complete model, which leads to a hefty amount of network data transfer between workers and servers. We empirically observe that the data transfer has a non-negligible impact on training time. To tackle the problem, we design a new distributed training system called Stanza. Stanza exploits the fact that in many models such as convolution neural networks, most data exchange is attributed to the fully connected layers, while most computation is carried out in convolutional layers. Thus, we propose layer separation in distributed training: the majority of the nodes just train the convolutional layers, and the rest train the fully connected layers only. Gradients and parameters of the fully connected layers no longer need to be exchanged across the cluster, thereby substantially reducing the data transfer volume. We implement Stanza on PyTorch and evaluate its performance on Azure and EC2. Results show that Stanza accelerates training significantly over current parameter server systems: on EC2 instances with Tesla V100 GPU and 10Gb bandwidth for example, Stanza is 1.34x--13.9x faster for common deep learning models.
Introduction
In distributed deep learning, the Parameter Server (PS) architecture is the industry standard. However, it suffers from a massive communication bottleneck: every worker machine trains the entire model and must synchronize the full set of parameters with the server in every iteration. As models grow to include hundreds of millions of parameters—for instance, VGG-16 requires over 1GB of data exchange per iteration—the network becomes a significant bottleneck. Even with high-end GPUs and 10Gbps+ bandwidth, systems often spend more time moving data than performing actual computation. Stanza addresses this by questioning whether such massive data transfer is truly unavoidable.
Methods: Layer Separation
Stanza introduces a strategy called Layer Separation, which exploits a fundamental asymmetry in Convolutional Neural Networks (CNNs). The authors observe a "90/10" rule: Convolutional (CONV) layers are computationally intensive (responsible for >90% of FLOPs) but parameter-light (<10% of total parameters). Conversely, Fully Connected (FC) layers are computationally light but parameter-heavy, often accounting for ~90% of total parameters.
The Stanza Architecture
To leverage this asymmetry, Stanza decouples the training of these layers by splitting the cluster into specialized nodes:
- CONV Workers: A large group of nodes that process input data through the convolutional layers. They send only the resulting activations (which are relatively small) to the FC workers.
- FC Workers: A few nodes that complete the forward pass, compute the loss, and send the gradients of the last CONV layer back to the CONV workers.
Because the parameter-heavy FC layers are only trained on a few nodes, the massive parameter exchange is localized. CONV workers synchronize their few parameters among themselves using an efficient allreduce algorithm. Stanza also includes a performance model that uses an optimization program to determine the mathematically optimal ratio of CONV to FC workers for any given hardware setup.
Evaluation and Results
The researchers evaluated Stanza using image classification benchmarks including CIFAR-10 and ImageNet-12 (ILSVRC) across various architectures: AlexNet, VGG-16, VGG-19, Inception-V3, and ResNet-152.
Key findings include:
- Massive Speedups: On AWS EC2 instances with Tesla V100 GPUs and 10Gbps networks, Stanza achieved speedups of 1.34x to 13.9x over standard PS systems.
- Data Reduction: Stanza reduced FC-layer data transfer by approximately 100x and total system data transfer by over 4x.
- Superior Scalability: Unlike traditional PS systems, which often see diminishing returns due to network congestion, Stanza’s throughput scales almost linearly because it removes the communication bottleneck.
- Accuracy Parity: Stanza achieves the same top-1 accuracy as standard synchronous SGD, proving that layer separation does not harm model convergence.
Conclusion and Future Work
Stanza demonstrates that decoupling model layers based on their computation-to-communication ratio can drastically improve distributed training efficiency. While currently optimized for CNNs, future work includes extending this approach to other architectures like Transformers or RNNs. Additionally, automating the "split point" selection between layers and integrating with other communication optimizations like Ring-AllReduce could further enhance performance.
Summary updated