Abstract
An important goal common to domain adaptation and causal inference is to make accurate predictions when the distributions for the source (or training) domain(s) and target (or test) domain(s) differ. In many cases, these different distributions can be modeled as different contexts of a single underlying system, in which each distribution corresponds to a different perturbation of the system, or in causal terms, an intervention. We focus on a class of such causal domain adaptation problems, where data for one or more source domains are given, and the task is to predict the distribution of a certain target variable from measurements of other variables in one or more target domains. We propose an approach for solving these problems that exploits causal inference and does not rely on prior knowledge of the causal graph, the type of interventions or the intervention targets. We demonstrate our approach by evaluating a possible implementation on simulated and real world data.
Introduction
Standard machine learning models typically assume that training (source) and testing (target) data are independent and identically distributed (i.i.d.). However, in practice, "distribution shift" is common—for instance, when a diagnostic model trained on data from one hospital is applied to another with different demographics or equipment.
The core challenge is identifying features that maintain a stable relationship with the target variable $Y$ across domains. Some features may be strong predictors in the source domain but become misleading in the target domain due to interventions or environmental changes. This paper addresses the problem of finding "invariant" feature subsets that avoid "transfer bias."
Methodology
The proposed approach bridges domain adaptation and causal inference using the Joint Causal Inference (JCI) framework.
Context as Intervention
Different domains are modeled as "context variables" ($C$) that act as interventions on a system of variables ($X$). This allows the researchers to treat domain shifts as perturbations within a single underlying causal system.
Identifying Separating Sets
The goal is to find a subset of features $A$ such that the target variable $Y$ is d-separated from the domain indicator $C$ given $A$. When this condition holds, the conditional distribution $P(Y|A)$ remains invariant across domains.
The algorithm follows three steps:
- Ranking: All possible feature subsets are ranked by their predictive performance in the source domain.
- Causal Validation: An automated theorem prover (ASP solver) checks if a subset is a "separating set" based on causal discovery rules, without requiring a pre-defined graph.
- Selection or Abstention: The best-performing invariant subset is selected. If no invariant set can be proven, the model may "abstain" to avoid biased predictions.
Experimental Evaluation
The method was tested on both synthetic and real-world datasets:
- Synthetic Data: 200 linear acyclic models were used to simulate "soft interventions." Results showed that as the strength of the intervention increased, the causal method's error remained stable while standard methods' errors increased significantly.
- Real-World Genomic Data: Using the International Mouse Phenotyping Consortium (IMPC) dataset, which contains measurements from mice with single-gene "knockouts," the method successfully identified unreliable prediction scenarios and maintained high accuracy in stable ones.
Conclusion
This research highlights the trade-off between transfer bias and incomplete information bias. By leveraging causal inference to identify invariant feature sets, the proposed method provides a robust framework for domain adaptation that does not require prior knowledge of the causal graph. Future work will focus on scaling these algorithms to handle larger feature sets using more efficient causal discovery techniques.
Summary updated