Introduction
Training state-of-the-art deep learning (DL) models is a computationally intensive task that often requires scaling out to GPU clusters. However, GPUs process data batches so rapidly that they generate parameter updates (gradients) at a rate that frequently overwhelms standard network bandwidth. This results in a "scaling wall" where GPUs sit idle while waiting for the network to synchronize millions of parameters, leading to inefficient resource utilization.
Poseidon is a communication architecture designed to overcome these bottlenecks. By overlapping communication with computation and dynamically choosing the most efficient synchronization method for each neural network layer, it achieves near-linear speedups, significantly outperforming standard distributed frameworks like TensorFlow and Caffe.
Methods
Poseidon introduces two primary strategies to maximize GPU utilization and minimize network overhead:
Wait-Free Backpropagation (WFBP)
Standard training protocols often wait for the entire "backward pass" (calculating gradients for all layers) to finish before starting network synchronization. Poseidon exploits the layered structure of neural networks. As soon as the gradients for a top layer are calculated, Poseidon starts transmitting them while the GPU is still busy calculating gradients for the lower layers. This effectively "hides" the communication time behind the computation time.
Hybrid Communication (HybComm)
Not all neural network layers have the same communication requirements. Convolutional (CONV) layers typically have relatively few parameters but require significant computation, while Fully Connected (FC) layers often contain massive parameter matrices that create network bottlenecks.
Poseidon dynamically chooses between two synchronization methods based on layer properties:
- Parameter Server (PS): Best for small or sparse layers, such as CONV layers.
- Sufficient Factor Broadcasting (SFB): For massive FC layers, instead of sending a giant matrix, Poseidon sends two smaller vectors (the "sufficient factors") whose outer product reconstructs the gradient. This drastically reduces the total bytes transmitted.
Evaluation and Key Results
The authors evaluated Poseidon using major image classification benchmarks, including CIFAR-10, ILSVRC12 (ImageNet), and ImageNet22K. The latter was used to test Poseidon's ability to handle models with extremely large output layers, such as VGG19-22K, which contains 229 million parameters.
Key performance highlights include:
- Massive Speedups: On 32 single-GPU machines, Poseidon-enabled TensorFlow achieved a 31.5x speedup on Inception-V3, compared to only 20x for standard TensorFlow.
- Handling Large Models: For the VGG19-22K model, standard distributed TensorFlow performed worse than a single machine due to network congestion. Poseidon achieved a 30x speedup on the same hardware.
- Bandwidth Efficiency: Even on limited 10GbE networks, Poseidon maintained near-linear scaling, whereas traditional Parameter Server approaches achieved only a 4x speedup on 16 machines.
Conclusion
Poseidon demonstrates that synchronization does not have to be a monolithic block. By treating the neural network as a pipeline of independent layers and employing adaptive communication strategies, Poseidon enables efficient scaling for even the most parameter-heavy models. As a framework-agnostic "plug-in," it allows existing engines like Caffe and TensorFlow to overcome the scaling wall without changing the underlying mathematical models.
Summary updated