DGSAM: Domain Generalization via Individual Sharpness-Aware Minimization

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Song, Youngjun, Hwang, Youngsik, Lee, Jonghun, Lee, Heechang, Lim, Dong-Young
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866918075758018560
author Song, Youngjun
Hwang, Youngsik
Lee, Jonghun
Lee, Heechang
Lim, Dong-Young
author_facet Song, Youngjun
Hwang, Youngsik
Lee, Jonghun
Lee, Heechang
Lim, Dong-Young
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2503_23430
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle DGSAM: Domain Generalization via Individual Sharpness-Aware Minimization
Song, Youngjun
Hwang, Youngsik
Lee, Jonghun
Lee, Heechang
Lim, Dong-Young
Machine Learning
Optimization and Control
Applications
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.
title DGSAM: Domain Generalization via Individual Sharpness-Aware Minimization
topic Machine Learning
Optimization and Control
Applications
url https://arxiv.org/abs/2503.23430