arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.04343cs.LGmath.OC
收藏

使用m-Sharing-Aware最小化的改进的深度神经网络泛化

Improved Deep Neural Network Generalization Using m-Sharpness-Aware Minimization

LinkedIn Corporation(领英公司);Massachusetts Institute of Technology(麻省理工学院)

Kayhan Behdin, Qingquan Song, Aman Gupta, David Durfee, Ayan Acharya, Sathiya Keerthi, Rahul Mazumder

摘要:

现代深度学习模型是过度参数化的,其中优化设置强烈影响泛化性能。这些系统的可靠性优化的一个关键因素是损失函数的修改。Sharpness-Aware Minimization(SAM)修改了底层的损失函数,以引导下降方法朝向更平坦的最小值,这可以说具有更好的泛化能力。在本文中,我们关注SAM的一个变体,称为mSAM,它在训练过程中,将对抗性扰动生成的更新平均在一个小批量的几个不相交的碎片上。最近的研究表明,mSAM在测试准确性方面优于SAM。然而,文献中缺少对mSAM的全面实证研究-以前的结果大多限于特定的架构和数据集。为此,本文对mSAM在各种任务和数据集上进行了全面的实证评估。我们提供了一个灵活的实现mSAM和比较的泛化性能的mSAM和不同的图像分类和自然语言处理任务上的SAM和香草训练的性能。我们还进行了仔细的实验,以了解使用mSAM进行训练的计算成本,其对超参数的敏感性及其与损失景观平坦度的相关性。我们的分析表明,mSAM产生优越的泛化性能和平坦的最小值,SAM相比,在广泛的任务,而不会显着增加计算成本。

英文摘要:

Modern deep learning models are over-parameterized, where the optimization setup strongly affects the generalization performance. A key element of reliable optimization for these systems is the modification of the loss function. Sharpness-Aware Minimization (SAM) modifies the underlying loss function to guide descent methods towards flatter minima, which arguably have better generalization abilities. In this paper, we focus on a variant of SAM known as mSAM, which, during training, averages the updates generated by adversarial perturbations across several disjoint shards of a mini-batch. Recent work suggests that mSAM can outperform SAM in terms of test accuracy. However, a comprehensive empirical study of mSAM is missing from the literature -- previous results have mostly been limited to specific architectures and datasets. To that end, this paper presents a thorough empirical evaluation of mSAM on various tasks and datasets. We provide a flexible implementation of mSAM and compare the generalization performance of mSAM to the performance of SAM and vanilla training on different image classification and natural language processing tasks. We also conduct careful experiments to understand the computational cost of training with mSAM, its sensitivity to hyperparameters and its correlation with the flatness of the loss landscape. Our analysis reveals that mSAM yields superior generalization performance and flatter minima, compared to SAM, across a wide range of tasks without significantly increasing computational costs.

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

↑