Learning Causal Semantic Representation for Out-of-Distribution Prediction

Chang Liu, Xinwei Sun, Jindong Wang, Haoyue Tang, Tao Li +3 more
11/3/2020
stat.MLcs.AIcs.LG

Official code: changliu00/causal-semantic-generative-model (77 stars, Python, MIT, PyTorch, last commit 2022-04-18).

Abstract

Conventional supervised learning methods, especially deep ones, are found to be sensitive to out-of-distribution (OOD) examples, largely because the learned representation mixes the semantic factor with the variation factor due to their domain-specific correlation, while only the semantic factor causes the output. To address the problem, we propose a Causal Semantic Generative model (CSG) based on a causal reasoning so that the two factors are modeled separately, and develop methods for OOD prediction from a single training domain, which is common and challenging.

Show full abstract

The methods are based on the causal invariance principle, with a novel design in variational Bayes for both efficient learning and easy prediction. Theoretically, we prove that under certain conditions, CSG can identify the semantic factor by fitting training data, and this semantic-identification guarantees the boundedness of OOD generalization error and the success of adaptation. Empirical study shows improved OOD performance over prevailing baselines.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Codes for Causal Semantic Generative model (CSG), the model proposed in "Learning Causal Semantic Representation for Out-of-Distribution Prediction" (NeurIPS-21)

773Python, ShellOct 26, 20214 years agoMIT
causal-modelsgenerative-modelmachine-learningpytorch

Similar Papers

Cite this paper

@article{liu2020learning,
  title  = {Learning Causal Semantic Representation for Out-of-Distribution Prediction},
  author = {Chang Liu and Xinwei Sun and Jindong Wang and Haoyue Tang and Tao Li and Tao Qin and Wei Chen and Tie-Yan Liu},
  year   = {2020},
  eprint = {2011.01681},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.01681}
}

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

Discussion