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 · Submission to ICLR 2025 · Rejected

TL;DR

Despite hundreds of papers proposing specialized Domain Generalisation (DG) algorithms, plain Empirical Risk Minimisation (ERM) remains notoriously difficult to beat. This paper explains why: by deriving matching upper bounds for ERM and minimax lower bounds for any learning algorithm, the authors prove that ERM already achieves the optimal statistical convergence rate across multiple DG settings. The real path to better out-of-domain generalisation is not designing new algorithms, but applying heavier regularisation and embedding task-specific invariances directly into the hypothesis class.

What Problem Does This Paper Address?

Standard supervised machine learning assumes that training and test data are drawn independently from the exact same distribution (the i.i.d. assumption). In practice, models deployed "in the wild" encounter new, unseen environments—a phenomenon known as domain shift. The Domain Generalisation (DG) paradigm aims to address this by training models on multiple source domains so they can generalize to unseen target domains without target-domain adaptation.

Dozens of complex DG methods (such as Invariant Risk Minimisation and domain-adversarial networks) have claimed robustness to domain shift. However, large-scale empirical benchmarks like DomainBed demonstrated that virtually none of these methods consistently beat vanilla ERM (training on pooled data while ignoring domain labels). This paper tackles the fundamental questions behind this empirical puzzle:

  1. What are the fundamental statistical limits of domain generalisation?
  2. Can any algorithm fundamentally outperform ERM?
  3. Under what conditions is out-of-domain generalisation feasible with a realistic number of training domains?

Methods

The authors analyze DG using statistical learning theory, formalizing the data generation as a two-level hierarchical process: an environment distribution $\mathcal{E}$ generates $n$ domains $P_1, \dots, P_n$, from each of which $m$ examples are drawn.

They derive upper bounds on ERM’s excess risk and lower bounds on the minimax excess risk across three distinct problem settings:

  1. The General (Unconstrained) Setting: Domains can have arbitrarily different marginal input distributions. The authors extend Rademacher complexity to hierarchical distributions to bound sample and domain overfitting.
  2. The Bounded Integral Probability Metric (IPM) Setting: Pairwise divergence between domains is bounded by $\sigma$ under an IPM (e.g., Total Variation, Maximum Mean Discrepancy, or discrepancy distance).
  3. The Bounded Density Ratio Setting: All domains share the same support, and their density ratios are bounded by $\rho \ge 1$.

Datasets

The authors validate their theoretical insights using both standard benchmarks and a controlled synthetic experiment:

  • DomainBed Benchmarks: Six established multi-domain image datasets—RotatedMNIST, PACS, VLCS, OfficeHome, SVIRO, and TerraIncognita—evaluated using linear SVMs on pre-computed DINO (Vision Transformer ViT-B/8) embeddings (and raw pixels for RotatedMNIST).
  • Synthetic Invariance Benchmark (Modified MNIST): 28×28 MNIST digits placed onto a larger 64×64 grid (yielding 1,369 possible spatial positions acting as separate domains: 1,000 train, 169 validation, 200 test), with an additional rotation component applied with probability $\epsilon$.

Key Insights and Ideas

  • ERM is Minimax Optimal: In all three settings, the worst-case scaling rate of ERM matches the minimax lower bound of the best possible algorithm. For unconstrained DG, both scale as $\Theta(1/\sqrt{mn} + 1/\sqrt{n})$. Searching for a general-purpose algorithmic alternative to ERM is statistically futile.
  • DG Demands Stricter Regularisation: Out-of-domain error depends on two Rademacher complexity terms: one for sample size $mn$, and an extra term scaling with domain count $n$. Because the risk of domain-level overfitting is higher, the optimal complexity for cross-domain generalization is strictly lower than for in-domain generalization.
  • How to Actually Beat the Domain Bottleneck:
  • Bounded Density Ratios: If domains share support and the model interpolates zero training error, the dependence on domain count $n$ vanishes ($\mathcal{O}(1/\sqrt{mn})$).
  • Bounded IPM via Invariant Architectures: If a hypothesis class exhibits $(G, \epsilon)$-group invariance (e.g., translation invariance in CNNs), domain divergence is constrained by $\epsilon$, allowing fast convergence even with very few source domains.

Key Results

  • Empirical Regularisation Shift: Across all six DomainBed benchmarks, grid-searching the linear SVM regularization parameter $C$ showed that optimal test performance on unseen target domains consistently required smaller $C$ (stronger regularization) than optimal performance on seen training domains.
  • Architecture and Invariance over Algorithms: In the 64×64 placed MNIST experiments, a translation-invariant CNN converged near the optimal model with fewer than 20 training domains when rotation probability $\epsilon$ was low. In contrast, an MLP without spatial inductive biases converged much more slowly across all values of $\epsilon$, requiring hundreds of domains to achieve comparable excess risk.

Limitations and Future Work

  • Worst-Case Formulations: The minimax bounds address worst-case distributions, which may be more pessimistic than shifts observed in specific real-world tasks.
  • Binary Classification Focus: Theoretical proofs for the minimax bounds are derived under zero–one loss for binary classification; extending tight minimax bounds to multi-class or structured regression remains open.
  • Automating Invariance Discovery: Manually engineering invariant architectures for every problem is impractical. The authors highlight the need for data-driven representation learning (e.g., via self-supervised pre-training or meta-learning on auxiliary data) to automatically yield hypothesis spaces satisfying bounded IPM assumptions.

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