TL;DR
This paper introduces a principled way to tackle domain adaptation by identifying "invariant" feature sets through causal inference. By utilizing the Joint Causal Inference (JCI) framework, the authors can predict which relationships between variables will remain stable across different environments, even without prior knowledge of the underlying causal graph or the specific nature of the changes (interventions) between domains.
What Problem Does This Paper Address?
In standard machine learning, we usually assume that our training data (source domain) and test data (target domain) come from the same distribution. In the real world, this is rarely true. This "distribution shift" happens when the context changes—perhaps you trained a medical model on one hospital's data, but the patient demographics or equipment at a second hospital are different.
Standard feature selection methods are "causally blind." They pick features that are highly predictive in the source domain. However, some of those features might be "spurious" or change their relationship with the target variable when the domain shifts.
For example, as illustrated above, a feature $X_3$ might be a great predictor of a target variable in the source domain because they share a common cause. But if an intervention in the target domain ($C_1$) alters that link, a model relying on $X_3$ will fail spectacularly due to a strong distribution shift. Conversely, the relationship with another feature, $X_1$, might remain completely stable. The core challenge of domain adaptation is to find a subset of features $A$ such that the conditional distribution $P(Y|A)$ is invariant across all domains.
Methods
The authors propose an approach that combines predictive power with causal rigor to find these invariant features:
- Joint Causal Inference (JCI): They treat the "domain" or "context" as an explicit variable ($C$) in a larger causal system alongside the standard system variables ($X$). This allows them to use the tools of causal discovery to reason about how changes in $C$ affect other variables.
- The Search for Separating Sets: The goal is to find a feature set $A$ that "d-separates" the domain indicator $C_1$ from the target variable $Y$. If $C_1 \perp Y | A$ in the causal graph, then the relationship between $A$ and $Y$ is guaranteed to be the same in both the source and target domains.
- The Algorithm:
- First, they use a standard method (like Random Forests) to rank feature subsets based on their predictive performance in the source domain.
- Then, they use an automated theorem prover (specifically an ASP solver called
clingo) to check if a subset is a "separating set."- This check is based on conditional independence tests performed on the available data and a set of "weak" causal assumptions (e.g., system variables don't cause context variables).
- Transfer vs. Incomplete Information Bias: The paper explicitly balances two types of error: transfer bias (errors caused by the distribution shift) and incomplete information bias (errors caused by ignoring useful but non-invariant features). Their method prioritizes eliminating transfer bias to ensure robust generalization.
Datasets
The authors evaluated their approach on two types of data:
- Synthetic Data: 200 randomly generated linear acyclic models with latent confounders and Gaussian noise. This allowed them to control the "strength" of the distribution shift.
- Real-World Data (IMPC): Hematology-related measurements from the International Mouse Phenotyping Consortium. This dataset contains measurements of various phenotypes in mice across different single-gene knockouts, which act as interventions or different domains.
Key Insights and Ideas
- Invariance is the Holy Grail: The core "aha moment" is that domain adaptation is essentially a search for invariance. If you can prove a relationship is causal (or at least shielded from the domain change), you can trust it in a new environment.
- Causality without the Graph: Most causal transfer methods require you to know the causal graph beforehand. This paper is significant because it infers the necessary causal properties directly from data using JCI, making it much more applicable to real-world scenarios where the "ground truth" graph is unknown.
- The Power of Abstention: Unlike "black-box" models that always provide a guess, this method can "abstain" from making a prediction if it cannot find a feature set that is provably invariant. In high-stakes fields like medicine, knowing when you can't generalize is just as important as the prediction itself.
Key Results
- Synthetic Performance: In scenarios with large distribution shifts (large perturbations), the proposed causal method significantly outperformed standard feature selection. While standard methods suffered from massive transfer bias, the causal approach maintained low error by picking stable features.
- Real-World Robustness: On the mouse phenotype data (a very challenging, high-dimensional task), the method performed similarly to the baseline but was notably more conservative. It abstained from predicting in 170 out of 1000 cases where invariance couldn't be guaranteed, effectively acting as a safety filter.
Limitations and Future Work
- Scalability: The current implementation uses a brute-force search and an ASP solver, which limits it to about 7 variables on a standard laptop.
- Future Directions: The authors suggest integrating more efficient causal discovery algorithms (like FCI) to handle dozens of variables. They also aim to better address "covariate shift"—where the distribution of the features themselves changes, even if the relationship $P(Y|A)$ stays the same.
- Cyclic Systems: While the paper focuses on acyclic graphs for simplicity, they note that the framework can be extended to systems with feedback loops.
Summary updated