Skip to main content
QUICK REVIEW

[Paper Review] DAG Matters! GFlowNets Enhanced Explainer For Graph Neural Networks

Wenqian Li, Yinchuan Li|arXiv (Cornell University)|Mar 4, 2023
Advanced Graph Neural NetworksComputer Science4 citations
TL;DR

This paper proposes GFlowExplainer, a GFlowNet-based method that reformulates GNN explanation as a sequential subgraph generation problem, enabling efficient, scalable, and faithful explanation of GNN predictions. By leveraging a DAG structure and a novel cut vertex matrix, it improves sample efficiency and performance over state-of-the-art methods on both synthetic and real-world datasets, achieving superior fidelity and sparsity.

ABSTRACT

Uncovering rationales behind predictions of graph neural networks (GNNs) has received increasing attention over the years. Existing literature mainly focus on selecting a subgraph, through combinatorial optimization, to provide faithful explanations. However, the exponential size of candidate subgraphs limits the applicability of state-of-the-art methods to large-scale GNNs. We enhance on this through a different approach: by proposing a generative structure -- GFlowNets-based GNN Explainer (GFlowExplainer), we turn the optimization problem into a step-by-step generative problem. Our GFlowExplainer aims to learn a policy that generates a distribution of subgraphs for which the probability of a subgraph is proportional to its' reward. The proposed approach eliminates the influence of node sequence and thus does not need any pre-training strategies. We also propose a new cut vertex matrix to efficiently explore parent states for GFlowNets structure, thus making our approach applicable in a large-scale setting. We conduct extensive experiments on both synthetic and real datasets, and both qualitative and quantitative results show the superiority of our GFlowExplainer.

Motivation & Objective

  • To address the inefficiency and scalability limitations of existing combinatorial optimization-based GNN explanation methods.
  • To overcome the suboptimal sampling and sequence dependency in tree search and reinforcement learning-based approaches.
  • To enable efficient, faithful, and human-interpretable subgraph generation for GNN predictions without pre-training.
  • To design an efficient parent state exploration mechanism for GFlowNets under graph connectivity constraints.
  • To demonstrate superior performance in fidelity, sparsity, and accuracy compared to state-of-the-art baselines.

Proposed method

  • Reformulates GNN explanation as a generative process using GFlowNets, where the probability of a subgraph is proportional to its reward (e.g., mutual information with prediction).
  • Uses a DAG structure in GFlowNets to unify trajectories that generate the same subgraph via different node sequences, improving sample efficiency.
  • Introduces a cut vertex matrix to efficiently identify valid parent states during subgraph generation, reducing search complexity in dynamic graphs.
  • Employs a flow matching objective to guide the policy network in learning a policy that generates high-reward subgraphs with minimal variance.
  • Leverages node ordering and edge addition dynamics to build connected subgraphs step-by-step, aligning with message-passing mechanisms in GNNs.
  • Directly uses generated subgraphs as masks for explanation, assigning importance weights based on generation order.

Experimental results

Research questions

  • RQ1Can a generative framework like GFlowNets outperform combinatorial optimization and reinforcement learning in GNN explanation?
  • RQ2How can we improve sample efficiency in subgraph generation by consolidating trajectories that produce the same subgraph with different sequences?
  • RQ3Can a cut vertex-based criterion enable scalable and efficient parent state search in large-scale GNN explanation?
  • RQ4Does the proposed method achieve higher fidelity and sparsity compared to existing state-of-the-art methods?
  • RQ5Can the GFlowNets-based approach generate more intuitive, connected, and human-interpretable subgraphs than discrete edge-based methods?

Key findings

  • GFlowExplainer achieves 0.99 accuracy on the BA-Shape dataset, matching SubgraphX and outperforming DEGREE (0.94).
  • On the BA-Community dataset, GFlowExplainer attains 0.94 accuracy, comparable to SubgraphX (0.93) and better than DEGREE (0.95).
  • The method demonstrates superior fidelity and sparsity, with quantitative results showing strong alignment between explanations and model predictions.
  • Qualitative results on Graph-SST2 and MUTAG show that GFlowExplainer generates connected, semantically meaningful subgraphs that align with human intuition.
  • The cut vertex matrix reduces computational overhead and accelerates training, enabling efficient application in large-scale settings.
  • GFlowExplainer eliminates the need for pre-training and avoids the high variance of Monte Carlo tree search by leveraging flow matching and trajectory consolidation.

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.