arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.05729cs.LGmath.OCstat.ML
收藏

清晰度感知最小化如何最小化清晰度?

How Does Sharpness-Aware Minimization Minimize Sharpness?

Tsinghua University(清华大学);Stanford University(斯坦福大学)

Kaiyue Wen, Tengyu Ma, Zhiyuan Li

摘要:

Sharpness-Aware Minimization(SAM)是一种高效的正则化技术,用于提高深度神经网络在各种设置下的泛化能力。然而,SAM的基本工作仍然难以捉摸,因为各种有趣的近似的理论表征。SAM打算惩罚模型的锐度概念,但实现了一个计算效率高的变体;此外,第三个锐度概念用于证明泛化保证。这些清晰度概念的细微差异确实会导致显著不同的经验结果。本文严格地确定了确切的清晰度概念,SAM正则化和澄清的潜在机制。我们还表明,在SAM的原始动机的两个步骤的近似单独导致不准确的局部结论,但他们的组合意外地揭示了正确的效果,当全批量梯度应用。此外,我们还证明了随机版本的SAM实际上正规化的第三个概念的锐度上面提到的,这是最有可能是首选的概念,为实际性能。这一有趣现象背后的关键机制是当应用SAM时,Hessian的梯度和顶部特征向量之间的对齐。

英文摘要:

Sharpness-Aware Minimization (SAM) is a highly effective regularization technique for improving the generalization of deep neural networks for various settings. However, the underlying working of SAM remains elusive because of various intriguing approximations in the theoretical characterizations. SAM intends to penalize a notion of sharpness of the model but implements a computationally efficient variant; moreover, a third notion of sharpness was used for proving generalization guarantees. The subtle differences in these notions of sharpness can indeed lead to significantly different empirical results. This paper rigorously nails down the exact sharpness notion that SAM regularizes and clarifies the underlying mechanism. We also show that the two steps of approximations in the original motivation of SAM individually lead to inaccurate local conclusions, but their combination accidentally reveals the correct effect, when full-batch gradients are applied. Furthermore, we also prove that the stochastic version of SAM in fact regularizes the third notion of sharpness mentioned above, which is most likely to be the preferred notion for practical performance. The key mechanism behind this intriguing phenomenon is the alignment between the gradient and the top eigenvector of Hessian when SAM is applied.

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

↑