Abstract
This paper investigates strategies for accelerating the training of large-scale Convolutional Neural Networks (ConvNets) using multiple GPUs. By evaluating data parallelism, model parallelism, and a hybrid approach on the ImageNet dataset, the authors identify a hybrid configuration that achieves a 2.2x speedup on four GPUs compared to a single-GPU baseline. The study highlights the importance of balancing communication overhead and hardware utilization in distributed deep learning.
Introduction
In the early 2010s, the primary bottleneck in deep learning research was the prohibitive training time required for large-scale models. Training a state-of-the-art Convolutional Neural Network (ConvNet) on the ImageNet dataset could take over a week on a single high-end GPU, significantly slowing the pace of innovation. This paper explores methods to distribute the training workload across multiple GPUs to accelerate this process without altering the underlying mathematical properties of Stochastic Gradient Descent (SGD).
Parallelization Strategies
The authors evaluate three distinct strategies for partitioning a ConvNet across multiple GPUs with disjoint memory spaces:
- Data Parallelism: The training mini-batch is divided among the available GPUs. Each device maintains a full copy of the model parameters and computes gradients for its assigned subset of data. Synchronization occurs during the weight update phase to ensure consistency across all replicas.
- Model Parallelism: The network architecture itself is split across GPUs. For instance, specific layers or filter sets are assigned to different devices. This approach is particularly useful for models that exceed the memory capacity of a single GPU and can reduce communication overhead if the split occurs at layers with relatively small feature maps.
- Hybrid Parallelism: This approach combines both data and model parallelism. In a four-GPU configuration, the model is split into two model-parallel units, which then operate in a data-parallel fashion relative to each other.
Experimental Setup
The study utilized the ImageNet 2012 dataset, consisting of 1.2 million images across 1,000 classes. The baseline architecture was "AlexNet," and experiments were conducted on a single server with four NVIDIA TITAN GPUs (6GB RAM each). To ensure a fair comparison of hardware efficiency, all models were trained for 100 epochs with a fixed total mini-batch size of 256.
Key Results and Performance Analysis
The experimental results demonstrate that scaling performance is non-linear and highly dependent on the parallelization strategy.
| Configuration | Time to Complete 100 Epochs | Speedup vs. 1 GPU |
|---|---|---|
| 1 GPU | 10.5 days | 1.0x |
| 2 GPUs (Model Parallel) | 6.6 days | ~1.6x |
| 2 GPUs (Data Parallel) | 7.0 days | ~1.5x |
| 4 GPUs (Data Parallel) | 7.2 days | ~1.45x |
| 4 GPUs (Hybrid) | 4.8 days | ~2.2x |
A critical finding was the "Data Parallelism Trap." While intuitive, pure data parallelism suffered from diminishing returns. Increasing the number of GPUs from two to four using only data parallelism actually increased training time from 7.0 to 7.2 days. This inefficiency stems from two factors: the communication overhead of synchronizing all parameters and the under-utilization of GPU cores when the per-device batch size becomes too small (e.g., 64 samples).
The hybrid approach emerged as the most effective, balancing memory constraints and communication costs to achieve the fastest wall-clock training time.
Conclusion
The research highlights that effective multi-GPU training requires careful consideration of how both data and model structures are partitioned. The hybrid parallelism strategy provided the best balance, yielding a significant 2.2x speedup. Future work is expected to focus on scaling across multiple servers and exploring asynchronous optimization techniques to further mitigate communication bottlenecks.
Summary updated