Feature Attribution in Directed Acyclic Graphs Using Edge Intervention

arXiv cs.AI Papers

Summary

Proposes DAG-SHAP, a novel feature attribution method based on edge intervention for directed acyclic graphs, addressing limitations of existing Shapley value methods in capturing feature interactions and causal relationships.

arXiv:2606.15273v1 Announce Type: new Abstract: Shapley value-based feature attribution methods face challenges in scenarios involving complex feature interactions and causal relationships, even when a causal structure is provided. Existing methods typically adopt a node-centric view, attributing importance solely to individual features. Consequently, they often fail to simultaneously capture the externality and exogenous influence of features, leading to unreasonable interpretations. To overcome these limitations, we propose a novel feature attribution method called DAG-SHAP, which is based on edge intervention. DAG-SHAP treats each feature edge as an individual attribution object, ensuring that both externality and exogenous contributions of features are appropriately captured. Additionally, we introduce an approximation method for efficiently computing DAG-SHAP. Extensive experiments on both real and synthetic datasets validate the effectiveness of DAG-SHAP. Our code is available at https://github.com/ZJU-DIVER/DAG-SHAP.
Original Article
View Cached Full Text

Cached at: 06/16/26, 11:44 AM

# Feature Attribution in Directed Acyclic Graphs Using Edge Intervention
Source: [https://arxiv.org/html/2606.15273](https://arxiv.org/html/2606.15273)
###### Abstract

Shapley value\-based feature attribution methods face challenges in scenarios involving complex feature interactions and causal relationships, even when a causal structure is provided\. Existing methods typically adopt a node\-centric view, attributing importance solely to individual features\. Consequently, they often fail to simultaneously capture the externality and exogenous influence of features, leading to unreasonable interpretations\. To overcome these limitations, we propose a novel feature attribution method called DAG\-SHAP, which is based on edge intervention\. DAG\-SHAP treats each feature edge as an individual attribution object, ensuring that both externality and exogenous contributions of features are appropriately captured\. Additionally, we introduce an approximation method for efficiently computing DAG\-SHAP\. Extensive experiments on both real and synthetic datasets validate the effectiveness of DAG\-SHAP\. Our code is available at[https://github\.com/ZJU\-DIVER/DAG\-SHAP](https://github.com/ZJU-DIVER/DAG-SHAP)\.

## IIntroduction

The growing complexity of machine learning \(ML\) models in real\-world applications has fueled intense interest in interpretability of decision\-making processes\[[3](https://arxiv.org/html/2606.15273#bib.bib3),[20](https://arxiv.org/html/2606.15273#bib.bib20),[6](https://arxiv.org/html/2606.15273#bib.bib6),[24](https://arxiv.org/html/2606.15273#bib.bib24),[8](https://arxiv.org/html/2606.15273#bib.bib8)\]\. Feature attribution, which aims to quantify the marginal contribution of each input feature with real\-valued scores, is recognized as a leading approach for interpreting predictive outcomes in terms of their underlying explanatory variables\. Within the broad landscape of attribution strategies\[[39](https://arxiv.org/html/2606.15273#bib.bib39)\], Shapley value\-based methods have been extensively studied due to their rigorous foundation in cooperative game theory, ensuring fairness in contribution allocation while upholding desirable properties such as efficiency, symmetry, redundancy, and additivity\[[5](https://arxiv.org/html/2606.15273#bib.bib5),[42](https://arxiv.org/html/2606.15273#bib.bib42)\]\. Applications of these methods in domains such as healthcare and finance demonstrate their utility in uncovering the most influential features behind predictive outcomes\[[25](https://arxiv.org/html/2606.15273#bib.bib25),[21](https://arxiv.org/html/2606.15273#bib.bib21),[2](https://arxiv.org/html/2606.15273#bib.bib2),[11](https://arxiv.org/html/2606.15273#bib.bib11)\]\.

Although widely investigated, Shapley value\-based attribution methods remain limited in their ability to capture feature interactions that accurately reflect intricate data dependencies\. As one of the earliest attempts, the off\-manifold Shapley value\[[31](https://arxiv.org/html/2606.15273#bib.bib31)\]relies on the assumption of feature independence, and therefore fails to capture the complex dependencies present in practical scenarios\. The on\-manifold Shapley value\[[31](https://arxiv.org/html/2606.15273#bib.bib31),[38](https://arxiv.org/html/2606.15273#bib.bib38)\]mitigates this limitation by imputing excluded features with conditional expectations derived from their correlations with included features when assessing subset utility\. However, reliance on correlations alone may misalign with the underlying data generation process and lead to causal reversal\[[16](https://arxiv.org/html/2606.15273#bib.bib16),[18](https://arxiv.org/html/2606.15273#bib.bib18)\], particularly when causal dependencies exist among features\. To address this, studies such as asymmetric Shapley values\[[10](https://arxiv.org/html/2606.15273#bib.bib10)\]and causal Shapley values\[[14](https://arxiv.org/html/2606.15273#bib.bib14)\]further extend the framework by incorporating sequential and causal relationships, respectively\. In addition, recent advances characterize causal dependencies with a directed acyclic graph \(DAG\), where vertices represent features and edges capture direct causal effects\. This makes it important to reason about edges and paths in the graph\[[44](https://arxiv.org/html/2606.15273#bib.bib44),[13](https://arxiv.org/html/2606.15273#bib.bib13)\]\. Shapley Flow\[[41](https://arxiv.org/html/2606.15273#bib.bib41)\]attributes contributions to entire pathways between source and target vertices rather than to individual causal transmissions along edges\. Recursive Shapley value\[[35](https://arxiv.org/html/2606.15273#bib.bib35)\]attributes contributions following a top\-down principle by first attributing to “source” vertices and then flowing them down the DAG\.

X1X\_\{1\}X2X\_\{2\}YY𝐞1\{\\mathbf\{e\}\}\_\{1\}𝐞3\{\\mathbf\{e\}\}\_\{3\}𝐞2\{\\mathbf\{e\}\}\_\{2\}X1=𝐱1X2=X1\+𝐱2Y=f​\(X1,X2\)\\begin\{aligned\} X\_\{1\}&=\{\\mathbf\{x\}\}\_\{1\}\\\\ X\_\{2\}&=X\_\{1\}\+\{\\mathbf\{x\}\}\_\{2\}\\\\ Y\_\{\\,\\,\\,\}&=f\(X\_\{1\},X\_\{2\}\)\\end\{aligned\}Figure 1:An illustration of DAG with feature set\{X1,X2\}\\\{X\_\{1\},X\_\{2\}\\\}and the model outputY=f​\(X1,X2\)Y=f\(X\_\{1\},X\_\{2\}\)\. Each directed edge indicates the direct causal effect, and𝐱1,𝐱2\{\\mathbf\{x\}\}\_\{1\},\{\\mathbf\{x\}\}\_\{2\}represent the exogenous variables ofX1,X2X\_\{1\},X\_\{2\}, respectively\.Despite the aforementioned significant efforts to enhance feature interactions in the attribution process,externalityandexogeneityremain inadequately addressed in existing approaches\. Attribution methods based on feature vertices adopting asymmetry samplings, such as asymmetry Shapley value\[[10](https://arxiv.org/html/2606.15273#bib.bib10)\]and asymmetry causal Shapley value\[[14](https://arxiv.org/html/2606.15273#bib.bib14)\], fail to make attribution results satisfy externality\. When using the asymmetrical ordering of feature attribution methods \(the parent vertex must appear before the child vertex\), the marginal contribution of the parent vertex cannot receive externality gains from cooperating with the child vertex\. This approach clearly violates the fundamental idea that each player should, to the greatest extent possible, obtain marginal contributions from the cooperation of others\[[29](https://arxiv.org/html/2606.15273#bib.bib29)\]\. As illustrated in Figure[1](https://arxiv.org/html/2606.15273#S1.F1), the direct influence𝐞2:X1→Y\{\\mathbf\{e\}\}\_\{2\}:X\_\{1\}\\rightarrow Ycannot receive a marginal contribution from cooperating withX2X\_\{2\}which is𝐞3:X2→Y\{\\mathbf\{e\}\}\_\{3\}:X\_\{2\}\\rightarrow Y, even though there is no causal ordering between these two incoming edges intoYY\. In addition, the attribution methods focusing on attributing contributions at each graph cut like Shapley Flow\[[41](https://arxiv.org/html/2606.15273#bib.bib41)\]and Recursive Shapley value\[[35](https://arxiv.org/html/2606.15273#bib.bib35)\], fail to recognize exogenous contributions of features\. Exogenous contribution refers to the part of the contribution in each feature that is not influenced by other features in the explained input\. Shapley Flow and Recursive Shapley value assume that only feature vertices without incoming edges have exogenous contributions\. Hence, the contribution of exogenous variable𝐱2\{\\mathbf\{x\}\}\_\{2\}cannot be properly captured\. Apparently, the assumption that intermediate vertices have no endogenous contributions is misaligned with real\-world feature attribution scenarios\.

In this paper, we explore the potential to enhance the reasonableness of attribution methods through an advanced investigation of feature interactions\. Specifically, we incorporate fine\-grained causal relationships under the assumption that features form a DAG, a widely adopted and arguably fundamental assumption in causal modeling\. Our contributions can be summarized as follows\.

1. 1\.We propose DAG\-SHAP, an edge\-intervention\-based attribution method that performs fine\-grained, pathway\-specific interventions on selected parent–child transmissions in a causal DAG, without perturbing other edges in the graph\.
2. 2\.We show that DAG\-SHAP is the only method that simultaneously adheres to the four critical axiomatic properties required for feature attribution: causality, efficiency, externality, and exogeneity\.
3. 3\.We introduce two efficient methods for DAG\-SHAP computation: \(i\) an exact formulation via feature\-distribution inference under edge interventions, and \(ii\) a Monte Carlo approximation over valid topological edge orderings, enabling the method to remain efficient and scalable in practice\.
4. 4\.Comprehensive experiments on both real and synthetic datasets demonstrate that DAG\-SHAP achieves superior attribution performance compared to baseline methods\.

Organization\.Section[II](https://arxiv.org/html/2606.15273#S2)reviews the related work\. Section[III](https://arxiv.org/html/2606.15273#S3)describes the preliminaries\. Section[IV](https://arxiv.org/html/2606.15273#S4)illustrates our motivation with a toy example\. Section[V](https://arxiv.org/html/2606.15273#S5)presents the definition of DAG\-SHAP\. Section[VI](https://arxiv.org/html/2606.15273#S6)provides the algorithm to approximate DAG\-SHAP\. Section[VII](https://arxiv.org/html/2606.15273#S7)presents the experiments\. Finally, Section[VIII](https://arxiv.org/html/2606.15273#S8)draws a conclusion and discusses future directions\.

## IIRelated Work

In this section, we discuss related work on classic feature attribution and causal feature attribution methods\.

### II\-AClassic Feature Attribution Techniques

LIME \(Local Interpretable Model\-agnostic Explanations\)\[[28](https://arxiv.org/html/2606.15273#bib.bib28)\]is a popular model explanation method which generates a local and interpretable model for each prediction made by a complex model\. The advantage of LIME lies in its universality and simplicity, as it can be applied to any model and provides intuitive explanations of feature importance\. Grad\-CAM\[[32](https://arxiv.org/html/2606.15273#bib.bib32)\]highlights the areas of the image that contribute the most to the prediction of a specific class through visualization\. Specifically, it uses the feature maps of the last convolutional layer and the gradient information regarding the prediction of a specific class to generate a Class Activation Map\. DeepLIFT\[[34](https://arxiv.org/html/2606.15273#bib.bib34)\]explains the decision\-making process of deep learning models through the differences in activation functions\. SmoothGrad\[[36](https://arxiv.org/html/2606.15273#bib.bib36)\]is a method designed to improve the interpretability of deep learning models, particularly for image classification tasks\. It aims to enhance the quality of model prediction explanations by reducing the visual noise in gradient sensitivity maps\. Integrated Gradients \(IG\)\[[39](https://arxiv.org/html/2606.15273#bib.bib39)\]involves integrating the gradients of a model’s output with respect to its inputs along the path from a baseline to the actual input data\. Like Shapley\-value\-based attribution, Integrated Gradients has been proven to satisfy axiomatic properties including linearity, implementation invariance, sensitivity, and dummy, and it is independent of the model implementation\. Layer\-wise Relevance Propagation \(LRP\)\[[26](https://arxiv.org/html/2606.15273#bib.bib26)\]is a popular method for explaining neural networks\. It explains the predictions of neural networks by propagating relevance scores from the output layer back to the input layer\. MCI measures feature contribution based on the maximum marginal contribution a feature can bring, which cannot capture the right causal contribution\. It gives some new properties like Super\-efficiency and Sub\-additivity\[[4](https://arxiv.org/html/2606.15273#bib.bib4)\]\. Beyond these model\-explanation techniques, the database community has also used Shapley values to quantify contribution scores of data units in learning\-oriented tasks\[[17](https://arxiv.org/html/2606.15273#bib.bib17),[43](https://arxiv.org/html/2606.15273#bib.bib43)\]\. This line of work is conceptually related to our goal of fair contribution allocation, but differs in both attribution granularity and semantics\. Existing database\-oriented Shapley valuation methods typically regard records, data points, or datasets as players and measure their marginal effect on a downstream utility\. In contrast, DAG\-SHAP treats directed causal transmissions between observed features as attribution objects\. Rather than asking how much a tuple or dataset contributes to a model, DAG\-SHAP asks how much an intervened feature edge contributes to an instance\-wise prediction under a causal DAG\.

### II\-BCausal Feature Attribution Techniques

As a measure of causal contribution, do\-Shapley value\[[19](https://arxiv.org/html/2606.15273#bib.bib19)\]provides a theoretical justification through axiomatic foundations\. Like causal Shapley value\[[10](https://arxiv.org/html/2606.15273#bib.bib10)\], it employs interventions but generalizes previous approaches to measure the causal contributions of each feature to a target effect induced by a black\-box/unknown/inaccessible model\. PWSHAP \(Path\-Wise Shapley effects\)\[[40](https://arxiv.org/html/2606.15273#bib.bib40)\]is a method for explaining the impact of specific binary variables, such as treatment effects or ethnicity in policy models, within predictive models\. It evaluates the targeted effects in complex outcome models by combining a predictive model with a user\-defined directed acyclic graph\. Inspired by causal inference and randomized experiments, researchers have developed an algorithm to estimate AME \(Average Marginal Effect\)\[[22](https://arxiv.org/html/2606.15273#bib.bib22)\], a measure of the expected average marginal effect of adding a data point to a subset of the training data sampled from a uniform distribution\. CF\-SHAP\[[1](https://arxiv.org/html/2606.15273#bib.bib1)\]is a method that combines counterfactual information for feature attribution\. It strengthens and clarifies the link between actionable recourse and feature attributions, playing a role in advancing the development of causal feature attribution\. Janzing et al\.\[[16](https://arxiv.org/html/2606.15273#bib.bib16)\]primarily focus on distinguishing between calculating Shapley values based on observational versus interventional conditional distributions\. They were among the first to emphasize the role of causality in feature attribution\. Besides, Janzing et al\.\[[15](https://arxiv.org/html/2606.15273#bib.bib15)\]propose Shapley\-ICC, which uses structure\-preserving interventions and Shapley\-based symmetrization to obtain a*global*decomposition of the target variable’s uncertainty, such as variance or Shannon entropy\. This objective and its modeling requirements differ from ours\. DAG\-SHAP operates on a causal DAG over observed features and estimates post\-edge\-intervention distributions over the observed variables\. It therefore does not require identifying SCM\-level exogenous noise variables\. In contrast, Shapley\-ICC attributes uncertainty through the exogenous noisesNiN\_\{i\}in an SCM\. Since suchNiN\_\{i\}are generally not identifiable from a DAG and observationalP​\(X\)P\(X\)alone, Shapley\-ICC relies on stronger structural assumptions\. Consequently, without additional SCM assumptions, Shapley\-ICC is not applicable to our instance\-wise DAG\-based feature attribution setting\.

Overall, classic feature attribution methods provide useful explanations but are typically not grounded in causal semantics, while existing causal Shapley\-style methods mainly rely on node interventions and cannot capture fine\-grained interactions along individual causal links in a feature DAG\. These limitations motivate our proposed DAG\-SHAP, which performs*edge\-based interventions*to obtain instance\-wise attributions that respect the DAG structure while explicitly accounting for externality and exogenous contributions\.

## IIIPreliminaries

In this section, we review the formal definitions of the feature attribution problem, the Shapley value, and fundamental attribution properties\.

### III\-AFeature Attribution

Letf:ℝn→ℝf:\\mathbb\{R\}^\{n\}\\rightarrow\\mathbb\{R\}denote a trained ML model defined over the feature set𝕍=\{X1,…,Xn\}\{\\mathbb\{V\}\}=\\\{X\_\{1\},\\dots,X\_\{n\}\\\}\. For an arbitrary input vector𝒙=\(𝒙1,…,𝒙n\)∈ℝn\{\\bm\{x\}\}=\(\{\\bm\{x\}\}\_\{1\},\\dots,\{\\bm\{x\}\}\_\{n\}\)\\in\\mathbb\{R\}^\{n\}, the objective of feature attribution is to assign to each component𝒙i\{\\bm\{x\}\}\_\{i\}a real\-valued scoreϕi∈ℝ\\phi\_\{i\}\\in\\mathbb\{R\}, referred to as itsattribution value, reflecting the contribution of𝒙i\{\\bm\{x\}\}\_\{i\}to the model’s outputf​\(𝒙\)f\(\{\\bm\{x\}\}\)\. With these attribution values,f​\(𝒙\)f\(\{\\bm\{x\}\}\)can be decomposed as

f​\(𝒙\)=f0\+∑i=1nϕi,f\(\{\\bm\{x\}\}\)=f\_\{0\}\+\\sum\\nolimits\_\{i=1\}^\{n\}\\phi\_\{i\},\(1\)wheref0∈ℝf\_\{0\}\\in\\mathbb\{R\}is known as thebaseline, which may vary depending on the attribution goal\.

### III\-BShapley Value

Consider a set of playersℙ=\{1,…,n\}\{\\mathbb\{P\}\}=\\\{1,\\ldots,n\\\}\. A*coalition*𝒮\\mathcal\{S\}is a subset ofℙ\{\\mathbb\{P\}\}that cooperates to complete a task\. A utility function𝒰​\(𝒮\)\\mathcal\{U\}\(\\mathcal\{S\}\)\(𝒮⊆ℙ\)\(\\mathcal\{S\}\\subseteq\{\\mathbb\{P\}\}\)is the utility of coalition𝒮\\mathcal\{S\}for a task\. The*marginal contribution*of playeriiwith respect to a coalition𝒮\\mathcal\{S\}is𝒰​\(𝒮∪\{i\}\)−𝒰​\(𝒮\)\\mathcal\{U\}\(\\mathcal\{S\}\\cup\\\{i\\\}\)\-\\mathcal\{U\}\(\\mathcal\{S\}\)\. Shapley value \(SV\) is the unique metric that satisfies the properties of fair reward allocation, including balance, symmetry, additivity, and zero element\[[42](https://arxiv.org/html/2606.15273#bib.bib42)\]\. It measures the expectation of the marginal contribution ofiiacross all possible coalitions, that is,

𝒮​𝒱i=1n​∑𝒮⊆ℙ∖\{i\}𝒰​\(𝒮∪\{i\}\)−𝒰​\(𝒮\)\(n−1\|𝒮\|\)\.\\mathcal\{SV\}\_\{i\}=\\frac\{1\}\{n\}\\sum\_\{\\mathcal\{S\}\\subseteq\{\\mathbb\{P\}\}\\setminus\\\{i\\\}\}\\frac\{\\mathcal\{U\}\(\\mathcal\{S\}\\cup\\\{i\\\}\)\-\\mathcal\{U\}\(\\mathcal\{S\}\)\}\{\\binom\{n\-1\}\{\|\\mathcal\{S\}\|\}\}\.\(2\)According to Eq\. \([2](https://arxiv.org/html/2606.15273#S3.E2)\), we can find that computing the exact Shapley value requires enumerating all utilities for all player subsets\. Therefore, the computational complexity of exactly calculating the Shapley value is exponential\[[7](https://arxiv.org/html/2606.15273#bib.bib7)\]\. In the context of feature attribution, the feature set𝕍\{\\mathbb\{V\}\}can be interpreted as the player setℙ\{\\mathbb\{P\}\}, thereby enabling the SV\-based methods to determine attribution values\.

### III\-CFundamental Properties

Linearity,Implementation Invariance,Sensitivity, andDummyare standard properties for feature attribution methods\. These properties are generally straightforward for the attribution methods considered in this paper to satisfy, and thus they are not the main source of distinction among the methods\. For a featureXiX\_\{i\}, we denote its attribution value byϕi\\phi\_\{i\}, and these properties can be stated as follows\.

- •Linearity: For any two value functionsfuf\_\{u\}andfwf\_\{w\}, and their sumf=fu\+fwf=f\_\{u\}\+f\_\{w\}, the attributed value of each feature inffshould be equal to the sum of its attributed values infuf\_\{u\}andfwf\_\{w\}, i\.e\.,ϕi​\(f\)=ϕi​\(fu\)\+ϕi​\(fw\)\\phi\_\{i\}\(f\)=\\phi\_\{i\}\(f\_\{u\}\)\+\\phi\_\{i\}\(f\_\{w\}\)\.
- •Implementation Invariance: The attribution results from an attribution method should be identical for two models if their outputs are the same for all inputs, even though their implementations may differ significantly\.
- •Sensitivity: If two inputs differ in only one feature and the model predictions for these two inputs are different, then the attribution for that differing feature should be non\-zero\. Formally, let𝒙\\bm\{x\}and𝒙′\\bm\{x\}^\{\\prime\}be two inputs that differ only in featureXiX\_\{i\}, and the corresponding model predictions satisfyf​\(𝒙\)≠f​\(𝒙′\)f\(\\bm\{x\}\)\\neq f\(\\bm\{x\}^\{\\prime\}\)\. Then, the attributionϕi\\phi\_\{i\}should satisfyϕi≠0\\phi\_\{i\}\\neq 0\.
- •Dummy: The attributed value of a feature should be zero if it has no exogenous influence on the outcome\.

DAG\-SHAP satisfies the four standard properties above, which serve as fundamental requirements for feature attribution methods\. However, these properties are not sufficiently discriminative in causal feature attribution over DAGs, since they do not explicitly characterize whether an attribution method respects causal transmissions, captures cooperative effects involving descendants, or isolates exogenous influences\. Therefore, we further focus on the following four properties, which are more challenging and central to our setting\.

- •Causality: The attribution value of each feature should be determined by its causal effect on the model output, i\.e\., by changes inffunder appropriate interventions, rather than by observational correlations induced by dependencies among features\.
- •Efficiency: The sum of attribution values across all features should be equal to the difference between the model output and the baseline\.
- •Externality: The attribution value of each feature should be evaluated across coalitions that include all its descendants, ensuring that cooperative effects are fully captured\.
- •Exogeneity: The attribution value of each feature should be attributed solely to its exogenous influence, without being confounded by correlations or dependencies with other features\.

Note that theexogenous influenceof a feature refers to the portion of the overall effect on the model’s output that can be directly attributed to the feature itself\.

## IVProblem Formulation & Motivation

We begin by presenting the problem formulation addressed in this paper and subsequently discussing the limitations of existing SV\-based feature attribution methods\.

### IV\-AProblem Formulation

In this paper, we focus on attribution relative to the widely used baselinef0=𝔼​\[f​\(𝐱\)\]f\_\{0\}=\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\], where𝐱\{\\mathbf\{x\}\}is a random feature vector drawn from the input data distribution\. This baseline represents the model’s expected prediction over the population distribution, providing a natural reference point that quantifies how much an individual input deviates from the average prediction\. Specifically, we model the causal effects of the features as a directed acyclic graph \(DAG\)𝒢=\(𝕍,𝑬\)\\mathcal\{G\}=\(\{\\mathbb\{V\}\},\\bm\{E\}\), where each vertexXi∈𝕍X\_\{i\}\\in\{\\mathbb\{V\}\}represents a feature and each directed edgeei=\(pi,ci,Xpi\)\{\\textnormal\{e\}\}\_\{i\}=\(p\_\{i\},c\_\{i\},X\_\{p\_\{i\}\}\),pi,ci∈\{1,⋯,n\}p\_\{i\},c\_\{i\}\\\!\\in\\\!\\\{1,\\\!\\cdots\\\!,\\\!n\\\}, denotes the direct causal influence of featureXpiX\_\{p\_\{i\}\}\(the parent\) on featureXciX\_\{c\_\{i\}\}\(the child\)\. The attribution value assigned to each feature must isolate its exogenous influence on the model output, ensuring that both its direct effect and its indirect causal effect are fully captured\. Although our formulation uses causal graphs and interventions, our goal is local feature attribution rather than population\-level causal effect estimation\. We return to this distinction at the end of this section\.

### IV\-BLimitations of Previous Studies

Running Example\.Consider the toy example in Figure[1](https://arxiv.org/html/2606.15273#S1.F1)\. The feature set is given by𝕍=\{X1,X2\}\{\\mathbb\{V\}\}=\\\{X\_\{1\},X\_\{2\}\\\}, and𝐱1,𝐱2\{\\mathbf\{x\}\}\_\{1\},\{\\mathbf\{x\}\}\_\{2\}denote the exogenous influences ofX1X\_\{1\}andX2X\_\{2\}, respectively\. FeatureX1X\_\{1\}has both adirectinfluence on the model’s outputY=f​\(X1,X2\)Y=f\(X\_\{1\},X\_\{2\}\)and anindirectinfluence through its causal effect onX2X\_\{2\}\. Similarly,X2X\_\{2\}influencesYYvia its own exogenous component𝐱2\{\\mathbf\{x\}\}\_\{2\}and by transmitting the indirect influence ofX1X\_\{1\}\. Given a specific explained input𝒙∗=\(𝒙1∗,𝒙2∗\)=\(0\.2,0\.8\)\{\\bm\{x\}\}^\{\*\}=\(\{\\bm\{x\}\}\_\{1\}^\{\*\},\{\\bm\{x\}\}\_\{2\}^\{\*\}\)=\(0\.2,0\.8\), we aim to assign to each𝒙i∗\{\\bm\{x\}\}\_\{i\}^\{\*\}a valueϕi\\phi\_\{i\}with respect to their uniform distributions\.

In what follows, we discuss the limitations of existing SV\-based feature attribution methods using this running example\. Specifically, we focus on seven representative approaches that are based on distinct Shapley value variants, as shown in Table[1](https://arxiv.org/html/2606.15273#S4.T1)\. Due to page constraints, detailed descriptions of these methods are provided in Appendix Section[IX](https://arxiv.org/html/2606.15273#S9)of the full paper\[[37](https://arxiv.org/html/2606.15273#bib.bib37)\]\.

Off\-Manifold Shapley Value\.As one of the pioneering SV\-based feature attribution methods, off\-manifold SV assumes feature independence, with the utility function𝒰\\mathcal\{U\}constructed to break the structural dependence of features\. For example, when featureX1X\_\{1\}is explicitly specified as𝒙1∗=0\.2\{\\bm\{x\}\}\_\{1\}^\{\*\}=0\.2while the others are left unspecified, the marginal contribution ofX1X\_\{1\}to the outputYYis

𝔼​\[f​\(X1,X2\)∣X1=𝒙1∗,X2=𝐱1\+𝐱2\]−𝔼​\[f​\(𝐱1,𝐱1\+𝐱2\)\]\.\\mathbb\{E\}\[f\(X\_\{1\},X\_\{2\}\)\\mid X\_\{1\}=\{\\bm\{x\}\}\_\{1\}^\{\*\},X\_\{2\}=\{\\mathbf\{x\}\}\_\{1\}\\\!\+\\\!\{\\mathbf\{x\}\}\_\{2\}\]\-\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\_\{1\},\{\\mathbf\{x\}\}\_\{1\}\\\!\+\\\!\{\\mathbf\{x\}\}\_\{2\}\)\]\.This marginal contribution does not incorporate the indirect effect ofX1=0\.2X\_\{1\}=0\.2since the value ofX2X\_\{2\}, i\.e\.,𝐱1\+𝐱2\{\\mathbf\{x\}\}\_\{1\}\+\{\\mathbf\{x\}\}\_\{2\}, is randomly sampled from its underlying distribution, which conflicts with the fact that featureX2X\_\{2\}is causally determined by featureX1X\_\{1\}\.

On\-Manifold Shapley Value\.While the on\-manifold Shapley value incorporates feature dependency into its formulation, it suffers from causal reversion\. For example, whenX2X\_\{2\}is explicitly specified as𝒙2∗=0\.8\{\\bm\{x\}\}\_\{2\}^\{\*\}=0\.8while the others remain unspecified, the marginal contribution ofX2X\_\{2\}is

𝔼​\[f​\(X1,X2\)∣X1=𝐱1,X2=𝒙2∗\]−𝔼​\[f​\(𝐱1,𝐱1\+𝐱2\)\]\.\\mathbb\{E\}\\\!\\left\[f\(X\_\{1\},X\_\{2\}\)\\mid X\_\{1\}=\{\\mathbf\{x\}\}\_\{1\},X\_\{2\}=\{\\bm\{x\}\}\_\{2\}^\{\*\}\\right\]\-\\mathbb\{E\}\\\!\\left\[f\(\{\\mathbf\{x\}\}\_\{1\},\{\\mathbf\{x\}\}\_\{1\}\+\{\\mathbf\{x\}\}\_\{2\}\)\\right\]\.Conditioning onX2=0\.8X\_\{2\}=0\.8induces a posterior distribution overX1X\_\{1\}, even thoughX2X\_\{2\}cannot influenceX1X\_\{1\}from a causal perspective\. Hence, this conditional expectation attributes to𝒙2∗\{\\bm\{x\}\}\_\{2\}^\{\*\}a part of the contribution that does not causally belong to𝒙2∗\{\\bm\{x\}\}\_\{2\}^\{\*\}\.

Symmetry Causal Shapley Value\.It faces the same causal reversion issue, since the utility for𝒙2∗=0\.8\{\\bm\{x\}\}\_\{2\}^\{\*\}=0\.8is evaluated via an intervention that is not aligned with the data generation process\. Considering the marginal contribution of𝒙2∗=0\.8\{\\bm\{x\}\}\_\{2\}^\{\*\}=0\.8when cooperating with the empty set, it yields

𝔼​\[f​\(𝐱1,X2\)∣do⁡\(X2=0\.8\)\]−𝔼​\[f​\(𝐱1,𝐱1\+𝐱2\)\]\.\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\_\{1\},X\_\{2\}\)\\mid\\operatorname\{do\}\(X\_\{2\}=0\.8\)\]\-\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\_\{1\},\{\\mathbf\{x\}\}\_\{1\}\+\{\\mathbf\{x\}\}\_\{2\}\)\]\.From a causal perspective, the eventX2=0\.8X\_\{2\}=0\.8may rely onX1=0\.2X\_\{1\}=0\.2in the explained input\. Without𝒙1∗=0\.2\{\\bm\{x\}\}\_\{1\}^\{\*\}=0\.2, forcingX2X\_\{2\}to be0\.80\.8is not a coherent intervention for evaluating the utility of𝒙2∗\{\\bm\{x\}\}\_\{2\}^\{\*\}, and thus leads to an unreasonable attribution\.

Asymmetric \(Causal\) Shapley Value\.Both methods compute marginal contributions only over permutations in which the ancestor vertices appear before their descendants\. This ordering constraint prevents an ancestor from receiving cooperative gains from its descendants, thereby violating the externality\. In our toy example,𝒙1∗=0\.2\{\\bm\{x\}\}\_\{1\}^\{\*\}=0\.2has a direct influence onYY, but it cannot receive a marginal contribution from cooperating with𝒙2∗\{\\bm\{x\}\}\_\{2\}^\{\*\}because𝒙1∗\{\\bm\{x\}\}\_\{1\}^\{\*\}must appear before𝒙2∗\{\\bm\{x\}\}\_\{2\}^\{\*\}in all permitted permutations\. As a result, the attribution of𝒙1∗\{\\bm\{x\}\}\_\{1\}^\{\*\}becomes independent of𝒙2∗\{\\bm\{x\}\}\_\{2\}^\{\*\}, contradicting the externality principle in cooperative game theory\[[33](https://arxiv.org/html/2606.15273#bib.bib33)\]\.

Shapley Flow\.While satisfying*cut\-efficiency*\(i\.e\., the sum of attributions within each cut equals the prediction change induced by that cut\), Shapley flow does not satisfy the global efficiency axiom in Shapley’s original formulation, where the sum of attributions over all features should equal the total change\[[33](https://arxiv.org/html/2606.15273#bib.bib33)\]\. Moreover, Shapley flow enforces a cut\-efficiency style conservation, which makes attributions “flow” through the graph and balance across cuts\. Consequently, this approach implicitly assumes that only vertices with no incoming edges can introduce exogenous contributions, while intermediate vertices merely transmit contributions inherited from their ancestors\. In our toy example,X2X\_\{2\}has its own exogenous influence𝐱2\{\\mathbf\{x\}\}\_\{2\}\(X2=X1\+𝐱2X\_\{2\}=X\_\{1\}\+\{\\mathbf\{x\}\}\_\{2\}\), but these methods cannot properly isolate and attribute this independent exogenous part\.

Recursive Shapley Value\.The top\-down hierarchical decomposition of the recursive Shapley value processes parent nodes prior to their descendants, eliminating the dependence of a parent node’s attribution on its child nodes\. Therefore, it does not satisfy the externality property\. Similar to Shapley Flow, it also satisfies cut\-efficiency\. Consequently, it shares the same limitation that it cannot properly attribute the exogenous influences of non\-root variables \(i\.e\., it also violates exogeneity\)\. Moreover, by enforcing cut\-efficiency, it fails to satisfy the efficiency property\.

TABLE 1:Comparison of feature attribution method in terms of having \(✔\) and missing \(✘\) desiderata\.MethodCausalityEfficiencyExternalityExogeneityOff\-manifold SV\[[31](https://arxiv.org/html/2606.15273#bib.bib31)\]✘✔✔✔On\-manifold SV\[[31](https://arxiv.org/html/2606.15273#bib.bib31)\]✘✔✔✔Asymmetric SV\[[10](https://arxiv.org/html/2606.15273#bib.bib10)\]✔✔✘✔Sym\. causal SV\[[14](https://arxiv.org/html/2606.15273#bib.bib14)\]✘✔✔✔Asym\. causal SV\[[10](https://arxiv.org/html/2606.15273#bib.bib10)\]✔✔✘✔Shapley Flow\[[41](https://arxiv.org/html/2606.15273#bib.bib41)\]✔✘✔✘Recursive SV\[[35](https://arxiv.org/html/2606.15273#bib.bib35)\]✔✘✘✘DAG\-SHAP \(Ours\)✔✔✔✔
### IV\-CFeature Attribution vs\. Causal Effect Estimation

Since our formulation uses causal graphs and interventions, it is necessary to clarify that the target of this paper is still feature attribution, rather than causal effect estimation itself\. The attribution problem considered in this paper is inherently local: it explains why an individual input deviates from the baseline prediction, rather than estimating a population\-level average causal effect\. In contrast, measures such as Average Causal Effect \(ACE\), direct effect, and indirect effect quantify how changing a feature affects the outcome on average across a population or along a specified causal path\. They are useful causal quantities, but they do not allocate the collaborative contribution of a specific feature tuple to a particular model prediction\. This distinction matters because local feature attribution must explain the specific interaction of feature values in one data point\[[30](https://arxiv.org/html/2606.15273#bib.bib30)\]\.

For example, suppose a model predicts the probability of a heart attack, denoted byRR, from two features: body\-mass indexMMand average sleep durationLL\. Consider a baseline individual withM=25M=25andL=7L=7hours, and an explained individual withM=30M=30andL=5L=5hours\. If ACE estimates that a one\-unit increase inMMraises the probability by1%1\\%and reducingLLby one hour raises it by2%2\\%, simply adding these global average effects would estimate a9%9\\%increase \(55BMI units×1%\\times 1\\%plus22hours less sleep×2%\\times 2\\%\)\. However, because body\-mass index and sleep duration may have synergistic effects, the prediction increase for this individual may be11%11\\%rather than the additive9%9\\%suggested by ACE\. ACE describes average responses to isolated changes, but it does not determine how this instance\-level11%11\\%prediction change should be distributed betweenMMandLL\. A local attribution method should allocate this joint effect between the two features, for example assigning6\.5%6\.5\\%toMMand4\.5%4\.5\\%toLL, thereby explaining the specific prediction instead of replacing attribution with a global causal effect estimate\. This is the setting in which causal knowledge and Shapley\-style local contribution allocation need to be combined\.

Conclusion\.As discussed above, existing SV\-based attribution methods fail to simultaneously satisfy the four key properties of causality, efficiency, externality, and exogeneity\. In contrast, we propose a novel approach that satisfies all four properties, the details of which are presented in the next section\.

## VDAG\-SHAP: Edge Intervention Causal Shapley value

We proposeDAG\-SHAP, an edge\-based feature attribution method suitable for the scenario where the causal relations of input features can be formulated as a DAG\. DAG\-SHAP enables us to gain a deeper understanding of how features collaboratively contribute to the model output using the edge intervention to capture the causal influence within the features\.

Edge Intervention\.Consider a DAG𝒢=\(𝕍,𝑬\)\\mathcal\{G\}=\(\{\\mathbb\{V\}\},\\bm\{E\}\)with a set of vertices𝕍=\{X1,⋯,Xn\}\{\\mathbb\{V\}\}=\\\{X\_\{1\},\\\!\\cdots\\\!,X\_\{n\}\\\}and directed edges𝑬=\{e1,⋯,em\}\\bm\{E\}=\\\{\{\\textnormal\{e\}\}\_\{1\},\\\!\\cdots\\\!,\{\\textnormal\{e\}\}\_\{m\}\\\}\. Given a specific explained input𝒙\{\\bm\{x\}\}, we instantiate the edges asE​\(𝒙\)=\{e1,⋯,em\}E\(\{\\bm\{x\}\}\)=\\\{e\_\{1\},\\\!\\cdots\\\!,e\_\{m\}\\\}, where each instantiated edgeei=\(pi,ci,𝒙pi\)e\_\{i\}=\(p\_\{i\},c\_\{i\},\{\\bm\{x\}\}\_\{p\_\{i\}\}\)fixes the value transmitted frompip\_\{i\}tocic\_\{i\}111For notational convenience, we abbreviateXpi,XciX\_\{p\_\{i\}\},X\_\{c\_\{i\}\}aspi,cip\_\{i\},c\_\{i\}throughout the remainder of this paper\.to be𝒙pi\{\\bm\{x\}\}\_\{p\_\{i\}\}\. For a set of intervened edge indices𝒮⊆\{1,⋯,m\}\\mathcal\{S\}\\subseteq\\\{1,\\\!\\cdots\\\!,m\\\}, we denote anedge interventionby

do⁡\(𝐞𝒮=e𝒮\),\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\mathcal\{S\}\}=e\_\{\\mathcal\{S\}\}\),which enforces that, for everyi∈𝒮i\\in\\mathcal\{S\}, the causal influence frompip\_\{i\}tocic\_\{i\}is computed using the fixed value𝒙pi\{\\bm\{x\}\}\_\{p\_\{i\}\}, while leaving all other incoming edges ofcic\_\{i\}and all other outgoing edges ofpip\_\{i\}unchanged\. In this way, edge interventions enable fine\-grained, pathway\-specific causal analysis by intervening on selected parent\-child transmissions without globally altering the entire set of child vertices of the same parent\.

DAG\-SHAP\.LetΠ\\Pidenote the set of all topological orderings of a given instantiated edge setE​\(x\)E\(x\)\. Each orderingπ∈Π\\pi\\in\\Pirespects the causal precedence constraints among edges, thereby specifying a valid sequence in which edge interventions can be applied\. We introduce the formal definition ofedge\-intervention causal Shapley valueas follows\.

###### Definition V\.1\(Edge\-Intervention Causal Shapley Value\)\.

Given the setΠ\\Pi\. Letπ​\(i\)\\pi\(i\)denote the position of edgeeie\_\{i\}in the orderingπ∈Π\\pi\\in\\Pi, and the sets

𝒮πi=\{j∣π​\(j\)<π​\(i\)\},𝒮¯πi=\{j∣π​\(j\)≤π​\(i\)\}\\mathcal\{S\}\_\{\\pi\}^\{i\}=\\\{j\\\!\\mid\\\!\\pi\(j\)\\\!<\\\!\\pi\(i\)\\\},\\quad\\underline\{\\mathcal\{S\}\}\_\{\\pi\}^\{i\}=\\\{j\\\!\\mid\\\!\\pi\(j\)\\\!\\leq\\\!\\pi\(i\)\\\}corresponding to the edges that precedeeie\_\{i\}and the edges up to and includingeie\_\{i\}, respectively\. The edge\-intervention causal Shapley value of edgeeie\_\{i\}is given by

Ψ\(ei\)=1\|Π\|∑π∈Π\{\\displaystyle\\Psi\(e\_\{i\}\)=\\frac\{1\}\{\|\\Pi\|\}\\sum\_\{\\pi\\in\\Pi\}\\Big\\\{𝔼​\[f​\(𝐱\)∣do⁡\(𝐞𝒮¯πi=e𝒮¯πi\)\]\\displaystyle\\mathbb\{E\}\\\!\\left\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\underline\{\\mathcal\{S\}\}\_\{\\pi\}^\{i\}\}=e\_\{\\underline\{\\mathcal\{S\}\}\_\{\\pi\}^\{i\}\}\)\\right\]\(3\)−𝔼\[f\(𝐱\)∣do\(𝐞𝒮πi=e𝒮πi\)\]\}\.\\displaystyle\-\\mathbb\{E\}\\\!\\left\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\)\\right\]\\Big\\\}\.

This formulation implies that the attribution value of edgeeie\_\{i\}is the average marginal contribution of intervening oneie\_\{i\}, conditioned on having already intervened on all edges precedingeie\_\{i\}in the orderingπ\\pi\. For brevity, we also refer to Definition[V\.1](https://arxiv.org/html/2606.15273#S5.Thmtheorem1)asDAG\-SHAP\. Unless otherwise specified, DAG\-SHAP will be used throughout the remainder of this paper\.

Let𝒪k\\mathcal\{O\}\_\{k\}be the set of edges with vertexkkas the parent, the DAG\-SHAP of vertexkkis then defined as the sum of attribution values of its outgoing edges, which can be formulated as

Φ​\(k\)=∑e∈𝒪kΨ​\(e\)\.\\Phi\(k\)=\\sum\_\{e\\in\\mathcal\{O\}\_\{k\}\}\\Psi\(e\)\.\(4\)
Detailed proofs showing that DAG\-SHAP satisfies all eight properties discussed in Section[III\-C](https://arxiv.org/html/2606.15273#S3.SS3)are provided in Appendix Section[X](https://arxiv.org/html/2606.15273#S10)\. Since the aim of our paper is to derive the contribution of each feature, all the properties we prove pertain to the vertices of the DAG\.

Example\.We illustrate the definition of DAG\-SHAP using the toy example in Figure[1](https://arxiv.org/html/2606.15273#S1.F1)\. Denote the three edges ase1:X1→X2\{\\textnormal\{e\}\}\_\{1\}:X\_\{1\}\\rightarrow X\_\{2\},e2:X1→Y\{\\textnormal\{e\}\}\_\{2\}:X\_\{1\}\\rightarrow Y, ande3:X2→Y\{\\textnormal\{e\}\}\_\{3\}:X\_\{2\}\\rightarrow Y\. For the explained input𝒙∗=\(0\.2,0\.8\)\{\\bm\{x\}\}^\{\*\}=\(0\.2,0\.8\), the instantiated edges aree1=\(X1,X2,0\.2\)e\_\{1\}=\(X\_\{1\},X\_\{2\},0\.2\),e2=\(X1,Y,0\.2\)e\_\{2\}=\(X\_\{1\},Y,0\.2\), ande3=\(X2,Y,0\.8\)e\_\{3\}=\(X\_\{2\},Y,0\.8\)\. Sincee1e\_\{1\}must precedee3e\_\{3\}, the valid topological orderings are

Π=\{\(e1,e2,e3\),\(e1,e3,e2\),\(e2,e1,e3\)\}\.\\Pi=\\\{\(e\_\{1\},e\_\{2\},e\_\{3\}\),\\ \(e\_\{1\},e\_\{3\},e\_\{2\}\),\\ \(e\_\{2\},e\_\{1\},e\_\{3\}\)\\\}\.For notational convenience, we define the utility function

U​\(𝒮\):=𝔼​\[f​\(𝐱\)∣do⁡\(𝐞𝒮=e𝒮\)\],U​\(∅\)=𝔼​\[f​\(𝐱\)\]\.U\(\\mathcal\{S\}\):=\\mathbb\{E\}\\\!\\left\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\mathcal\{S\}\}=e\_\{\\mathcal\{S\}\}\)\\right\],\\qquad U\(\\emptyset\)=\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\]\.Consider the orderingπ′=\(e1,e2,e3\)\\pi^\{\\prime\}=\(e\_\{1\},e\_\{2\},e\_\{3\}\)\. The required utilities are

U​\(\{1\}\)\\displaystyle U\(\\\{1\\\}\)=𝔼𝐱¯2∼P​\(𝐱2∣𝒙1∗=0\.2\)​\[f​\(𝐱1,𝐱¯2\)\],\\displaystyle=\\mathbb\{E\}\_\{\\overline\{\{\\mathbf\{x\}\}\}\_\{2\}\\sim P\(\{\\mathbf\{x\}\}\_\{2\}\\mid\{\\bm\{x\}\}\_\{1\}^\{\*\}=0\.2\)\}\\\!\\left\[f\(\{\\mathbf\{x\}\}\_\{1\},\\overline\{\{\\mathbf\{x\}\}\}\_\{2\}\)\\right\],U​\(\{1,2\}\)\\displaystyle U\(\\\{1,2\\\}\)=𝔼𝐱¯2∼P​\(𝐱2∣𝒙1∗=0\.2\)​\[f​\(0\.2,𝐱¯2\)\],\\displaystyle=\\mathbb\{E\}\_\{\\overline\{\{\\mathbf\{x\}\}\}\_\{2\}\\sim P\(\{\\mathbf\{x\}\}\_\{2\}\\mid\{\\bm\{x\}\}\_\{1\}^\{\*\}=0\.2\)\}\\\!\\left\[f\(0\.2,\\overline\{\{\\mathbf\{x\}\}\}\_\{2\}\)\\right\],U​\(\{1,2,3\}\)\\displaystyle U\(\\\{1,2,3\\\}\)=𝔼​\[f​\(0\.2,0\.8\)\]\.\\displaystyle=\\mathbb\{E\}\\\!\\left\[f\(0\.2,0\.8\)\\right\]\.Thus, the marginal contributions alongπ′\\pi^\{\\prime\}are

Δπ​\(e1\)\\displaystyle\\Delta\_\{\\pi\}\(e\_\{1\}\)=U​\(\{1\}\)−U​\(∅\),\\displaystyle=U\(\\\{1\\\}\)\-U\(\\emptyset\),Δπ​\(e2\)\\displaystyle\\Delta\_\{\\pi\}\(e\_\{2\}\)=U​\(\{1,2\}\)−U​\(\{1\}\),\\displaystyle=U\(\\\{1,2\\\}\)\-U\(\\\{1\\\}\),Δπ​\(e3\)\\displaystyle\\Delta\_\{\\pi\}\(e\_\{3\}\)=U​\(\{1,2,3\}\)−U​\(\{1,2\}\)\.\\displaystyle=U\(\\\{1,2,3\\\}\)\-U\(\\\{1,2\\\}\)\.
We have computed the marginal contributions for the orderingπ′=\(e1,e2,e3\)\\pi^\{\\prime\}=\(e\_\{1\},e\_\{2\},e\_\{3\}\)\. The marginal contributions for the other two valid orderings,π′′=\(e1,e3,e2\)\\pi^\{\\prime\\prime\}=\(e\_\{1\},e\_\{3\},e\_\{2\}\)andπ′′′=\(e2,e1,e3\)\\pi^\{\\prime\\prime\\prime\}=\(e\_\{2\},e\_\{1\},e\_\{3\}\), are computed analogously\. Finally, the DAG\-SHAPΨ​\(ei\)\\Psi\(e\_\{i\}\)is obtained by averagingΔπ​\(ei\)\\Delta\_\{\\pi\}\(e\_\{i\}\)over all three orderingsπ∈Π=\{π′,π′′,π′′′\}\\pi\\in\\Pi=\\\{\\pi^\{\\prime\},\\pi^\{\\prime\\prime\},\\pi^\{\\prime\\prime\\prime\}\\\}, and the vertex attribution isΦ​\(k\)=∑e∈𝒪kΨ​\(e\)\\Phi\(k\)=\\sum\_\{e\\in\\mathcal\{O\}\_\{k\}\}\\Psi\(e\)\.

Edge Intervention vs\. Node Intervention\.The running example in Section[IV](https://arxiv.org/html/2606.15273#S4)illustrates the limitations of existing Shapley\-style attribution methods\. We now use a minimal example to further clarify the key methodological difference between edge intervention and node intervention\. Node interventions treat an entire feature value as the intervention object, and therefore may mix a feature’s own exogenous influence with the influence inherited from its ancestors\. In contrast, edge interventions operate on individual causal transmissions, allowing DAG\-SHAP to separate inherited effects from exogenous effects before aggregating them to feature\-level attributions\. To avoid additional complications from graph constraints, we focus here on symmetric node\-intervention, which is the closest node\-level counterpart to our Shapley\-style edge intervention, leaving the asymmetric case to Appendix Section[XI](https://arxiv.org/html/2606.15273#S11)in the full paper\.

We use the following example to show the difference\. LetX1=𝐱1X\_\{1\}=\\mathbf\{x\}\_\{1\}, where𝐱1\\mathbf\{x\}\_\{1\}is a random variable uniformly distributed on\[0,1\]\[0,1\], representing the exogenous influence ofX1X\_\{1\}; letX2=X1\+𝐱2X\_\{2\}=X\_\{1\}\+\\mathbf\{x\}\_\{2\}, where𝐱2\\mathbf\{x\}\_\{2\}is another random variable uniformly distributed on\[0,1\]\[0,1\], representing the exogenous influence ofX2X\_\{2\}\. The target is generated asY=max⁡\(X1,X2\)Y=\\max\(X\_\{1\},X\_\{2\}\)\. We aim to attribute values to the explained inputx∗=\[x1∗,x2∗\]=\[1,2\]x^\{\*\}=\[x\_\{1\}^\{\*\},x\_\{2\}^\{\*\}\]=\[1,2\]with respect to the baseline\[0,0\]\[0,0\]\.

For symmetric node intervention, both sampling permutations\(x1∗,x2∗\)\(x\_\{1\}^\{\*\},x\_\{2\}^\{\*\}\)and\(x2∗,x1∗\)\(x\_\{2\}^\{\*\},x\_\{1\}^\{\*\}\)are valid\. The marginal contributions ofx1∗x\_\{1\}^\{\*\}andx2∗x\_\{2\}^\{\*\}in these two permutations are shown in Table[2](https://arxiv.org/html/2606.15273#S5.T2), where each row explicitly keeps the corresponding intervention contrast\. Thus, the attribution value forx1∗x\_\{1\}^\{\*\}under symmetric node intervention is\(3/2\+0\)/2=3/4\(3/2\+0\)/2=3/4, while the attribution value forx2∗x\_\{2\}^\{\*\}is\(2\+1/2\)/2=5/4\(2\+1/2\)/2=5/4\. This result is misleading: althoughX1X\_\{1\}directly influencesX2X\_\{2\}and therefore also affectsYYthroughX2X\_\{2\}, the node intervention onX2X\_\{2\}mixes the exogenous contribution ofX2X\_\{2\}with the influence inherited fromX1X\_\{1\}\.

TABLE 2:Symmetric\-sampling node interventions: marginal contributions under\(x1∗,x2∗\)\(x\_\{1\}^\{\*\},x\_\{2\}^\{\*\}\)and\(x2∗,x1∗\)\(x\_\{2\}^\{\*\},x\_\{1\}^\{\*\}\)\.Node and permutationMarginal contributionValuex1∗x\_\{1\}^\{\*\}in\(x1∗,x2∗\)\(x\_\{1\}^\{\*\},x\_\{2\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐱\{1\}=x\{1\}∗\)\]−𝔼​\[𝐘∣do⁡\(∅\)\]\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{x\}\_\{\\\{1\\\}\}=x\_\{\\\{1\\\}\}^\{\*\}\\right\)\\right\]\-\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\(\\emptyset\)\\right\]32−0=32\\frac\{3\}\{2\}\-0=\\frac\{3\}\{2\}x1∗x\_\{1\}^\{\*\}in\(x2∗,x1∗\)\(x\_\{2\}^\{\*\},x\_\{1\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐱\{1,2\}=x\{1,2\}∗\)\]−𝔼​\[𝐘∣do⁡\(𝐱\{2\}=x2∗\)\]\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{x\}\_\{\\\{1,2\\\}\}=x\_\{\\\{1,2\\\}\}^\{\*\}\\right\)\\right\]\-\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{x\}\_\{\\\{2\\\}\}=x\_\{2\}^\{\*\}\\right\)\\right\]2−2=02\-2=0x2∗x\_\{2\}^\{\*\}in\(x2∗,x1∗\)\(x\_\{2\}^\{\*\},x\_\{1\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐱\{2\}=x\{2\}∗\)\]−𝔼​\[𝐘∣do⁡\(∅\)\]\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{x\}\_\{\\\{2\\\}\}=x\_\{\\\{2\\\}\}^\{\*\}\\right\)\\right\]\-\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\(\\emptyset\)\\right\]2−0=22\-0=2x2∗x\_\{2\}^\{\*\}in\(x1∗,x2∗\)\(x\_\{1\}^\{\*\},x\_\{2\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐱\{1,2\}=x\{1,2\}∗\)\]−𝔼​\[𝐘∣do⁡\(𝐱\{1\}=x\{1\}∗\)\]\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{x\}\_\{\\\{1,2\\\}\}=x\_\{\\\{1,2\\\}\}^\{\*\}\\right\)\\right\]\-\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{x\}\_\{\\\{1\\\}\}=x\_\{\\\{1\\\}\}^\{\*\}\\right\)\\right\]2−32=122\-\\frac\{3\}\{2\}=\\frac\{1\}\{2\}For DAG\-SHAP edge interventions, the edges for the instancex∗x^\{\*\}are denoted bye1∗:X1→X2e\_\{1\}^\{\*\}:X\_\{1\}\\to X\_\{2\},e2∗:X1→Ye\_\{2\}^\{\*\}:X\_\{1\}\\to Y, ande3∗:X2→Ye\_\{3\}^\{\*\}:X\_\{2\}\\to Y\. The valid edge permutations are\(e1∗,e2∗,e3∗\)\(e\_\{1\}^\{\*\},e\_\{2\}^\{\*\},e\_\{3\}^\{\*\}\),\(e1∗,e3∗,e2∗\)\(e\_\{1\}^\{\*\},e\_\{3\}^\{\*\},e\_\{2\}^\{\*\}\), and\(e2∗,e1∗,e3∗\)\(e\_\{2\}^\{\*\},e\_\{1\}^\{\*\},e\_\{3\}^\{\*\}\), sincee1∗e\_\{1\}^\{\*\}must precedee3∗e\_\{3\}^\{\*\}\. The marginal contributions of each edge in each arrangement are shown in Table[3](https://arxiv.org/html/2606.15273#S5.T3)\. The attribution value forx1∗x\_\{1\}^\{\*\}in DAG\-SHAP is\(3/2\+3/2\+1/4\)/3\+\(0\+0\+5/4\)/3=3/2\(3/2\+3/2\+1/4\)/3\+\(0\+0\+5/4\)/3=3/2, and the attribution value forx2∗x\_\{2\}^\{\*\}is\(1/2\+1/2\+1/2\)/3=1/2\(1/2\+1/2\+1/2\)/3=1/2\. Sincex1∗=1x\_\{1\}^\{\*\}=1directly influencesX2X\_\{2\}and in turn influencesY=max⁡\(X1,X2\)Y=\\max\(X\_\{1\},X\_\{2\}\)throughX2X\_\{2\},x1∗x\_\{1\}^\{\*\}should receive more attribution thanx2∗x\_\{2\}^\{\*\}\. DAG\-SHAP obtains this result because it attributes the causal transmissionsX1→X2X\_\{1\}\\to X\_\{2\},X1→YX\_\{1\}\\to Y, andX2→YX\_\{2\}\\to Yseparately before aggregating outgoing\-edge contributions to feature\-level attributions\. By contrast, symmetric node intervention gives the misleading resultϕ2\>ϕ1\\phi\_\{2\}\>\\phi\_\{1\}because it includes the inherited contribution fromX1X\_\{1\}in the marginal contribution ofX2X\_\{2\}, i\.e\.,𝔼​\[Y∣do⁡\(X2=x2∗\)\]−𝔼​\[Y∣do⁡\(∅\)\]=2\\mathbb\{E\}\[Y\\mid\\operatorname\{do\}\(X\_\{2\}=x\_\{2\}^\{\*\}\)\]\-\\mathbb\{E\}\[Y\\mid\\operatorname\{do\}\(\\emptyset\)\]=2\.

TABLE 3:Edge interventions \(DAG\-SHAP\): marginal contributions under all valid edge permutations\.Edge and permutationMarginal contributionValuee1∗e\_\{1\}^\{\*\}in\(e1∗,e2∗,e3∗\)\(e\_\{1\}^\{\*\},e\_\{2\}^\{\*\},e\_\{3\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐞\{1\}=e1∗\)\]−𝔼​\[𝐘∣do⁡\(∅\)\]\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1\\\}\}=e\_\{1\}^\{\*\}\\right\)\\right\]\-\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\(\\emptyset\)\\right\]32−0=32\\frac\{3\}\{2\}\-0=\\frac\{3\}\{2\}e1∗e\_\{1\}^\{\*\}in\(e1∗,e3∗,e2∗\)\(e\_\{1\}^\{\*\},e\_\{3\}^\{\*\},e\_\{2\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐞\{1\}=e1∗\)\]−𝔼​\[𝐘∣do⁡\(∅\)\]\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1\\\}\}=e\_\{1\}^\{\*\}\\right\)\\right\]\-\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\(\\emptyset\)\\right\]32−0=32\\frac\{3\}\{2\}\-0=\\frac\{3\}\{2\}e1∗e\_\{1\}^\{\*\}in\(e2∗,e1∗,e3∗\)\(e\_\{2\}^\{\*\},e\_\{1\}^\{\*\},e\_\{3\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐞\{1,2\}=e\{1,2\}∗\)\]−𝔼​\[𝐘∣do⁡\(𝐞\{2\}=e2∗\)\]\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1,2\\\}\}=e\_\{\\\{1,2\\\}\}^\{\*\}\\right\)\\right\]\-\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{2\\\}\}=e\_\{2\}^\{\*\}\\right\)\\right\]32−54=14\\frac\{3\}\{2\}\-\\frac\{5\}\{4\}=\\frac\{1\}\{4\}e2∗e\_\{2\}^\{\*\}in\(e1∗,e2∗,e3∗\)\(e\_\{1\}^\{\*\},e\_\{2\}^\{\*\},e\_\{3\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐞\{1,2\}=e\{1,2\}∗\)\]−𝔼​\[𝐘∣do⁡\(𝐞\{1\}=e1∗\)\]\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1,2\\\}\}=e\_\{\\\{1,2\\\}\}^\{\*\}\\right\)\\right\]\-\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1\\\}\}=e\_\{1\}^\{\*\}\\right\)\\right\]32−32=0\\frac\{3\}\{2\}\-\\frac\{3\}\{2\}=0e2∗e\_\{2\}^\{\*\}in\(e1∗,e3∗,e2∗\)\(e\_\{1\}^\{\*\},e\_\{3\}^\{\*\},e\_\{2\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐞\{1,2,3\}=e\{1,2,3\}∗\)\]−𝔼​\[𝐘∣do⁡\(𝐞\{1,3\}=e\{1,3\}∗\)\]\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1,2,3\\\}\}=e\_\{\\\{1,2,3\\\}\}^\{\*\}\\right\)\\right\]\-\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1,3\\\}\}=e\_\{\\\{1,3\\\}\}^\{\*\}\\right\)\\right\]2−2=02\-2=0e2∗e\_\{2\}^\{\*\}in\(e2∗,e1∗,e3∗\)\(e\_\{2\}^\{\*\},e\_\{1\}^\{\*\},e\_\{3\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐞\{2\}=e2∗\)\]−𝔼​\[𝐘∣do⁡\(∅\)\]\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{2\\\}\}=e\_\{2\}^\{\*\}\\right\)\\right\]\-\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\(\\emptyset\)\\right\]54−0=54\\frac\{5\}\{4\}\-0=\\frac\{5\}\{4\}e3∗e\_\{3\}^\{\*\}in\(e1∗,e2∗,e3∗\)\(e\_\{1\}^\{\*\},e\_\{2\}^\{\*\},e\_\{3\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐞\{1,2,3\}=e\{1,2,3\}∗\)\]−𝔼​\[𝐘∣do⁡\(𝐞\{1,2\}=e\{1,2\}∗\)\]\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1,2,3\\\}\}=e\_\{\\\{1,2,3\\\}\}^\{\*\}\\right\)\\right\]\-\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1,2\\\}\}=e\_\{\\\{1,2\\\}\}^\{\*\}\\right\)\\right\]2−32=122\-\\frac\{3\}\{2\}=\\frac\{1\}\{2\}e3∗e\_\{3\}^\{\*\}in\(e1∗,e3∗,e2∗\)\(e\_\{1\}^\{\*\},e\_\{3\}^\{\*\},e\_\{2\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐞\{1,3\}=e\{1,3\}∗\)\]−𝔼​\[𝐘∣do⁡\(𝐞\{1\}=e1∗\)\]\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1,3\\\}\}=e\_\{\\\{1,3\\\}\}^\{\*\}\\right\)\\right\]\-\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1\\\}\}=e\_\{1\}^\{\*\}\\right\)\\right\]2−32=122\-\\frac\{3\}\{2\}=\\frac\{1\}\{2\}e3∗e\_\{3\}^\{\*\}in\(e2∗,e1∗,e3∗\)\(e\_\{2\}^\{\*\},e\_\{1\}^\{\*\},e\_\{3\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐞\{1,2,3\}=e\{1,2,3\}∗\)\]−𝔼​\[𝐘∣do⁡\(𝐞\{1,2\}=e\{1,2\}∗\)\]\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1,2,3\\\}\}=e\_\{\\\{1,2,3\\\}\}^\{\*\}\\right\)\\right\]\-\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1,2\\\}\}=e\_\{\\\{1,2\\\}\}^\{\*\}\\right\)\\right\]2−32=122\-\\frac\{3\}\{2\}=\\frac\{1\}\{2\}
## VIImplementation of DAG\-SHAP

