arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2401.12033cs.LGcs.CV
收藏

Momentum-SAM:无计算开销的锐度感知最小化

Momentum-SAM: Sharpness Aware Minimization without Computational Overhead

University of Muenster(穆恩斯特大学)

Marlon Becker, Frederick Altrock, Benjamin Risse

AI总结:

针对SAM优化算法计算成本翻倍的问题,提出沿累积动量向量扰动参数的Momentum-SAM,在实现低锐度提升泛化的同时无额外显著计算与内存开销,并揭示了相关算法的机制洞见。

摘要:

近期提出的深度神经网络优化算法锐度感知最小化(Sharpness Aware Minimization, SAM)提出在梯度计算前通过一步梯度上升扰动参数,引导优化进入损失平坦的参数空间区域。尽管该方法已被证明能显著提升泛化能力、减少过拟合,但由于需要额外计算梯度,计算成本翻倍,导致SAM在计算能力有限的场景下难以应用。受Nesterov加速梯度(Nesterov Accelerated Gradient, NAG)启发,我们提出Momentum-SAM(MSAM),该方法沿累积动量向量的方向扰动参数,在实现低锐度的同时,不会比SGD或Adam带来显著的计算开销或内存需求。我们对MSAM进行了详细评估,揭示了NAG、SAM和MSAM在训练优化与泛化方面的可分离机制的相关洞见。代码可在https://github.com/MarlonBecker/MSAM获取。

英文摘要:

The recently proposed optimization algorithm for deep neural networks Sharpness Aware Minimization (SAM) suggests perturbing parameters before gradient calculation by a gradient ascent step to guide the optimization into parameter space regions of flat loss. While significant generalization improvements and thus reduction of overfitting could be demonstrated, the computational costs are doubled due to the additionally needed gradient calculation, making SAM unfeasible in case of limited computationally capacities. Motivated by Nesterov Accelerated Gradient (NAG) we propose Momentum-SAM (MSAM), which perturbs parameters in the direction of the accumulated momentum vector to achieve low sharpness without significant computational overhead or memory demands over SGD or Adam. We evaluate MSAM in detail and reveal insights on separable mechanisms of NAG, SAM and MSAM regarding training optimization and generalization. Code is available at https://github.com/MarlonBecker/MSAM.

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

↑