NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Limitations of General Purpose Domain Generalisation Methods

Henry Gouk, Ondrej Bohdal, Da Li, Timothy Hospedales

TL;DR

Why do complex Domain Generalization (DG) algorithms consistently fail to beat standard Empirical Risk Minimization (ERM) in benchmarks? This paper provides the theoretical answer: in three common DG settings, ERM already achieves the optimal minimax error scaling rate, proving that no general-purpose algorithm can substantially outperform it without additional structural assumptions.

What Problem Does This Paper Address?

Machine learning models notoriously degrade when deployed on data from a different distribution than their training set. Domain Generalization (DG) attempts to solve this by leveraging data from multiple distinct training "domains" to learn a model that generalizes to unseen domains at test time.

Figure 1: A plate diagram describing an overview of the Domain Generalisation data generation process. The environment—a distribution over domains—is represented by E. During the training phase, n domains, P1 to Pn, are sampled from E. From each of these domains we sample m training points, leading to a total of mn training points. At test time, the model will encounter an indeterminate number of domains, so we do not index the P nodes. From each of these domains, unlabelled points are sampled and the model is required to produce an estimate of the corresponding label.

Over the years, researchers have proposed a dizzying array of DG methods, including specialized architectures, domain-invariant regularizers, and data augmentation strategies. However, recent large-scale empirical evaluations (like the famous DomainBed benchmark) delivered a sobering realization: none of these sophisticated methods reliably outperform Empirical Risk Minimization (ERM)—the naive baseline that simply pools all training domains together and trains a standard model. This paper addresses the fundamental question: Is ERM's resilience due to poor hyperparameter tuning of complex methods, or is there a fundamental theoretical limit preventing any algorithm from beating ERM?

Methods

The authors tackle this question using statistical learning theory, specifically focusing on Rademacher complexity to bound the "excess risk" (the performance gap between a learned model and the theoretical optimal model).

They derive two types of bounds for three distinct DG settings:

  1. Upper bounds on the excess risk of ERM.
  2. Minimax lower bounds, which define the absolute best possible performance any learning algorithm could achieve in the worst-case scenario for that setting.

By comparing the scaling behavior of these upper and lower bounds, they can determine if there is any mathematical "room" for a clever algorithm to beat ERM.

The three settings analyzed are:

  • Covariate Shift: The conditional probability of the label given the features $P(y|x)$ remains constant across domains, but the marginal feature distribution $P(x)$ shifts.
  • Bounded Integral Probability Metric (IPM): A more constrained setting where the distance between any two domains is strictly bounded by a metric like Total Variation or Maximum Mean Discrepancy (MMD).
  • Bounded Density Ratio: A setting where all domains share identical support, meaning any data point possible in one domain is also possible in another, albeit with different probabilities.

Datasets

To validate their theoretical insights, the authors use a modified version of the MNIST handwritten digit dataset. They embed the original $28 \times 28$ images into a larger $64 \times 64$ grid. Each unique pixel placement acts as a separate domain (out of 1,369 possible domains). Additionally, they introduce controlled domain shifts by applying random rotations with a probability $\epsilon$.

Key Insights and Ideas

  • The Optimality of Naivety: In the standard covariate shift setting, the excess risk for ERM scales at a rate of $\mathcal{O}(1/\sqrt{mn} + 1/\sqrt{n})$, where $m$ is the number of samples per domain and $n$ is the number of domains. Crucially, the minimax lower bound scales at the exact same rate. This means ERM is already minimax optimal; no general-purpose algorithm can fundamentally beat its scaling behavior.
  • In-Domain vs. Cross-Domain Regularization: The theory reveals that both in-domain generalization and cross-domain generalization are governed by the exact same complexity terms. Consequently, standard regularizers designed for i.i.d. data automatically improve cross-domain generalization.
  • The Power of Inductive Biases: In the bounded IPM setting, the authors show that if a hypothesis class is inherently invariant to the transformations causing the domain shift, the number of training domains required to generalize drops drastically.

Key Results

  • Theoretical Alignment: Across all three settings (Covariate Shift, Bounded IPM, and Bounded Density Ratio), the worst-case upper bounds of ERM match the scaling behavior of the best-case minimax lower bounds.
  • CNN vs. MLP Experiment: In the modified MNIST experiments, a Convolutional Neural Network (CNN) utilizing global average pooling inherently possesses translation invariance. When evaluated across shifting domains (translations), the CNN minimizes excess risk with very few training domains. In contrast, a Multi-Layer Perceptron (MLP), which lacks this built-in invariance, converges significantly slower regardless of the number of domains it sees. This confirms that choosing the right hypothesis class (inductive bias) matters far more than inventing a new DG training objective.

Limitations and Future Work

The paper's conclusions are restricted to general-purpose DG methods—objectives designed to be applied to any neural network out of the box. It does not rule out the success of methods that exploit specific causal structures or explicit domain knowledge.

For future work, the authors suggest shifting focus away from designing complex general-purpose DG objectives. Instead, the community should focus on data-driven approaches to automatically learn or define appropriate hypothesis classes with built-in invariances, leveraging auxiliary data through techniques like self-supervised transfer learning or meta-learning.

Summary updated

BibTeX
@misc{gouk2022limitations,
  author = {Henry Gouk and Ondrej Bohdal and Da Li and Timothy Hospedales},
  title = {{On the Limitations of General Purpose Domain Generalisation Methods}},
  year = {2022},
  eprint = {2202.00563},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.00563},
}
Figure