Skip to main content
QUICK REVIEW

[Paper Review] Evaluating Explainability for Graph Neural Networks

Chirag Agarwal, Owen Queen|arXiv (Cornell University)|Aug 19, 2022
Explainable Artificial Intelligence (XAI)Computer Science10 citations
TL;DR

This paper introduces ShapeGGen, a synthetic graph data generator that creates diverse benchmark datasets with reliable, programmatically defined ground-truth explanations for graph neural networks (GNNs). By enabling controlled evaluation of GNN explainability methods across varying graph structures and properties, ShapeGGen and the accompanying GraphXAI library provide a standardized framework for assessing explanation quality, addressing the lack of reliable benchmarks in the field.

ABSTRACT

As post hoc explanations are increasingly used to understand the behavior of graph neural networks (GNNs), it becomes crucial to evaluate the quality and reliability of GNN explanations. However, assessing the quality of GNN explanations is challenging as existing graph datasets have no or unreliable ground-truth explanations for a given task. Here, we introduce a synthetic graph data generator, ShapeGGen, which can generate a variety of benchmark datasets (e.g., varying graph sizes, degree distributions, homophilic vs. heterophilic graphs) accompanied by ground-truth explanations. Further, the flexibility to generate diverse synthetic datasets and corresponding ground-truth explanations allows us to mimic the data generated by various real-world applications. We include ShapeGGen and several real-world graph datasets into an open-source graph explainability library, GraphXAI. In addition to synthetic and real-world graph datasets with ground-truth explanations, GraphXAI provides data loaders, data processing functions, visualizers, GNN model implementations, and evaluation metrics to benchmark the performance of GNN explainability methods.

Motivation & Objective

  • To address the critical lack of reliable, programmatically defined ground-truth explanations for evaluating GNN explainability methods.
  • To develop a flexible synthetic graph generator capable of producing diverse graph datasets with controllable properties such as size, degree distribution, and homophily.
  • To create a comprehensive benchmarking library, GraphXAI, integrating synthetic and real-world datasets with explanations, model implementations, and evaluation metrics.
  • To enable systematic evaluation of GNN explanation methods using data where the true rationale for predictions is known.
  • To support reproducible research in GNN explainability by providing standardized data, tools, and evaluation protocols.

Proposed method

  • ShapeGGen generates synthetic graphs with user-defined parameters, including graph size, node degree distribution, and homophily/heterophily levels.
  • The generator embeds ground-truth explanations by associating specific substructures (e.g., shapes) with node-level prediction labels, ensuring that the explanation corresponds directly to the model's reasoning.
  • Ground-truth explanations are encoded as node or subgraph masks that indicate which parts of the graph are causally responsible for predictions.
  • The framework integrates with GraphXAI, a unified library that provides data loaders, visualization tools, GNN model implementations, and evaluation metrics for explainability.
  • GraphXAI supports both synthetic and real-world graph datasets, enabling cross-dataset evaluation of explanation methods.
  • Evaluation uses standard explainability metrics (e.g., faithfulness, precision, recall) on explanations generated by various GNN explanation methods.

Experimental results

Research questions

  • RQ1How do different GNN explanation methods perform across varying graph structures, such as homophilic versus heterophilic graphs?
  • RQ2To what extent do existing explanation methods accurately recover the ground-truth substructures used in synthetic data?
  • RQ3How does the complexity of the graph structure (e.g., size, degree distribution) affect the faithfulness and reliability of explanations?
  • RQ4Can the proposed benchmark reliably distinguish between high-quality and low-quality explanation methods?
  • RQ5How do explanation methods generalize across different types of synthetic and real-world graph data?

Key findings

  • ShapeGGen successfully generates diverse graph datasets with consistent, programmatically defined ground-truth explanations across multiple structural configurations.
  • Evaluation with GraphXAI reveals significant performance variation among explanation methods, with some failing to recover ground-truth substructures even in simple graphs.
  • Faithfulness and precision of explanations are consistently lower in heterophilic graphs compared to homophilic ones, indicating methodological challenges in such settings.
  • The benchmark demonstrates that current explanation methods often fail to identify the correct causal substructures, especially in complex or sparse graphs.
  • The inclusion of both synthetic and real-world datasets in GraphXAI enables more robust and generalizable evaluation of explainability techniques.
  • The framework enables reproducible and systematic comparison of GNN explanation methods, highlighting gaps in current approaches.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.