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

改进SAM需要重新思考其优化公式

Improving SAM Requires Rethinking its Optimization Formulation

École Polytechnique Fédérale de Lausanne (EPFL)(洛桑联邦理工学院)

Wanyun Xie, Fabian Latorre, Kimon Antonakopoulos, Thomas Pethick, Volkan Cevher

AI总结:

本文通过将SAM重新公式化为基于0-1损失的双层优化问题(BiSAM),设计下界替代损失以构建更强扰动,在保持相似计算复杂度下提升性能。

摘要:

本文重新思考了锐度感知最小化(SAM),其最初被公式化为一个零和博弈,其中网络权重和有界扰动分别尝试最小化/最大化相同的可微损失。为了从根本上改进这一设计,我们认为SAM应改用0-1损失重新公式化。作为连续松弛,我们遵循简单的传统方法,即最小化(最大化)玩家使用0-1损失的上界(下界)替代损失。这导致SAM的新公式化为一个双层优化问题,称为BiSAM。具有新设计的下界替代损失的BiSAM确实构建了更强的扰动。通过数值证据,我们表明BiSAM在性能上始终优于原始SAM及其变体,同时享有相似的计算复杂度。我们的代码可在https://github.com/LIONS-EPFL/BiSAM获取。

英文摘要:

This paper rethinks Sharpness-Aware Minimization (SAM), which is originally formulated as a zero-sum game where the weights of a network and a bounded perturbation try to minimize/maximize, respectively, the same differentiable loss. To fundamentally improve this design, we argue that SAM should instead be reformulated using the 0-1 loss. As a continuous relaxation, we follow the simple conventional approach where the minimizing (maximizing) player uses an upper bound (lower bound) surrogate to the 0-1 loss. This leads to a novel formulation of SAM as a bilevel optimization problem, dubbed as BiSAM. BiSAM with newly designed lower-bound surrogate loss indeed constructs stronger perturbation. Through numerical evidence, we show that BiSAM consistently results in improved performance when compared to the original SAM and variants, while enjoying similar computational complexity. Our code is available at https://github.com/LIONS-EPFL/BiSAM.

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

↑