Abstract
Graph Neural Networks (GNNs) have demonstrated exceptional performance in graph classification tasks, yet their black-box nature hinders deployment in high-stakes domains like drug discovery. While instance-level counterfactual explanations (CEs) offer local interpretability, they often result in a fragmented global view. This paper introduces COMRECGC, a framework designed to identify "common recourse"—a small set of shared structural transformations that can flip the classification of many different "rejected" graphs into "accepted" ones. By formalizing this as a submodular optimization problem, COMRECGC provides a scalable approach to understanding model-level behavior through actionable, shared paths.
Introduction
The interpretability of Graph Neural Networks is a critical hurdle for their adoption in scientific research. Traditional counterfactual explanations focus on individual instances, providing specific edits (e.g., "remove this atom") to change a model's prediction. However, for large datasets, this leads to an overwhelming number of unique explanations. COMRECGC addresses this by seeking "Common Recourse" (CR): structural changes that apply broadly across a dataset, offering a more cohesive global summary of the model's decision boundaries.
The COMRECGC Framework
The authors formalize two primary problems: Finding Common Recourse (FCR) and Finding Counterfactuals (FC). While FCR is NP-hard, the authors demonstrate that the coverage function is submodular, enabling an effective greedy approximation. The COMRECGC algorithm operates in three distinct stages:
- Graph Embedding: Utilizing the GREED embedding, graphs are mapped into a latent vector space where Euclidean distances approximate the Graph Edit Distance (GED). This allows transformations to be represented and compared as vectors.
- Multi-head Vertex Reinforced Random Walk (VRRW): To explore the space of potential edits, the algorithm employs multiple reinforced random walkers. These walkers prioritize visiting graphs that are predicted as "accepted" by the GNN or have been previously explored, while using teleportation to remain proximal to the original inputs.
- Clustering and Greedy Selection: Potential transformations are clustered using DBSCAN. The algorithm then greedily selects clusters that maximize "coverage"—the number of unique graphs whose predictions are flipped—within a specified budget.
Experimental Evaluation
COMRECGC was benchmarked against four real-world datasets: NCI1 (lung cancer activity), MUTAGENICITY, AIDS (HIV activity), and PROTEINS (enzymatic classification). The results indicate that COMRECGC significantly outperforms state-of-the-art global explainers like GCFExplainer. Specifically, it achieved coverage improvements of 20% to 30% on NCI1, MUTAGENICITY, and AIDS. Furthermore, the "cost" of these recourses—measured by the extent of structural change—was consistently lower than baseline methods, indicating higher efficiency in finding actionable paths.
Discussion and Key Insights
The core innovation of COMRECGC lies in treating recourse as a vector in a latent space, bridging the gap between local actionability and global interpretability. The mathematical guarantee provided by submodularity ensures that the greedy selection is near-optimal. This approach allows researchers to identify dominant patterns in model rejection, such as specific toxicophores in chemical datasets, rather than analyzing thousands of individual cases.
Conclusion and Future Work
While COMRECGC provides a robust framework for global explanation, it currently operates in a purely mathematical graph edit space. Future work aims to integrate domain-specific constraints, such as chemical valency rules, to ensure that the generated recourses are always physically and biologically plausible. Additionally, refining the selection of hyperparameters like the distance threshold ($\theta$) and similarity threshold ($\Delta$) remains an area for further investigation.
Summary updated