Papers
Topics
Authors
Recent
Search
2000 character limit reached

Graph-based Integrated Gradients (GB-IG)

Updated 10 July 2026
  • Graph-based Integrated Gradients (GB-IG) is an extension of Integrated Gradients tailored for graphs, replacing Euclidean interpolation with shortest-path based attribution.
  • It computes attributions by summing gradient-weighted feature differences along discrete graph paths, effectively identifying important nodes and motifs in a GNN.
  • Empirical results on synthetic and real-world datasets show GB-IG achieving superior fidelity and motif detection over traditional IG baselines, despite higher computational costs.

Searching arXiv for papers directly relevant to Graph-based Integrated Gradients and closely related path-based IG variants. Graph-based Integrated Gradients (GB-IG) is an extension of Integrated Gradients (IG) to graph data in which straight-line interpolation in Euclidean input space is replaced by attribution accumulation along shortest paths in a graph. In its explicit 2025 formulation, GB-IG is designed for graph neural networks (GNNs), where the input is a graph G=(X,A)\mathcal{G}=(\mathbf{X},\mathbf{A}) and predictions depend jointly on node features and adjacency; the method is intended to explain node classification by identifying influential feature dimensions, important nodes, and graph substructures or motifs (Simpson et al., 9 Sep 2025). In a broader path-based interpretability landscape, GB-IG also sits near graph- or manifold-constrained variants of IG that replace Euclidean chords with structure-respecting paths, including geodesic constructions approximated by kk-NN graphs and shortest-path search (Salek et al., 17 Feb 2025).

1. Problem setting and motivation

Standard IG assumes a continuous Euclidean input and a meaningful straight-line interpolation between a baseline bb and an input xx: $\IG(x,b) = (x-b) \odot \int_{0}^{1} \nabla f(tx+(1-t)b) \, \dd t.$ This construction is well matched to vector inputs, but GB-IG begins from the claim that it is ill-suited to graphs, because graphs are discrete structures and GNNs do not operate only on feature vectors. They operate on

G=(X,A),\mathcal{G} = (\mathbf{X}, \mathbf{A}),

where XRN×d\mathbf{X} \in \mathbb{R}^{|\mathcal{N}| \times d} is the node-feature matrix and A\mathbf{A} is the adjacency matrix. The central difficulty is that features and structure are coupled in GNN computation, so an explanation method that ignores graph geometry risks mischaracterizing what the model uses (Simpson et al., 9 Sep 2025).

The methodological objection to vanilla IG on graphs has several parts. Graph structure is discrete; there is no straight line between nodes in graph space; the natural notion of movement is along graph paths rather than Euclidean interpolation; and shortest paths on graphs are often not unique. On this view, the explanatory question is not how to interpolate continuously through an ambient tensor representation of a graph, but how to accumulate attribution along graph-respecting paths. GB-IG addresses this by redefining the path over which gradients are accumulated.

A common misconception is that GB-IG simply applies ordinary IG to a flattened adjacency matrix or feature tensor. The 2025 formulation does not do this. It does not define a continuous interpolation of the adjacency matrix. Instead, discreteness is handled by replacing continuous interpolation with discrete shortest paths over graph nodes, and by approximating the integral with sums of node-to-node feature differences times local gradients (Simpson et al., 9 Sep 2025).

2. Formal definition on graph paths

GB-IG represents a graph input as G=(X,A)\mathcal{G}=(\mathbf{X},\mathbf{A}) and selects a baseline node bb and a target node kk0. It then defines

kk1

to consist of the shortest paths between nodes kk2 and kk3. Although the notation uses kk4, the method explicitly treats paths as finite sequences of nodes (Simpson et al., 9 Sep 2025).

For a path kk5, the core approximation is

kk6

This is the graph analogue of discretized integrated gradients. Instead of infinitesimal movement along a Euclidean line, GB-IG uses finite feature differences between adjacent nodes encountered along a graph path. The term combines feature impact, through the partial derivative, with structural impact, through movement along the path.

Because shortest paths need not be unique, GB-IG aggregates over all shortest paths: kk7 This is the method’s defining expression. Each path contribution is normalized by kk8, then summed across the shortest-path set. The prose in the source also states that explanations from multiple paths are summed to provide the mean contribution of structure, but the equation itself sums path-normalized contributions and does not divide by the number of paths. Accordingly, the exact normalization across paths is best taken from the formula rather than the prose.

