Explainable Graph Neural Networks via Structural Externalities

Lijun Wu, Dong Hao, Zhiyi Fan

Introduction

Graph Neural Networks (GNNs) have revolutionized predictive modeling in domains ranging from drug discovery to social network analysis. However, their "black box" nature remains a significant barrier to deployment in high-stakes environments. While GNNs operate through complex message-passing mechanisms, identifying the specific structural components or node features responsible for a prediction is notoriously difficult.

The Challenge of Graph Interpretability

Existing interpretability frameworks often struggle to balance feature importance with structural context. Many current "explainers" treat edges as static links or focus primarily on individual node features, failing to capture how a node's contribution shifts based on its neighborhood—the "coalition" it belongs to. Without a rigorous mathematical foundation to account for these interactions, explanations can be inconsistent or fail to reflect the model's internal logic. The authors argue that the graph structure itself is the most critical component, yet it is often the most difficult to quantify.

GraphEXT: Leveraging Structural Externalities

To address these limitations, the researchers introduce GraphEXT, a framework that adapts concepts from cooperative game theory and economics to the graph domain.

The Economic Metaphor

In economics, an "externality" occurs when an activity affects parties who are not directly involved in the transaction (e.g., a factory's pollution affecting a nearby town). GraphEXT treats a GNN as a "society" of nodes. The value of a node is not intrinsic; rather, it is influenced by the surrounding graph structure, which acts as an external force. By measuring these "structural externalities," GraphEXT can quantify how a node's importance is amplified or dampened by its neighbors.

Cooperative Game Theory and Shapley Values

The framework utilizes a specialized version of the Shapley value, a game-theoretic method for distributing credit among players. Unlike standard Shapley values, GraphEXT accounts for externalities by partitioning the graph into coalitions (independent subgraphs) and observing how predictions fluctuate as nodes move between these groups.

To manage the exponential complexity of calculating every possible node combination, the authors implemented an efficient unbiased sampling method using the Knuth Shuffle. This allows the framework to approximate importance values accurately without the computational overhead of exhaustive search.

Experimental Evaluation

The authors evaluated GraphEXT across six diverse datasets, including synthetic benchmarks (BA-Shapes, BA-2Motifs), biochemical datasets (BBBP, ClinTox), and sentiment analysis tasks (Graph-SST2, Graph-Twitter).

Performance Metrics

The framework was benchmarked against state-of-the-art explainers like GNNExplainer, PGExplainer, and SubgraphX using two primary metrics:

  • Fidelity+: Measures the drop in prediction probability when the identified "important" nodes are removed. A higher score indicates the explainer successfully identified critical components.
  • Fidelity-: Measures the model's ability to maintain its prediction using only the identified nodes. A lower score indicates the identified nodes are sufficient on their own to preserve the model's original prediction.

Key Results and Insights

GraphEXT consistently outperformed baselines in fidelity metrics. Notably, on the Graph-Twitter dataset, it achieved a Fidelity+ score of 0.78, significantly higher than SubgraphX’s 0.51.

Several key insights emerged from the study:

  • Structure as a Dynamic Influence: Unlike methods that treat edges as static, GraphEXT views the graph structure as a dynamic influence that changes the "value" of a node's features.
  • Superiority in Sentiment Analysis: The method proved particularly effective in sentiment graphs. In these contexts, specific sentiment-laden words act as powerful externalities, defining the context for the entire sentence structure.
  • Efficiency Trade-off: While more computationally intensive than simple gradient-based methods like GradCAM, GraphEXT is substantially faster than subgraph-based search methods like SubgraphX while providing higher-quality explanations.

Limitations and Future Work

The framework's primary limitation appeared in dense, high-degree graphs (such as the BA-Shapes dataset), where the large number of connections can lead to redundant subgraphs during partitioning. This redundancy can make it harder to estimate individual node importance with high precision.

Future research directions include optimizing partitioning strategies for dense graphs and exploring how these game-theoretic explanations can be used to refine and improve underlying GNN architectures, moving beyond post-hoc explanation toward model optimization.

Summary updated

BibTeX
@inproceedings{wu2025explainable,
  author = {Lijun Wu and Dong Hao and Zhiyi Fan},
  title = {{Explainable Graph Neural Networks via Structural Externalities}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/66},
}
Figure