Towards a Better Evaluation of Out-of-Domain Generalization
Duhun Hwang, Suhyun Kang, Moonjung Eo, Jimyeong Kim, Wonjong Rhee
TL;DR
This paper challenges the long-standing reliance on the average evaluation metric for domain generalization by introducing the worst+gap measure, which jointly accounts for the worst-case performance and the spread across environments. The authors provide two theoretical results—one under a uniform-risk assumption and another with a decreasing risk range—that bound the ideal DG performance using the worst and gap components, thereby grounding the new measure. They validate the approach across multiple, increasingly realistic DG datasets (including SR-CMNIST, C-Cats&Dogs, L-CIFAR10, and real-world PACS/VLCS corruptions) and demonstrate that worst+gap consistently correlates more strongly with the ideal measure and better supports selecting the truly best DG algorithm. The work also introduces five new datasets to study DG measures and discusses practical implications for algorithm selection, asymptotics with more environments, and ERM limitations. Overall, worst+gap offers a robust and practically useful alternative for evaluating and advancing out-of-domain generalization.
Abstract
The objective of Domain Generalization (DG) is to devise algorithms and models capable of achieving high performance on previously unseen test distributions. In the pursuit of this objective, average measure has been employed as the prevalent measure for evaluating models and comparing algorithms in the existing DG studies. Despite its significance, a comprehensive exploration of the average measure has been lacking and its suitability in approximating the true domain generalization performance has been questionable. In this study, we carefully investigate the limitations inherent in the average measure and propose worst+gap measure as a robust alternative. We establish theoretical grounds of the proposed measure by deriving two theorems starting from two different assumptions. We conduct extensive experimental investigations to compare the proposed worst+gap measure with the conventional average measure. Given the indispensable need to access the true DG performance for studying measures, we modify five existing datasets to come up with SR-CMNIST, C-Cats&Dogs, L-CIFAR10, PACS-corrupted, and VLCS-corrupted datasets. The experiment results unveil an inferior performance of the average measure in approximating the true DG performance and confirm the robustness of the theoretically supported worst+gap measure.
