arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.12184cs.LGcs.CV
收藏

理解大批量深度神经网络泛化缺口的新视角

A New Perspective for Understanding Generalization Gap of Deep Neural Networks Trained with Large Batch Sizes

Spire Global(斯派尔全球);Post Luxembourg(卢森堡邮政);University of Luxembourg(卢森堡大学)

Oyebade K. Oyedotun, Konstantinos Papadopoulos, Djamila Aouada

摘要:

深度神经网络(DNN)通常使用各种形式的小批量梯度下降算法来优化。小批量梯度下降的一个主要动机是,通过适当选择的批量大小,可以最佳地利用(包括并行化)可用的计算资源进行快速模型训练。然而,许多作品报告了当训练批量大小增加超过一定限度时,模型泛化能力的逐渐丧失。这是一个通常被称为泛化差距的场景。虽然一些工作提出了不同的方法来缓解推广差距的问题,一个统一的解释理解推广差距仍然缺乏文献。这一点尤其重要,因为最近的研究发现,针对泛化缺口问题提出的几种解决方案,如学习率缩放和增加训练预算,并没有真正解决这个问题。因此,本文的主要论述是调查并提供新的视角,以研究大批量训练的DNN的泛化损失来源。我们的分析表明,大的训练批量会导致单元激活(即输出)张量的近秩损失增加,从而影响模型优化和泛化。使用CIFAR-10、CIFAR-100、Fashion-MNIST和MNIST数据集对流行的DNN模型(如VGG-16、残差网络(ResNet-56)和LeNet-5)进行了广泛的实验验证。

英文摘要:

Deep neural networks (DNNs) are typically optimized using various forms of mini-batch gradient descent algorithm. A major motivation for mini-batch gradient descent is that with a suitably chosen batch size, available computing resources can be optimally utilized (including parallelization) for fast model training. However, many works report the progressive loss of model generalization when the training batch size is increased beyond some limits. This is a scenario commonly referred to as generalization gap. Although several works have proposed different methods for alleviating the generalization gap problem, a unanimous account for understanding generalization gap is still lacking in the literature. This is especially important given that recent works have observed that several proposed solutions for generalization gap problem such learning rate scaling and increased training budget do not indeed resolve it. As such, our main exposition in this paper is to investigate and provide new perspectives for the source of generalization loss for DNNs trained with a large batch size. Our analysis suggests that large training batch size results in increased near-rank loss of units' activation (i.e. output) tensors, which consequently impacts model optimization and generalization. Extensive experiments are performed for validation on popular DNN models such as VGG-16, residual network (ResNet-56) and LeNet-5 using CIFAR-10, CIFAR-100, Fashion-MNIST and MNIST datasets.

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

↑