Natural Language Counterfactual Explanations for Graphs Using Large Language Models

Flavio Giorgi, Cesare Campagnano, Fabrizio Silvestri, Gabriele Tolomei
10/11/2024
cs.AIcs.CL

No official code found. Best implementation: flaat/llm-graph-cf (0 stars, last commit 2025-03-30).

Abstract

Explainable Artificial Intelligence (XAI) has emerged as a critical area of research to unravel the opaque inner logic of (deep) machine learning models. Among the various XAI techniques proposed in the literature, counterfactual explanations stand out as one of the most promising approaches. However, these "what-if" explanations are frequently complex and technical, making them difficult for non-experts to understand and, more broadly, challenging for humans to interpret. To bridge this gap, in this work, we exploit the power of open-source Large Language Models to generate natural language explanations when prompted with valid counterfactual instances produced by state-of-the-art explainers for graph-based models. Experiments across several graph datasets and counterfactual explainers show that our approach effectively produces accurate natural language representations of counterfactual instances, as demonstrated by key performance metrics.

View on arXivView PDF

Code Implementations(1)

flaat/llm-graph-cfCommunity100%
01Shell, PythonOct 10, 20241 years ago

Similar Papers

Cite this paper

@article{giorgi2024natural,
  title  = {Natural Language Counterfactual Explanations for Graphs Using Large Language Models},
  author = {Flavio Giorgi and Cesare Campagnano and Fabrizio Silvestri and Gabriele Tolomei},
  year   = {2024},
  eprint = {2410.09295},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.09295v2}
}

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/2410.09295.svg)](https://codeofpaper.com/paper/2410.09295)

Discussion