To use artificial intelligence and machine learning models wisely, we must understand how they interact with the world. A critical part of this is understanding how a model's predicted outcome depends causally on its data inputs. Standard machine learning explanation tools often ignore the causal links between features, leading to misleading or physically impossible interpretations.
This paper introduces Causal Dependence Plots (CDPs), a framework that uses explicit causal models to visualize how a model’s predictions change when an input is varied alongside its downstream causal consequences.
The Problem with Standard Explanation Tools
When trying to understand a "black-box" model, practitioners typically ask: "How does the prediction change if I change this one input?" Traditional methods like Partial Dependence Plots (PDPs), Individual Conditional Expectation (ICE) plots, and SHAP answer this by changing one variable while holding all others constant.
However, in the real world, variables are rarely independent. For example, if you change a person's "Education Level," their "Income" is likely to change as well. Holding income constant while varying education creates "off-manifold" data points—impossible scenarios that the model never saw during training and that couldn't exist in reality. This leads to explanations that are confusing or dangerously misleading for policy-makers and scientists. For an explanation to be truly useful, it must respect the causal structure of the underlying data.
Introducing Causal Dependence Plots
The core innovation of this work is the Explanatory Causal Model (ECM). Instead of assuming features are independent, the user (or a causal discovery algorithm) provides a Directed Acyclic Graph (DAG) representing how the input features affect one another.
To create a CDP, the framework follows a three-step counterfactual process:
- Abduction: For a given data point, infer the underlying "noise" or individual characteristics.
- Action: Perform a causal intervention (a $do$-operation) on the variable of interest (e.g., "Set Education to Masters Degree").
- Prediction: Use the ECM to simulate how other downstream variables would change because of that intervention. Finally, feed this new, causally-consistent data point into the black-box model to get a prediction.
This framework allows for several specific types of plots, most notably:
- Total Dependence Plot (TDP): Shows the full effect of an intervention, including all mediated downstream effects.
- Natural Direct Dependence Plot (NDDP): Shows the effect of changing a variable while forcing its descendants to stay at their original observed values.
Key Insights and Experimental Results
The authors validate CDPs using both simulations (like a synthetic salary model) and real-world data (such as the Sachs Protein Signaling dataset and the Breast Cancer Wisconsin dataset).
Several key insights emerge from this framework:
- PDPs are a Special Case of CDPs: One of the paper's most significant theoretical contributions is proving that standard PDPs are actually a special case of CDPs. Specifically, they represent Natural Direct Dependence. This provides the first formal causal interpretation for one of the most widely used tools in explainable AI (xAI).
- Qualitative Trend Reversals: The paper demonstrates that "direct" and "total" effects can point in opposite directions. In the Sachs protein dataset, standard tools (PDP, ALE, SHAP) show that increasing a certain protein (PKA) decreases the predicted outcome. However, the TDP reveals that the total effect is actually an increase. Relying solely on standard tools might lead a scientist to conclude a protein inhibits a process when it actually stimulates it via indirect pathways.
- Modular and Model-Agnostic: CDPs can be used to explain any model—a Random Forest, a Neural Network, or a Linear Regression—as long as a candidate causal model for the inputs is available.
- Debugging Causal Correctness: By analyzing "CDP residuals," researchers can determine if a model has learned a causally "correct" relationship or if it is merely exploiting spurious correlations that might break under distribution shift.
Limitations and Future Directions
While powerful, CDPs come with inherent limitations. First and foremost is the principle of "Garbage In, Garbage Out": the CDP is only as reliable as the Explanatory Causal Model provided. If the causal assumptions are wrong, the resulting plot will be misleading. To mitigate this, the authors suggest using uncertainty bands to show a range of possible effects when the causal structure is uncertain.
Furthermore, CDPs explain what the model has learned, not necessarily how the world works. If the machine learning model is poorly trained, the CDP will accurately reflect that poor training. Finally, scaling this framework to high-dimensional data (like images in computer vision) remains a major challenge, pointing toward "causal representation learning" as a vital area for future research.
Summary updated