arXivDaily arXiv每日学术速递 周一至周五更新
今晚才能更新了~~大家休息下再来吧
arXiv 2302.09693stat.MLcs.LG
收藏

mSAM:基于微批次平均的锐度感知最小化

mSAM: Micro-Batch-Averaged Sharpness-Aware Minimization

LinkedIn Corporation(领英公司);Massachusetts Institute of Technology(麻省理工学院);Purdue University(普渡大学)

Kayhan Behdin, Qingquan Song, Aman Gupta, Sathiya Keerthi, Ayan Acharya, Borja Ocejo, Gregory Dexter, Rajiv Khanna, David Durfee, Rahul Mazumder

AI总结:

针对过参数化深度学习模型的泛化问题,本文提出微批次SAM(mSAM)变体,通过聚合小批次内多微批次的对抗扰动更新,理论与实验均证明其能找到比SAM更平坦的极小值,且可并行实现、计算成本无显著增加,泛化性能更优。

摘要:

现代深度学习模型属于过参数化模型,不同的最优解会带来差异极大的泛化性能。锐度感知最小化(Sharpness-Aware Minimization, SAM)技术对基础损失函数进行修改,引导梯度下降方法趋向更平坦的极小值,这类极小值被认为具备更强的泛化能力。本研究深入探究了SAM的一个特定变体——微批次SAM(micro-batch SAM, mSAM)。该变体在训练过程中,会聚合来自一个小批次(mini-batch)的多个分片(即微批次)的对抗扰动所产生的更新。我们拓展了一个近期提出且已被充分研究的平坦度分析通用框架,从理论上证明SAM能找到比随机梯度下降(SGD)更平坦的极小值,而mSAM能找到比SAM更平坦的极小值。我们在多种图像分类和自然语言处理任务上开展了全面的实证评估,验证了这一理论进展。我们还表明,与以往研究的结论不同,mSAM可以以灵活且可并行的方式实现,且不会显著增加计算成本。我们实现的mSAM在广泛任务上的泛化性能优于SAM,进一步支撑了我们的理论框架。

英文摘要:

Modern deep learning models are over-parameterized, where different optima can result in widely varying generalization performance. The Sharpness-Aware Minimization (SAM) technique modifies the fundamental loss function that steers gradient descent methods toward flatter minima, which are believed to exhibit enhanced generalization prowess. Our study delves into a specific variant of SAM known as micro-batch SAM (mSAM). This variation involves aggregating updates derived from adversarial perturbations across multiple shards (micro-batches) of a mini-batch during training. We extend a recently developed and well-studied general framework for flatness analysis to theoretically show that SAM achieves flatter minima than SGD, and mSAM achieves even flatter minima than SAM. We provide a thorough empirical evaluation of various image classification and natural language processing tasks to substantiate this theoretical advancement. We also show that contrary to previous work, mSAM can be implemented in a flexible and parallelizable manner without significantly increasing computational costs. Our implementation of mSAM yields superior generalization performance across a wide range of tasks compared to SAM, further supporting our theoretical framework.

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

↑