[论文解读] XPipe: Efficient Pipeline Model Parallelism for Multi-GPU DNN Training
XPipe 是一种异步流水线模型并行方法,使用微批处理和新颖的基于 Adam 的权重预测,在保持与同步 GPipe 相当的准确性的同时实现高吞吐量,在多种设置中超过 PipeDream 和 SpecTrain。
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.
研究动机与目标
- 通过在多GPU DNN 训练中实现跨 GPU 的并行训练来解决 GPU 利用率低的问题。
- 在保持或提升模型准确度的同时提高吞吐量,相较于现有的流水线并行方法。
- 利用微批分区和跨微批训练以提高利用率和可扩展性。
提出的方法
- 将微小批次划分为 T 个微批次,在各 GPU 之间形成一个流水线。
- 允许来自不同微批次的微批次进行跨训练以保持 GPU 忙碌。
- 引入基于 Adam 的权重预测方案以缓解权重不一致性和陈旧性。
- 设计标志性/先导性微批次以预测未来权重并重用预测以降低开销。
- 在应用更新之前在微批次之间累积梯度以维持稳定性。
- 提供前向和后向传播的权重预测公式,利用运行矩(公式 1-4)。
实验结果
研究问题
- RQ1如何使异步流水线模型并行在多GPU DNN 训练中达到与同步方法同等的准确性?
- RQ2通过微批跨训练与权重预测是否能够在不牺牲收敛性的前提下提升 GPU 利用率和吞吐量?
- RQ3基于 Adam 的权重预测是否能够有效解决流水线数据并行训练中的权重不一致性和陈旧性?
- RQ4在常见 CNN 模型和数据集上,XPipe 在收敛性和吞吐量方面与 GPipe、PipeDream 和 SpecTrain 相比如何?
主要发现
- XPipe 在所测试的模型和数据集上实现了高吞吐量,同时在准确性上与 GPipe 相当或更好。
- XPipe 相较于 GPipe 的吞吐量提升突出(例如在某些 Tiny ImageNet 4-GPU 运行中高达 150.8%),并且在准确性方面通常优于 PipeDream 和 SpecTrain。
- 基于 Adam 的权重预测比先前方法中使用的平滑梯度方法更有效地缓解权重不一致性和陈旧性。
- XPipe 能在不同的 T 值(T=1,2,4)以及不同优化器(RMSProp、Adam)下保持稳健的收敛性。
- GPipe 的性能对 T 存在敏感性,而 XPipe 不受 T 的影响,保持稳定的高利用率,在 Tiny ImageNet 上的 Inception-V3 和 ResNet-101 取得了显著吞吐提升。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。