[Paper Review] Shapley Flow: A Graph-based Approach to Interpreting Model Predictions
Shapley Flow introduces a novel graph-based method for interpreting machine learning model predictions by assigning feature importance to edges in a causal graph rather than nodes, enabling a unified, axiomatic explanation that captures both direct and indirect effects. It generalizes the Shapley value to directed acyclic graphs, providing a unique solution that maintains consistency with causal structure and resolves limitations of prior methods like SHAP and ASV.
Many existing approaches for estimating feature importance are problematic because they ignore or hide dependencies among features. A causal graph, which encodes the relationships among input variables, can aid in assigning feature importance. However, current approaches that assign credit to nodes in the causal graph fail to explain the entire graph. In light of these limitations, we propose Shapley Flow, a novel approach to interpreting machine learning models. It considers the entire causal graph, and assigns credit to extit{edges} instead of treating nodes as the fundamental unit of credit assignment. Shapley Flow is the unique solution to a generalization of the Shapley value axioms to directed acyclic graphs. We demonstrate the benefit of using Shapley Flow to reason about the impact of a model's input on its output. In addition to maintaining insights from existing approaches, Shapley Flow extends the flat, set-based, view prevalent in game theory based explanation methods to a deeper, extit{graph-based}, view. This graph-based view enables users to understand the flow of importance through a system, and reason about potential interventions.
Motivation & Objective
- To address the limitation of existing feature attribution methods that ignore or misattribute indirect effects due to correlation among features.
- To unify existing game-theoretic approaches to feature importance under a single, graph-based framework.
- To provide a complete system-level view of model predictions by modeling credit assignment on edges rather than nodes in a causal graph.
- To ensure boundary consistency and causal fidelity in explanations by respecting causal ordering in feature perturbations.
- To resolve inconsistencies in attribution caused by on-manifold perturbations and arbitrary feature ordering.
Proposed method
- Reformulates feature attribution as credit assignment on edges in a directed acyclic causal graph, rather than on nodes.
- Generalizes the Shapley value axioms to apply to graphs, defining a unique solution for edge-based credit allocation.
- Uses a carrier game formulation to model message transmission histories and ensure consistency across different explanation boundaries.
- Applies linearity and efficiency axioms to compute edge attributions that reflect both direct and indirect impacts.
- Introduces a boundary-aware formulation that restricts histories to those consistent with a given cut in the graph, avoiding inconsistency.
- Employs a recursive computation strategy to efficiently compute attributions using the generalized Shapley value on edge sets.
Experimental results
Research questions
- RQ1How can we extend the Shapley value framework to provide consistent and comprehensive feature attribution in systems with causal dependencies?
- RQ2Why do existing node-based attribution methods fail to capture both direct and indirect effects in causal graphs?
- RQ3Can a unified framework be developed that preserves the axiomatic properties of Shapley values while operating on graph structures?
- RQ4How does edge-based attribution improve interpretability compared to node-based attribution in real-world causal systems?
- RQ5What are the consequences of ignoring causal structure in feature attribution, and how does Shapley Flow mitigate them?
Key findings
- Shapley Flow uniquely satisfies the generalized Shapley axioms for directed acyclic graphs, ensuring a consistent and fair allocation of credit to edges.
- In the sprinkler example, Shapley Flow correctly assigns credit to both upstream (season) and downstream (sprinkler, pavement) variables, unlike ASV which ignores downstream effects.
- On the nutrition dataset, Shapley Flow assigns a positive attribution to systolic blood pressure, while ASV assigns zero, showing it captures direct causal impact.
- On-manifold SHAP produces misleading results by flipping the sign of age’s attribution due to non-causal perturbation order, whereas Shapley Flow avoids this by respecting causal structure.
- Boundary inconsistency arises when considering all possible histories; Shapley Flow avoids this by restricting histories to those consistent with a given explanation boundary.
- Shapley Flow enables users to trace the flow of importance through a system, supporting reasoning about potential interventions and causal pathways.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.