arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1901.02244cs.DCcs.LG
收藏

CROSSBOW:在多GPU服务器上以小批量规模扩展深度学习

CROSSBOW: Scaling Deep Learning with Small Batch Sizes on Multi-GPU Servers

Imperial College London(帝国理工学院);Microsoft Research(微软研究院);Humboldt-Universität zu Berlin(柏林洪堡大学)

Alexandros Koliousis, Pijika Watcharapichat, Matthias Weidlich, Luo Mai, Paolo Costa, Peter Pietzuch

摘要:

深度学习模型在具有许多GPU的服务器上训练,并且训练必须随着GPU的数量而扩展。TensorFlow和Caffe 2等系统使用并行同步随机梯度下降来训练模型:它们一次处理一批训练数据,在GPU之间进行分区,并对产生的部分梯度进行平均,以获得更新的全局模型。为了充分利用所有GPU,系统必须增加批量大小,这会阻碍统计效率。用户调整超参数,如学习率,以补偿这一点,这是复杂的和特定于模型的。我们描述了CROSSBOW,这是一种用于训练深度学习模型的新的单服务器多GPU系统,使用户能够自由选择他们喜欢的批量大小-无论多么小-同时扩展到多个GPU。CROSSBOW使用许多并行模型副本,并通过一种新的同步训练方法避免了统计效率的降低。我们引入SMA,模型平均的同步变体,其中副本独立地探索解空间与梯度下降,但调整其搜索同步的基础上的全局一致的平均模型的轨迹。CROSSBOW通过在每个GPU上训练多个模型副本,自动调整副本数量以最大化吞吐量,从而在小批量的情况下实现高硬件效率。我们的实验表明,与TensorFlow相比,CROSSBOW将深度学习模型在8 GPU服务器上的训练时间缩短了1.3- 4倍。

英文摘要:

Deep learning models are trained on servers with many GPUs, and training must scale with the number of GPUs. Systems such as TensorFlow and Caffe2 train models with parallel synchronous stochastic gradient descent: they process a batch of training data at a time, partitioned across GPUs, and average the resulting partial gradients to obtain an updated global model. To fully utilise all GPUs, systems must increase the batch size, which hinders statistical efficiency. Users tune hyper-parameters such as the learning rate to compensate for this, which is complex and model-specific. We describe CROSSBOW, a new single-server multi-GPU system for training deep learning models that enables users to freely choose their preferred batch size - however small - while scaling to multiple GPUs. CROSSBOW uses many parallel model replicas and avoids reduced statistical efficiency through a new synchronous training method. We introduce SMA, a synchronous variant of model averaging in which replicas independently explore the solution space with gradient descent, but adjust their search synchronously based on the trajectory of a globally-consistent average model. CROSSBOW achieves high hardware efficiency with small batch sizes by potentially training multiple model replicas per GPU, automatically tuning the number of replicas to maximise throughput. Our experiments show that CROSSBOW improves the training time of deep learning models on an 8-GPU server by 1.3-4x compared to TensorFlow.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