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

探索锐度感知最小化算法在分布外泛化中的作用

Towards Understanding the Role of Sharpness-Aware Minimization Algorithms for Out-of-Distribution Generalization

University of Illinois, Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Samuel Schapiro, Han Zhao

AI总结:

本文研究SAM算法在OOD泛化中的作用,通过零样本OOD泛化和渐进域适应场景的实验表明SAM变体优于Adam基线,并推导相关泛化界,发现其理论与实证存在脱节,为后续研究提供方向。

摘要:

近年来,锐度感知最小化(SAM)作为一种通过最小化锐度来提升泛化能力的方法备受关注,而锐度与泛化能力的相关性已得到广泛认可。自SAM首次提出以来,众多变体被开发以提高其准确性和效率,但相关比较主要局限于独立同分布(i.i.d.)场景。本文针对SAM在分布外(OOD)泛化中的表现展开研究。首先,我们在零样本OOD泛化任务中对8种SAM变体进行全面比较,结果显示原始SAM比Adam基线平均提升4.76%,性能最强的SAM变体比Adam基线平均提升8.01%。随后,我们基于锐度为该场景推导了OOD泛化界。接下来,我们将SAM的研究扩展至渐进域适应(GDA)场景——这是另一种OOD泛化形式,通过在源域和目标域之间构建中间域,并在中间域上进行迭代自训练以降低目标域误差。实验结果表明,在该场景中原始SAM在各实验数据集上比Adam基线平均提升0.82%,性能最强的SAM变体比Adam基线平均提升1.52%。我们进一步推导了SAM在GDA场景下的泛化界,发现其渐近性能并不优于现有GDA文献中自训练方法的泛化界。这凸显了SAM的理论合理性与实证性能之间的进一步脱节,正如近期研究指出的,低锐度本身无法完全解释SAM的泛化优势。最后,我们为未来SAM在OOD场景下的更紧密理论分析提供了若干潜在方向。

英文摘要:

Recently, sharpness-aware minimization (SAM) has emerged as a promising method to improve generalization by minimizing sharpness, which is known to correlate well with generalization ability. Since the original proposal of SAM, many variants of SAM have been proposed to improve its accuracy and efficiency, but comparisons have mainly been restricted to the i.i.d. setting. In this paper we study SAM for out-of-distribution (OOD) generalization. First, we perform a comprehensive comparison of eight SAM variants on zero-shot OOD generalization, finding that the original SAM outperforms the Adam baseline by $4.76\%$ and the strongest SAM variants outperform the Adam baseline by $8.01\%$ on average. We then provide an OOD generalization bound in terms of sharpness for this setting. Next, we extend our study of SAM to the related setting of gradual domain adaptation (GDA), another form of OOD generalization where intermediate domains are constructed between the source and target domains, and iterative self-training is done on intermediate domains, to improve the overall target domain error. In this setting, our experimental results demonstrate that the original SAM outperforms the baseline of Adam on each of the experimental datasets by $0.82\%$ on average and the strongest SAM variants outperform Adam by $1.52\%$ on average. We then provide a generalization bound for SAM in the GDA setting. Asymptotically, this generalization bound is no better than the one for self-training in the literature of GDA. This highlights a further disconnection between the theoretical justification for SAM versus its empirical performance, with recent work finding that low sharpness alone does not account for all of SAM's generalization benefits. For future work, we provide several potential avenues for obtaining a tighter analysis for SAM in the OOD setting.

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

↑