arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.14647cs.LG
收藏

一种采用锐度感知最小化的自适应策略

An Adaptive Policy to Employ Sharpness-Aware Minimization

Southern University of Science and Technology(南方科技大学);Hong Kong University of Science and Technology(香港科技大学);Peng Cheng Laboratory(鹏城实验室)

Weisen Jiang, Hansi Yang, Yu Zhang, James Kwok

AI总结:

针对SAM训练成本翻倍的问题,提出基于损失景观几何的自适应采用策略及两种高效算法,理论保证收敛速率,实验验证其效率与有效性。

摘要:

锐度感知最小化(Sharpness-aware minimization, SAM)通过最小-最大优化寻找平坦极小值,已被证明有助于提升模型泛化能力。但由于每次SAM更新需计算两次梯度,其计算成本与训练时间均为标准经验风险最小化(empirical risk minimization, ERM)的两倍。现有前沿方法通过随机或周期性切换SAM与ERM更新,降低SAM更新占比从而加速SAM。本文设计了一种基于损失景观几何特征的自适应SAM采用策略,提出AE-SAM和AE-LookSAM两种高效算法。理论证明AE-SAM与SAM收敛速率相同。在多个数据集和架构上的实验结果表明,该自适应策略兼具效率与有效性。

英文摘要:

Sharpness-aware minimization (SAM), which searches for flat minima by min-max optimization, has been shown to be useful in improving model generalization. However, since each SAM update requires computing two gradients, its computational cost and training time are both doubled compared to standard empirical risk minimization (ERM). Recent state-of-the-arts reduce the fraction of SAM updates and thus accelerate SAM by switching between SAM and ERM updates randomly or periodically. In this paper, we design an adaptive policy to employ SAM based on the loss landscape geometry. Two efficient algorithms, AE-SAM and AE-LookSAM, are proposed. We theoretically show that AE-SAM has the same convergence rate as SAM. Experimental results on various datasets and architectures demonstrate the efficiency and effectiveness of the adaptive policy.

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

↑