Skip to content

Edge Deletion in GNN Explanations: Two Interventions, Two Fidelity Verdicts

THE ARGUMENT

Deletion fidelity is not a property of an edge ranking alone: the same ranking can win or lose depending on which deletion intervention the evaluator applies.

On this page

You have 4,000 edge scores from a vendor's graph explainer, and your team must decide by Friday whether to buy it — but the acceptance test is exactly where things get slippery. The usual advice is to delete the top-scoring edges and watch how far the prediction moves, on the logic that a bigger drop means a better explanation. That quantity is called deletion fidelity, and it feels objective because it needs no ground-truth explanation to compute. The catch is that "deleting" an edge was never defined. You can remove the edge from the graph, or you can keep the graph intact and zero out only the message travelling along that edge. Those are different computations, and [1] shows the verdict can follow the computation rather than the ranking.

The Default Test: Remove Top Edges, Watch the Drop

Explaining a graph model's decision usually produces a table of edge scores, one number per connection, where a high score says this connection matters more for the prediction at hand. With no ground truth to compare against, people score explanations by perturbation instead: take away the highest-scoring connections and read how much the output moves. That is deletion fidelity, and sweeping the removal fraction q from 0 to 0.5 and integrating the output change gives a single number, the deletion area.

The default assumption is that this area belongs to the ranking. A better ranking produces a larger area, and swapping the evaluation script should not reshuffle the leaderboard. Paper [1] argues that this assumption quietly skips a step, because the act of removal is never specified.

Two Deletions: Remove the Edge or Zero Its Message

Inside a graph model an edge is not an isolated object. Node degrees, neighbourhoods, normalization factors and attention weights all depend on which edges are present, so removing one edge has at least two distinct implementations.

Structural deletion, written T_S, removes the edge from the graph and then recomputes everything derived from structure, including degrees, neighbourhoods, degree normalization and the attention softmax denominator. Message-channel suppression, T_M, leaves the topology untouched and sets to zero only the message carried by that edge. Both suppress the direct message, but they treat the surviving edges differently.

The paper's first figure makes this concrete. In a layer using c_uv = 1/|N(v)| with the self-loop omitted, a node v with three incoming edges loses two, and the surviving arc becomes the only neighbour, so its coefficient becomes 1. Under message suppression the same arc keeps its original coefficient of 1/3, because the neighbourhood never changed. The same removal hands the surviving edge three times the weight.

The coefficients differ across architectures: GIN uses sum aggregation with c identically 1, GCN uses c_uv = (d̃_u d̃_v)^{-1/2} with degrees counted over E plus self-loops, and GATv2 normalizes with a softmax over v's neighbourhood. Mean aggregation fails for a different reason, because the zeros land in its denominator.

ModelAggregationCoefficient c_uvChanges when an edge is removed?
GINSumAlways 1No, hence a built-in control
GCNSum(d̃_u d̃_v)^{-1/2}Yes, degrees are recomputed
GATv2Weighted sumSoftmax over neighbourhoodYes, the denominator is recomputed
Mean poolingMeanNot applicableYes, zero messages enter the denominator

When the Two Interventions Give Identical Results

Two properties decide the question. An aggregator absorbs zero if adding zero messages never changes its value, and coefficients are edge-set free if a surviving arc's coefficient takes the same value on E and on E minus the removed set. Proposition 1 states that when every layer satisfies both, and the readout depends only on final node states, the model output is identical under both interventions for every graph, every parameter setting and every removed set.

Corollary 1 turns this into a control group for experiments: GIN sums messages with unit coefficients, satisfies both properties, and therefore cannot show any construction-by-evaluation effect. GCN and GATv2 violate edge-set freeness, mean aggregation violates zero absorption, and the appendix supplies explicit witnesses for both failure modes.