In this section, we introduce an exact computation method for edge intervention causal Shapley value by inferring feature distributions\. Additionally, we propose an approximate algorithm for cases where these distributions are difficult to estimate in real datasets, as shown in Section[VI\-B](https://arxiv.org/html/2606.15273#S6.SS2)\.

### VI\-AExact Computation of DAG\-SHAP

To compute the edge intervention Shapley value, the initial step involves calculating the value function𝒰​\(𝒮\)=𝔼​\[f​\(𝐱\)∣do⁡\(𝐞𝒮=e𝒮\)\]\\mathcal\{U\}\(\\mathcal\{S\}\)=\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\mathcal\{S\}\}=e\_\{\\mathcal\{S\}\}\)\], which necessitates determining the distribution of𝐱\{\\mathbf\{x\}\}under edge intervention\. When intervening on the edges𝐞𝒮\{\\mathbf\{e\}\}\_\{\\mathcal\{S\}\}, for those edges where the child vertex is the target label, the values of the parent vertices corresponding to these edges can be directly fixed by the feature values of the input𝒙\{\\bm\{x\}\}since these edges represent the direct influence of features to the target label\. Let𝔻𝒮\\mathbb\{D\}\_\{\\mathcal\{S\}\}denote the set of features that have a direct influence on the target label, and whose direct influence on the target label is through the edges in𝐞𝒮\\mathbf\{e\}\_\{\\mathcal\{S\}\}\.𝕍𝒮\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\}is the complement of𝔻𝒮\\mathbb\{D\}\_\{\\mathcal\{S\}\}\. For the value function𝒰​\(𝒮\)=𝔼​\[f​\(𝐱\)∣do⁡\(𝐞𝒮=e𝒮\)\]\\mathcal\{U\}\(\\mathbf\{\\mathcal\{S\}\}\)=\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\\mathbf\{e\}\_\{\\mathcal\{S\}\}=e\_\{\\mathcal\{S\}\}\)\], the values of the features in𝔻𝒮\\mathbb\{D\}\_\{\\mathcal\{S\}\}are determined by the values of the features in𝒙\\bm\{x\}, given that their direct influences are subjected to intervention\. Consequently, the DAG\-SHAP for edgeeie\_\{i\}in Eq\. \([3](https://arxiv.org/html/2606.15273#S5.E3)\) can be reformulated as

Ψv​\(ei\)\\displaystyle\\Psi\_\{v\}\(e\_\{i\}\)=∑π∈Π1\|Π\|​\{𝔼\[f\(𝐱𝕍𝒮¯πi,𝒙𝔻𝒮¯πi\)∣do\(𝐞𝒮¯πi=e𝒮¯πi\)\]−𝔼\[f\(𝐱𝕍𝒮πi,𝒙𝔻𝒮πi\)∣do\(𝐞𝒮πi=e𝒮πi\)\]\}\.\\displaystyle=\\sum\_\{\\pi\\in\\Pi\}\\frac\{1\}\{\|\\Pi\|\}\\begin\{aligned\} &\\Big\\\{\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\_\{\{\\mathbb\{V\}\}\_\{\\underline\{\\mathcal\{S\}\}\_\{\\pi\}^\{i\}\}\},\{\\bm\{x\}\}\_\{\\mathbb\{D\}\_\{\\underline\{\\mathcal\{S\}\}\_\{\\pi\}^\{i\}\}\}\)\\mid\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\underline\{\\mathcal\{S\}\}\_\{\\pi\}^\{i\}\}\\\!=e\_\{\\underline\{\\mathcal\{S\}\}\_\{\\pi\}^\{i\}\}\)\]\\\\ &\-\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\_\{\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\},\{\\bm\{x\}\}\_\{\\mathbb\{D\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\}\)\\mid\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\)\]\\Big\\\}\.\\end\{aligned\}
To calculate𝔼​\[f​\(𝐱𝕍𝒮,𝒙𝔻𝒮\)\|do⁡\(𝐞𝒮=e𝒮\)\]\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\_\{\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\}\},\{\\bm\{x\}\}\_\{\\mathbb\{D\}\_\{\\mathcal\{S\}\}\}\)\|\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\mathcal\{S\}\}=e\_\{\\mathcal\{S\}\}\)\], we should determine how to get the distribution of𝐱𝕍𝒮\{\\mathbf\{x\}\}\_\{\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\}\}\. For a given DAG, the distribution of the data𝐱\{\\mathbf\{x\}\}generated by this graph satisfies the Markov property\. Denote the distribution of the data asP​\(𝐱\)P\(\{\\mathbf\{x\}\}\), which can be expressed as follows

