arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.16523cs.LGcs.CVstat.COstat.MEstat.ML
收藏

通过子集预训练实现高效神经网络训练

Efficient Neural Network Training via Subset Pretraining

University of St.Gallen (HSG)(圣加仑大学)

Jan Spörer, Bernhard Bermeitinger, Tomas Hrycej, Niklas Limacher, Siegfried Handschuh

AI总结:

本文提出子集预训练方法,利用训练集子集的最小值近似整体损失最小值,在MNIST、CIFAR-10和CIFAR-100上验证可将计算开销降至十分之一以内且达到与传统训练相当的效果。

摘要:

在神经网络训练中,通常的做法是使用在小批量上计算得到的部分梯度,这些小批量大多是训练集的非常小的子集。这种做法的动机在于:这样的部分梯度接近真实梯度,其精度仅随批量大小的平方根增长。理论上的合理性可借助随机逼近理论来说明。然而,在通常的学习率调度下,该理论有效性的条件并未得到满足。批量处理也难以与高效的二阶优化方法相结合。本提案基于另一个假设:可以期望训练集的损失最小值能够由其子集的最小值很好地近似。这样的子集最小值可以在对整个训练集进行优化所需时间的一小部分内计算出来。该假设已借助MNIST、CIFAR-10和CIFAR-100图像分类基准进行了测试,并可选地通过训练数据增强进行了扩展。实验证实,可以达到与传统训练相当的结果。总之,如果给定模型参数集的超定比充分大于1,那么即使是小子集也具有代表性。计算开销可以降低到十分之一或更少。

英文摘要:

In training neural networks, it is common practice to use partial gradients computed over batches, mostly very small subsets of the training set. This approach is motivated by the argument that such a partial gradient is close to the true one, with precision growing only with the square root of the batch size. A theoretical justification is with the help of stochastic approximation theory. However, the conditions for the validity of this theory are not satisfied in the usual learning rate schedules. Batch processing is also difficult to combine with efficient second-order optimization methods. This proposal is based on another hypothesis: the loss minimum of the training set can be expected to be well-approximated by the minima of its subsets. Such subset minima can be computed in a fraction of the time necessary for optimizing over the whole training set. This hypothesis has been tested with the help of the MNIST, CIFAR-10, and CIFAR-100 image classification benchmarks, optionally extended by training data augmentation. The experiments have confirmed that results equivalent to conventional training can be reached. In summary, even small subsets are representative if the overdetermination ratio for the given model parameter set sufficiently exceeds unity. The computing expense can be reduced to a tenth or less.

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

↑