The conditions are sufficient rather than necessary, since the two failures can cancel each other in contrived layers. Proposition 2 gives a closed form for the first-layer gap under sum aggregation: the difference equals a sum over surviving edges of the recomputed coefficient minus the original one, times the corresponding message. The gap is carried entirely by surviving messages, whose coefficients get renormalized under structural deletion and stay fixed under message suppression. The resulting bound yields a zero condition but no dose-response curve, because shifted messages can cancel.

The Crossed Design: Construction Versus Evaluation

An explainer perturbs the model while it builds a ranking, and the evaluator perturbs it again when scoring, so there are two independent switches forming a 2x2 design. Writing O for the construction intervention and P for the evaluation intervention, both in the structural or message family, F_OP(q) is the drop in the target output when the top-q prefix of ranking r_O meets intervention P, and F_OP integrates this over q from 0 to 0.5 on a grid of 0, 0.1 and so on, using the trapezoidal rule.

Two contrasts follow. C_S = F_SS minus F_MS asks how much the structural ranking beats the message ranking under structural evaluation, while C_M = F_MM minus F_SM asks the mirror question under message evaluation. Their sum D = C_S + C_M is a difference-in-differences measuring how much larger the structural ranking's advantage is under structural evaluation. Matched superiority, the strongest condition, requires both contrasts to be positive, so each ranking wins under the intervention it was built with.

Edge scores come from integrated gradients over a continuous gate in [0,1] on each directed arc. The structural construction injects the gate before degree normalization or the attention softmax, while the message construction multiplies the transmitted message after the context has been computed. Both paths start from the same intact model, yet the integrated scores can rank edges differently, and each path has its own completeness identity up to quadrature error.

Three readouts are used: the target logit, the target-versus-rest margin, and the target probability. The target class is fixed to the intact model's prediction and is never recomputed after intervention.

Explanation rankingStructural evaluation T_SMessage evaluation T_M
Structural ranking r_SF_SS (matched pair)F_SM
Message ranking r_MF_MSF_MM (matched pair)

Results: Nine GIN Controls and 11 Reportable Cells

The study spans nine datasets and a panel of GIN, GCN and GATv2 models at depths 2 to 5, which amounts to 22 dataset-backbone combinations that the paper calls cells. On the target logit, all nine GIN controls agree across the two interventions to within 10^-5, exactly as the theory predicts.

Among the 11 reportable GCN and GATv2 cells, the interaction is positive in 10, and in nine of them matched superiority holds, meaning each ranking has the larger deletion area under the intervention it was built with. The practical implication is blunt: the same ranking can be declared better or worse simply by switching the evaluation intervention.

The verdict also moves with the output functional and with the perturbation unit, which the paper states explicitly. That is not measurement noise but a reminder that a fidelity number detached from its readout definition carries little meaning.

A second explainer, GNNExplainer, serves as an exploratory check on the same 11 cells. A fixed learned ranking scored differently under the two interventions in seven cells on the target logit, but only four satisfied matched superiority, and restarts of the explainer often disagreed with each other, so this part is explicitly exploratory.

Where This Breaks Down

The paper does not claim that either intervention is correct, that a larger deletion area means a better explanation, or that its results rank explainers against each other. It claims something narrower, and the method fails when you step outside that claim.

  • Counterfactual meaning: perturbed graphs lie off the training distribution, so out-of-distribution behaviour need not reveal which edges the model actually uses;
  • Panel and inference: seeds are treated as clusters and GIN as a built-in control, so conclusions are scoped to this panel and to depths 2 to 5;
  • Attribution and perturbation unit: explainers that define sparsity over node-induced subgraphs, such as SubgraphX, do not produce an edge ranking without an extra conversion;
  • External explainer check: the GNNExplainer analysis is exploratory and restarts disagree, so it is not confirmation.

This approach does not apply when your explanation unit is not an edge, or when the real question is whether the model reasons sensibly off-distribution; in those cases changing the evaluation framework matters more than arguing about intervention semantics [1].

References

  1. What Does It Mean to Remove an Edge? Intervention-Aware Fidelity for Graph Neural Network Explanations

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…