Flatness-Aware Minimization for Domain Generalization

Xingxuan Zhang, Renzhe Xu, Han Yu, Yancheng Dong, Pengfei Tian +1 more
2/14/2026

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

Abstract

Domain generalization (DG) seeks to learn robust models that generalize well under unknown distribution shifts. As a critical aspect of DG, optimizer selection has not been explored in depth. Currently, most DG methods follow the widely used benchmark, DomainBed, and utilize Adam as the default optimizer for all datasets. However, we reveal that Adam is not necessarily the optimal choice for the majority of current DG methods and datasets. Based on the perspective of loss landscape flatness, we propose a novel approach, Flatness-Aware Minimization for Domain Generalization (FAD), which can efficiently optimize both zeroth-order and first-order flatness simultaneously for DG. We provide theoretical analyses of the FAD’s out-ofdistribution (OOD) generalization error and convergence. Our experimental results demonstrate the superiority of FAD on various DG datasets.

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{zhang2026flatnessaware,
  title  = {Flatness-Aware Minimization for Domain Generalization},
  author = {Xingxuan Zhang and Renzhe Xu and Han Yu and Yancheng Dong and Pengfei Tian and Peng Cu},
  year   = {2026},
  eprint = {2307.11108},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2307.11108},
  journal = {ICCV 2023 2023}
}

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/2307.11108.svg)](https://codeofpaper.com/paper/2307.11108)

Discussion