arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1911.06459cs.LGcs.DCstat.ML
收藏

快速梯度下降的最优小批量选择

Optimal Mini-Batch Size Selection for Fast Gradient Descent

IBM T.J. Watson Research Center(IBM托马斯·J·沃森研究中心);Amazon Alexa(亚马逊Alexa);Morgan Stanley(摩根士丹利);Rice University(莱斯大学)

Michael P. Perrone, Haidar Khan, Changhoan Kim, Anastasios Kyrillidis, Jerry Quinn, Valentina Salapura

摘要:

本文提出了一种方法来选择小批量的大小,最大限度地减少随机梯度下降(SGD)的学习时间为单个和多个学习者的问题。通过从硬件和软件实现细节解耦算法分析问题,我们揭示了小批量大小和收敛到指定错误阈值所需的SGD更新的平均数量之间的鲁棒经验逆律。结合这一经验逆定律与测量的系统性能,我们创建了一个准确的,封闭形式的平均训练时间模型,并展示了如何使用该模型来识别机器学习的算法和硬件方面的量化影响。我们在图像识别(MNIST,CIFAR10和CIFAR100)和机器翻译(Europarl)任务上经验性地证明了逆规律,并通过证明小批量SGD训练的新界限提供了理论依据。

英文摘要:

This paper presents a methodology for selecting the mini-batch size that minimizes Stochastic Gradient Descent (SGD) learning time for single and multiple learner problems. By decoupling algorithmic analysis issues from hardware and software implementation details, we reveal a robust empirical inverse law between mini-batch size and the average number of SGD updates required to converge to a specified error threshold. Combining this empirical inverse law with measured system performance, we create an accurate, closed-form model of average training time and show how this model can be used to identify quantifiable implications for both algorithmic and hardware aspects of machine learning. We demonstrate the inverse law empirically, on both image recognition (MNIST, CIFAR10 and CIFAR100) and machine translation (Europarl) tasks, and provide a theoretic justification via proving a novel bound on mini-batch SGD training.

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

↑