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

FAM:相对平坦度感知最小化

FAM: Relative Flatness Aware Minimization

Ruhr-University Bochum(波鸿鲁尔大学);University Hospital Essen(埃森大学医院);Lund University(隆德大学);Graz University(格拉茨大学);Monash University(莫纳什大学)

Linara Adilova, Amr Abourayya, Jianning Li, Amin Dada, Henning Petzka, Jan Egger, Jens Kleesiek, Michael Kamp

AI总结:

本文提出基于相对平坦度的正则化方法FAM,仅需计算单层Hessian矩阵,解决了重参数化诅咒问题,并在多种模型与训练场景中提升泛化性能。

摘要:

已有研究表明,模型周围损失曲线的平坦度与其泛化能力之间存在经验相关性。早在1994年,Hochreiter和Schmidthuber就提出了针对平坦度进行优化的思想,随后出现了更近期且成功的锐度感知优化技术。然而,由于平坦度与泛化之间缺乏有理论依据的联系,这些方法在实践中被广泛采用的情况仍然存疑,尤其是在重参数化诅咒的背景下——神经网络的某些重参数化会改变大多数平坦度度量,但不会改变泛化能力。近期的理论工作表明,一种特定的相对平坦度度量可以与泛化建立联系,并解决重参数化诅咒问题。在本文中,我们基于这种相对平坦度推导出一个正则化项,该正则化项易于计算、快速、高效,并且适用于任意损失函数。它只需要计算网络中单个层的Hessian矩阵,这使其适用于大型神经网络,并且避免了在模型附近对损失曲面进行昂贵的映射。在广泛的实证评估中,我们表明这种相对平坦度感知最小化(FAM)在微调和标准训练中的大量应用和模型上都能改善泛化性能。我们在github上公开了代码。

英文摘要:

Flatness of the loss curve around a model at hand has been shown to empirically correlate with its generalization ability. Optimizing for flatness has been proposed as early as 1994 by Hochreiter and Schmidthuber, and was followed by more recent successful sharpness-aware optimization techniques. Their widespread adoption in practice, though, is dubious because of the lack of theoretically grounded connection between flatness and generalization, in particular in light of the reparameterization curse - certain reparameterizations of a neural network change most flatness measures but do not change generalization. Recent theoretical work suggests that a particular relative flatness measure can be connected to generalization and solves the reparameterization curse. In this paper, we derive a regularizer based on this relative flatness that is easy to compute, fast, efficient, and works with arbitrary loss functions. It requires computing the Hessian only of a single layer of the network, which makes it applicable to large neural networks, and with it avoids an expensive mapping of the loss surface in the vicinity of the model. In an extensive empirical evaluation we show that this relative flatness aware minimization (FAM) improves generalization in a multitude of applications and models, both in finetuning and standard training. We make the code available at github.

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

↑