P​\(𝐱\)=Πi∈𝕍​P​\(𝐱i\|𝐱p​a​\(i\)\),P\(\{\\mathbf\{x\}\}\)=\\Pi\_\{i\\in\{\\mathbb\{V\}\}\}P\(\{\\mathbf\{x\}\}\_\{i\}\|\{\\mathbf\{x\}\}\_\{pa\(i\)\}\),wherep​a​\(i\)pa\(i\)represents the set of parent vertices ofiiin the graph\. When we intervene in the generation of data, the conditional distribution of each feature needs to be changed accordingly\. The distribution formula of𝐱𝕍𝒮\{\\mathbf\{x\}\}\_\{\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\}\}after the intervention is

P​\(𝐱𝕍𝒮\|do⁡\(𝐞𝒮=e𝒮\)\)=Πi∈𝕍𝒮​P​\(𝐱i\|𝐱p​a​\(i\)∩𝕍𝒮i,𝒙p​a​\(i\)∩𝔻𝒮i\),P\(\{\\mathbf\{x\}\}\_\{\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\}\}\|\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\mathcal\{S\}\}=e\_\{\\mathcal\{S\}\}\)\)=\\Pi\_\{i\\in\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\}\}P\(\{\\mathbf\{x\}\}\_\{i\}\|\{\\mathbf\{x\}\}\_\{pa\(i\)\\cap\{\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\}^\{i\}\}\},\{\\bm\{x\}\}\_\{pa\(i\)\\cap\{\\mathbb\{D\}\_\{\\mathcal\{S\}\}^\{i\}\}\}\),where𝔻𝒮i\\mathbb\{D\}\_\{\\mathcal\{S\}\}^\{i\}is the set of features that have a direct influence on the value of featureiiand are connected toiiby edges in𝐞𝒮\\mathbf\{e\}\_\{\\mathcal\{S\}\}\.𝕍𝒮i\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\}^\{i\}is the complement of𝔻𝒮i\\mathbb\{D\}\_\{\\mathcal\{S\}\}^\{i\}\. Since the permutations used to calculate the marginal contributions follow the topological order, the distributions of all parent vertices are already determined when calculating the distribution of a particular feature\. We sequentially compute the distributions of all vertices\. After calculating the marginal contribution for all topological orderings, a weighted average can be used to obtain the attribution value for each edge\. By aggregating the attribution values of all outgoing edges of a vertex, we can compute the total attribution value for the corresponding feature point, reflecting its integrated contribution across all causal pathways\.