The direct attribution target in the equations is a feature dimension kk9. In practice, however, the reported use is to identify important nodes and graph motifs or substructures, especially in node classification. The method does not provide an explicit edge-attribution formula, and the authors note in a figure caption that edge importance is “not considered in this work” (Simpson et al., 9 Sep 2025).

3. Baseline nodes, path entropy, and computational procedure

Baseline selection in GB-IG is not the same as choosing a zero vector or a blurred image. The method treats the baseline as a node in the graph. Ordinary IG baselines such as zero are described as ill-posed on graph space, so GB-IG adapts the notion of a “maximum distance” baseline. Let bb0 be the set of nodes with maximal graph distance from a target node bb1. One option is to aggregate over all such baselines: bb2 Because this may be expensive, the method proposes an information-theoretic rule for selecting a single baseline node (Simpson et al., 9 Sep 2025).

For a path bb3, path information is defined by

bb4

which simplifies to

bb5

The entropy of a path set bb6 is then

bb7

and the selected baseline is

bb8

Among maximally distant candidate baselines, GB-IG therefore chooses the one whose shortest-path set to the target has highest entropy under this degree-based path probability model (Simpson et al., 9 Sep 2025).

Operationally, the procedure can be summarized as follows. A trained GNN bb9, a graph xx0, and a target node xx1 are given. A baseline node is chosen, preferably by the entropy criterion above. The set of shortest paths xx2 is enumerated. For each path step, the local derivative xx3 is computed. These local terms are multiplied by successive node-feature differences and accumulated along each path, then aggregated across paths. For evaluation, attributions are normalized to xx4, and a threshold of xx5 is used to determine important nodes.

This construction makes the main computational burden explicit. Complexity arises from finding all maximally distant baseline nodes xx6, potentially enumerating all shortest paths xx7, and computing gradients along every path step. The paper notes that xx8 can be xx9 in the worst case, and that even after choosing a single $\IG(x,b) = (x-b) \odot \int_{0}^{1} \nabla f(tx+(1-t)b) \, \dd t.$0, the number of shortest paths $\IG(x,b) = (x-b) \odot \int_{0}^{1} \nabla f(tx+(1-t)b) \, \dd t.$1 may still be large (Simpson et al., 9 Sep 2025).

4. Axiomatic status and relation to non-straight-path IG

The method is framed as an axiomatic extension of IG. Six axioms from Sundararajan et al. are listed: Nullity, Implementation Invariance, Linearity, Sensitivity, Symmetry, and Completeness. GB-IG is said to satisfy axioms 1–5 “immediately,” while Completeness is modified because the method aggregates over multiple graph paths (Simpson et al., 9 Sep 2025).

Standard completeness has the form

$\IG(x,b) = (x-b) \odot \int_{0}^{1} \nabla f(tx+(1-t)b) \, \dd t.$2

GB-IG does not satisfy this directly. Instead, it introduces path-wise completeness: $\IG(x,b) = (x-b) \odot \int_{0}^{1} \nabla f(tx+(1-t)b) \, \dd t.$3 Total attribution therefore equals the sum of endpoint output differences over all paths considered. When $\IG(x,b) = (x-b) \odot \int_{0}^{1} \nabla f(tx+(1-t)b) \, \dd t.$4 consists of one path, this reduces to standard completeness in Euclidean space.

Within the broader IG literature, GB-IG is part of a larger shift from fixed straight-line interpolation toward geometry-respecting paths. A closely related development is Geodesic Integrated Gradients (GIG), which treats input space as a Riemannian manifold with metric tensor induced by the model Jacobian,

$\IG(x,b) = (x-b) \odot \int_{0}^{1} \nabla f(tx+(1-t)b) \, \dd t.$5

and computes attributions along geodesics rather than Euclidean chords. One of GIG’s two approximation schemes is explicitly graph-based: a $\IG(x,b) = (x-b) \odot \int_{0}^{1} \nabla f(tx+(1-t)b) \, \dd t.$6-NN graph is built over sampled points, edge weights are defined by integrating the gradient norm along local straight segments, and a shortest-path algorithm such as Dijkstra or A$\IG(x,b) = (x-b) \odot \int_{0}^{1} \nabla f(tx+(1-t)b) \, \dd t.$7 is used to obtain a piecewise-linear path for attribution (Salek et al., 17 Feb 2025).

