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

K-SAM:以SGD的速度实现清晰度感知最小化

K-SAM: Sharpness-Aware Minimization at the Speed of SGD

University of Maryland(马里兰大学);New York University(纽约大学)

Renkun Ni, Ping-yeh Chiang, Jonas Geiping, Micah Goldblum, Andrew Gordon Wilson, Tom Goldstein

摘要:

最近出现了一种用于提高深度神经网络准确性的鲁棒技术--锐度感知最小化(SAM)。然而,SAM在实践中产生了很高的计算成本,需要多达两倍的计算量。SAM带来的计算挑战是因为每次迭代都需要上升和下降步骤,从而使梯度计算加倍。为了解决这一挑战,我们建议在SAM的两个阶段中仅对具有最高损失的前k个样本计算梯度。K-SAM简单且非常易于实现,同时以很少或没有额外成本的方式提供了比普通SGD显著的泛化能力。

英文摘要:

Sharpness-Aware Minimization (SAM) has recently emerged as a robust technique for improving the accuracy of deep neural networks. However, SAM incurs a high computational cost in practice, requiring up to twice as much computation as vanilla SGD. The computational challenge posed by SAM arises because each iteration requires both ascent and descent steps and thus double the gradient computations. To address this challenge, we propose to compute gradients in both stages of SAM on only the top-k samples with highest loss. K-SAM is simple and extremely easy-to-implement while providing significant generalization boosts over vanilla SGD at little to no additional cost.

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

↑