arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.12666cs.LGcs.CV
收藏

显式特征值正则化提升锐度感知最小化

Explicit Eigenvalue Regularization Improves Sharpness-Aware Minimization

Monash University(莫纳什大学);VinAI Research(VinAI研究院)

Haocheng Luo, Tuan Truong, Tung Pham, Mehrtash Harandi, Dinh Phung, Trung Le

AI总结:

本文分析SAM训练动态,提出Eigen-SAM算法,通过显式对齐扰动向量与主导特征向量以正则化Hessian最大特征值,提升泛化性能。

摘要:

锐度感知最小化(SAM)因其在各类任务中提升泛化能力的有效性而受到广泛关注。然而,其基本原理仍鲜为人知。在本工作中,我们利用Hessian矩阵的最大特征值作为锐度的度量来分析SAM的训练动态,并提出一个三阶随机微分方程(SDE),揭示其动态由二阶和三阶项的复杂混合驱动。我们表明,扰动向量与最大特征向量之间的对齐对于SAM在正则化锐度方面的有效性至关重要,但发现这种对齐在实践中往往不足,限制了SAM的效率。基于这些见解,我们引入了Eigen-SAM算法,该算法通过将扰动向量与主导特征向量对齐,明确旨在正则化Hessian的最大特征值。我们通过全面的实验验证了我们的理论的有效性以及所提方法的实际优势。代码可在https://github.com/RitianLuo/EigenSAM获取。

英文摘要:

Sharpness-Aware Minimization (SAM) has attracted significant attention for its effectiveness in improving generalization across various tasks. However, its underlying principles remain poorly understood. In this work, we analyze SAM's training dynamics using the maximum eigenvalue of the Hessian as a measure of sharpness, and propose a third-order stochastic differential equation (SDE), which reveals that the dynamics are driven by a complex mixture of second- and third-order terms. We show that alignment between the perturbation vector and the top eigenvector is crucial for SAM's effectiveness in regularizing sharpness, but find that this alignment is often inadequate in practice, limiting SAM's efficiency. Building on these insights, we introduce Eigen-SAM, an algorithm that explicitly aims to regularize the top Hessian eigenvalue by aligning the perturbation vector with the leading eigenvector. We validate the effectiveness of our theory and the practical advantages of our proposed approach through comprehensive experiments. Code is available at https://github.com/RitianLuo/EigenSAM.

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

↑