### VI\-BApproximation of DAG\-SHAP

Algorithm 1Sampling𝐱𝕍𝒮\{\\mathbf\{x\}\}\_\{\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\}\}under edge intervention\.0:Edge permutation

π\\pi, intervention edge set size

ss, explained input

𝒙\\bm\{x\}, baseline input

𝒟\\mathcal\{D\}\.

0:A sample of

𝐱𝕍𝒮\{\\mathbf\{x\}\}\_\{\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\}\}, denoted as

𝐱¯𝕍𝒮\\overline\{\{\\mathbf\{x\}\}\}\_\{\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\}\}\.

1:Calculate the in\-degree of each vertex in the graph and store it in the array

𝒅\{\\bm\{d\}\};

2:Randomly initialize

𝐱¯𝕍𝒮\\overline\{\{\\mathbf\{x\}\}\}\_\{\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\}\}based on

𝒟\\mathcal\{D\};

3:for

i=1i=1to length of

π\\pido

4:Let

ccdenote the child vertex of edge

π​\(i\)\\pi\(i\);

5:Let

ppdenote the parent vertex of edge

π​\(i\)\\pi\(i\);

6:if

i≤si\\leq sthen

7:Assign value

𝒙p\\bm\{x\}\_\{p\}to edge

p→cp\\rightarrow c;

8:endif

9:

𝒅c←𝒅c−1\{\\bm\{d\}\}\_\{c\}\\leftarrow\{\\bm\{d\}\}\_\{c\}\-1;

10:if

𝒅c\{\\bm\{d\}\}\_\{c\}equals

0then

11:Infer the value of

𝐱¯c\\overline\{\{\\mathbf\{x\}\}\}\_\{c\}from the values of the edges between it and its parent vertices;

12:foreach child vertex

kkof vertex

ccdo

13:Assign value

𝐱¯c\\overline\{\{\\mathbf\{x\}\}\}\_\{c\}to edge

c→kc\\rightarrow k;

14:endfor

15:endif

16:endfor

17:return

𝐱¯𝕍𝒮\\overline\{\{\\mathbf\{x\}\}\}\_\{\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\}\}\.

