Lune

ICML2026Top-tier venue

Navigating the Flatlands: Dual Adaptive Sharpness-Aware Minimization for Domain Generalization

Junwen He, Yang He, Lebing Zheng, Zirui Yin, Hong-Yu Zhang, Yulong Wang

Abstract

Finding flat minima in the loss landscape is a key strategy for Domain Generalization (DG). However, its effectiveness is often limited by two crucial challenges. 1) Domain Shift: Existing methods like Sharpness-Aware Minimization (SAM) apply a uniform optimization strategy across all domains, overlooking the differences of the learning difficulties among multiple domains and thus performing poorly on challenging domains. 2) Anisotropic Sharpness: By perturbing parameters along a single gradient direction, SAM and its variants ignore multi-directional flatness, making the model converge to minima that remain sharp in other directions. The combined challenges make it more difficult for the model to find truly robust solutions in multi-domain scenarios. To overcome these limitations, we propose the Dual Adaptive Sharpness-Aware Minimization (DA-SAM), which comprises two key modules: Dynamic Adaptive Scaling (DAS) module and Adaptive Multi-Directional Flattening (AMDF) module. First, to tackle the domain shift problem, the DAS module computes the real-time loss on each domain to adaptively generate domain-specific scaling factors that guide the generation of perturbation directions. Second, the AMDF module calculates local flatness by generating multiple directions to simulate perturbations in the parameter space. Based on the learned local flatness metric, it dynamically adjusts the perturbation step size to guide the model parameters to be away from anisotropic sharp regions. Crucially, DAS provides domain-level guidance that makes AMDF’s multi-directional geometric exploration more targeted and effective. Extensive experiments on five DG benchmarks demonstrate the effectiveness of our DA-SAM algorithm.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Out-of-Distribution Generalization via Risk Extrapolation (REx) cites In Search of Lost Domain Generalization
  • In Search of Lost Domain Generalization cites Moment Matching for Multi-Source Domain Adaptation
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on26

  1. Moment Matching for Multi-Source Domain AdaptationXingchao Peng, Qinxun Bai, Xide Xia, Zijun Huang et al.ICCV 2019 · 2,239 citations
  2. Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 citations
  3. Distributionally Robust Neural NetworksShiori Sagawa, Pang Wei Koh, Tatsunori B. Hashimoto, Percy LiangICLR 2020 · 1,578 citations
  4. In Search of Lost Domain GeneralizationIshaan Gulrajani, David Lopez-PazICLR 2021 · 1,416 citations
  5. Out-of-Distribution Generalization via Risk Extrapolation (REx)David Krueger, Ethan Caballero, Jörn-Henrik Jacobsen, Amy Zhang et al.ICML 2021 · 1,163 citations

Related papers

  1. Sharpness-Aware Gradient Matching for Domain GeneralizationPengfei Wang, Zhaoxiang Zhang, Zhen Lei, Lei ZhangCVPR 2023
  2. Domain-Inspired Sharpness-Aware Minimization Under Domain ShiftsRuipeng Zhang, Ziqing Fan, Jiangchao Yao, Ya Zhang et al.ICLR 2024 · 12 citations
  3. Unknown Domain Inconsistency Minimization for Domain GeneralizationSeungjae Shin, HeeSun Bae, Byeonghu Na, Yoon-Yeong Kim et al.ICLR 2024 · 10 citations
  4. Flatness-Aware Minimization for Domain GeneralizationXingxuan Zhang, Renzhe Xu, Han Yu, Yancheng Dong et al.ICCV 2023 · 37 citations
  5. An Adaptive Policy to Employ Sharpness-Aware MinimizationWeisen Jiang, Hansi Yang, Yu Zhang, James T. KwokICLR 2023 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines