arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1806.07353cs.LGstat.ML
收藏

通过minibatch持久化实现更快的SGD训练

Faster SGD training by minibatch persistency

University of Padova(帕多瓦大学)

Matteo Fischetti, Iacopo Mandatelli, Domenico Salvagnin

摘要:

众所周知,对于大多数数据集,使用大尺寸的minibatch进行随机梯度下降(SGD)通常会导致收敛速度慢和泛化能力差。另一方面,大的小批量具有很大的实际意义,因为它们允许更好地利用现代GPU。以前的文献集中在如何调整主要的SGD参数(特别是,学习率)时,使用大的小批量。在这项工作中,我们引入了一个额外的功能,我们称之为minibatch持久化,它包括在重复使用相同的minibatch为K个连续的SGD迭代。这里的计算推测是,一个大的小批量包含了训练集的一个重要样本,所以人们可以稍微过拟合它,而不会使泛化性能恶化太多。该方法旨在加速SGD收敛,并且还具有减少与内部GPU存储器上的数据加载相关的开销的优点。我们目前的计算结果CIFAR-10与AlexNet架构,表明即使是小的持久性值(K=2或5)已经导致一个显着更快的收敛和可比(甚至更好)的泛化比标准的“一次性minibatch”的方法(K=1),特别是当使用大型minibatch。从中得到的教训是,小批量持久化可以是处理大型小批量的一种简单而有效的方法。

英文摘要:

It is well known that, for most datasets, the use of large-size minibatches for Stochastic Gradient Descent (SGD) typically leads to slow convergence and poor generalization. On the other hand, large minibatches are of great practical interest as they allow for a better exploitation of modern GPUs. Previous literature on the subject concentrated on how to adjust the main SGD parameters (in particular, the learning rate) when using large minibatches. In this work we introduce an additional feature, that we call minibatch persistency, that consists in reusing the same minibatch for K consecutive SGD iterations. The computational conjecture here is that a large minibatch contains a significant sample of the training set, so one can afford to slightly overfitting it without worsening generalization too much. The approach is intended to speedup SGD convergence, and also has the advantage of reducing the overhead related to data loading on the internal GPU memory. We present computational results on CIFAR-10 with an AlexNet architecture, showing that even small persistency values (K=2 or 5) already lead to a significantly faster convergence and to a comparable (or even better) generalization than the standard "disposable minibatch" approach (K=1), in particular when large minibatches are used. The lesson learned is that minibatch persistency can be a simple yet effective way to deal with large minibatches.

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

↑