Direct-Effect Risk Minimization for Domain Generalization

Yuhui Li, Zejia Wu, Chao Zhang, Hongyang Zhang
11/26/2022
cs.LGcs.AI

Official code: Liyuhui-12/DRMforDG (3 stars, Python, last commit 2023-03-19).

Abstract

We study the problem of out-of-distribution (o.o.d.) generalization where spurious correlations of attributes vary across training and test domains. This is known as the problem of correlation shift and has posed concerns on the reliability of machine learning.

Show full abstract

In this work, we introduce the concepts of direct and indirect effects from causal inference to the domain generalization problem. We argue that models that learn direct effects minimize the worst-case risk across correlation-shifted domains. To eliminate the indirect effects, our algorithm consists of two stages: in the first stage, we learn an indirect-effect representation by minimizing the prediction error of domain labels using the representation and the class labels; in the second stage, we remove the indirect effects learned in the first stage by matching each data with another data of similar indirect-effect representation but of different class labels in the training and validation phase. Our approach is shown to be compatible with existing methods and improve the generalization performance of them on correlation-shifted datasets. Experiments on 5 correlation-shifted datasets and the DomainBed benchmark verify the effectiveness of our approach.

View on arXivView PDF

Code Implementations(1)

31PythonNov 4, 20223 years ago

Similar Papers

Cite this paper

@article{li2022directeffect,
  title  = {Direct-Effect Risk Minimization for Domain Generalization},
  author = {Yuhui Li and Zejia Wu and Chao Zhang and Hongyang Zhang},
  year   = {2022},
  eprint = {2211.14594},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.14594}
}

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/2211.14594.svg)](https://codeofpaper.com/paper/2211.14594)

Discussion