AdaScale SGD:一种用于分布式训练的User-Friendly算法
AdaScale SGD: A User-Friendly Algorithm for Distributed Training
摘要:
当使用大批量训练来加速随机梯度下降时,学习率必须适应新的批量大小,以最大限度地提高速度并保持模型质量。重新调整学习率是资源密集型的,而固定的缩放规则往往会降低模型质量。我们提出了AdaScale SGD,这是一种可靠地将学习率适应大批量训练的算法。通过不断适应梯度的变化,AdaScale自动实现了各种批量大小的加速。我们用AdaScale的收敛界来正式描述这种质量,它保持最终的目标值,即使批量大小变大,迭代次数减少。在实证比较中,AdaScale的训练远远超出了流行的“线性学习率缩放”规则的批量大小限制。这包括机器翻译、图像分类、目标检测和语音识别任务的无模型降级的大批量训练。AdaScale的定性行为类似于“热身”行为,但与热身不同的是,这种行为是从原则性机制中自然出现的。该算法引入的计算开销可以忽略不计,并且没有新的超参数,这使得AdaScale成为实际大规模训练的有吸引力的选择。
英文摘要:
When using large-batch training to speed up stochastic gradient descent, learning rates must adapt to new batch sizes in order to maximize speed-ups and preserve model quality. Re-tuning learning rates is resource intensive, while fixed scaling rules often degrade model quality. We propose AdaScale SGD, an algorithm that reliably adapts learning rates to large-batch training. By continually adapting to the gradient's variance, AdaScale automatically achieves speed-ups for a wide range of batch sizes. We formally describe this quality with AdaScale's convergence bound, which maintains final objective values, even as batch sizes grow large and the number of iterations decreases. In empirical comparisons, AdaScale trains well beyond the batch size limits of popular "linear learning rate scaling" rules. This includes large-batch training with no model degradation for machine translation, image classification, object detection, and speech recognition tasks. AdaScale's qualitative behavior is similar to that of "warm-up" heuristics, but unlike warm-up, this behavior emerges naturally from a principled mechanism. The algorithm introduces negligible computational overhead and no new hyperparameters, making AdaScale an attractive choice for large-scale training in practice.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。