In Section[VI\-A](https://arxiv.org/html/2606.15273#S6.SS1), we describe the way to infer the distribution of each feature\. However, we generally cannot accurately obtain the specific distribution expressions for each feature for real datasets\. Therefore, we use approximation methods based on data sampling to estimate the value of each feature, rather than directly solving the exact form of the distribution\. The detailed process is shown in Algorithm[1](https://arxiv.org/html/2606.15273#alg1)\. Given a valid edge orderingπ\\piand an intervention budgetss, we obtain the sampled value of𝐱𝕍𝒮\{\\mathbf\{x\}\}\_\{\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\}\}by forward simulation on the DAG and denote it as𝐱¯𝕍𝒮\\overline\{\{\\mathbf\{x\}\}\}\_\{\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\}\}\. It starts from a baseline sample from𝒟\\mathcal\{D\}, clamps the firstssedges inπ\\pito the corresponding values in𝒙\{\\bm\{x\}\}, and sequentially infers each vertex once its parent\-edge values are fixed, propagating the inferred value to its outgoing edges\. This yields one sample from the post\-intervention distribution used to estimate𝒰​\(𝒮\)\\mathcal\{U\}\(\\mathcal\{S\}\)\.

Since computing the Shapley value is an \#P\-hard problem\[[7](https://arxiv.org/html/2606.15273#bib.bib7),[45](https://arxiv.org/html/2606.15273#bib.bib45)\], the computational cost becomes very high when the number of edges increases\. Existing efficient Shapley methods\[[46](https://arxiv.org/html/2606.15273#bib.bib46),[23](https://arxiv.org/html/2606.15273#bib.bib23)\]do not handle DAG\-SHAP’s topologically constrained edge permutations, where each marginal contribution depends on prior edge interventions\. Therefore, we propose an approximation method based on Monte Carlo sampling for DAG\-SHAP\. The detailed process is shown in Algorithm[2](https://arxiv.org/html/2606.15273#alg2)\. We first enumerate edge permutations that comply with the topological sort and then intervene on each edge to compute its marginal contribution \(Lines 6\-9\)\. After obtaining the marginal contributions, we compute the weighted average to estimate the attribution value of the edge \(Lines 13\-14\)\. Finally, we sum the attribution values of the outgoing edges of each feature to get the overall edge attribution estimation \(Lines 16\-19\)\. The approximation error and scalability of this algorithm are evaluated in Sections[VII\-C](https://arxiv.org/html/2606.15273#S7.SS3)and[VII\-D](https://arxiv.org/html/2606.15273#S7.SS4), respectively\.

###### Theorem VI\.1\.

Denote byτ\\tauthe number of sampled valid permutations\. If each edge marginal contribution has range at mostrr, then the approximation based on Algorithm[2](https://arxiv.org/html/2606.15273#alg2)satisfies

ℙ​\(\|Φ​\(i\)¯−Φ​\(i\)\|≥ϵ\)\\displaystyle\\mathbb\{P\}\(\|\\overline\{\\Phi\(i\)\}\-\\Phi\(i\)\|\\geq\\epsilon\)≤2​m​exp⁡\(−2​τ​ϵ2m2​r2\)\\displaystyle\\leq 2m\\exp\\\!\\left\(\-\\frac\{2\\tau\\epsilon^\{2\}\}\{m^\{2\}r^\{2\}\}\\right\)=𝒪​\(m​exp⁡\(−τm2\)\)\.\\displaystyle=\\mathcal\{O\}\\\!\\left\(m\\exp\\\!\\left\(\-\\frac\{\\tau\}\{m^\{2\}\}\\right\)\\right\)\.

###### Proof\.

For notational simplicity, index the outgoing edges of feature vertexiiby a subset of at mostmmedges\. Since the feature attributionΦ​\(i\)\\Phi\(i\)is obtained by summing the attribution values of these outgoing edges, we have

ℙ​\(\|Φ​\(i\)¯−Φ​\(i\)\|≥ϵ\)\\displaystyle\\mathbb\{P\}\(\|\\overline\{\\Phi\(i\)\}\-\\Phi\(i\)\|\\geq\\epsilon\)≤\\displaystyle\\leq\{\}ℙ​\(∑j=1m\|Ψ​\(j\)¯−Ψ​\(j\)\|≥ϵ\)\\displaystyle\\mathbb\{P\}\\\!\\left\(\\sum\_\{j=1\}^\{m\}\|\\overline\{\\Psi\(j\)\}\-\\Psi\(j\)\|\\geq\\epsilon\\right\)≤\\displaystyle\\leq\{\}∑j=1mℙ​\(\|Ψ​\(j\)¯−Ψ​\(j\)\|≥ϵm\)\\displaystyle\\sum\_\{j=1\}^\{m\}\\mathbb\{P\}\\\!\\left\(\|\\overline\{\\Psi\(j\)\}\-\\Psi\(j\)\|\\geq\\frac\{\\epsilon\}\{m\}\\right\)≤\\displaystyle\\leq\{\}2​∑j=1mexp⁡\(−2​τ​\(ϵm\)2\(bj−aj\)2\)\\displaystyle 2\\sum\_\{j=1\}^\{m\}\\exp\\\!\\left\(\-\\frac\{2\\tau\(\\frac\{\\epsilon\}\{m\}\)^\{2\}\}\{\(b\_\{j\}\-a\_\{j\}\)^\{2\}\}\\right\)≤\\displaystyle\\leq\{\}2​m​exp⁡\(−2​τ​\(ϵm\)2r2\),\\displaystyle 2m\\exp\\\!\\left\(\-\\frac\{2\\tau\(\\frac\{\\epsilon\}\{m\}\)^\{2\}\}\{r^\{2\}\}\\right\),where\(aj,bj\)\(a\_\{j\},b\_\{j\}\)denotes the range of the marginal contribution of edgejj, andr=max1≤j≤m⁡\(bj−aj\)r=\\max\_\{1\\leq j\\leq m\}\(b\_\{j\}\-a\_\{j\}\)\. The second inequality follows from the union bound, and the third inequality follows from Hoeffding’s inequality\. Therefore,

𝒪​\(2​m​exp⁡\(−2​τ​\(ϵm\)2r2\)\)\\displaystyle\\mathcal\{O\}\\\!\\left\(2m\\exp\\\!\\left\(\-\\frac\{2\\tau\(\\frac\{\\epsilon\}\{m\}\)^\{2\}\}\{r^\{2\}\}\\right\)\\right\)=𝒪​\(2​m​exp⁡\(−2​τ​ϵ2m2​r2\)\)\\displaystyle=\\mathcal\{O\}\\\!\\left\(2m\\exp\\\!\\left\(\-\\frac\{2\\tau\\epsilon^\{2\}\}\{m^\{2\}r^\{2\}\}\\right\)\\right\)=𝒪​\(m⋅exp⁡\(−τm2\)\)\.\\displaystyle=\\mathcal\{O\}\\\!\\left\(m\\cdot\\exp\\\!\\left\(\-\\frac\{\\tau\}\{m^\{2\}\}\\right\)\\right\)\.Thus, we complete the proof\. ∎

Algorithm 2Approximation of DAG\-SHAP\.0:Graph

𝒢\\mathcal\{G\}, vertices

𝕍\{\\mathbb\{V\}\}, edges

EE, explained input

𝒙\{\\bm\{x\}\}, sampling number

TT\.

0:Approximate attribution values of each edge and each feature\.

1:Initialize counter

c​n​t←0cnt\\leftarrow 0;

2:for

t=1t=1to

TTdo

3:Let

π\\pibe a random permutation of

EE;

4:if

π\\piis a valid toposortthen

5:

u←0u\\leftarrow 0,

c​n​t←c​n​t\+1cnt\\leftarrow cnt\+1;

6:for

i=1i=1to length of

π\\pido

7:Obtain

𝐱¯𝕍𝒮\\overline\{\{\\mathbf\{x\}\}\}\_\{\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\}\}by intervening on edges

\{π​\(1\),⋯,π​\(i\)\}\\\{\\pi\(1\),\\cdots,\\pi\(i\)\\\}as described in Algorithm[1](https://arxiv.org/html/2606.15273#alg1);

8:

Ψ​\(π​\(i\)\)¯←Ψ​\(π​\(i\)\)¯\+f​\(𝐱¯𝕍𝒮,𝐱¯𝔻𝒮\)−u\\overline\{\\Psi\(\\pi\(i\)\)\}\\leftarrow\\overline\{\\Psi\(\\pi\(i\)\)\}\+f\(\\overline\{\{\\mathbf\{x\}\}\}\_\{\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\}\},\\overline\{\{\\mathbf\{x\}\}\}\_\{\\mathbb\{D\}\_\{\\mathcal\{S\}\}\}\)\-u;

9:

u←f​\(𝐱¯𝕍𝒮,𝐱¯𝔻𝒮\)u\\leftarrow f\(\\overline\{\{\\mathbf\{x\}\}\}\_\{\{\\mathbb\{V\}\}\_\{\\mathcal\{S\}\}\},\\overline\{\{\\mathbf\{x\}\}\}\_\{\\mathbb\{D\}\_\{\\mathcal\{S\}\}\}\);

10:endfor

11:endif

12:endfor

13:for

i=1i=1to

mmdo

14:

Ψ​\(i\)¯←Ψ​\(i\)¯/c​n​t\\overline\{\\Psi\(i\)\}\\leftarrow\\overline\{\\Psi\(i\)\}/cnt;

15:endfor

16:for

i=1i=1to

nndo

17:Get

Φ​\(i\)¯\\overline\{\\Phi\(i\)\}by summing the attribution values of its outgoing edges;

18:endfor

19:return

Ψ​\(1\)¯\\overline\{\\Psi\(1\)\},

⋯\\cdots,

Ψ​\(m\)¯\\overline\{\\Psi\(m\)\},

Φ​\(1\)¯\\overline\{\\Phi\(1\)\},

⋯\\cdots,

Φ​\(n\)¯\\overline\{\\Phi\(n\)\}\.

## VIIExperiments

To show the superiority of DAG\-SHAP over existing methods, we conduct experiments on both synthetic and real datasets\. We present the attribution values of the benchmark, DAG\-SHAP, and the baseline algorithms using bar charts\. Additionally, we calculate the mean absolute error between DAG\-SHAP and the benchmark, as well as between each baseline algorithm and the benchmark\. We utilize a Mixture Density Network to predict the distribution of child vertices after intervention on parent vertices within the input features, consistent with the approach used in causal Shapley value\[[14](https://arxiv.org/html/2606.15273#bib.bib14)\]\. We experiment with two models for predicting the target feature of the input features: a DNN and an XGBoost model\. The DNN and XGBoost attribution results are reported in the corresponding experimental subsections\. Since the attribution scores for each method are obtained via approximation, we further analyze the approximation error in Section[VII\-C](https://arxiv.org/html/2606.15273#S7.SS3)and the scalability of DAG\-SHAP in Section[VII\-D](https://arxiv.org/html/2606.15273#S7.SS4)\.

X1X\_\{1\}X2X\_\{2\}X3X\_\{3\}X4X\_\{4\}YY

\(a\)Synthetic dataset\.
X~12\\tilde\{X\}\_\{1\}^\{2\}X~11\\tilde\{X\}\_\{1\}^\{1\}X~13\\tilde\{X\}\_\{1\}^\{3\}X~23\\tilde\{X\}\_\{2\}^\{3\}X~22\\tilde\{X\}\_\{2\}^\{2\}X~21\\tilde\{X\}\_\{2\}^\{1\}X~3\\tilde\{X\}\_\{3\}X~4\\tilde\{X\}\_\{4\}YY

\(b\)Splitted synthetic dataset\.

Figure 2:DAGs of the synthetic datasets\.### VII\-AExperiments on Synthetic Dataset

Data Generation Process\.Consider a synthetic dataset consisting of four input features,X1X\_\{1\},X2X\_\{2\},X3X\_\{3\}, andX4X\_\{4\}, along with a target featureYY\. The featuresX1X\_\{1\}andX2X\_\{2\}are independently sampled from two exogenous continuous random variables,𝐱1\{\\mathbf\{x\}\}\_\{1\}and𝐱2\{\\mathbf\{x\}\}\_\{2\}, respectively\. Both𝐱1\{\\mathbf\{x\}\}\_\{1\}and𝐱2\{\\mathbf\{x\}\}\_\{2\}follow a uniform distribution over the interval\[0,10\]\[0,10\], i\.e\.,𝐱1,𝐱2∼U​\(0,10\)\{\\mathbf\{x\}\}\_\{1\},\{\\mathbf\{x\}\}\_\{2\}\\sim U\(0,10\)\.X3X\_\{3\}is influenced byX1X\_\{1\},X2X\_\{2\}, and an additional exogenous variable𝐱3∼U​\(0,10\)\{\\mathbf\{x\}\}\_\{3\}\\sim U\(0,10\), and given byX3=X1\+X2\+𝐱3X\_\{3\}=X\_\{1\}\+X\_\{2\}\+\{\\mathbf\{x\}\}\_\{3\}\. Similarly,X4X\_\{4\}is influenced byX1X\_\{1\},X2X\_\{2\}, and another exogenous variable𝐱4∼U​\(0,10\)\{\\mathbf\{x\}\}\_\{4\}\\sim U\(0,10\), and given byX4=X1\+X2\+𝐱4X\_\{4\}=X\_\{1\}\+X\_\{2\}\+\{\\mathbf\{x\}\}\_\{4\}\. Finally, the target featureYYis given byY=X1⋅X3\+X2⋅X4Y=X\_\{1\}\\cdot X\_\{3\}\+X\_\{2\}\\cdot X\_\{4\}\. The causal structure of this data generation process is shown in Figure[2\(a\)](https://arxiv.org/html/2606.15273#S7.F2.sf1)\.

Desirable Attribution\.To get desirable benchmark attribution, we conduct vertex splitting for the causal structure in Figure[2\(b\)](https://arxiv.org/html/2606.15273#S7.F2.sf2)\. Specifically, we split the influence ofX1X\_\{1\}andX2X\_\{2\}onX3,X4,and​YX\_\{3\},X\_\{4\},\\text\{and\}\\ Y\. DenoteX~11\\tilde\{X\}\_\{1\}^\{1\},X~12\\tilde\{X\}\_\{1\}^\{2\}, andX~13\\tilde\{X\}\_\{1\}^\{3\}as copies ofX1X\_\{1\}, whileX~21\\tilde\{X\}\_\{2\}^\{1\},X~22\\tilde\{X\}\_\{2\}^\{2\}, andX~23\\tilde\{X\}\_\{2\}^\{3\}are copies ofX2X\_\{2\}\. The featuresX~3\\tilde\{X\}\_\{3\}andX~4\\tilde\{X\}\_\{4\}correspond toX3X\_\{3\}andX4X\_\{4\}, respectively\. Specifically,X~3\\tilde\{X\}\_\{3\}can be expressed asX~3=X~12\+X~22\+𝐱~3\\tilde\{X\}\_\{3\}=\\tilde\{X\}\_\{1\}^\{2\}\+\\tilde\{X\}\_\{2\}^\{2\}\+\\tilde\{\{\\mathbf\{x\}\}\}\_\{3\}andX~4=X~13\+X~23\+𝐱~4\\tilde\{X\}\_\{4\}=\\tilde\{X\}\_\{1\}^\{3\}\+\\tilde\{X\}\_\{2\}^\{3\}\+\\tilde\{\{\\mathbf\{x\}\}\}\_\{4\}, where𝐱~3=𝐱3\\tilde\{\{\\mathbf\{x\}\}\}\_\{3\}=\{\\mathbf\{x\}\}\_\{3\}and𝐱~4=𝐱4\\tilde\{\{\\mathbf\{x\}\}\}\_\{4\}=\{\\mathbf\{x\}\}\_\{4\}\. The target feature is defined asY~=X~11⋅X~3\+X~21⋅X~4\\tilde\{Y\}=\\tilde\{X\}\_\{1\}^\{1\}\\cdot\\tilde\{X\}\_\{3\}\+\\tilde\{X\}\_\{2\}^\{1\}\\cdot\\tilde\{X\}\_\{4\}\. The DAG is illustrated in Figure[2\(b\)](https://arxiv.org/html/2606.15273#S7.F2.sf2), following the data generation process\. A key advantage of this split dataset is that the attributions of edges and vertices are equal as each vertex has only one outgoing edge, thereby eliminating externality issues in asymmetry causal Shapley value\. Thus, asymmetric causal Shapley value can satisfy all desirable properties in Section[V](https://arxiv.org/html/2606.15273#S5)\. We train the used model to predict labels based on featuresX1,X2,X3,and​X4X\_\{1\},X\_\{2\},X\_\{3\},\\text\{and\}\\ X\_\{4\}\. This model can also predict labels when provided with values ofX~11,X~21,X~3,and​X~4\\tilde\{X\}\_\{1\}^\{1\},\\tilde\{X\}\_\{2\}^\{1\},\\tilde\{X\}\_\{3\},\\text\{and\}\\ \\tilde\{X\}\_\{4\}\. Attribution is conducted using the model on𝒙~\\tilde\{\\bm\{x\}\}with asymmetric causal Shapley value, where the values ofX~12,X~22,X~13,X~23\\tilde\{X\}\_\{1\}^\{2\},\\tilde\{X\}\_\{2\}^\{2\},\\tilde\{X\}\_\{1\}^\{3\},\\tilde\{X\}\_\{2\}^\{3\}are not model inputs but serve to intervene onX~11,X~21,X~3,X~4\\tilde\{X\}\_\{1\}^\{1\},\\tilde\{X\}\_\{2\}^\{1\},\\tilde\{X\}\_\{3\},\\tilde\{X\}\_\{4\}\. The attribution results can benchmark the input tuple𝒙\\bm\{x\}in the original dataset since𝒙1=𝒙~11=𝒙~12=𝒙~13\\bm\{x\}\_\{1\}=\\tilde\{\\bm\{x\}\}\_\{1\}^\{1\}=\\tilde\{\\bm\{x\}\}\_\{1\}^\{2\}=\\tilde\{\\bm\{x\}\}\_\{1\}^\{3\}and𝒙2=𝒙~21=𝒙~22=𝒙~23\\bm\{x\}\_\{2\}=\\tilde\{\\bm\{x\}\}\_\{2\}^\{1\}=\\tilde\{\\bm\{x\}\}\_\{2\}^\{2\}=\\tilde\{\\bm\{x\}\}\_\{2\}^\{3\}\. This is because the sum of attribution values for𝒙~11,𝒙~12,𝒙~13\\tilde\{\\bm\{x\}\}\_\{1\}^\{1\},\\tilde\{\\bm\{x\}\}\_\{1\}^\{2\},\\tilde\{\\bm\{x\}\}\_\{1\}^\{3\}should be equal to the attribution value of𝒙1\\bm\{x\}\_\{1\}since𝒙~11,𝒙~12,𝒙~13\\tilde\{\\bm\{x\}\}\_\{1\}^\{1\},\\tilde\{\\bm\{x\}\}\_\{1\}^\{2\},\\tilde\{\\bm\{x\}\}\_\{1\}^\{3\}essentially represent the decomposition of𝒙1\\bm\{x\}\_\{1\}’s influence onYY, and similarly for𝒙~21,𝒙~22,𝒙~23\\tilde\{\\bm\{x\}\}\_\{2\}^\{1\},\\tilde\{\\bm\{x\}\}\_\{2\}^\{2\},\\tilde\{\\bm\{x\}\}\_\{2\}^\{3\}with𝒙2\\bm\{x\}\_\{2\}\. Moreover, the attribution value of𝒙~3\\tilde\{\\bm\{x\}\}\_\{3\}must be equal to that of𝒙3\\bm\{x\}\_\{3\}, and likewise for𝒙~4\\tilde\{\\bm\{x\}\}\_\{4\}and𝒙4\\bm\{x\}\_\{4\}, in accordance with implementation invariance\[[39](https://arxiv.org/html/2606.15273#bib.bib39)\]as they map the original input\.

![Refer to caption](https://arxiv.org/html/2606.15273v1/x1.png)Figure 3:Attribution results of the synthetic dataset \(DNN\)\.TABLE 4:Mean absolute error \(MAE\) on the synthetic dataset\.AlgorithmMAE×\\timesDAG\-SHAPRankDAG\-SHAP6\.846\.841\.001\.001Off\-SHAP19\.8019\.802\.892\.892On\-SHAP31\.0231\.024\.534\.533Causal58\.7558\.758\.598\.594ASV78\.9278\.9211\.5411\.545Experimental results\.ASV represents both the asymmetric Shapley value and the asymmetric causal Shapley value among the baseline algorithm, as they are equivalent given a DAG structure\. To simplify, we use ‘Causal’ to denote the symmetric causal Shapley value in the legend of Figure[3](https://arxiv.org/html/2606.15273#S7.F3)\. We omit the comparison with Shapley Flow and Recursive Shapley value because every feature is assumed to have an exogenous contribution in both the synthetic dataset and the real dataset used\. The axis labelsX1,X2,X3,X4X\_\{1\},X\_\{2\},X\_\{3\},X\_\{4\}of benchmark correspond to the sum of the split nodes\. Based on the data generation process, it is clear that the influence ofX1X\_\{1\}andX2X\_\{2\}onYYshould be greater than that ofX3X\_\{3\}andX4X\_\{4\}\. That is, the range of attribution values for featuresX1X\_\{1\}andX2X\_\{2\}should be greater thanX3X\_\{3\}andX4X\_\{4\}\. However, the results from off\-manifold SHAP, on\-manifold SHAP, and asymmetry SHAP with a DNN contradict this as shown in Figure[3](https://arxiv.org/html/2606.15273#S7.F3), as they fail to identify the impact of source vertices on their child vertices\. We also conduct a statistical analysis of the attribution error for each method\. The experimental results show that the DAG\-SHAP values calculated on Figure[2\(a\)](https://arxiv.org/html/2606.15273#S7.F2.sf1)are approximately equal to the sum of the DAG\-SHAP values calculated on Figure[2\(b\)](https://arxiv.org/html/2606.15273#S7.F2.sf2), and are also approximately equal to the attribution values in benchmark\. The error of other methods is significantly greater than that of DAG\-SHAP as shown in Table[4](https://arxiv.org/html/2606.15273#S7.T4)\. The attribution results using the XGBoost model on the synthetic dataset and the mean absolute error between the results and the benchmark are shown in Figure[4](https://arxiv.org/html/2606.15273#S7.F4)and Table[5](https://arxiv.org/html/2606.15273#S7.T5), respectively\.

![Refer to caption](https://arxiv.org/html/2606.15273v1/x2.png)Figure 4:Attribution results of the synthetic dataset \(XGBoost\)\.TABLE 5:MAE on the synthetic dataset \(XGBoost\)\.AlgorithmMAE×\\timesDAG\-SHAPRankDAG\-SHAP4\.214\.211\.001\.001Off\-SHAP21\.321\.35\.065\.062On\-SHAP32\.1532\.157\.647\.643Causal33\.9833\.988\.078\.074ASV94\.0994\.0922\.3522\.355
### VII\-BExperiments on Real Datasets

![Refer to caption](https://arxiv.org/html/2606.15273v1/x3.png)Figure 5:Attribution results of Census dataset \(DNN\)\.TABLE 6:MAE on the Census dataset \(DNN\)\.AlgorithmMAE×\\timesDAG\-SHAPRankDAG\-SHAP0\.120\.121\.001\.001Causal0\.210\.211\.751\.752Off\-SHAP0\.290\.292\.422\.423On\-SHAP0\.610\.615\.085\.084ASV0\.630\.635\.255\.255CountryRaceAgeOccCapgMSIncomeFigure 6:DAG of the Census Income dataset\.Experiments on Census Income Dataset\.The first real dataset we used is the Adult dataset\[[9](https://arxiv.org/html/2606.15273#bib.bib9)\]with the causal graph shown in Figure[6](https://arxiv.org/html/2606.15273#S7.F6)\. We train a binary classifier to predict whether the income of one individual exceeds $50,000 per year\. We also split the direct and indirect effects of Country, Race, and Age to create a new dataset\. We use the same way in the above experiments to get benchmark attribution values\. We show the attribution results with DNN in Figure[5](https://arxiv.org/html/2606.15273#S7.F5), whereX1,⋯,X6X\_\{1\},\\cdots,X\_\{6\}represent Race, Country, Age, Occupation, Marital Status, and Capital Gain, respectively\. The experimental results show that the attribution value of DAG\-SHAP is the closest to the benchmark, with the mean absolute error only57\.1%57\.1\\%of that of the second smallest method, causal Shapley value, as shown in Table[6](https://arxiv.org/html/2606.15273#S7.T6)\. The attribution results using the XGBoost model on the Census dataset and the mean absolute error between the results and the benchmark are shown in Figure[7](https://arxiv.org/html/2606.15273#S7.F7)and Table[7](https://arxiv.org/html/2606.15273#S7.T7), respectively\.

![Refer to caption](https://arxiv.org/html/2606.15273v1/x4.png)Figure 7:Attribution results of the Census dataset \(XGBoost\)\.TABLE 7:MAE on the Census dataset \(XGBoost\)\.AlgorithmMAE×\\timesDAG\-SHAPRankDAG\-SHAP0\.400\.401\.001\.001Causal0\.520\.521\.301\.302Off\-SHAP0\.590\.591\.481\.483On\-SHAP1\.591\.593\.983\.984ASV2\.112\.115\.285\.285![Refer to caption](https://arxiv.org/html/2606.15273v1/x5.png)Figure 8:Attribution results of Griliches76 dataset\.TABLE 8:MAE on the Griliches76 dataset \(DNN\)\.AlgorithmMAE×\\timesDAG\-SHAPRankDAG\-SHAP0\.080\.081\.001\.001Off\-SHAP0\.270\.273\.383\.382Causal0\.520\.526\.506\.503ASV1\.761\.7622\.0022\.004On\-SHAP2\.442\.4430\.5030\.505I​QIQE​D​UEDUY​E​A​RYEARL​WLW

\(a\)Griliches76\.
I​Q~\\tilde\{IQ\}E​D​UEDUY​E​A​RYEARL​WLWI​Q¯\\bar\{IQ\}

\(b\)Splitted Griliches76\.

Figure 9:DAGs of the Griliches76 datasets\.Experiments on Griliches76 Dataset\.The second real dataset we used is the Griliches76 dataset\[[12](https://arxiv.org/html/2606.15273#bib.bib12)\], gathered from the U\.S\. labor market\. This dataset is widely used in research to explore the impact of features on income\. We selected three features: IQ, education level \(EDU\), and years working at the current unit \(YEAR\)\. The target variable is the logarithm of weekly income \(LW\)\. We use the same way to create the benchmark as the synthetic dataset\. The original causal graph is shown in Figure[9\(a\)](https://arxiv.org/html/2606.15273#S7.F9.sf1)and the split graph is shown in Figure[9\(b\)](https://arxiv.org/html/2606.15273#S7.F9.sf2)\. We train an ML model with input features IQ, EDU, and YEAR\. The attribution results with a DNN of each method are shown in Figure[8](https://arxiv.org/html/2606.15273#S7.F8)\. The experimental results show that the attribution value of DAG\-SHAP is the closest to the benchmark, with the MAE only29\.6%29\.6\\%of that of the second smallest method, Off\-manifold SHAP, as shown in Table[8](https://arxiv.org/html/2606.15273#S7.T8)\. The attribution results using the XGBoost model on the Griliches76 dataset and the mean absolute error between the results and the benchmark are shown in Figure[10](https://arxiv.org/html/2606.15273#S7.F10)and Table[9](https://arxiv.org/html/2606.15273#S7.T9), respectively\.

![Refer to caption](https://arxiv.org/html/2606.15273v1/x6.png)Figure 10:Attribution results of the Griliches76 dataset \(XGBoost\)\.TABLE 9:MAE on the Griliches76 dataset \(XGBoost\)\.AlgorithmMAE×\\timesDAG\-SHAPRankDAG\-SHAP0\.050\.051\.001\.001Causal0\.410\.418\.208\.202Off\-SHAP0\.580\.5811\.6011\.603On\-SHAP0\.670\.6713\.4013\.404ASV0\.950\.9519\.0019\.005
### VII\-CApproximation Error Evaluation

The attribution values in our experiments are estimated by approximate sampling methods\. Therefore, the MAE between an attribution method and the benchmark may include both the intrinsic discrepancy of the method and the error introduced by sampling\. To examine whether the observed superiority of DAG\-SHAP is mainly caused by sampling variance, we conduct an additional repeated\-sampling experiment\.

In the above experiments, 200 permutations are used for sampling when attributing each explained data point\. We independently repeat the attribution process twice for each explained data point, with each attribution method still using 200 permutations, and compute the MAE between the two independently estimated attribution results\. This repeated\-sampling MAE is regarded as an estimate of the approximation error\. LetEbenchd,mE\_\{\\mathrm\{bench\}\}^\{d,m\}denote the MAE between methodmmand the benchmark under dataset/model settingdd, and letEapproxd,mE\_\{\\mathrm\{approx\}\}^\{d,m\}denote the corresponding repeated\-sampling approximation error\. We report the adjusted MAE as

Eadjd,m=\|Ebenchd,m−Eapproxd,m\|\.E\_\{\\mathrm\{adj\}\}^\{d,m\}=\\bigl\|E\_\{\\mathrm\{bench\}\}^\{d,m\}\-E\_\{\\mathrm\{approx\}\}^\{d,m\}\\bigr\|\.The adjusted MAE values are shown in Table[10](https://arxiv.org/html/2606.15273#S7.T10)\. The results indicate that, even after excluding the estimated approximation error, DAG\-SHAP still has the smallest adjusted MAE across all datasets and model architectures\. This suggests that the advantage of DAG\-SHAP mainly comes from its attribution mechanism rather than from sampling approximation effects\.

TABLE 10:Adjusted MAE after excluding the estimated approximation error\.AlgorithmSynthetic\-DNNGriliches\-DNNCensus\-DNNSynthetic\-XGBGriliches\-XGBCensus\-XGBDAG\-SHAP3\.1230\.0480\.0380\.2970\.0150\.267Causal56\.8290\.4950\.14631\.0830\.3900\.431ASV75\.9851\.7430\.55590\.5260\.9151\.988On\-SHAP27\.6982\.4190\.55428\.8090\.6411\.519Off\-SHAP16\.8120\.2540\.20218\.3740\.5620\.492
### VII\-DEfficiency Analysis

When dealing with large datasets, parallel computing can effectively accelerate feature attribution calculations\. Feature attribution for different data points can be executed in parallel\. Additionally, within the feature attribution process for a single data point, sampling different permutations can also be executed in parallel\. We extend the synthetic dataset in Section[VII\-A](https://arxiv.org/html/2606.15273#S7.SS1)such that each data point has 100 features and the DAG contains 200 edges\. Specifically, we replicateX1X\_\{1\},X2X\_\{2\},X3X\_\{3\}, andX4X\_\{4\}from the synthetic dataset 25 times, resulting in 100 features in total\. Each replicated feature maintains its causal relationship withYY, ensuring that the collective contribution of all features toYYremains consistent with the contribution in the original structure\. We use the same neural network structure as in Section[VII\-A](https://arxiv.org/html/2606.15273#S7.SS1)and conduct experiments on a server equipped with two AMD EPYC 9754 128\-Core Processors, providing a total of 512 logical processors\. For each data point, we conduct two independent rounds of sampling and compare the mean absolute error \(MAE\) between the sampling results\. The experimental results show that with 128 sampling permutations per data point, the MAE is 5\.17%, which is significantly smaller than the errors caused by different feature attribution algorithms\. For instance, the absolute error between Off\-SHAP, which has the smallest MAE among the baselines, and the benchmark is 17\.24%\. Using 128 threads for parallel sampling of 128 permutations, the computation time is only 57\.5 seconds\. Additionally, we conduct experiments with 256 and 384 permutations, resulting in mean absolute errors of 4\.23% and 3\.71%, respectively\.

## VIIIConclusion

In this paper, we propose an innovative feature attribution method that incorporates causal relationships within Directed Acyclic Graphs \(DAGs\)\. We introduce an edge intervention method that targets specific child vertices via their parent vertices to control the fine\-grained causal influence\. Our method uniquely addresses the limitations of traditional feature attribution techniques by capturing both the exogenous contributions of edges and the requisite externality contributions simultaneously\. Extensive experiments on both real and synthetic datasets validate the effectiveness of DAG\-SHAP\. These results highlight the value of edge\-level explanations and suggest extending DAG\-SHAP to time\-dependent settings\.

## References

- \[1\]E\. Albini, J\. Long, D\. Dervovic, and D\. Magazzeni\.Counterfactual shapley additive explanations\.InProceedings of the 2022 ACM conference on fairness, accountability, and transparency, pages 1054–1070, 2022\.
- \[2\]N\. Bussmann, P\. Giudici, D\. Marinelli, and J\. Papenbrock\.Explainable machine learning in credit risk management\.Computational Economics, 57\(1\):203–216, 2021\.
- \[3\]Y\. Cai, T\. Ardoin, and G\. Wunder\.GEFA: A general feature attribution framework using proxy gradient estimation\.In A\. Singh, M\. Fazel, D\. Hsu, S\. Lacoste\-Julien, F\. Berkenkamp, T\. Maharaj, K\. Wagstaff, and J\. Zhu, editors,Forty\-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13\-19, 2025, volume 267 ofProceedings of Machine Learning Research\. PMLR / OpenReview\.net, 2025\.
- \[4\]A\. Catav, B\. Fu, J\. Ernst, S\. Sankararaman, and R\. Gilad\-Bachrach\.Marginal contribution feature importance–an axiomatic approach for the natural case\.arXiv preprint arXiv:2010\.07910, 2020\.
- \[5\]H\. Chen, S\. M\. Lundberg, and S\.\-I\. Lee\.Explaining a series of models by propagating shapley values\.Nature communications, 13\(1\):4512, 2022\.
- \[6\]X\. Chen, R\. Cai, Z\. Huang, Y\. Zhu, J\. Horwood, Z\. Hao, Z\. Li, and J\. M\. Hernández\-Lobato\.Feature attribution with necessity and sufficiency via dual\-stage perturbation test for causal explanation\.In R\. Salakhutdinov, Z\. Kolter, K\. Heller, A\. Weller, N\. Oliver, J\. Scarlett, and F\. Berkenkamp, editors,Proceedings of the 41st International Conference on Machine Learning, volume 235 ofProceedings of Machine Learning Research, pages 6486–6502\. PMLR, 21–27 Jul 2024\.
- \[7\]X\. Deng and C\. H\. Papadimitriou\.On the complexity of cooperative solution concepts\.Mathematics of operations research, 19\(2\):257–266, 1994\.
- \[8\]G\. Dominici, P\. Barbiero, M\. E\. Zarlenga, A\. Termine, M\. Gjoreski, G\. Marra, and M\. Langheinrich\.Causal concept graph models: Beyond causal opacity in deep learning\.InThe Thirteenth International Conference on Learning Representations, 2025\.
- \[9\]D\. Dua and C\. Graff\.UCI machine learning repository, 2017\.
- \[10\]C\. Frye, C\. Rowat, and I\. Feige\.Asymmetric shapley values: incorporating causal knowledge into model\-agnostic explainability\.Advances in neural information processing systems, 33:1229–1239, 2020\.
- \[11\]A\. Gramegna and P\. Giudici\.Shap and lime: an evaluation of discriminative power in credit risk\.Frontiers in Artificial Intelligence, 4:752558, 2021\.
- \[12\]Z\. Griliches\.Wages of very young men\.Journal of Political Economy, 84\(4, Part 2\):S69–S85, 1976\.
- \[13\]C\. Guo, R\. Xu, B\. Yang, Y\. Ye, T\. Kieu, Y\. Zhao, and C\. S\. Jensen\.Efficient stochastic routing in path\-centric uncertain road networks\.Proc\. VLDB Endow\., 17\(11\):2893–2905, 2024\.
- \[14\]T\. Heskes, E\. Sijben, I\. G\. Bucur, and T\. Claassen\.Causal shapley values: Exploiting causal knowledge to explain individual predictions of complex models\.In H\. Larochelle, M\. Ranzato, R\. Hadsell, M\. Balcan, and H\. Lin, editors,Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6\-12, 2020, virtual, 2020\.
- \[15\]D\. Janzing, P\. Blöbaum, A\. A\. Mastakouri, P\. M\. Faller, L\. Minorics, and K\. Budhathoki\.Quantifying intrinsic causal contributions via structure preserving interventions\.InInternational Conference on Artificial Intelligence and Statistics, pages 2188–2196\. PMLR, 2024\.
- \[16\]D\. Janzing, L\. Minorics, and P\. Blöbaum\.Feature relevance quantification in explainable ai: A causal problem\.InInternational Conference on artificial intelligence and statistics, pages 2907–2916\. PMLR, 2020\.
- \[17\]R\. Jia, D\. Dao, B\. Wang, F\. A\. Hubis, N\. M\. Gürel, B\. Li, C\. Zhang, C\. J\. Spanos, and D\. Song\.Efficient task\-specific data valuation for nearest neighbor algorithms\.Proc\. VLDB Endow\., 12\(11\):1610–1623, 2019\.
- \[18\]Y\. Jung, S\. Kasiviswanathan, J\. Tian, D\. Janzing, P\. Blöbaum, and E\. Bareinboim\.On measuring causal contributions via do\-interventions\.InInternational Conference on Machine Learning, pages 10476–10501\. PMLR, 2022\.
- \[19\]Y\. Jung, S\. Kasiviswanathan, J\. Tian, D\. Janzing, P\. Bloebaum, and E\. Bareinboim\.On measuring causal contributions via do\-interventions\.In K\. Chaudhuri, S\. Jegelka, L\. Song, C\. Szepesvari, G\. Niu, and S\. Sabato, editors,Proceedings of the 39th International Conference on Machine Learning, volume 162 ofProceedings of Machine Learning Research, pages 10476–10501\. PMLR, 17–23 Jul 2022\.
- \[20\]G\. Kasmi, A\. Brunetto, T\. Fel, and J\. Parekh\.One wave to explain them all: A unifying perspective on feature attribution\.In A\. Singh, M\. Fazel, D\. Hsu, S\. Lacoste\-Julien, F\. Berkenkamp, T\. Maharaj, K\. Wagstaff, and J\. Zhu, editors,Forty\-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13\-19, 2025, volume 267 ofProceedings of Machine Learning Research\. PMLR / OpenReview\.net, 2025\.
- \[21\]M\. Kutlu, T\. B\. Donmez, and C\. Freeman\.Machine learning interpretability in diabetes risk assessment: A shap analysis\.Computers and Electronics in Medicine, 1\(1\):34–44, 2024\.
- \[22\]J\. Lin, A\. Zhang, M\. Lécuyer, J\. Li, A\. Panda, and S\. Sen\.Measuring the effect of training data on deep learning predictions via randomized experiments\.InInternational Conference on Machine Learning, pages 13468–13504\. PMLR, 2022\.
- \[23\]X\. Luo, J\. Pei, C\. Xu, W\. Zhang, and J\. Xu\.Fast shapley value computation in data assemblage tasks as cooperative simple games\.Proc\. ACM Manag\. Data, 2\(1\):56:1–56:28, 2024\.
- \[24\]G\. Machiraju, A\. Derry, A\. D\. Desai, N\. Guha, A\.\-H\. Karimi, J\. Zou, R\. B\. Altman, C\. Re, and P\. Mallick\.Prospector heads: Generalized feature attribution for large models & data\.In R\. Salakhutdinov, Z\. Kolter, K\. Heller, A\. Weller, N\. Oliver, J\. Scarlett, and F\. Berkenkamp, editors,Proceedings of the 41st International Conference on Machine Learning, volume 235 ofProceedings of Machine Learning Research, pages 34115–34144\. PMLR, 21–27 Jul 2024\.
- \[25\]P\. K\. Mohanty, S\. A\. J\. Francis, R\. K\. Barik, D\. S\. Roy, and M\. J\. Saikia\.Leveraging shapley additive explanations for feature selection in ensemble models for diabetes prediction\.Bioengineering, 11\(12\):1215, 2024\.
- \[26\]G\. Montavon, A\. Binder, S\. Lapuschkin, W\. Samek, and K\.\-R\. Müller\.Layer\-wise relevance propagation: an overview\.Explainable AI: interpreting, explaining and visualizing deep learning, pages 193–209, 2019\.
- \[27\]Á\. Parafita, T\. Garriga, A\. Brando, and F\. J\. Cazorla\.Practical do\-shapley explanations with estimand\-agnostic causal inference\.arXiv preprint arXiv:2509\.20211, 2025\.
- \[28\]M\. T\. Ribeiro, S\. Singh, and C\. Guestrin\." why should i trust you?" explaining the predictions of any classifier\.InProceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining, pages 1135–1144, 2016\.
- \[29\]A\. E\. Roth\.The Shapley value: essays in honor of Lloyd S\. Shapley\.Cambridge University Press, 1988\.
- \[30\]G\. Schamberg, W\. Chapman, S\.\-P\. Xie, and T\. P\. Coleman\.Direct and indirect effects–an information theoretic perspective\.Entropy, 22\(8\):854, 2020\.
- \[31\]M\. Scott, L\. Su\-In, et al\.A unified approach to interpreting model predictions\.Advances in neural information processing systems, 30:4765–4774, 2017\.
- \[32\]R\. R\. Selvaraju, M\. Cogswell, A\. Das, R\. Vedantam, D\. Parikh, and D\. Batra\.Grad\-cam: Visual explanations from deep networks via gradient\-based localization\.InProceedings of the IEEE international conference on computer vision, pages 618–626, 2017\.
- \[33\]L\. S\. Shapley\.A value for n\-person games\.Contribution to the Theory of Games, 2, 1953\.
- \[34\]A\. Shrikumar, P\. Greenside, and A\. Kundaje\.Learning important features through propagating activation differences\.InInternational conference on machine learning, pages 3145–3153\. PMlR, 2017\.
- \[35\]R\. Singal, G\. Michailidis, and H\. Ng\.Flow\-based attribution in graphical models: A recursive shapley approach\.In M\. Meila and T\. Zhang, editors,Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18\-24 July 2021, Virtual Event, volume 139 ofProceedings of Machine Learning Research, pages 9733–9743\. PMLR, 2021\.
- \[36\]D\. Smilkov, N\. Thorat, B\. Kim, F\. Viégas, and M\. Wattenberg\.Smoothgrad: removing noise by adding noise\.arXiv preprint arXiv:1706\.03825, 2017\.
- \[37\]Q\. Sun, J\. Liu, X\. Mao, H\. Xia, T\. Fu, J\. Liu, K\. Ren, and H\. Hu\.Feature attribution in directed acyclic graphs using edge intervention: Full paper\.[https://github\.com/ZJU\-DIVER/DAG\-SHAP/blob/main/full\_paper\.pdf](https://github.com/ZJU-DIVER/DAG-SHAP/blob/main/full_paper.pdf), 2026\.Full version\.
- \[38\]M\. Sundararajan and A\. Najmi\.The many shapley values for model explanation\.InInternational conference on machine learning, pages 9269–9278\. PMLR, 2020\.
- \[39\]M\. Sundararajan, A\. Taly, and Q\. Yan\.Axiomatic attribution for deep networks\.InInternational conference on machine learning, pages 3319–3328\. PMLR, 2017\.
- \[40\]L\. Ter\-Minassian, O\. Clivio, K\. Diazordaz, R\. J\. Evans, and C\. C\. Holmes\.Pwshap: a path\-wise explanation model for targeted variables\.InInternational Conference on Machine Learning, pages 34054–34089\. PMLR, 2023\.
- \[41\]J\. Wang, J\. Wiens, and S\. M\. Lundberg\.Shapley flow: A graph\-based approach to interpreting model predictions\.In A\. Banerjee and K\. Fukumizu, editors,The 24th International Conference on Artificial Intelligence and Statistics, AISTATS 2021, April 13\-15, 2021, Virtual Event, volume 130 ofProceedings of Machine Learning Research, pages 721–729\. PMLR, 2021\.
- \[42\]E\. Winter\.The shapley value\.Handbook of game theory with economic applications, 3:2025–2054, 2002\.
- \[43\]H\. Xia, J\. Liu, J\. Lou, Z\. Qin, K\. Ren, Y\. Cao, and L\. Xiong\.Equitable data valuation meets the right to be forgotten in model markets\.Proc\. VLDB Endow\., 16\(11\):3349–3362, 2023\.
- \[44\]D\. Yan, J\. Cheng, Y\. Lu, and W\. Ng\.Blogel: A block\-centric framework for distributed computation on real\-world graphs\.Proc\. VLDB Endow\., 7\(14\):1981–1992, 2014\.
- \[45\]J\. Zhang, Q\. Sun, J\. Liu, L\. Xiong, J\. Pei, and K\. Ren\.Efficient sampling approaches to shapley value approximation\.Proceedings of the ACM on Management of Data, 1\(1\):1–24, 2023\.
- \[46\]J\. Zhang, H\. Xia, Q\. Sun, J\. Liu, L\. Xiong, J\. Pei, and K\. Ren\.Dynamic shapley value computation\.In39th IEEE International Conference on Data Engineering, ICDE 2023, Anaheim, CA, USA, April 3\-7, 2023, pages 639–652\. IEEE, 2023\.

## Appendix

In the appendix of our paper, we provide comprehensive additional content\. Section[IX](https://arxiv.org/html/2606.15273#S9)introduces the Shapley value\-based feature attribution methods considered in this paper\. In Section[X](https://arxiv.org/html/2606.15273#S10), we discuss why DAG\-SHAP satisfies all the desirable properties\. Section[XI](https://arxiv.org/html/2606.15273#S11)presents the comparison of different intervention methods\.

## IXShapley Value\-Based Feature Attribution Methods

In this section, we provide a detailed introduction to the baselines and the comparative methods used in our study\.

On\-manifold Shapleyvalue was proposed by\[[31](https://arxiv.org/html/2606.15273#bib.bib31)\], and it is defined as follows

ϕi=∑j=0n−11n​\(n−1j\)​∑i∉𝒮,\|𝒮\|=j\{𝔼​\[f​\(𝒙𝒮∪\{i\},𝐱𝒮∪\{i\}¯\)∣𝐱𝒮∪\{i\}=𝒙𝒮∪\{i\}\]−𝔼​\[f​\(𝒙𝒮,𝐱𝒮¯\)∣𝐱𝒮=𝒙𝒮\]\}\.\\displaystyle\\phi\_\{i\}=\\sum\_\{j=0\}^\{n\-1\}\\frac\{1\}\{n\\binom\{n\-1\}\{j\}\}\\sum\_\{\\begin\{subarray\}\{c\}i\\notin\\mathcal\{S\},\|\\mathcal\{S\}\|=j\\end\{subarray\}\}\\\{\\mathbb\{E\}\\left\[f\\left\(\{\\bm\{x\}\}\_\{\\mathcal\{S\}\\cup\\\{i\\\}\},\{\\mathbf\{x\}\}\_\{\\overline\{\\mathcal\{S\}\\cup\\\{i\\\}\}\}\\right\)\\mid\{\\mathbf\{x\}\}\_\{\\mathcal\{S\}\\cup\\\{i\\\}\}=\{\\bm\{x\}\}\_\{\\mathcal\{S\}\\cup\\\{i\\\}\}\\right\]\-\\mathbb\{E\}\\left\[f\\left\(\{\\bm\{x\}\}\_\{\\mathcal\{S\}\},\{\\mathbf\{x\}\}\_\{\\bar\{\\mathcal\{S\}\}\}\\right\)\\mid\{\\mathbf\{x\}\}\_\{\\mathcal\{S\}\}=\{\\bm\{x\}\}\_\{\\mathcal\{S\}\}\\right\]\\\}\.The marginal contribution of featureiiin the explained input𝒙\{\\bm\{x\}\}when cooperating with a coalition𝒮\\mathcal\{S\}is expressed as

𝔼​\[f​\(𝒙𝒮∪\{i\},𝐱𝒮∪\{i\}¯\)∣𝐱𝒮∪\{i\}=𝒙𝒮∪\{i\}\]−𝔼​\[f​\(𝒙𝒮,𝐱𝒮¯\)∣𝐱𝒮=𝒙𝒮\],\\mathbb\{E\}\\left\[f\\left\(\{\\bm\{x\}\}\_\{\\mathcal\{S\}\\cup\\\{i\\\}\},\{\\mathbf\{x\}\}\_\{\\overline\{\\mathcal\{S\}\\cup\\\{i\\\}\}\}\\right\)\\mid\{\\mathbf\{x\}\}\_\{\\mathcal\{S\}\\cup\\\{i\\\}\}=\{\\bm\{x\}\}\_\{\\mathcal\{S\}\\cup\\\{i\\\}\}\\right\]\-\\mathbb\{E\}\\left\[f\\left\(\{\\bm\{x\}\}\_\{\\mathcal\{S\}\},\{\\mathbf\{x\}\}\_\{\\bar\{\\mathcal\{S\}\}\}\\right\)\\mid\{\\mathbf\{x\}\}\_\{\\mathcal\{S\}\}=\{\\bm\{x\}\}\_\{\\mathcal\{S\}\}\\right\],where𝒮∪\{i\}¯\\overline\{\\mathcal\{S\}\\cup\\\{i\\\}\}represents the complement of𝒮∪\{i\}\\mathcal\{S\}\\cup\\\{i\\\}\. The values of features not in the coalitions are determined under conditional expectations of features in the coalitions\.

Off\-manifold Shapleyvalue\[[31](https://arxiv.org/html/2606.15273#bib.bib31)\]is a simplified version of on\-manifold Shapley value that assumes feature independence for implementation, and it is widely adopted in practical applications\. The marginal contribution in off\-manifold Shapley value is defined as𝔼​\[f​\(𝒙𝒮∪\{i\},𝐱𝒮∪\{i\}¯\)\]−𝔼​\[f​\(𝒙𝒮,𝐱𝒮¯\)\]\\mathbb\{E\}\\left\[f\\left\(\{\\bm\{x\}\}\_\{\\mathcal\{S\}\\cup\\\{i\\\}\},\{\\mathbf\{x\}\}\_\{\\overline\{\\mathcal\{S\}\\cup\\\{i\\\}\}\}\\right\)\\right\]\-\\mathbb\{E\}\\left\[f\\left\(\{\\bm\{x\}\}\_\{\\mathcal\{S\}\},\{\\mathbf\{x\}\}\_\{\\bar\{\\mathcal\{S\}\}\}\\right\)\\right\]\. The values of features𝒮∪\{i\}¯\\overline\{\\mathcal\{S\}\\cup\\\{i\\\}\}and𝒮¯\\overline\{\\mathcal\{S\}\}which are not in the selected coalitions are determined by the average values in the dataset\.

Asymmetry Shapleyvalue\[[10](https://arxiv.org/html/2606.15273#bib.bib10)\]sets the weight of permutations that do not satisfy the topological order to zero, thereby breaking the symmetry in Shapley value\. This allows for model explainability analysis to distinguish the causal order between features when considering their contributions\. It accounts for the causal relationships between features, rather than assuming that all features affect the model’s output symmetrically and independently\.

Causal Shapleyvalue\[[14](https://arxiv.org/html/2606.15273#bib.bib14)\]incorporates a priori causal knowledge, using interventions in the causal domain to represent the interaction influence between features\. The marginal contribution is expressed as𝔼​\[f​\(𝒙𝒮∪\{i\},𝐱𝒮∪\{i\}¯\)∣do⁡\(𝐱𝒮∪\{i\}=𝒙𝒮∪\{i\}\)\]−𝔼​\[f​\(𝒙𝒮,𝐱𝒮¯\)∣do⁡\(𝐱𝒮=𝒙𝒮\)\]\\mathbb\{E\}\\left\[f\\left\(\{\\bm\{x\}\}\_\{\\mathcal\{S\}\\cup\\\{i\\\}\},\{\\mathbf\{x\}\}\_\{\\overline\{\\mathcal\{S\}\\cup\\\{i\\\}\}\}\\right\)\\mid\\operatorname\{do\}\\left\(\{\\mathbf\{x\}\}\_\{\\mathcal\{S\}\\cup\\\{i\\\}\}=\{\\bm\{x\}\}\_\{\\mathcal\{S\}\\cup\\\{i\\\}\}\\right\)\\right\]\-\\mathbb\{E\}\\left\[f\\left\(\{\\bm\{x\}\}\_\{\\mathcal\{S\}\},\{\\mathbf\{x\}\}\_\{\\bar\{\\mathcal\{S\}\}\}\\right\)\\mid\\operatorname\{do\}\\left\(\{\\mathbf\{x\}\}\_\{\\mathcal\{S\}\}=\{\\bm\{x\}\}\_\{\\mathcal\{S\}\}\\right\)\\right\], where operatordo⁡\(⋅\)\\operatorname\{do\}\(\\cdot\)means setting a variable to a specific value\. The intervention is conducted on the feature vertex so the influence of the parent vertex will transfer to all its child vertices simultaneously if it is intervened\. Note that the causal Shapley value can adopt both symmetric and asymmetric permutations, referred to as symmetry causal Shapley value and asymmetry causal Shapley value, respectively\. Asymmetry causal Shapley value is equivalent to the asymmetry Shapley value when DAG is known\.

Shapley Flow\[[41](https://arxiv.org/html/2606.15273#bib.bib41)\]is a method that attributes based on paths, ensuring path order consistency through depth\-first search\. It sums the attribution values of all paths passing through an edge as the edge’s attribution, ensuring that the sum of the attribution values of all edges in any cut in the causal graph is the same\. Formally, the Shapley value of pathiican be represented as follows

ϕ~ν​\(i\)=∑π∈Πdfsv~\(\[j:π\(j\)≤π\(i\)\]\)−v~\(\[j:π\(j\)<π\(i\)\]\)\|Πdfs\|,\\tilde\{\\phi\}\_\{\\nu\}\(i\)=\\sum\_\{\\pi\\in\\Pi\_\{\\mathrm\{dfs\}\}\}\\frac\{\\tilde\{v\}\(\[j:\\pi\(j\)\\leq\\pi\(i\)\]\)\-\\tilde\{v\}\(\[j:\\pi\(j\)<\\pi\(i\)\]\)\}\{\\left\|\\Pi\_\{\\mathrm\{dfs\}\}\\right\|\},where inequalityπ​\(j\)≤π​\(i\)\\pi\(j\)\\leq\\pi\(i\)denotes that pathjjprecedes pathiiunder orderingπ∈Πdfs\\pi\\in\\Pi\_\{\\mathrm\{dfs\}\}\. To obtain the attribution of an edgeee, they propose to sum the attributions of all pathsℙ\{\\mathbb\{P\}\}that containsee, i\.e\.,ϕv​\(e\)=∑p∈ℙ,e∈pϕ~v​\(p\)\\phi\_\{v\}\(e\)=\\sum\_\{p\\in\{\\mathbb\{P\}\},e\\in p\}\\tilde\{\\phi\}\_\{v\}\(p\)\.

Recursive Shapleyvalue\[[35](https://arxiv.org/html/2606.15273#bib.bib35)\]conducts a top\-down feature attribution process to quantify how changes at the source vertices propagate through the graph\. It assumes that only the vertices with no incoming edges have exogenous contributions, and the relationship between intermediate vertices and the source vertices is deterministic, with intermediate vertices only transmitting the effects of source vertices\.

Shapley\-ICC\[[15](https://arxiv.org/html/2606.15273#bib.bib15)\]\. Denote the worth of a coalition of noise termsNTN\_\{T\}forT⊂\{1,…,n\}T\\subset\\\{1,\\dots,n\\\}byν​\(T\):=−ψ​\(Xn\|NT\)\\nu\(T\):=\-\\psi\(X\_\{n\}\|N\_\{T\}\)\. Then the \(Shapley based\) ICC of each nodeXjX\_\{j\}to the uncertainty ofXnX\_\{n\}reads:

I​C​CψS​h​\(Xj→Xn\)\\displaystyle ICC^\{Sh\}\_\{\\psi\}\(X\_\{j\}\\rightarrow X\_\{n\}\):=∑T⊆U∖\{j\}1n​\(n−1\|T\|\)​\[ν​\(T∪\{j\}\)−ν​\(T\)\]\\displaystyle:=\\sum\_\{T\\subseteq U\\setminus\\\{j\\\}\}\\frac\{1\}\{n\\binom\{n\-1\}\{\|T\|\}\}\[\\nu\(T\\cup\\\{j\\\}\)\-\\nu\(T\)\]\(5\)=∑T⊆U∖\{j\}1n​\(n−1\|T\|\)​I​C​Cψ​\(Xj→Xn\|T\),\\displaystyle=\\sum\_\{T\\subseteq U\\setminus\\\{j\\\}\}\\frac\{1\}\{n\\binom\{n\-1\}\{\|T\|\}\}ICC\_\{\\psi\}\(X\_\{j\}\\rightarrow X\_\{n\}\|T\),\(6\)whereU:=\{1,…,n\}U:=\\\{1,\\dots,n\\\}\.ψ​\(Xn\|NT\)\\psi\(X\_\{n\}\|N\_\{T\}\)can be computed by conditional Shannon entropy or expected conditional variance with a prerequisite that the noise term of each feature can be isolated from parents based on the operations of the structural causal model\.

## XTheoretical Analysis

In this section, we prove that DAG\-SHAP satisfies the attribution properties defined in Section[III\-C](https://arxiv.org/html/2606.15273#S3.SS3)\. Although these properties are stated at the feature level in the preliminaries, DAG\-SHAP first assigns attributions to edges and then aggregates them to features byΦ​\(k\)=∑e∈𝒪kΨ​\(e\)\\Phi\(k\)=\\sum\_\{e\\in\\mathcal\{O\}\_\{k\}\}\\Psi\(e\)\.

### J\.1Why DAG\-SHAP Satisfies These Properties

###### Proof of Linearity\.

For any edgeeie\_\{i\}, its edge intervention causal Shapley value is given by

Ψf​\(ei\)=∑π∈Π1\|Π\|​\{𝔼​\[f​\(𝐱\)\|do⁡\(𝐞S¯πi=e𝒮¯πi\)\]−𝔼​\[f​\(𝐱\)\|do⁡\(𝐞𝒮πi=e𝒮πi\)\]\}\.\\Psi\_\{f\}\(e\_\{i\}\)=\\sum\_\{\\pi\\in\\Pi\}\\frac\{1\}\{\|\\Pi\|\}\\\{\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\|\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\underline\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\underline\{\\mathcal\{S\}\}\_\{\\pi\}^\{i\}\}\)\]\-\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\|\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\)\]\\\}\.\(7\)Substitutingf=fu\+fwf=f\_\{u\}\+f\_\{w\}, we can get

Ψf​\(ei\)=∑π∈Π1\|Π\|​\{𝔼​\[fu​\(𝐱\)\+fw​\(𝐱\)\|do⁡\(𝐞S¯πi=e𝒮¯πi\)\]−𝔼​\[fu​\(𝐱\)\+fw​\(𝐱\)\|do⁡\(𝐞𝒮πi=e𝒮πi\)\]\}\.\\Psi\_\{f\}\(e\_\{i\}\)=\\sum\_\{\\pi\\in\\Pi\}\\frac\{1\}\{\|\\Pi\|\}\\\{\\mathbb\{E\}\[f\_\{u\}\(\{\\mathbf\{x\}\}\)\+f\_\{w\}\(\{\\mathbf\{x\}\}\)\|\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\underline\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\underline\{\\mathcal\{S\}\}\_\{\\pi\}^\{i\}\}\)\]\-\\mathbb\{E\}\[f\_\{u\}\(\{\\mathbf\{x\}\}\)\+f\_\{w\}\(\{\\mathbf\{x\}\}\)\|\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\)\]\\\}\.\(8\)This can be split into two parts:

Ψf​\(ei\)=\\displaystyle\\Psi\_\{f\}\(e\_\{i\}\)=∑π∈Π1\|Π\|​\{𝔼​\[fu​\(𝒙\)\|do⁡\(𝐞S¯πi=e𝒮¯πi\)\]−𝔼​\[fu​\(𝒙\)\|do⁡\(𝐞𝒮πi=e𝒮πi\)\]\}\\displaystyle\\sum\_\{\\pi\\in\\Pi\}\\frac\{1\}\{\|\\Pi\|\}\\\{\\mathbb\{E\}\[f\_\{u\}\(\\bm\{x\}\)\|\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\underline\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\underline\{\\mathcal\{S\}\}\_\{\\pi\}^\{i\}\}\)\]\-\\mathbb\{E\}\[f\_\{u\}\(\\bm\{x\}\)\|\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\)\]\\\}\(9\)\+∑π∈Π1\|Π\|​\{𝔼​\[fw​\(𝒙\)\|do⁡\(𝐞S¯πi=e𝒮¯πi\)\]−𝔼​\[fw​\(𝒙\)\|do⁡\(𝐞𝒮πi=e𝒮πi\)\]\}\.\\displaystyle\+\\sum\_\{\\pi\\in\\Pi\}\\frac\{1\}\{\|\\Pi\|\}\\\{\\mathbb\{E\}\[f\_\{w\}\(\\bm\{x\}\)\|\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\underline\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\underline\{\\mathcal\{S\}\}\_\{\\pi\}^\{i\}\}\)\]\-\\mathbb\{E\}\[f\_\{w\}\(\\bm\{x\}\)\|\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\)\]\\\}\.\(10\)According to the definition of edge intervention causal Shapley values, the two summations correspond toΨfu​\(ei\)\\Psi\_\{f\_\{u\}\}\(e\_\{i\}\)andΨfw​\(ei\)\\Psi\_\{f\_\{w\}\}\(e\_\{i\}\), respectively\. Thus,Ψf​\(ei\)=Ψfu​\(ei\)\+Ψfw​\(ei\)\\Psi\_\{f\}\(e\_\{i\}\)=\\Psi\_\{f\_\{u\}\}\(e\_\{i\}\)\+\\Psi\_\{f\_\{w\}\}\(e\_\{i\}\)\. This proves that DAG\-SHAP satisfies the Linearity property\. The proof can be easily extended with respect to the feature node, since the attribution of a feature is the sum of the attribution values of its outgoing edges\. ∎

###### Proof of Implementation Invariance\.

Iff​\(𝒙\)=g​\(𝒙\)f\(\\bm\{x\}\)=g\(\\bm\{x\}\)for all inputs𝒙\\bm\{x\}, the marginal contributions of edgeeie\_\{i\}inffandggwith any edge subsetse𝒮πie\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}are equal:𝔼​\[f​\(𝒙\)\|do⁡\(𝐞S¯πi=e𝒮¯πi\)\]−𝔼​\[f​\(𝒙\)\|do⁡\(𝐞𝒮πi=e𝒮πi\)\]=𝔼​\[g​\(𝒙\)\|do⁡\(𝐞S¯πi=e𝒮¯πi\)\]−𝔼​\[g​\(𝒙\)\|do⁡\(𝐞𝒮πi=e𝒮πi\)\]\.\\mathbb\{E\}\[f\(\\bm\{x\}\)\|\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\underline\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\underline\{\\mathcal\{S\}\}\_\{\\pi\}^\{i\}\}\)\]\-\\mathbb\{E\}\[f\(\\bm\{x\}\)\|\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\)\]=\\mathbb\{E\}\[g\(\\bm\{x\}\)\|\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\underline\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\underline\{\\mathcal\{S\}\}\_\{\\pi\}^\{i\}\}\)\]\-\\mathbb\{E\}\[g\(\\bm\{x\}\)\|\\operatorname\{do\}\(\{\\mathbf\{e\}\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\)\]\.This follows directly from the fact thatffandggproduce identical outputs for any subset of features\. The edge intervention causal Shapley value for an edgeiiis a weighted sum of the marginal contributions across all permutations withinΠ\\Pi:

Ψf​\(ei\)=∑π∈Π1\|Π\|​\{𝔼​\[f​\(𝐱\)\|do⁡\(e𝒮¯πi=e𝒮¯πi\)\]−𝔼​\[f​\(𝐱\)\|do⁡\(e𝒮πi=e𝒮πi\)\]\}\.\\Psi\_\{f\}\(e\_\{i\}\)=\\sum\_\{\\pi\\in\\Pi\}\\frac\{1\}\{\|\\Pi\|\}\\\{\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\|\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{\{\\underline\{\\mathcal\{S\}\}\}\_\{\\pi\}^\{i\}\}=e\_\{\{\\underline\{\\mathcal\{S\}\}\}\_\{\\pi\}^\{i\}\}\)\]\-\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\|\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\)\]\\\}\.\(11\)Substituting the equivalence of marginal contributions:

Ψg​\(ei\)=∑π∈Π1\|Π\|​\{𝔼​\[g​\(𝐱\)\|do⁡\(e𝒮¯πi=e𝒮¯πi\)\]−𝔼​\[g​\(𝐱\)\|do⁡\(e𝒮πi=e𝒮πi\)\]\}\.\\Psi\_\{g\}\(e\_\{i\}\)=\\sum\_\{\\pi\\in\\Pi\}\\frac\{1\}\{\|\\Pi\|\}\\\{\\mathbb\{E\}\[g\(\{\\mathbf\{x\}\}\)\|\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{\{\\underline\{\\mathcal\{S\}\}\}\_\{\\pi\}^\{i\}\}=e\_\{\{\\underline\{\\mathcal\{S\}\}\}\_\{\\pi\}^\{i\}\}\)\]\-\\mathbb\{E\}\[g\(\{\\mathbf\{x\}\}\)\|\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\)\]\\\}\.\(12\)Thus, the edge intervention causal Shapley forffandggare identical for all edgeseie\_\{i\}whenf​\(𝒙\)=g​\(𝒙\)f\(\\bm\{x\}\)=g\(\\bm\{x\}\)for all𝒙\\bm\{x\}\. This proves that DAG\-SHAP satisfies the Implementation Invariance property\. The proof can be easily extended with respect to the feature node too, since the attribution of a feature is the sum of the attribution values of its outgoing edges\. ∎

###### Proof of Sensitivity\.

𝒙\{\\bm\{x\}\}and𝒙′\{\\bm\{x\}\}^\{\\prime\}differ only in one feature, saykk, and the target labelYYfor the inputs is different\. This implies there is a direct edge between the featurekkand the target label, denoted aseie\_\{i\}\. Since the feature does not influence other features, no other edges are involved\. In each permutationπ\\pi, the marginal contribution of edgeeie\_\{i\}is:

Δπi=𝔼​\[f​\(𝐱\)∣do⁡\(e𝒮¯πi=e𝒮¯πi\)\]−𝔼​\[f​\(𝐱\)∣do⁡\(e𝒮πi=e𝒮πi\)\]\.\\Delta\_\{\\pi\}^\{i\}=\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{\\underline\{\\mathcal\{S\}\}\_\{\\pi\}^\{i\}\}=e\_\{\\underline\{\\mathcal\{S\}\}\_\{\\pi\}^\{i\}\}\)\]\-\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\)\]\.Since𝒙\{\\bm\{x\}\}and𝒙′\{\\bm\{x\}\}^\{\\prime\}differ only ineie\_\{i\}, andf​\(𝒙\)≠f​\(𝒙′\)f\(\{\\bm\{x\}\}\)\\neq f\(\{\\bm\{x\}\}^\{\\prime\}\), changingeie\_\{i\}while keeping other edges fixed leads to a change in the prediction\. Therefore, the marginal contribution satisfiesΔπi≠0\\Delta\_\{\\pi\}^\{i\}\\neq 0\.

Because the attribution ofeie\_\{i\}is non\-zero, and the attribution values of all outgoing edges ofkk\(other thaneie\_\{i\}\) are zero \(as interventions on these edges from𝒙′\{\\bm\{x\}\}^\{\\prime\}to𝒙\{\\bm\{x\}\}do not change the prediction\), DAG\-SHAP assigns a non\-zero attribution to featurekk\. This satisfies the Sensitivity property\. ∎

###### Proof of Dummy\.

Since featurekkhas no exogenous influence on the outcome, intervening on its outgoing edges does not affect the expected model output\. Therefore, for any subset𝒮⊆E∖\{ei\}\\mathcal\{S\}\\subseteq E\\setminus\\\{e\_\{i\}\\\}wherei∈𝒪ki\\in\\mathcal\{O\}\_\{k\}:

𝔼​\[f​\(𝐱\)∣do⁡\(e𝒮∪\{ei\}=e𝒮∪\{ei\}\)\]=𝔼​\[f​\(𝐱\)∣do⁡\(e𝒮=e𝒮\)\]\.\\mathbb\{E\}\\left\[f\(\\mathbf\{x\}\)\\mid\\operatorname\{do\}\\left\(\{\\textnormal\{e\}\}\_\{\\mathcal\{S\}\\cup\\\{e\_\{i\}\\\}\}=e\_\{\\mathcal\{S\}\\cup\\\{e\_\{i\}\\\}\}\\right\)\\right\]=\\mathbb\{E\}\\left\[f\(\\mathbf\{x\}\)\\mid\\operatorname\{do\}\\left\(\{\\textnormal\{e\}\}\_\{\\mathcal\{S\}\}=e\_\{\\mathcal\{S\}\}\\right\)\\right\]\.This implies that the marginal contribution of any outgoing edgeeie\_\{i\}is zero:

Δπi=𝔼​\[f​\(𝐱\)∣do⁡\(e𝒮¯πi=e𝒮¯πi\)\]−𝔼​\[f​\(𝐱\)∣do⁡\(e𝒮πi=e𝒮πi\)\]=0\.\\Delta\_\{\\pi\}^\{i\}=\\mathbb\{E\}\\left\[f\(\\mathbf\{x\}\)\\mid\\operatorname\{do\}\\left\(\{\\textnormal\{e\}\}\_\{\\underline\{\\mathcal\{S\}\}\_\{\\pi\}^\{i\}\}=e\_\{\\underline\{\\mathcal\{S\}\}\_\{\\pi\}^\{i\}\}\\right\)\\right\]\-\\mathbb\{E\}\\left\[f\(\\mathbf\{x\}\)\\mid\\operatorname\{do\}\\left\(\{\\textnormal\{e\}\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\\right\)\\right\]=0\.Since the marginal contributionsΔπi\\Delta\_\{\\pi\}^\{i\}are zero for all permutationsπ\\piand all outgoing edgeseie\_\{i\}, the DAG\-SHAP attribution for each edge is:

Ψ​\(ei\)=1\|Π\|​∑π∈ΠΔπi=0\.\\Psi\(e\_\{i\}\)=\\frac\{1\}\{\|\\Pi\|\}\\sum\_\{\\pi\\in\\Pi\}\\Delta\_\{\\pi\}^\{i\}=0\.The total attribution for featurekkis the sum of the attributions of its outgoing edges:

Φ​\(k\)=∑i∈𝒪kΨ​\(ei\)=∑i∈𝒪k0=0\.\\Phi\(k\)=\\sum\_\{i\\in\\mathcal\{O\}\_\{k\}\}\\Psi\(e\_\{i\}\)=\\sum\_\{i\\in\\mathcal\{O\}\_\{k\}\}0=0\.Since all outgoing edges of featurekkhave zero attributions and the feature’s attribution is the sum of these, the feature’s total attribution is zero\. Therefore, DAG\-SHAP satisfies the Dummy property\. ∎

###### Proof of Causality\.

In any valid topological orderπ∈Π\\pi\\in\\Pi, all edges respect the causal constraint: ifej→eke\_\{j\}\\to e\_\{k\}, theneje\_\{j\}appears beforeeke\_\{k\}\(π​\(j\)<π​\(k\)\\pi\(j\)<\\pi\(k\)\)\. Thus, when calculatingΨ​\(ei\)\\Psi\(e\_\{i\}\), all edges in𝒮πi\\mathcal\{S\}\_\{\\pi\}^\{i\}have already been intervened upon, ensuring that the causal effects of ancestor nodes are incorporated correctly, avoiding any reversal of causality\. The interventiondo⁡\(e𝒮¯πi=e𝒮¯πi\)\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{\{\\underline\{\\mathcal\{S\}\}\}\_\{\\pi\}^\{i\}\}=e\_\{\{\\underline\{\\mathcal\{S\}\}\}\_\{\\pi\}^\{i\}\}\)ensures that the model output depends only on the current edgeeie\_\{i\}and the previously intervened edges in𝒮πi\\mathcal\{S\}\_\{\\pi\}^\{i\}\. By computing the difference in expected model output, the calculation isolates the direct causal effect ofeie\_\{i\}, excluding any indirect effects through other paths\. Let the edgeei=\(pi,ci,𝒙pi\)e\_\{i\}=\(p\_\{i\},c\_\{i\},\{\\bm\{x\}\}\_\{p\_\{i\}\}\), and its attribution value is defined as:

Ψ​\(ei\)=1\|Π\|​∑π∈ΠΔπi,\\Psi\(e\_\{i\}\)=\\frac\{1\}\{\|\\Pi\|\}\\sum\_\{\\pi\\in\\Pi\}\\Delta\_\{\\pi\}^\{i\},whereΔπi=𝔼​\[f​\(𝐱\)\|do⁡\(e𝒮¯πi=e𝒮¯πi\)\]−𝔼​\[f​\(𝐱\)\|do⁡\(e𝒮πi=e𝒮πi\)\]\\Delta\_\{\\pi\}^\{i\}=\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\|\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{\{\\underline\{\\mathcal\{S\}\}\}\_\{\\pi\}^\{i\}\}=e\_\{\{\\underline\{\\mathcal\{S\}\}\}\_\{\\pi\}^\{i\}\}\)\]\-\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\|\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\)\]\.Δπi\\Delta\_\{\\pi\}^\{i\}depends solely on the effect of the edgeeie\_\{i\}under the current intervention, ensuring that it measures only the direct causal contribution ofeie\_\{i\}\. DAG\-SHAP’s attribution process strictly respects causal ordering and isolates the effects of individual edges through edge interventions\. The resulting attribution values reflect the direct causal impact of features on the output, thus satisfying the causality property\. ∎

