DGSAM: Domain Generalization via Individual Sharpness-Aware Minimization

Youngjun Song, Youngsik Hwang, Jonghun Lee, Heechang Lee, Dong-Young Lim
3/30/2025
stat.MLcs.LGmath.OC

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Domain generalization (DG) aims to learn models that perform well on unseen target domains by training on multiple source domains. Sharpness-Aware Minimization (SAM), known for finding flat minima that improve generalization, has therefore been widely adopted in DG. However, our analysis reveals that SAM in DG may converge to \textit{fake flat minima}, where the total loss surface appears flat in terms of global sharpness but remains sharp with respect to individual source domains. To understand this phenomenon more precisely, we formalize the average worst-case domain risk as the maximum loss under domain distribution shifts within a bounded divergence, and derive a generalization bound that reveals the limitations of global sharpness-aware minimization. In contrast, we show that individual sharpness provides a valid upper bound on this risk, making it a more suitable proxy for robust domain generalization. Motivated by these insights, we shift the DG paradigm toward minimizing individual sharpness across source domains. We propose \textit{Decreased-overhead Gradual SAM (DGSAM)}, which applies gradual domain-wise perturbations in a computationally efficient manner to consistently reduce individual sharpness. Extensive experiments demonstrate that DGSAM not only improves average accuracy but also reduces performance variance across domains, while incurring less computational overhead than SAM.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{song2025dgsam,
  title  = {DGSAM: Domain Generalization via Individual Sharpness-Aware Minimization},
  author = {Youngjun Song and Youngsik Hwang and Jonghun Lee and Heechang Lee and Dong-Young Lim},
  year   = {2025},
  eprint = {2503.23430},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.23430v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.23430.svg)](https://codeofpaper.com/paper/2503.23430)

Discussion