English

ERM++: An Improved Baseline for Domain Generalization

Machine Learning 2024-12-11 v4 Computer Vision and Pattern Recognition

Abstract

Domain Generalization (DG) aims to develop classifiers that can generalize to new, unseen data distributions, a critical capability when collecting new domain-specific data is impractical. A common DG baseline minimizes the empirical risk on the source domains. Recent studies have shown that this approach, known as Empirical Risk Minimization (ERM), can outperform most more complex DG methods when properly tuned. However, these studies have primarily focused on a narrow set of hyperparameters, neglecting other factors that can enhance robustness and prevent overfitting and catastrophic forgetting, properties which are critical for strong DG performance. In our investigation of training data utilization (i.e., duration and setting validation splits), initialization, and additional regularizers, we find that tuning these previously overlooked factors significantly improves model generalization across diverse datasets without adding much complexity. We call this improved, yet simple baseline ERM++. Despite its ease of implementation, ERM++ improves DG performance by over 5\% compared to prior ERM baselines on a standard benchmark of 5 datasets with a ResNet-50 and over 15\% with a ViT-B/16. It also outperforms all state-of-the-art methods on DomainBed datasets with both architectures. Importantly, ERM++ is easy to integrate into existing frameworks like DomainBed, making it a practical and powerful tool for researchers and practitioners. Overall, ERM++ challenges the need for more complex DG methods by providing a stronger, more reliable baseline that maintains simplicity and ease of use. Code is available at \url{https://github.com/piotr-teterwak/erm_plusplus}

Keywords

Cite

@article{arxiv.2304.01973,
  title  = {ERM++: An Improved Baseline for Domain Generalization},
  author = {Piotr Teterwak and Kuniaki Saito and Theodoros Tsiligkaridis and Kate Saenko and Bryan A. Plummer},
  journal= {arXiv preprint arXiv:2304.01973},
  year   = {2024}
}

Comments

An improved baseline for Domain Generalization. WACV 2025

R2 v1 2026-06-28T09:49:27.087Z