###### Proof of Efficiency\.

The sum of attribution values over all edges is:

∑ei∈EΨ​\(ei\)=∑ei∈E∑π∈Π1\|Π\|​\[𝔼​\[f​\(𝐱\)∣do⁡\(e𝒮¯πi=e𝒮¯πi\)\]−𝔼​\[f​\(𝐱\)∣do⁡\(e𝒮πi=e𝒮πi\)\]\]\.\\sum\_\{e\_\{i\}\\in E\}\\Psi\(e\_\{i\}\)=\\sum\_\{e\_\{i\}\\in E\}\\sum\_\{\\pi\\in\\Pi\}\\frac\{1\}\{\|\\Pi\|\}\\left\[\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{\{\\underline\{\\mathcal\{S\}\}\}\_\{\\pi\}^\{i\}\}=e\_\{\{\\underline\{\\mathcal\{S\}\}\}\_\{\\pi\}^\{i\}\}\)\]\-\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\)\]\\right\]\.Switching the order of summation overeie\_\{i\}andπ\\pi:

∑ei∈EΨ​\(ei\)=∑π∈Π1\|Π\|​∑ei∈E\[𝔼​\[f​\(𝐱\)∣do⁡\(e𝒮¯πi=e𝒮¯πi\)\]−𝔼​\[f​\(𝐱\)∣do⁡\(e𝒮πi=e𝒮πi\)\]\]\.\\sum\_\{e\_\{i\}\\in E\}\\Psi\(e\_\{i\}\)=\\sum\_\{\\pi\\in\\Pi\}\\frac\{1\}\{\|\\Pi\|\}\\sum\_\{e\_\{i\}\\in E\}\\left\[\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{\{\\underline\{\\mathcal\{S\}\}\}\_\{\\pi\}^\{i\}\}=e\_\{\{\\underline\{\\mathcal\{S\}\}\}\_\{\\pi\}^\{i\}\}\)\]\-\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\)\]\\right\]\.For a given permutationπ\\pi, summing over all edgesei∈Ee\_\{i\}\\in Ecreates a telescoping series:

