Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Out-of-Distribution Generalization via Risk Extrapolation (REx)

About

Distributional shift is one of the major obstacles when transferring machine learning prediction systems from the lab to the real world. To tackle this problem, we assume that variation across training domains is representative of the variation we might encounter at test time, but also that shifts at test time may be more extreme in magnitude. In particular, we show that reducing differences in risk across training domains can reduce a model's sensitivity to a wide range of extreme distributional shifts, including the challenging setting where the input contains both causal and anti-causal elements. We motivate this approach, Risk Extrapolation (REx), as a form of robust optimization over a perturbation set of extrapolated domains (MM-REx), and propose a penalty on the variance of training risks (V-REx) as a simpler variant. We prove that variants of REx can recover the causal mechanisms of the targets, while also providing some robustness to changes in the input distribution ("covariate shift"). By appropriately trading-off robustness to causally induced distributional shifts and covariate shift, REx is able to outperform alternative methods such as Invariant Risk Minimization in situations where these types of shift co-occur.

David Krueger, Ethan Caballero, Joern-Henrik Jacobsen, Amy Zhang, Jonathan Binas, Dinghuai Zhang, Remi Le Priol, Aaron Courville• 2020

Related benchmarks

TaskDatasetResultRank
Image ClassificationPACS (test)
Average Accuracy81.3
254
Domain GeneralizationVLCS
Accuracy78.3
238
Image ClassificationPACS
Overall Average Accuracy65.6
230
Domain GeneralizationPACS (test)
Average Accuracy77.5
225
Domain GeneralizationPACS--
221
Graph ClassificationMutag (test)
Accuracy90
217
Domain GeneralizationOfficeHome
Accuracy66.4
182
Domain GeneralizationPACS (leave-one-domain-out)
Art Accuracy86
146
Multi-class classificationVLCS
Acc (Caltech)96.9
139
ClassificationCelebA
Avg Accuracy92.2
137
Showing 10 of 228 rows
...

Other info

Code

Follow for update