Abstract
Classical supervised learning produces unreliable models when training and target distributions differ, with most existing solutions requiring samples from the target domain. We propose a proactive approach using "Graph Surgery," a method that leverages causal selection diagrams to identify unstable variables and surgically remove their influence, creating predictive models that are mathematically guaranteed to be stable across different environments.
Introduction
Standard machine learning models often break when moved from a training environment to a new deployment environment because the underlying data-generating rules change—a phenomenon known as dataset shift. Most models rely on the i.i.d. assumption, which rarely holds in high-stakes fields like healthcare. For instance, a diagnostic model might learn a specific hospital's prescription policy rather than the underlying disease mechanism, leading to failure when deployed elsewhere.
Existing solutions are typically reactive, requiring target domain samples, or bounded, assuming only small shifts. This work introduces a proactive solution to build models robust to unbounded changes in specific system components without requiring target-domain data.
Methodology: Graph Surgery
The core of the proposed approach is the Graph Surgery Estimator, which operates in three stages:
- Selection Diagrams: Users provide a Directed Acyclic Graph (DAG) representing variable interactions, augmented with "Selection Nodes" ($S$). These nodes indicate mutable variables expected to change across environments (e.g., a hospital's specific prescription policy).
- The "Surgery": Instead of standard conditional probabilities, the method utilizes interventional distributions based on Judea Pearl’s $do$-calculus. This "surgery" removes all incoming edges to mutable variables, effectively treating them as if they were set by an intervention rather than a shifting environmental policy. This severs the model's dependence on unstable parts of the data.
- Identifiability and Search: Since not all interventional distributions are identifiable from observational data (due to latent variables), the authors employ the ID Algorithm. Their search algorithm identifies the best stable distribution that minimizes loss on a validation set.
Experimental Evaluation
The method was evaluated on both simulated and real-world datasets:
- Simulated Data: Linear Gaussian systems mimicking diagnostic dilemmas allowed for precise control over environmental shifts to test stability limits.
- UCI Bike Sharing Dataset: The task was to predict hourly bike rentals ($R$) based on weather features like temperature ($T$), "feels like" temperature ($F$), wind speed ($W$), and humidity ($H$). Different seasons and years served as distinct environments to test temporal and seasonal transportability.
Key Results
The Surgery Estimator demonstrated significant advantages over standard Ordinary Least Squares (OLS) and Causal Transfer Learning (CT):
- Stability in Extremes: As the environment shifted further from the training distribution, OLS and CT errors increased dramatically. In contrast, the Surgery Estimator maintained a near-constant error rate, demonstrating true invariance to the shift.
- Performance: In the Bike Sharing dataset, Graph Surgery achieved the lowest average Mean Squared Error (MSE) in high-shift scenarios, outperforming state-of-the-art transfer learning methods.
- Parameter-Free Stability: Unlike methods like Anchor Regression, which require a "shift magnitude" hyperparameter, Graph Surgery provides stability based purely on the structure of the causal graph.
Discussion and Conclusion
Graph Surgery offers a robust framework for transportable predictive modeling by focusing on causal effects rather than shifting mechanisms. By treating mutable variables as interventions, the model becomes invariant to policy changes. While the method is minimax optimal, it requires an accurate causal graph, which necessitates domain expertise. Future work involves integrating sensitivity analysis to handle structural uncertainty in the causal graph.
Summary updated