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

领域启发的锐度感知最小化在领域偏移下的应用

Domain-Inspired Sharpness-Aware Minimization Under Domain Shifts

Cooperative Medianet Innovation Center(合作 Medianet 创新中心);Shanghai Jiao Tong University(上海交通大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)

Ruipeng Zhang, Ziqing Fan, Jiangchao Yao, Ya Zhang, Yanfeng Wang

AI总结:

本文提出DISAM算法,通过最小化领域损失方差实现弹性梯度校准,解决SAM在领域偏移下的收敛不一致问题,实现更快收敛和更好泛化,并在领域泛化基准和参数高效微调中表现优越。

摘要:

本文提出了一种用于领域偏移下优化的领域启发的锐度感知最小化(DISAM)算法。该算法的动机源于SAM在不同领域间收敛程度的不一致性,这种不一致性会导致优化偏向某些领域,从而损害整体收敛。为解决这一问题,我们在锐度估计中考虑了领域级别的收敛一致性,以防止对优化较差的领域产生过强(或对优化较好的领域产生不足)的扰动。具体而言,DISAM引入了最小化领域损失方差的约束,使得在扰动生成过程中能够进行弹性梯度校准:当某个领域的损失优化水平高于平均水平时,对该领域的梯度扰动将自动减弱,反之亦然。在此机制下,我们从理论上证明,当出现不一致收敛时,DISAM能够实现更快的整体收敛和更好的泛化性能。在多个领域泛化基准上的广泛实验表明,DISAM优于一系列最先进的方法。此外,我们还展示了DISAM在与预训练模型结合进行参数高效微调时的优越效率。源代码已发布在https://github.com/MediaBrain-SJTU/DISAM。

英文摘要:

This paper presents a Domain-Inspired Sharpness-Aware Minimization (DISAM) algorithm for optimization under domain shifts. It is motivated by the inconsistent convergence degree of SAM across different domains, which induces optimization bias towards certain domains and thus impairs the overall convergence. To address this issue, we consider the domain-level convergence consistency in the sharpness estimation to prevent the overwhelming (deficient) perturbations for less (well) optimized domains. Specifically, DISAM introduces the constraint of minimizing variance in the domain loss, which allows the elastic gradient calibration in perturbation generation: when one domain is optimized above the averaging level \textit{w.r.t.} loss, the gradient perturbation towards that domain will be weakened automatically, and vice versa. Under this mechanism, we theoretically show that DISAM can achieve faster overall convergence and improved generalization in principle when inconsistent convergence emerges. Extensive experiments on various domain generalization benchmarks show the superiority of DISAM over a range of state-of-the-art methods. Furthermore, we show the superior efficiency of DISAM in parameter-efficient fine-tuning combined with the pretraining models. The source code is released at https://github.com/MediaBrain-SJTU/DISAM.

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

↑