GraphXAIN: Narratives to Explain Graph Neural Networks

Mateusz Cedro, David Martens
11/4/2024
cs.LGcs.AI

No official code found. Best implementation: ADMAntwerp/GraphXAIN (14 stars, MIT, last commit 2026-04-22).

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.

View on arXivView PDF

Code Implementations(1)

MIT

This repository contains the official implementation and resources for the GraphXAIN: Narratives to Explain Graph Neural Networks (Cedro & Martens, 2024) research article.

140Python, Jupyter NotebookNov 4, 20246 months agoMIT
gnnnarrativesxai

Similar Papers

Cite this paper

@article{cedro2024graphxain,
  title  = {GraphXAIN: Narratives to Explain Graph Neural Networks},
  author = {Mateusz Cedro and David Martens},
  year   = {2024},
  eprint = {2411.02540},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.02540v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.02540.svg)](https://codeofpaper.com/paper/2411.02540)

Discussion