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

GA-SAM:一种改进泛化能力的自适应锐度感知最小化算法

GA-SAM: Gradient-Strength based Adaptive Sharpness-Aware Minimization for Improved Generalization

Peking University(北京大学)

Zhiyuan Zhang, Ruixuan Luo, Qi Su, Xu Sun

摘要:

近年来,最小化算法(SAM)在视觉任务中显示出了最新的泛化能力。它表明,平坦的极小往往意味着更好的推广能力。然而,它有一些困难,暗示SAM的一些自然语言的任务,特别是具有剧烈的梯度变化的模型,如RNN。在这项工作中,我们从一个新颖而直接的理论角度分析了局部极小值的平坦性与其推广能力之间的关系。我们提出,训练和测试分布的移动可以等效地看作是一个虚拟的参数损坏或扰动,这可以解释为什么平坦的最小值,对参数损坏或扰动具有鲁棒性,具有更好的泛化性能。在此基础上,我们提出了一个基于一致性强度的自适应锐度感知最小化(GA-SAM)算法,以帮助学习算法找到平坦的最小值,更好地推广。各种语言测试结果验证了GA-SAM算法在自然语言任务上的有效性。

英文摘要:

Recently, Sharpness-Aware Minimization (SAM) algorithm has shown state-of-the-art generalization abilities in vision tasks. It demonstrates that flat minima tend to imply better generalization abilities. However, it has some difficulty implying SAM to some natural language tasks, especially to models with drastic gradient changes, such as RNNs. In this work, we analyze the relation between the flatness of the local minimum and its generalization ability from a novel and straightforward theoretical perspective. We propose that the shift of the training and test distributions can be equivalently seen as a virtual parameter corruption or perturbation, which can explain why flat minima that are robust against parameter corruptions or perturbations have better generalization performances. On its basis, we propose a Gradient-Strength based Adaptive Sharpness-Aware Minimization (GA-SAM) algorithm to help to learn algorithms find flat minima that generalize better. Results in various language benchmarks validate the effectiveness of the proposed GA-SAM algorithm on natural language tasks.

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

↑