∑ei∈E\[𝔼​\[f​\(𝐱\)∣do⁡\(e𝒮¯πi=e𝒮¯πi\)\]−𝔼​\[f​\(𝐱\)∣do⁡\(e𝒮πi=e𝒮πi\)\]\]=𝔼​\[f​\(𝐱\)∣do⁡\(eE=eE\)\]−𝔼​\[f​\(𝐱\)\],\\sum\_\{e\_\{i\}\\in E\}\\left\[\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{\{\\underline\{\\mathcal\{S\}\}\}\_\{\\pi\}^\{i\}\}=e\_\{\{\\underline\{\\mathcal\{S\}\}\}\_\{\\pi\}^\{i\}\}\)\]\-\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\)\]\\right\]=\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{E\}=e\_\{E\}\)\]\-\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\],where𝔼​\[f​\(𝐱\)∣do⁡\(eE=eE\)\]\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{E\}=e\_\{E\}\)\]is the model output when all edges are intervened, and𝔼​\[f​\(𝐱\)\]\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\]is the baseline output when no edges are intervened\. Averaging over all permutationsπ∈Π\\pi\\in\\Pidoes not affect the telescoping result because the final and initial terms are the same for every permutation:

∑π∈Π1\|Π\|​\[𝔼​\[f​\(𝐱\)∣do⁡\(eE=eE\)\]−𝔼​\[f​\(𝐱\)\]\]=𝔼​\[f​\(𝐱\)∣do⁡\(eE=eE\)\]−𝔼​\[f​\(𝐱\)\]\.\\sum\_\{\\pi\\in\\Pi\}\\frac\{1\}\{\|\\Pi\|\}\\left\[\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{E\}=e\_\{E\}\)\]\-\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\]\\right\]=\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{E\}=e\_\{E\}\)\]\-\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\]\.Thus, the sum of the attribution values for all edges satisfies:

