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

一种通用的锐度感知最小化算法类

A Universal Class of Sharpness-Aware Minimization Algorithms

MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);MIT LIDS(麻省理工学院领导力与决策科学研究所);MIT(麻省理工学院);TU Munich(慕尼黑技术大学);Google DeepMind(谷歌DeepMind)

Behrooz Tahmasebi, Ashkan Soleymani, Dara Bahri, Stefanie Jegelka, Patrick Jaillet

AI总结:

本文提出了一种通用的锐度感知最小化算法类,通过引入新的锐度度量,解决了神经网络中参数不变性问题,并展示了Frob-SAM和Det-SAM等实例。

摘要:

最近,开发用于过参数化模型的优化算法引起了广泛关注,因为实现泛化被认为需要具有合适偏置的算法。这种兴趣集中在最小化原始损失函数的锐度上;Sharpness-Aware Minimization(SAM)算法已被证明是有效的。然而,大多数文献只考虑几种锐度度量,例如训练损失Hessian的最大特征值或迹,这可能在非凸优化场景(如神经网络)中无法产生有意义的见解。此外,许多锐度度量对神经网络中的参数不变性敏感,在参数重新缩放时会显著放大。受这些挑战的启发,本文介绍了一种新的锐度度量类,从而得到新的锐度感知目标函数。我们证明这些度量是普遍表达的,允许任何训练损失Hessian矩阵的函数通过适当的超参数表示。此外,我们表明所提出的目标函数明确偏向于最小化其对应的锐度度量,并展示了它们如何允许在具有参数不变性(如尺度不变性)的模型中有意义的应用。最后,作为我们提出的一般框架的实例,我们提出了Frob-SAM和Det-SAM,分别专门用于最小化训练损失Hessian的Frobenius范数和行列式。我们还通过广泛的实验展示了我们一般框架的优势。

英文摘要:

Recently, there has been a surge in interest in developing optimization algorithms for overparameterized models as achieving generalization is believed to require algorithms with suitable biases. This interest centers on minimizing sharpness of the original loss function; the Sharpness-Aware Minimization (SAM) algorithm has proven effective. However, most literature only considers a few sharpness measures, such as the maximum eigenvalue or trace of the training loss Hessian, which may not yield meaningful insights for non-convex optimization scenarios like neural networks. Additionally, many sharpness measures are sensitive to parameter invariances in neural networks, magnifying significantly under rescaling parameters. Motivated by these challenges, we introduce a new class of sharpness measures in this paper, leading to new sharpness-aware objective functions. We prove that these measures are \textit{universally expressive}, allowing any function of the training loss Hessian matrix to be represented by appropriate hyperparameters. Furthermore, we show that the proposed objective functions explicitly bias towards minimizing their corresponding sharpness measures, and how they allow meaningful applications to models with parameter invariances (such as scale-invariances). Finally, as instances of our proposed general framework, we present \textit{Frob-SAM} and \textit{Det-SAM}, which are specifically designed to minimize the Frobenius norm and the determinant of the Hessian of the training loss, respectively. We also demonstrate the advantages of our general framework through extensive experiments.

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

↑