TL;DR
The authors introduce DAG-SHAP, a novel feature attribution method that shifts the focus from individual features (nodes) to the causal pathways between them (edges) within a Directed Acyclic Graph (DAG). By leveraging fine-grained edge interventions, DAG-SHAP successfully captures both a feature's independent exogenous contribution and its downstream cooperative effects. This approach resolves long-standing theoretical conflicts in causal explainability and significantly outperforms existing methods on both synthetic and real-world benchmarks.
What Problem Does This Paper Address?
Machine learning models are increasingly complex, making feature attribution methods—which assign importance scores to input variables—vital for interpretability. Shapley value-based methods are popular because they offer a mathematically rigorous way to fairly allocate credit. However, when features have complex interactions and causal dependencies, standard node-centric attribution methods fall short.
Specifically, existing methods struggle to satisfy two crucial properties simultaneously:
- Externality: A feature should receive credit for the cooperative gains it passes on to its causal descendants.
- Exogeneity: A feature's attribution should isolate its independent contribution without being confounded by what it inherited from its ancestors.
As shown in the paper's theoretical comparison, traditional node-based approaches either ignore causal structure entirely, suffer from "causal reversal" (mistaking correlation for causation), or force a strict ordering that strips ancestor nodes of their rightful credit.
Methods
To overcome these limitations, the authors propose DAG-SHAP, which treats directed causal edges rather than feature nodes as the players in a cooperative game.
- Edge Intervention: Instead of globally altering a feature node, DAG-SHAP performs pathway-specific interventions. It fixes the value transmitted along a specific edge from a parent to a child node while leaving other incoming and outgoing edges untouched.
- Topological Ordering: The method samples edge interventions based on valid topological orderings of the causal graph, ensuring that the effects of ancestor nodes are fully propagated before a downstream edge is evaluated.
- Node Aggregation: The final attribution score for a specific feature node is computed simply by summing the Shapley values of all its outgoing edges.
Because calculating exact Shapley values scales exponentially with the number of edges, the authors also introduce an efficient Monte Carlo approximation algorithm that leverages parallel processing to remain scalable on large graphs.
Datasets
The authors evaluated DAG-SHAP using three primary datasets:
- Synthetic Dataset: A custom 4-feature dataset ($X_1$ to $X_4$) with a known target function $Y$. Crucially, the authors used a "vertex splitting" technique to create a flawless ground-truth benchmark, providing a reliable baseline for causal attribution.
- Census Income (Adult) Dataset: A classic real-world dataset used to predict whether an individual's income exceeds $50,000/year, modeled with a causal graph linking demographics like Age, Race, and Country to downstream features like Occupation and Marital Status.
- Griliches76 Dataset: A standard economic dataset from the U.S. labor market mapping IQ, education level (EDU), and work experience (YEAR) to weekly income.
Key Insights and Ideas
- Edges over Nodes: The core "aha moment" is that features in a causal graph wear multiple hats—they act as independent originators of information (exogenous) and as conduits for upstream information. Treating the transmissions (edges) as the units of attribution naturally decouples these roles.
- Axiomatic Completeness: DAG-SHAP is mathematically proven to be the only method among the compared baselines that simultaneously satisfies causality, efficiency, externality, and exogeneity.
- Vertex Splitting for Evaluation: Evaluating local feature attribution is notoriously difficult due to the lack of ground truth. The authors' method of splitting nodes to create an unambiguous benchmark dataset is a highly effective framework for validating causal explainability methods.
Key Results
DAG-SHAP consistently achieved the lowest Mean Absolute Error (MAE) against the ground-truth benchmarks across all datasets and model architectures (Deep Neural Networks and XGBoost):
- Synthetic Dataset: On a DNN model, DAG-SHAP achieved an MAE of 6.84, drastically outperforming Off-Manifold SHAP (19.80) and Asymmetric Shapley Values (78.92).
- Census Income Dataset: DAG-SHAP achieved an MAE of 0.12 for the DNN model, compared to 0.21 for the next-best method (Symmetric Causal SHAP).
- Griliches76 Dataset: DAG-SHAP recorded an MAE of 0.08, while Off-Manifold SHAP and Causal SHAP lagged behind at 0.27 and 0.52, respectively.
- Efficiency: In scalability tests on a large graph (100 features, 200 edges), parallel sampling with 128 threads computed the attributions in just 57.5 seconds, demonstrating practical viability for large-scale engineering pipelines.
Limitations and Future Work
The primary limitation of DAG-SHAP is its reliance on a pre-defined, accurate Directed Acyclic Graph (DAG). In many real-world applications, the true causal graph is unknown or must be estimated using causal discovery algorithms, which can introduce errors.
For future work, the authors suggest extending the edge-intervention framework to handle time-dependent settings and dynamic causal graphs, where relationships between features evolve over time.
Summary updated