Global Sharpness-Aware Minimization Is Suboptimal in Domain Generalization: Towards Individual Sharpness-Aware Minimization
Youngjun Song, Youngsik Hwang, Jonghun Lee, Heechang Lee, Dongyoung Lim
ICLR 2026 submission
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, we argue that the prevailing approach of applying SAM to the aggregated loss for domain generalization is fundamentally suboptimal. This ``aggregated sharpness'' objective can be deceptive, leading to convergence to fake flat minima where the total loss surface is flat, but the underlying per-domain landscapes remain sharp. To establish a more principled objective, we analyze a worst-case risk formulation that reflects the true nature of DG. Our analysis reveals that per-domain sharpness provides a valid upper bound on this risk, while aggregated sharpness does not, making it a more theoretically grounded target for robust domain generalization. Motivated by this, we propose \textcolor{blue}{\textit{Domain-wise Gradual SAM (DGSAM)}}, which applies gradual, domain-wise perturbations to effectively control per-domain sharpness in a computationally efficient manner. Extensive experiments demonstrate that DGSAM not only improves average accuracy but also reduces performance variance across domains, while incurring less computational overhead than SAM.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperadd · history
Loading the discussion…