The connection is conceptual rather than identical. In the narrow sense, GB-IG is the graph-node shortest-path method for GNN explanations. In the broader sense, GIG shows how graph construction can serve as an approximation to a deeper continuous geodesic objective. GIG also introduces Strong Completeness,

$\IG(x,b) = (x-b) \odot \int_{0}^{1} \nabla f(tx+(1-t)b) \, \dd t.$8

and claims that geodesic paths are the only path-based attribution method satisfying it under the paper’s assumptions. Whether every step of that proof is fully rigorous is described as debatable in the source material, but the conceptual message is that path choice can control feature-cancellation pathologies that ordinary completeness does not detect (Salek et al., 17 Feb 2025).

5. Empirical evidence

The reported GB-IG experiments focus on node classification with a 3-layer GCN with 64 hidden units per layer. Three evaluation metrics are used. Fidelity measures the average drop in model output when important nodes are occluded: $\IG(x,b) = (x-b) \odot \int_{0}^{1} \nabla f(tx+(1-t)b) \, \dd t.$9 Because the GCN is transductive, important nodes are not removed structurally; they are occluded by setting their node features to zero. Higher fidelity is better, and negative fidelity means the selected nodes increase confidence when removed. Sparsity is

G=(X,A),\mathcal{G} = (\mathbf{X}, \mathbf{A}),0

and the Jaccard index against ground-truth explanation masks is

G=(X,A),\mathcal{G} = (\mathbf{X}, \mathbf{A}),1

Explanations are normalized to G=(X,A),\mathcal{G} = (\mathbf{X}, \mathbf{A}),2 and thresholded at G=(X,A),\mathcal{G} = (\mathbf{X}, \mathbf{A}),3 (Simpson et al., 9 Sep 2025).

On the synthetic ShapeGGen benchmark, four settings are used: House with homophily G=(X,A),\mathcal{G} = (\mathbf{X}, \mathbf{A}),4, House with homophily G=(X,A),\mathcal{G} = (\mathbf{X}, \mathbf{A}),5, Circle with homophily G=(X,A),\mathcal{G} = (\mathbf{X}, \mathbf{A}),6, and Circle with homophily G=(X,A),\mathcal{G} = (\mathbf{X}, \mathbf{A}),7. GB-IG is reported as best on all four datasets for both Fidelity and Jaccard.

Dataset GB-IG Fidelity GB-IG Jaccard
House G=(X,A),\mathcal{G} = (\mathbf{X}, \mathbf{A}),8 G=(X,A),\mathcal{G} = (\mathbf{X}, \mathbf{A}),9 XRN×d\mathbf{X} \in \mathbb{R}^{|\mathcal{N}| \times d}0
House XRN×d\mathbf{X} \in \mathbb{R}^{|\mathcal{N}| \times d}1 XRN×d\mathbf{X} \in \mathbb{R}^{|\mathcal{N}| \times d}2 XRN×d\mathbf{X} \in \mathbb{R}^{|\mathcal{N}| \times d}3
Circle XRN×d\mathbf{X} \in \mathbb{R}^{|\mathcal{N}| \times d}4 XRN×d\mathbf{X} \in \mathbb{R}^{|\mathcal{N}| \times d}5 XRN×d\mathbf{X} \in \mathbb{R}^{|\mathcal{N}| \times d}6
Circle XRN×d\mathbf{X} \in \mathbb{R}^{|\mathcal{N}| \times d}7 XRN×d\mathbf{X} \in \mathbb{R}^{|\mathcal{N}| \times d}8 XRN×d\mathbf{X} \in \mathbb{R}^{|\mathcal{N}| \times d}9

