arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2409.13173cs.CVcs.LG
收藏

用于寻找更平坦极小值的双边锐度感知最小化

Bilateral Sharpness-Aware Minimization for Flatter Minima

Faculty of Information Technology, Beijing University of Technology(北京工业大学信息技术学院);School of Artificial Intelligence, BeiHang University(北京航空航天大学人工智能学院);University of Chinese Academy of Sciences(中国科学院大学);Chinese Academy of Sciences (CAS)(中国科学院);Institute of Computing Technology, CAS(中国科学院计算技术研究所)

Jiaxin Deng, Junbiao Pang, Baochang Zhang, Qingming Huang

AI总结:

本文提出双边SAM(BSAM),通过结合最大锐度与最小锐度构建更优平坦度指标,解决SAM平坦度指标问题,理论证明其收敛性,并在多种任务上实现更优泛化与鲁棒性。

摘要:

锐度感知最小化(SAM)通过降低最大锐度(MaxS)来提升泛化能力。尽管在实践中取得了成功,但我们通过实验发现,SAM提升泛化能力背后的MaxS面临“平坦度指标问题”(FIP),即SAM仅考虑梯度上升方向的平坦度,导致下一个最小化区域不够平坦。更好的平坦度指标(FI)能为神经网络带来更好的泛化能力,因为SAM本质上是一种贪心搜索方法。在本文中,我们提出利用训练损失与当前权重邻域内最小损失之间的差异,我们将其记为最小锐度(MinS)。通过合并MaxS和MinS,我们创建了一个更好的FI,它在优化过程中指示更平坦的方向。具体而言,我们将此FI与SAM结合,提出了双边SAM(BSAM),它能找到比SAM更平坦的极小值。理论分析证明BSAM收敛于局部极小值。大量实验表明,与原始SAM相比,BSAM在各种任务(即分类、迁移学习、人体姿态估计和网络量化)中提供了卓越的泛化性能和鲁棒性。代码公开于:https://github.com/ajiaaa/BSAM。

英文摘要:

Sharpness-Aware Minimization (SAM) enhances generalization by reducing a Max-Sharpness (MaxS). Despite the practical success, we empirically found that the MAxS behind SAM's generalization enhancements face the "Flatness Indicator Problem" (FIP), where SAM only considers the flatness in the direction of gradient ascent, resulting in a next minimization region that is not sufficiently flat. A better Flatness Indicator (FI) would bring a better generalization of neural networks. Because SAM is a greedy search method in nature. In this paper, we propose to utilize the difference between the training loss and the minimum loss over the neighborhood surrounding the current weight, which we denote as Min-Sharpness (MinS). By merging MaxS and MinS, we created a better FI that indicates a flatter direction during the optimization. Specially, we combine this FI with SAM into the proposed Bilateral SAM (BSAM) which finds a more flatter minimum than that of SAM. The theoretical analysis proves that BSAM converges to local minima. Extensive experiments demonstrate that BSAM offers superior generalization performance and robustness compared to vanilla SAM across various tasks, i.e., classification, transfer learning, human pose estimation, and network quantization.

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

↑