cs.CYFeb 27, 2026

ReasonX: Declarative Reasoning on Explanations

Authors: Laura State, Salvatore Ruggieri, Franco Turini

Organizations: University of Pisa, IT · Scuola Normale Superiore, IT · Alexander von Humboldt Institute for Internet and Society, GER

Abstract

Explaining opaque Machine Learning (ML) models has become an increasingly important challenge. However, current eXplanation in AI (XAI) methods suffer several shortcomings, including insufficient abstraction, limited user interactivity, and inadequate integration of symbolic knowledge. We propose ReasonX, an explanation tool based on expressions (or, queries) in a closed algebra of operators over theories of linear constraints. ReasonX provides declarative and interactive explanations for decision trees, which may represent the ML models under analysis or serve as global or local surrogate models for any black-box predictor. Users can express background or common sense knowledge as linear constraints. This allows for reasoning at multiple levels of abstraction, ranging from fully specified examples to under-specified or partially constrained ones. ReasonX leverages Mixed-Integer Linear Programming (MILP) to reason over the features of factual and contrastive instances. We present here the architecture of ReasonX, which consists of a Python layer, closer to the user, and a Constraint Logic Programming (CLP) layer, which implements a meta-interpreter of the query algebra. The capabilities of ReasonX are demonstrated through qualitative examples, and compared to other XAI tools through quantitative experiments.

Figures & tables

Explore similar work

CardsList
  1. ExplAIner: A Declarative Query Language for Explaining Classification Models

    Jul 7, 2026Marcelo Arenas, Pablo Barceló, Diego Bustamante +3Explainable Artificial IntelligenceInterpretable ML

  2. A Causal Argumentation Method for Explainability of Machine Learning Models

    May 20, 2026Henry Salgado, Meagan R. Kendall, Martine CeberioExplainable Artificial IntelligenceCausal Explanation

  3. MEA: A Reward-Driven Multi-Agent System for Faithful Model Explanations

    Oct 1, 2026Yuyang Cheng, Raghav Kaushik Ravi, Srivarshinee Sridhar +3Explainable Artificial IntelligenceFaithfulness of Language Model Explanations