arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1806.06144stat.MLcs.LG
收藏

适应GPU的内核机器,用于有效的大批量训练

Kernel machines that adapt to GPUs for effective large batch training

Ohio State University(俄亥俄州立大学)

Siyuan Ma, Mikhail Belkin

摘要:

现代机器学习模型通常使用随机梯度下降(SGD)在诸如GPU的大规模并行计算资源上进行训练。增加小批量是利用并行计算能力的一种简单而直接的方法。对于小批量,批量大小的增加会导致训练时间的成比例减少,这种现象称为线性缩放。但是,将批大小增加到超过某个值不会进一步改善训练时间。在本文中,我们开发的第一个分析框架,扩展线性缩放,以匹配并行计算能力的资源。该框架是为一类经典的内核机器设计的。它自动修改标准内核机器以输出数学上等效的预测函数,但允许扩展的线性缩放,即,在给定硬件上实现更高效的并行化和更快的训练时间。由此产生的算法是准确的,原则性和非常快。例如,使用单个Titan Xp GPU,在ImageNet上使用$1.3\times 10^6$数据点和$1000$标签进行训练需要不到一个小时,而较小的数据集(如MNIST)需要几秒钟。由于参数是基于理论界解析地选择的,因此除了选择核和核参数之外,几乎不需要调整,进一步促进了这些方法的实际使用。

英文摘要:

Modern machine learning models are typically trained using Stochastic Gradient Descent (SGD) on massively parallel computing resources such as GPUs. Increasing mini-batch size is a simple and direct way to utilize the parallel computing capacity. For small batch an increase in batch size results in the proportional reduction in the training time, a phenomenon known as linear scaling. However, increasing batch size beyond a certain value leads to no further improvement in training time. In this paper we develop the first analytical framework that extends linear scaling to match the parallel computing capacity of a resource. The framework is designed for a class of classical kernel machines. It automatically modifies a standard kernel machine to output a mathematically equivalent prediction function, yet allowing for extended linear scaling, i.e., higher effective parallelization and faster training time on given hardware. The resulting algorithms are accurate, principled and very fast. For example, using a single Titan Xp GPU, training on ImageNet with $1.3\times 10^6$ data points and $1000$ labels takes under an hour, while smaller datasets, such as MNIST, take seconds. As the parameters are chosen analytically, based on the theoretical bounds, little tuning beyond selecting the kernel and the kernel parameter is needed, further facilitating the practical use of these methods.

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

↑