Reason to explain: Interactive contrastive explanations (REASONX)

Laura State, Salvatore Ruggieri, Franco Turini
5/29/2023
cs.AIcs.CYcs.LG

No official code found. Best implementation: lstate/REASONX (5 stars, MIT, last commit 2026-02-23).

Abstract

Many high-performing machine learning models are not interpretable. As they are increasingly used in decision scenarios that can critically affect individuals, it is necessary to develop tools to better understand their outputs. Popular explanation methods include contrastive explanations. However, they suffer several shortcomings, among others an insufficient incorporation of background knowledge, and a lack of interactivity. While (dialogue-like) interactivity is important to better communicate an explanation, background knowledge has the potential to significantly improve their quality, e.g., by adapting the explanation to the needs of the end-user. To close this gap, we present REASONX, an explanation tool based on Constraint Logic Programming (CLP). REASONX provides interactive contrastive explanations that can be augmented by background knowledge, and allows to operate under a setting of under-specified information, leading to increased flexibility in the provided explanations. REASONX computes factual and constrative decision rules, as well as closest constrative examples. It provides explanations for decision trees, which can be the ML models under analysis, or global/local surrogate models of any ML model. While the core part of REASONX is built on CLP, we also provide a program layer that allows to compute the explanations via Python, making the tool accessible to a wider audience. We illustrate the capability of REASONX on a synthetic data set, and on a a well-developed example in the credit domain. In both cases, we can show how REASONX can be flexibly used and tailored to the needs of the user.

View on arXivView PDF

Code Implementations(1)

lstate/REASONXCommunity100%
MIT

REASONX (reason to explain)

51R, PrologMay 29, 20237 months agoMIT

Similar Papers

Cite this paper

@article{state2023reason,
  title  = {Reason to explain: Interactive contrastive explanations (REASONX)},
  author = {Laura State and Salvatore Ruggieri and Franco Turini},
  year   = {2023},
  eprint = {2305.18143},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.18143v1}
}

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

Discussion