Abstract
We investigate the fundamental performance limitations of learning algorithms in several Domain Generalisation (DG) settings. Motivated by the difficulty with which previously proposed methods have in reliably outperforming Empirical Risk Minimisation (ERM), we derive upper bounds on the excess risk of ERM, and lower bounds on the minimax excess risk. Our findings show that in all the DG settings we consider, it is not possible to significantly outperform ERM. Our conclusions are limited not only to the standard covariate shift setting, but also two other settings with additional restrictions on how domains can differ. The first constrains all domains to have a non-trivial bound on pairwise distances, as measured by a broad class of integral probability metrics. The second alternate setting considers a restricted class of DG problems where all domains have the same underlying support. Our analysis also suggests how different strategies can be used to optimise the performance of ERM in each of these DG setting. We also experimentally explore hypotheses suggested by our theoretical analysis.
Introduction
Machine learning models often suffer from performance degradation when the test data distribution (the "target domain") differs from the training data distribution (the "source domains"). This challenge, known as domain shift, is the central focus of Domain Generalization (DG). While dozens of specialized algorithms—such as Invariant Risk Minimization (IRM) or Group Distributionally Robust Optimization (GroupDRO)—have been proposed to solve this, large-scale empirical benchmarks have recently shown that simple Empirical Risk Minimization (ERM) often performs just as well, if not better, when evaluated fairly.
This paper provides a theoretical "reality check" for the field, asking whether there is a fundamental reason why beating ERM is so difficult. By deriving matching upper and lower bounds on risk, the authors demonstrate that in most standard DG settings, ERM is already asymptotically optimal.
Theoretical Framework and Methodology
To analyze the limits of DG, the authors utilize statistical learning theory, specifically Rademacher complexity, to quantify "excess risk"—the gap between a model's actual performance and the theoretical optimum. The study examines three increasingly constrained settings:
- Covariate Shift: The most general setting where feature distributions change but the feature-to-label relationship remains constant.
- Bounded Integral Probability Metric (IPM): A setting where domains are assumed to have a degree of similarity.
- Bounded Density Ratio: A setting where all domains share the same underlying support.
As illustrated in Figure 1, the DG problem involves $n$ training domains, each providing $m$ samples. The theoretical analysis reveals that for the standard covariate shift setting, the upper bound for ERM and the minimax lower bound for any possible algorithm scale identically: $O(1/\sqrt{mn} + 1/\sqrt{n})$. This finding implies that no general-purpose algorithm can fundamentally improve upon the scaling behavior of ERM.
Key Insights
The Importance of Domain Variety
The derived bounds highlight that generalization to new domains depends heavily on $n$ (the number of training domains). If $n$ is small, the risk of overfitting to specific training environments is high, regardless of the total amount of data ($m \times n$). This suggests that the variety of environments is often more critical than the sheer volume of data within those environments.
Architecture Over Objective
A central conclusion of the work is that researchers should focus on the hypothesis class (model architecture) rather than inventing new training objectives. If a model architecture possesses built-in invariances to the expected shifts (e.g., a CNN's translation invariance), it requires significantly fewer domains to generalize effectively. In contrast, a model lacking these priors will struggle to generalize even with sophisticated DG loss functions.
Experimental Illustration
To validate the theoretical findings, the authors conducted experiments using a modified MNIST dataset. Digits were embedded into a larger grid, where each unique placement constituted a different domain. They compared a small CNN against a Multi-Layer Perceptron (MLP).
- CNN Performance: Because the CNN architecture is inherently invariant to translation, it achieved low excess risk with very few training domains.
- MLP Performance: The MLP, lacking this structural prior, converged much more slowly and required exposure to a significantly larger number of domains to reach comparable performance.
These results reinforce the idea that standard regularization and well-specified architectures are the most effective tools for cross-domain performance.
Conclusion and Future Directions
The analysis suggests that for general-purpose DG, ERM is a robust and often optimal choice. To move beyond the limitations of ERM, the authors suggest shifting focus toward:
- Heavy Regularization: Since model complexity has a high impact on transfer risk, standard regularization techniques remain vital.
- Well-Specified Hypothesis Classes: Designing architectures that reflect the specific invariances of the task.
- Data-Driven Invariances: Exploring how self-supervised learning or meta-learning can be used to "learn" the correct hypothesis classes from auxiliary data, rather than relying on manual architecture engineering.
Summary updated