[Paper Review] Theano-MPI: a Theano-based Distributed Training Framework
Theano-MPI is a scalable, open-source distributed training framework that enables multi-node, multi-GPU training of deep learning models using data parallelism via CUDA-aware MPI. It achieves up to 6.7× data throughput speedup on AlexNet with 8 GPUs by reducing communication overhead through GPU-to-GPU transfers, half-precision transfers, and optimized parameter synchronization, while maintaining model convergence.
We develop a scalable and extendable training framework that can utilize GPUs across nodes in a cluster and accelerate the training of deep learning models based on data parallelism. Both synchronous and asynchronous training are implemented in our framework, where parameter exchange among GPUs is based on CUDA-aware MPI. In this report, we analyze the convergence and capability of the framework to reduce training time when scaling the synchronous training of AlexNet and GoogLeNet from 2 GPUs to 8 GPUs. In addition, we explore novel ways to reduce the communication overhead caused by exchanging parameters. Finally, we release the framework as open-source for further research on distributed deep learning
Motivation & Objective
- To enable scalable, distributed training of deep learning models across multi-node, multi-GPU clusters using Theano.
- To reduce communication overhead in distributed training by leveraging CUDA-aware MPI and GPUDirect P2P for direct GPU-to-GPU transfers.
- To support both synchronous and asynchronous training with efficient parameter exchange and improved convergence behavior.
- To provide a high-performance, extendable framework that maintains model accuracy while accelerating training.
- To release the framework as open-source to support further research in distributed deep learning.
Proposed method
- The framework uses CUDA-aware MPI to enable direct GPU-to-GPU data transfers without host memory involvement, minimizing communication latency.
- It implements data parallelism by running multiple Theano processes, each assigned to a GPU, with parameter averaging across nodes via MPI.
- The framework separates data transfer and summation operations to allow overlapping of communication and computation on GPUs.
- It supports both synchronous and asynchronous training, with asynchronous mode using an EASGD-like strategy and configurable averaging frequency τ and moving rate α.
- It employs half-precision (FP16) data transfer to reduce bandwidth usage and accelerate communication.
- The framework uses mpi4py for Python-level MPI access and integrates with Theano 0.8, cuDNN v4, and CUDA 7.0 for GPU-accelerated computation.
Experimental results
Research questions
- RQ1How can communication overhead in distributed deep learning be minimized when scaling across multiple GPUs and nodes?
- RQ2What is the impact of using CUDA-aware MPI and GPUDirect P2P on training speedup and convergence in multi-GPU settings?
- RQ3How does the choice between synchronous and asynchronous training affect convergence and performance in Theano-based distributed training?
- RQ4Can half-precision communication reduce communication time without degrading model accuracy?
- RQ5What hyper-parameter settings (e.g., τ, α) optimize convergence and speedup in asynchronous distributed training?
Key findings
- The framework achieved a data throughput speedup of 6.7× when training AlexNet on 8 GPUs, with a top-5 error of 21.12% at 49 global epochs.
- In asynchronous training, the communication overhead was reduced by 42% compared to Platoon when using τ=1 and α=0.5 on 8 GPUs.
- The use of CUDA-aware MPI and direct GPU-to-GPU transfers significantly reduced communication latency, especially in multi-node settings.
- Separating data transfer and summation operations enabled better overlap of communication and computation, improving overall efficiency.
- The framework maintained model convergence comparable to single-GPU training, even when scaling to 8 GPUs, when hyper-parameters were properly tuned.
- Performance was limited by QPI topology on the copper cluster, indicating that intra-node communication bottlenecks exist when GPUDirect P2P is not fully utilized.
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.