∑ei∈EΨ​\(ei\)=f​\(𝒙\)−𝔼​\[f​\(𝐱\)\]\.\\sum\_\{e\_\{i\}\\in E\}\\Psi\(e\_\{i\}\)=f\(\{\\bm\{x\}\}\)\-\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\]\.This proves that DAG\-SHAP satisfies the Efficiency property because the sum of the attribution values of all points is equal to the sum of the attribution values of all edges\. ∎

###### Proof of Externality\.

Consider two verticeskkandk′k^\{\\prime\}:k′k^\{\\prime\}has a path toyy, forming a pathk′→yk^\{\\prime\}\\to y,kkhas a pathk→yk\\to yindependent ofk′k^\{\\prime\}\. When computing the marginal contribution of edges associated withkk, the effects ofk′→yk^\{\\prime\}\\to yare considered before intervening onk→yk\\to y\. Ifk′→yk^\{\\prime\}\\to yis included in the intervention set𝒮πi\\mathcal\{S\}\_\{\\pi\}^\{i\}beforek→yk\\to y, then the baseline fork→yk\\to yis conditioned on the effects ofk′→yk^\{\\prime\}\\to y\. In DAG\-SHAP, all valid permutationsπ∈Π\\pi\\in\\Piare considered\. For permutations wherek′→yk^\{\\prime\}\\to yprecedesk→yk\\to y, the cooperative effect is explicitly reflected in the marginal contribution\. This summation ensures that the attribution value forkkincludes benefits fromk′→yk^\{\\prime\}\\to yin all cases wherek′k^\{\\prime\}precedeskk\. Therefore, DAG\-SHAP satisfies the Externality property\. ∎

###### Proof of Exogeneity\.

In DAG\-SHAP, the independent contribution of featurekkis derived by intervening on the edgesei=\(k,ci,𝒙k\)e\_\{i\}=\(k,c\_\{i\},\{\\bm\{x\}\}\_\{k\}\)whereei∈𝒪ke\_\{i\}\\in\\mathcal\{O\}\_\{k\}while respecting the causal order defined by the directed acyclic graph \(DAG\)\. The attribution valueΨ​\(ei\)\\Psi\(e\_\{i\}\)is calculated as:

Ψ​\(ei\)=∑π∈Π1\|Π\|​\[𝔼​\[f​\(𝐱\)∣do⁡\(e𝒮¯πi=e𝒮¯πi\)\]−𝔼​\[f​\(𝐱\)∣do⁡\(e𝒮πi=e𝒮πi\)\]\],\\Psi\(e\_\{i\}\)=\\sum\_\{\\pi\\in\\Pi\}\\frac\{1\}\{\|\\Pi\|\}\\left\[\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{\{\\underline\{\\mathcal\{S\}\}\}\_\{\\pi\}^\{i\}\}=e\_\{\{\\underline\{\\mathcal\{S\}\}\}\_\{\\pi\}^\{i\}\}\)\]\-\\mathbb\{E\}\[f\(\{\\mathbf\{x\}\}\)\\mid\\operatorname\{do\}\(\{\\textnormal\{e\}\}\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}=e\_\{\\mathcal\{S\}\_\{\\pi\}^\{i\}\}\)\]\\right\],where𝒮¯πi=𝒮πi∪\{ei\}\{\\underline\{\\mathcal\{S\}\}\}\_\{\\pi\}^\{i\}=\\mathcal\{S\}\_\{\\pi\}^\{i\}\\cup\\\{e\_\{i\}\\\}includes all preceding edges in the permutationπ\\piand the current edgeeie\_\{i\},𝒮πi\\mathcal\{S\}\_\{\\pi\}^\{i\}includes only the preceding edges\. The expectation𝔼​\[⋅\]\\mathbb\{E\}\[\\cdot\]measures the contribution ofeie\_\{i\}under specific interventions, ensuring no confounding from subsequent edges\. DAG\-SHAP adheres to the topological orderπ∈Π\\pi\\in\\Pi, ensuring that for any edgeej∈𝒪ke\_\{j\}\\in\\mathcal\{O\}\_\{k\}, the influences of all ancestor nodes ofkk\(those connected via paths topkp\_\{k\}\) are already fully propagated beforeeie\_\{i\}is intervened upon\. This meansΨ​\(ej\)\\Psi\(e\_\{j\}\)reflects only the influence ofkk\. By summing over all valid permutationsπ∈Π\\pi\\in\\Pi, the attribution value foreje\_\{j\}accounts for its independent contribution across all possible causal configurations\. Nodes not causally connected tokkdo not influenceΨ​\(ej\)\\Psi\(e\_\{j\}\)because they are excluded from the intervention sets𝒮πk\\mathcal\{S\}\_\{\\pi\}^\{k\}and𝒮¯πk\{\\underline\{\\mathcal\{S\}\}\}\_\{\\pi\}^\{k\}\. Ancestor nodes’ effects are already fully propagated by the timeeje\_\{j\}is intervened upon\. Thus, DAG\-SHAP satisfies the Exogeneity property\. ∎

## XIComparison of Edge Intervention and Asymmetric Sampling Node Intervention

For asymmetric sampling node intervention, we use the following example to explain why it may fail\. LetX1=𝐱1X\_\{1\}=\\mathbf\{x\}\_\{1\}, where𝐱1\\mathbf\{x\}\_\{1\}is a random variable uniformly distributed on\[0,1\]\[0,1\], representing the exogenous influence ofX1X\_\{1\};X2=X1⋅𝐱2X\_\{2\}=X\_\{1\}\\cdot\\mathbf\{x\}\_\{2\}, where𝐱2\\mathbf\{x\}\_\{2\}is another random variable uniformly distributed on\[0,1\]\[0,1\], representing the exogenous influence ofX2X\_\{2\}\. The generation ofYYfollowsY=X1⋅X2Y=X\_\{1\}\\cdot X\_\{2\}\. In summary,X1X\_\{1\}directly influencesYYand indirectly influencesYYthroughX2X\_\{2\}\.X2X\_\{2\}influencesYYwith its own exogenous influence𝐱2\\mathbf\{x\}\_\{2\}and transfers the indirect influence ofX1X\_\{1\}\. We aim to attribute values to each feature of a specific explained inputx∗=\[x1∗,x2∗\]=\[1,1\]x^\{\*\}=\[x\_\{1\}^\{\*\},x\_\{2\}^\{\*\}\]=\[1,1\]with respect to the baseline \[0, 0\]\.

For asymmetric sampling node interventions, the only valid sample permutation is\(x1∗,x2∗\)\(x\_\{1\}^\{\*\},x\_\{2\}^\{\*\}\)\. The marginal contributions ofx1∗x\_\{1\}^\{\*\}andx2∗x\_\{2\}^\{\*\}in the permutation\(x1∗,x2∗\)\(x\_\{1\}^\{\*\},x\_\{2\}^\{\*\}\)are shown in the Table[11](https://arxiv.org/html/2606.15273#S11.T11)\.

TABLE 11:Asymmetric\-sampling node interventions: marginal contributions under the only valid ordering\(x1∗,x2∗\)\(x\_\{1\}^\{\*\},x\_\{2\}^\{\*\}\)\.Step \(ordering\)Marginal contribution \(with calculation\)x1∗x\_\{1\}^\{\*\}in\(x1∗,x2∗\)\(x\_\{1\}^\{\*\},x\_\{2\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐱\{1\}=x\{1\}∗\)\]−𝔼​\[𝐘∣do⁡\(∅\)\]=12−0=12\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{x\}\_\{\\\{1\\\}\}=x\_\{\\\{1\\\}\}^\{\*\}\\right\)\\right\]\\allowbreak\-\\allowbreak\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\(\\emptyset\)\\right\]\\allowbreak=\\allowbreak\\frac\{1\}\{2\}\\allowbreak\-\\allowbreak 0\\allowbreak=\\allowbreak\\frac\{1\}\{2\}x2∗x\_\{2\}^\{\*\}in\(x1∗,x2∗\)\(x\_\{1\}^\{\*\},x\_\{2\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐱\{1,2\}=x\{1,2\}∗\)\]−𝔼​\[𝐘∣do⁡\(𝐱\{1\}=x\{1\}∗\)\]=1−12=12\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{x\}\_\{\\\{1,2\\\}\}=x\_\{\\\{1,2\\\}\}^\{\*\}\\right\)\\right\]\\allowbreak\-\\allowbreak\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{x\}\_\{\\\{1\\\}\}=x\_\{\\\{1\\\}\}^\{\*\}\\right\)\\right\]\\allowbreak=\\allowbreak 1\\allowbreak\-\\allowbreak\\frac\{1\}\{2\}\\allowbreak=\\allowbreak\\frac\{1\}\{2\}Thus, the attribution value assigned tox1∗x\_\{1\}^\{\*\}by the asymmetric sampling node intervention is1/21/2, and the attribution value assigned tox2∗x\_\{2\}^\{\*\}is also1/21/2\.

For edge intervention, we denote the edgeX1→X2X\_\{1\}\\to X\_\{2\}as𝐞1\\mathbf\{e\}\_\{1\},X1→YX\_\{1\}\\to Yas𝐞2\\mathbf\{e\}\_\{2\}, andX2→YX\_\{2\}\\to Yas𝐞3\\mathbf\{e\}\_\{3\}\. We denote the edges of the instancex∗x^\{\*\}ase1∗,e2∗,e3∗e\_\{1\}^\{\*\},e\_\{2\}^\{\*\},e\_\{3\}^\{\*\}\. According to the definition of DAG\-SHAP , there are three valid edge permutations:\(e1∗,e2∗,e3∗\)\(e\_\{1\}^\{\*\},e\_\{2\}^\{\*\},e\_\{3\}^\{\*\}\),\(e1∗,e3∗,e2∗\)\(e\_\{1\}^\{\*\},e\_\{3\}^\{\*\},e\_\{2\}^\{\*\}\), and\(e2∗,e1∗,e3∗\)\(e\_\{2\}^\{\*\},e\_\{1\}^\{\*\},e\_\{3\}^\{\*\}\)\. The marginal contributions of each edge in these permutations are as shown in Table[12](https://arxiv.org/html/2606.15273#S11.T12)\.

TABLE 12:Edge interventions \(DAG\-SHAP\): marginal contributions under all valid edge permutations\.Edge and permutationMarginal contribution \(with calculation\)e1∗e\_\{1\}^\{\*\}in\(e1∗,e2∗,e3∗\)\(e\_\{1\}^\{\*\},e\_\{2\}^\{\*\},e\_\{3\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐞\{1\}=e1∗\)\]−𝔼​\[𝐘∣do⁡\(∅\)\]=0−0=0\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1\\\}\}=e\_\{1\}^\{\*\}\\right\)\\right\]\\allowbreak\-\\allowbreak\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\(\\emptyset\)\\right\]\\allowbreak=\\allowbreak 0\\allowbreak\-\\allowbreak 0\\allowbreak=\\allowbreak 0e1∗e\_\{1\}^\{\*\}in\(e1∗,e3∗,e2∗\)\(e\_\{1\}^\{\*\},e\_\{3\}^\{\*\},e\_\{2\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐞\{1\}=e1∗\)\]−𝔼​\[𝐘∣do⁡\(∅\)\]=0−0=0\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1\\\}\}=e\_\{1\}^\{\*\}\\right\)\\right\]\\allowbreak\-\\allowbreak\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\(\\emptyset\)\\right\]\\allowbreak=\\allowbreak 0\\allowbreak\-\\allowbreak 0\\allowbreak=\\allowbreak 0e1∗e\_\{1\}^\{\*\}in\(e2∗,e1∗,e3∗\)\(e\_\{2\}^\{\*\},e\_\{1\}^\{\*\},e\_\{3\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐞\{1,2\}=e\{1,2\}∗\)\]−𝔼​\[𝐘∣do⁡\(𝐞\{2\}=e2∗\)\]=12−0=12\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1,2\\\}\}=e\_\{\\\{1,2\\\}\}^\{\*\}\\right\)\\right\]\\allowbreak\-\\allowbreak\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{2\\\}\}=e\_\{2\}^\{\*\}\\right\)\\right\]\\allowbreak=\\allowbreak\\frac\{1\}\{2\}\\allowbreak\-\\allowbreak 0\\allowbreak=\\allowbreak\\frac\{1\}\{2\}e2∗e\_\{2\}^\{\*\}in\(e1∗,e2∗,e3∗\)\(e\_\{1\}^\{\*\},e\_\{2\}^\{\*\},e\_\{3\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐞\{1,2\}=e\{1,2\}∗\)\]−𝔼​\[𝐘∣do⁡\(𝐞\{1\}=e1∗\)\]=12−0=12\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1,2\\\}\}=e\_\{\\\{1,2\\\}\}^\{\*\}\\right\)\\right\]\\allowbreak\-\\allowbreak\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1\\\}\}=e\_\{1\}^\{\*\}\\right\)\\right\]\\allowbreak=\\allowbreak\\frac\{1\}\{2\}\\allowbreak\-\\allowbreak 0\\allowbreak=\\allowbreak\\frac\{1\}\{2\}e2∗e\_\{2\}^\{\*\}in\(e1∗,e3∗,e2∗\)\(e\_\{1\}^\{\*\},e\_\{3\}^\{\*\},e\_\{2\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐞\{1,2,3\}=e\{1,2,3\}∗\)\]−𝔼​\[𝐘∣do⁡\(𝐞\{1,3\}=e\{1,3\}∗\)\]=1−0=1\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1,2,3\\\}\}=e\_\{\\\{1,2,3\\\}\}^\{\*\}\\right\)\\right\]\\allowbreak\-\\allowbreak\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1,3\\\}\}=e\_\{\\\{1,3\\\}\}^\{\*\}\\right\)\\right\]\\allowbreak=\\allowbreak 1\\allowbreak\-\\allowbreak 0\\allowbreak=\\allowbreak 1e2∗e\_\{2\}^\{\*\}in\(e2∗,e1∗,e3∗\)\(e\_\{2\}^\{\*\},e\_\{1\}^\{\*\},e\_\{3\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐞\{2\}=e2∗\)\]−𝔼​\[𝐘∣do⁡\(∅\)\]=0−0=0\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{2\\\}\}=e\_\{2\}^\{\*\}\\right\)\\right\]\\allowbreak\-\\allowbreak\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\(\\emptyset\)\\right\]\\allowbreak=\\allowbreak 0\\allowbreak\-\\allowbreak 0\\allowbreak=\\allowbreak 0e3∗e\_\{3\}^\{\*\}in\(e1∗,e2∗,e3∗\)\(e\_\{1\}^\{\*\},e\_\{2\}^\{\*\},e\_\{3\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐞\{1,2,3\}=e\{1,2,3\}∗\)\]−𝔼​\[𝐘∣do⁡\(𝐞\{1,2\}=e\{1,2\}∗\)\]=1−12=12\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1,2,3\\\}\}=e\_\{\\\{1,2,3\\\}\}^\{\*\}\\right\)\\right\]\\allowbreak\-\\allowbreak\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1,2\\\}\}=e\_\{\\\{1,2\\\}\}^\{\*\}\\right\)\\right\]\\allowbreak=\\allowbreak 1\\allowbreak\-\\allowbreak\\frac\{1\}\{2\}\\allowbreak=\\allowbreak\\frac\{1\}\{2\}e3∗e\_\{3\}^\{\*\}in\(e1∗,e3∗,e2∗\)\(e\_\{1\}^\{\*\},e\_\{3\}^\{\*\},e\_\{2\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐞\{1,3\}=e\{1,3\}∗\)\]−𝔼​\[𝐘∣do⁡\(𝐞\{1\}=e1∗\)\]=0−0=0\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1,3\\\}\}=e\_\{\\\{1,3\\\}\}^\{\*\}\\right\)\\right\]\\allowbreak\-\\allowbreak\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1\\\}\}=e\_\{1\}^\{\*\}\\right\)\\right\]\\allowbreak=\\allowbreak 0\\allowbreak\-\\allowbreak 0\\allowbreak=\\allowbreak 0e3∗e\_\{3\}^\{\*\}in\(e2∗,e1∗,e3∗\)\(e\_\{2\}^\{\*\},e\_\{1\}^\{\*\},e\_\{3\}^\{\*\}\)𝔼​\[𝐘∣do⁡\(𝐞\{1,2,3\}=e\{1,2,3\}∗\)\]−𝔼​\[𝐘∣do⁡\(𝐞\{1,2\}=e\{1,2\}∗\)\]=1−12=12\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1,2,3\\\}\}=e\_\{\\\{1,2,3\\\}\}^\{\*\}\\right\)\\right\]\\allowbreak\-\\allowbreak\\mathbb\{E\}\\\!\\left\[\\mathbf\{Y\}\\mid\\operatorname\{do\}\\\!\\left\(\\mathbf\{e\}\_\{\\\{1,2\\\}\}=e\_\{\\\{1,2\\\}\}^\{\*\}\\right\)\\right\]\\allowbreak=\\allowbreak 1\\allowbreak\-\\allowbreak\\frac\{1\}\{2\}\\allowbreak=\\allowbreak\\frac\{1\}\{2\}Thus, the attribution value assigned tox1∗x\_\{1\}^\{\*\}by DAG\-SHAP is\(0\+0\+1/2\)/3\+\(1/2\+1\+0\)/3=2/3\(0\+0\+1/2\)/3\+\(1/2\+1\+0\)/3=2/3,and the attribution value assigned tox2∗x\_\{2\}^\{\*\}is\(1/2\+0\+1/2\)/3=1/3\(1/2\+0\+1/2\)/3=1/3\. Asx1∗=1x\_\{1\}^\{\*\}=1directly influencesYYthroughX2X\_\{2\}and the interactionY=X1⋅X2Y=X\_\{1\}\\cdot X\_\{2\}, it is evident thatx1∗=1x\_\{1\}^\{\*\}=1is more important thanx2∗x\_\{2\}^\{\*\}\. Therefore, the asymmetric sampling node intervention provides incorrect attribution, as it fails to account for the external contribution ofx1∗=1x\_\{1\}^\{\*\}=1\.

Similar Articles

RelShap: Relationally Consistent Shapley Explanations

arXiv cs.LG

This paper proposes RelShap, a framework that incorporates relational constraints and data provenance into Shapley value computation, making explanations more faithful to the data-generating process. It is estimator-agnostic and composes with existing SHAP estimators while exploiting functional dependencies to reduce runtime.

Nonlinear Axiomatic Attribution for Cooperative Games

arXiv cs.LG

This paper introduces a class of nonlinear axiomatic attribution methods for cooperative games to overcome the limitations of the linear Shapley value, which has an excessively large null space. Experimental results demonstrate the potential effectiveness of these methods in terms of inclusion AUC metric compared to Shapley value variants.

Graph Machine: Exploring Edge Mechanisms as an Inductive Bias

arXiv cs.LG

This paper introduces Graph Machine, an architecture with explicit edge-based mechanisms (edge-augmented attention and edge-centric referral) to improve iterative relational reasoning. Experiments on Sudoku show it outperforms Transformer baselines, with ablations and mechanistic analysis attributing gains to the edge mechanisms.