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
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.
Efficient Sharpness-aware Minimization for Improved Training of Neural Networks
Centre for Frontier AI Research (CFAR), A*STAR(新加坡科技研究局前沿人工智能研究中心);National University of Singapore(新加坡国立大学);Institute of High Performance Computing (IHPC), A*STAR(新加坡科技研究局高性能计算研究所)
过度参数化的深度神经网络(DNN)通常可以实现惊人的性能,但可能会导致严重的泛化误差。最近,Foret et al.(2020)建立了损失景观的清晰度与泛化误差之间的关系,其中提出了SharpingAware Minimizer(SAM)来减轻泛化的退化。不幸的是,SAM的计算成本大约是基本优化器(如随机梯度下降(SGD))的两倍。因此,本文提出了高效的共享感知最小化器(ESAM),它提高了SAM的效率,而不牺牲其泛化性能。ESAM包括两种新颖有效的训练策略--随机权值扰动和锐度敏感数据选择。在前者中,通过在每次迭代中扰动随机选择的权重集来近似锐度度量;在后者中,仅使用对锐度敏感的明智选择的数据子集来优化SAM损失。我们提供了理论解释,为什么这些策略表现良好。我们还通过对CIFAR和ImageNet数据集的广泛实验表明,ESAM比SAM提高了效率,从需要100%的额外计算到相对于基本优化器的40%,同时保持甚至提高了测试准确度。
DiM: $f$-Divergence Minimization Guided Sharpness-Aware Optimization for Semi-supervised Medical Image Segmentation
Tsinghua University(SZ)(清华大学(深圳));University of Macau(澳门大学);Zayed University of Artificial Intelligence(扎耶德人工智能大学);Hebei University of Technology(河北工业大学);Sun Yat-sen University(中山大学)
Bilateral Sharpness-Aware Minimization for Flatter Minima
Faculty of Information Technology, Beijing University of Technology(北京工业大学信息技术学院);School of Artificial Intelligence, BeiHang University(北京航空航天大学人工智能学院);University of Chinese Academy of Sciences(中国科学院大学);Chinese Academy of Sciences (CAS)(中国科学院);Institute of Computing Technology, CAS(中国科学院计算技术研究所)
Asymptotic Unbiased Sample Sampling to Speed Up Sharpness-Aware Minimization
School of Information Science and Technology, Beijing University of Technology(北京工业大学信息科学与技术学院);Hangzhou Research Institute, School of Artificial Intelligence, Beihang University(北京航空航天大学人工智能学院杭州研究院);Nanchang Institute of Technology(南昌理工学院);Ningbo Institute of Digital Twin, Eastern Institute of Technology(东方理工大学宁波数字孪生研究院)
Provable Responsible AI and Data Analytics (PRADA) Lab(可证明负责任的人工智能和数据分析实验室);King Abdullah University of Science and Technology(国王阿卜杜勒阿齐兹科技大学);Shandong University(山东大学)
Beyond Superficial Unlearning: Sharpness-Aware Robust Erasure of Hallucinations in Multimodal LLMs
College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics(南京航空航天大学计算机科学与技术学院);Institute for AI, Tsinghua University(清华大学人工智能研究院);Huzhou University(湖州大学);Institute of Dataspace, Hefei Comprehensive National Science Center(合肥综合性国家科学中心数据空间研究院);University of Science and Technology of China(中国科学技术大学)