GraphXAIN: Narratives to Explain Graph Neural Networks
Mateusz Cedro, David Martens
TL;DR
GraphXAIN tackles the interpretability gap in graph neural networks by transforming traditional explanations (subgraphs and feature importances) into coherent natural-language narratives using large language models. The method is model- and explainer-agnostic, complementing existing graph explainers such as GNNExplainer, and is demonstrated on node classification (NBA dataset) and node regression (IMDB dataset) tasks. A human study shows that narratives improve understandability, satisfaction, convincingness, and communicability, with the combined use of GraphXAIN and GNNExplainer yielding the broadest enhancements across eight explainability dimensions. The work highlights the potential of narrative-based explanations to make graph-based AI more accessible to practitioners and non-expert users, while outlining future directions such as counterfactual narratives and addressing potential language-model hallucinations.
Abstract
Graph Neural Networks (GNNs) are a powerful technique for machine learning on graph-structured data, yet they pose challenges in interpretability. Existing GNN explanation methods usually yield technical outputs, such as subgraphs and feature importance scores, that are difficult for non-data scientists to understand and thereby violate the purpose of explanations. Motivated by recent Explainable AI (XAI) research, we propose GraphXAIN, a method that generates natural language narratives explaining GNN predictions. GraphXAIN is a model- and explainer-agnostic method that uses Large Language Models (LLMs) to translate explanatory subgraphs and feature importance scores into coherent, story-like explanations of GNN decision-making processes. Evaluations on real-world datasets demonstrate GraphXAIN's ability to improve graph explanations. A survey of machine learning researchers and practitioners reveals that GraphXAIN enhances four explainability dimensions: understandability, satisfaction, convincingness, and suitability for communicating model predictions. When combined with another graph explainer method, GraphXAIN further improves trustworthiness, insightfulness, confidence, and usability. Notably, 95% of participants found GraphXAIN to be a valuable addition to the GNN explanation method. By incorporating natural language narratives, our approach serves both graph practitioners and non-expert users by providing clearer and more effective explanations.
