Optimal and efficient text counterfactuals using Graph Neural Networks

Dimitris Lymperopoulos, Maria Lymperaiou, Giorgos Filandrianos, Giorgos Stamou
8/4/2024
cs.CL

No official code found. Best implementation: Jimlibo/GNN-Counterfactual-Editor (0 stars, last commit 2025-01-16).

Abstract

As NLP models become increasingly integral to decision-making processes, the need for explainability and interpretability has become paramount. In this work, we propose a framework that achieves the aforementioned by generating semantically edited inputs, known as counterfactual interventions, which change the model prediction, thus providing a form of counterfactual explanations for the model. We test our framework on two NLP tasks - binary sentiment classification and topic classification - and show that the generated edits are contrastive, fluent and minimal, while the whole process remains significantly faster that other state-of-the-art counterfactual editors.

View on arXivView PDF

Code Implementations(1)

A repository containing code implementation of a GNN-based Counterfactual Editor

02Python, Jupyter NotebookMay 2, 20231 years ago
bipartite-graphsblackbox-nlpcounterfactual-explanationsembeddingsexplainable-ai+4 more

Cite this paper

@article{lymperopoulos2024optimal,
  title  = {Optimal and efficient text counterfactuals using Graph Neural Networks},
  author = {Dimitris Lymperopoulos and Maria Lymperaiou and Giorgos Filandrianos and Giorgos Stamou},
  year   = {2024},
  eprint = {2408.01969},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.01969v2}
}

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

Discussion