The strongest quantitative comparisons are explicit for several cases. On House A\mathbf{A}0, GB-IG fidelity is A\mathbf{A}1, compared with IG-Uniform A\mathbf{A}2, IG-Gaussian A\mathbf{A}3, and IG-Zero A\mathbf{A}4. On Circle A\mathbf{A}5, GB-IG fidelity is A\mathbf{A}6 while all IG baselines are negative. For Jaccard, the gains are large: House A\mathbf{A}7 shows GB-IG A\mathbf{A}8 versus next-best A\mathbf{A}9; House G=(X,A)\mathcal{G}=(\mathbf{X},\mathbf{A})0 shows G=(X,A)\mathcal{G}=(\mathbf{X},\mathbf{A})1 versus G=(X,A)\mathcal{G}=(\mathbf{X},\mathbf{A})2; Circle G=(X,A)\mathcal{G}=(\mathbf{X},\mathbf{A})3 shows G=(X,A)\mathcal{G}=(\mathbf{X},\mathbf{A})4 versus G=(X,A)\mathcal{G}=(\mathbf{X},\mathbf{A})5; and Circle G=(X,A)\mathcal{G}=(\mathbf{X},\mathbf{A})6 shows G=(X,A)\mathcal{G}=(\mathbf{X},\mathbf{A})7 versus G=(X,A)\mathcal{G}=(\mathbf{X},\mathbf{A})8. The main tradeoff is sparsity: GB-IG is less sparse than IG baselines, especially IG-Gaussian.

On real-world citation networks—Pubmed, Cora, and CiteSeer—there is no ground-truth explanation mask, so only Fidelity and Sparsity are reported.

Dataset GB-IG Fidelity GB-IG Sparsity
Pubmed G=(X,A)\mathcal{G}=(\mathbf{X},\mathbf{A})9 bb0
Cora bb1 bb2
CiteSeer bb3 bb4

GB-IG is best on 2 of the 3 real datasets in Fidelity and only narrowly behind IG-Gaussian on Cora. Specifically, Pubmed fidelity is bb5 for GB-IG, versus IG-Zero bb6, IG-Uniform bb7, and IG-Gaussian bb8. CiteSeer fidelity is bb9 for GB-IG, versus IG-Zero kk00, IG-Uniform kk01, and IG-Gaussian kk02. On Cora, IG-Gaussian attains kk03, slightly above GB-IG’s kk04. In all three real datasets, GB-IG remains less sparse than the IG baselines (Simpson et al., 9 Sep 2025).

6. Scope, limitations, and adjacent application domains

The explicit scope of GB-IG is narrow. It is demonstrated on GCNs for node classification and is developed for undirected, unweighted graphs. The method’s strengths are that it respects graph discreteness, naturally incorporates structure, recovers motif ground truths much better than vanilla IG on the reported synthetic tasks, and avoids ill-posed straight-line interpolation through graph space. Its stated limitations are equally clear: explanations are less sparse; computational cost may be high when there are many maximal-distance baselines or many shortest paths; there is no explicit edge-attribution mechanism; practical node-level aggregation details are under-specified; and baseline selection remains an open issue even with the entropy heuristic (Simpson et al., 9 Sep 2025).

A second misconception is that GB-IG, as currently formulated, explains every graph element symmetrically. It does not. The equations directly attribute importance to feature dimensions kk05, and the experiments interpret these scores at the node and motif level. Explicit edge attribution is absent. A plausible implication is that extensions to weighted, directed, or edge-centric settings would require more than a trivial rewrite of the existing equations.

The method also has relevance outside conventional graph benchmarks. A separate 2025 photonics study does not implement GB-IG, but it provides a reusable pattern for structured scientific design problems: generate a dataset, train a differentiable surrogate for a scalar physical figure of merit, apply IG to the surrogate, and interpret sparse high-importance regions. In that work, the device geometry is represented as a binary 2D mask, the targets are power at kk06 nm and kk07 nm, IG uses kk08 integration steps, and visualization emphasizes magnitude maps, kk09th-percentile clipping, and top-kk10 hotspots with default kk11. The same source explicitly states that the wavelength-demultiplexer geometry is amenable to graphization into nodes, edges, and region-level features, and that physically meaningful units of explanation are already substructures such as the splitter/taper hub, abrupt width transitions, and high-curvature edges (Park et al., 25 Oct 2025).

This suggests a concrete research direction rather than an established result: GB-IG may be particularly useful where the native objects of explanation are not isolated pixels but functional substructures, routes, or interfaces. In that broader sense, the significance of GB-IG is not merely that it replaces one numerical integration rule with another. It redefines what a path-based attribution means when the input domain itself is combinatorial or manifold-constrained, and it makes graph structure part of the attribution path rather than an inconvenient encoding detail.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Graph-based Integrated Gradients (GB-IG).