[Paper Review] XPipe: Efficient Pipeline Model Parallelism for Multi-GPU DNN Training
XPipe is an asynchronous pipeline model parallelism method that uses micro-batches and a novel Adam-based weight prediction to achieve high throughput with accuracy comparable to synchronous GPipe, outperforming PipeDream and SpecTrain in many setups.
We propose XPipe, an efficient asynchronous pipeline model parallelism approach for multi-GPU DNN training. XPipe is designed to use multiple GPUs to concurrently and continuously train different parts of a DNN model. To improve GPU utilization and achieve high throughput, it splits a mini-batch into a set of micro-batches. It allows the overlapping of the pipelines of multiple micro-batches, including those belonging to different mini-batches. Most importantly, the novel weight prediction strategy adopted by XPipe enables it to effectively address the weight inconsistency and staleness issues incurred by the asynchronous pipeline parallelism. As a result, XPipe incorporates the advantages of both synchronous and asynchronous pipeline model parallelism approaches. Concretely, it can achieve very comparable (even slightly better) model accuracy as its synchronous counterpart while obtaining higher throughput than it. Experimental results show that XPipe outperforms other state-of-the-art synchronous and asynchronous model parallelism approaches.
Motivation & Objective
- Address the low GPU-utilization in multi-GPU DNN training by enabling concurrent training across GPUs.
- Improve throughput while maintaining or enhancing model accuracy compared to existing pipeline parallelism approaches.
- Leverage micro-batch partitioning and cross-mini-batch training to increase utilization and scalability.
Proposed method
- Partition mini-batches into T micro-batches to form a pipeline across GPUs.
- Allow cross-training of micro-batches from different mini-batches to keep GPUs busy.
- Introduce an Adam-based weight prediction scheme to mitigate weight inconsistency and staleness.
- Design bellwether micro-batches to predict future weights and reuse predictions to reduce overhead.
- Accumulate gradients across micro-batches before applying updates to maintain stability.
- Provide weight prediction formulas for forward and backward passes leveraging running moments (Equations 1-4).
Experimental results
Research questions
- RQ1How can asynchronous pipeline model parallelism be made as accurate as synchronous approaches in multi-GPU DNN training?
- RQ2Does micro-batch cross-training with weight prediction improve GPU utilization and throughput without sacrificing convergence?
- RQ3Can Adam-based weight prediction effectively address weight inconsistency and staleness in Pipeline DP training?
- RQ4How does XPipe compare to GPipe, PipeDream, and SpecTrain in terms of convergence and throughput across common CNN models and datasets?
Key findings
- XPipe achieves high throughput while delivering accuracy comparable to or better than GPipe across tested models and datasets.
- XPipe shows throughput improvements over GPipe (e.g., up to 150.8% on certain Tiny ImageNet 4-GPU runs) and generally outperforms PipeDream and SpecTrain in accuracy.
- Adam-based weight prediction more effectively mitigates weight inconsistency and staleness than smoothed-gradient approaches used in prior methods.
- XPipe maintains robust convergence across T values (T=1,2,4) and different optimizers (RMSProp, Adam).
- GPipe performance is sensitive to T whereas XPipe maintains steady, high utilization independent of T, achieving substantial throughput gains on Tiny ImageNet for Inception-V3 and ResNet-101.
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.