Probable Domain Generalization via Quantile Risk Minimization

Cian Eastwood, Alexander Robey, Shashank Singh, Julius von Kügelgen, Hamed Hassani +2 more
7/20/2022
112 citations
stat.MLcs.AIcs.CV

Official code: facebookresearch/DomainBed (1,630 stars, Python, MIT, last commit 2025-12-16). 1 more implementation below.

Abstract

Domain generalization (DG) seeks predictors which perform well on unseen test distributions by leveraging data drawn from multiple related training distributions or domains. To achieve this, DG is commonly formulated as an average- or worst-case problem over the set of possible domains.

Show full abstract

However, predictors that perform well on average lack robustness while predictors that perform well in the worst case tend to be overly-conservative. To address this, we propose a new probabilistic framework for DG where the goal is to learn predictors that perform well with high probability. Our key idea is that distribution shifts seen during training should inform us of probable shifts at test time, which we realize by explicitly relating training and test domains as draws from the same underlying meta-distribution. To achieve probable DG, we propose a new optimization problem called Quantile Risk Minimization (QRM). By minimizing the $α$-quantile of predictor's risk distribution over domains, QRM seeks predictors that perform well with probability $α$. To solve QRM in practice, we propose the Empirical QRM (EQRM) algorithm and provide: (i) a generalization bound for EQRM; and (ii) the conditions under which EQRM recovers the causal predictor as $α\to 1$. In our experiments, we introduce a more holistic quantile-focused evaluation protocol for DG and demonstrate that EQRM outperforms state-of-the-art baselines on datasets from WILDS and DomainBed.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
facebookresearch/DomainBedOfficial1,630PythonMIT2025-12-16
cianeastwood/qrmOfficial26Python–2024-08-08
MIT

DomainBed is a suite to test domain generalization algorithms

1,630332Python, TeXJun 29, 202011 months agoMIT
cianeastwood/qrmOfficial100%

Quantile risk minimization

263Python, TeXJul 18, 20222 years ago

Similar Papers

Cite this paper

@article{eastwood2022probable,
  title  = {Probable Domain Generalization via Quantile Risk Minimization},
  author = {Cian Eastwood and Alexander Robey and Shashank Singh and Julius von Kügelgen and Hamed Hassani and George J. Pappas and Bernhard Schölkopf},
  year   = {2022},
  eprint = {2207.09944},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.09944v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2207.09944.svg)](https://codeofpaper.com/paper/2207.09944)

Discussion