Abstract
Training modern deep neural networks is computationally intensive, often requiring distributed resources. However, scaling across multiple machines is frequently hindered by communication bottlenecks on commodity network hardware. Poseidon is a system architecture designed to overcome these limitations. By introducing Distributed Wait-free Backpropagation (DWBP) to overlap communication with computation and a Structure-Aware Communication Protocol (SACP) to optimize data transfer based on layer types, Poseidon achieves near-linear speedups. Experimental results on large-scale datasets like ImageNet 22K demonstrate that Poseidon significantly reduces training time while maintaining model accuracy.
Introduction
The rapid advancement of deep learning is driven by increasingly complex models and massive datasets. While single-machine multi-GPU training is well-established, scaling to clusters of machines remains a challenge due to the communication bottleneck. High-performance GPUs generate gradient updates faster than standard 1GbE or 10GbE Ethernet can transmit them. Without optimization, the overhead of synchronizing parameters across the network can negate the computational benefits of additional nodes. Poseidon addresses this by treating communication as a first-class citizen that must be scheduled and optimized just like a kernel on a GPU.
Methodology
Poseidon introduces a three-level hybrid architecture that manages GPU threads within nodes and facilitates both client-server and peer-to-peer (P2P) communication between nodes. This flexibility supports two primary optimizations:
Distributed Wait-free Backpropagation (DWBP)
Traditional distributed training follows a sequential "compute-then-sync" pattern. Poseidon’s DWBP exploits the layered structure of neural networks. As soon as gradients for a specific layer are computed during the backward pass, the system begins transmitting them while the GPU continues computing gradients for subsequent layers. This pipelining effectively hides network latency behind computation time.
Structure-Aware Communication Protocol (SACP)
Not all neural network layers impose the same communication load. Convolutional (CONV) layers have relatively few parameters but high computational demands, making them suitable for a centralized Parameter Server model. In contrast, Fully-connected (FC) layers contain the bulk of a model's parameters. SACP employs Sufficient Factor Broadcasting (SFB) for FC layers, decomposing large gradient matrices into low-rank factors ($uv^T$). Sending these vectors via P2P communication drastically reduces the volume of data transferred compared to full matrix synchronization.
Experimental Evaluation
The system was evaluated using standard benchmarks: CIFAR-10, ILSVRC 2012 (ImageNet 1K), and the massive ImageNet 22K dataset (14.2 million images).
Key Results
- Scalability: On an 8-node commodity cluster, Poseidon achieved a 4.5× speedup for AlexNet and a 4× speedup for GoogLeNet relative to a single-machine baseline.
- Accuracy: The distributed optimizations did not impact convergence; models reached the same classification accuracy as those trained on a single machine.
- Efficiency at Scale: When training on ImageNet 22K, Poseidon outperformed Microsoft’s Adam system, achieving comparable accuracy in just 30% of the training time using significantly fewer cluster nodes.
Conclusion
Poseidon demonstrates that efficient distributed deep learning is possible on commodity hardware by co-optimizing communication and computation. By leveraging the mathematical structure of neural network gradients and pipelining data transfers, the system removes the primary barriers to multi-machine scaling. Future work includes reducing the CPU overhead associated with SFB reconstruction and extending these principles to dynamic frameworks like PyTorch or TensorFlow.
Summary updated