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

用于领域泛化的锐度感知梯度匹配

Sharpness-Aware Gradient Matching for Domain Generalization

The Hong Kong Polytechnic University(香港理工大学);Center for Artificial Intelligence and Robotics(人工智能与机器人中心);HKISI CAS(中国科学院香港创新研究院);State Key Laboratory of Multimodal Artificial Intelligence Systems(多模态人工智能系统全国重点实验室);CASIA(中国科学院自动化研究所)

Pengfei Wang, Zhaoxiang Zhang, Zhen Lei, Lei Zhang

摘要:

领域泛化(DG)的目标是增强从源领域学习到其他未知领域的模型的泛化能力。最近开发的锐度感知最小化(SAM)方法旨在通过最小化损失景观的锐度度量来实现这一目标。虽然SAM及其变体已经展示了令人印象深刻的DG性能,但它们可能并不总是收敛到具有小损耗值的期望平坦区域。本文提出了两个条件来保证模型能够以较小的损失收敛到一个平坦的最小值,并提出了一种算法SAGM(Sharpness-Aware Gradient Matching)来满足这两个条件以提高模型的泛化能力。具体地,SAGM的优化目标将同时最小化经验风险、扰动损失(即,参数空间中邻域内的最大损失)以及它们之间的间隙。通过隐式调整经验风险和扰动损失之间的梯度方向,SAGM在不增加计算成本的情况下提高了SAM及其变体的泛化能力。大量的实验结果表明,我们提出的SAGM方法始终优于国家的最先进的方法在五个DG基准,包括PACS,VLCS,THEREHome,TerraIncognita和DomainNet。代码可在https://github.com/Wang-pengfei/SAGM上获得。

英文摘要:

The goal of domain generalization (DG) is to enhance the generalization capability of the model learned from a source domain to other unseen domains. The recently developed Sharpness-Aware Minimization (SAM) method aims to achieve this goal by minimizing the sharpness measure of the loss landscape. Though SAM and its variants have demonstrated impressive DG performance, they may not always converge to the desired flat region with a small loss value. In this paper, we present two conditions to ensure that the model could converge to a flat minimum with a small loss, and present an algorithm, named Sharpness-Aware Gradient Matching (SAGM), to meet the two conditions for improving model generalization capability. Specifically, the optimization objective of SAGM will simultaneously minimize the empirical risk, the perturbed loss (i.e., the maximum loss within a neighborhood in the parameter space), and the gap between them. By implicitly aligning the gradient directions between the empirical risk and the perturbed loss, SAGM improves the generalization capability over SAM and its variants without increasing the computational cost. Extensive experimental results show that our proposed SAGM method consistently outperforms the state-of-the-art methods on five DG benchmarks, including PACS, VLCS, OfficeHome, TerraIncognita, and DomainNet. Codes are available at https://github.com/Wang-pengfei/SAGM.

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

↑