Skip to content

ExplAIner: A Declarative Query Language for Explaining Classification Models

Jul 2026 · arXiv.org · Vol abs/2607.06407 · 0 citations · 46 references
Computer Science

TL;DR

This paper introduces ExplAIner, a query language based on FOIL with an extended vocabulary and a layered structure that can express a broad family of explanation notions, and proves that the evaluation problem for each query in ExplAIner belongs to the Boolean hierarchy over every class of Boolean models for which some basic predicates can be evaluated in polynomial time.

Abstract

The XAI community has studied a wide range of queries and scores for explaining predictions of ML models. From a data management perspective, this proliferation of explanation notions calls for declarative query languages in which such notions can be specified, combined, and analyzed uniformly. In this paper, we develop such a framework for Boolean models. We first revisit FOIL, an interpretability query language for black-box models, and show that it has two fundamental limitations: it cannot express central optimality-based explanation queries, and its evaluation problem over decision trees is hard for every level of the polynomial hierarchy. We then introduce ExplAIner, a query language based on FOIL with an extended vocabulary and a layered structure. We show that ExplAIner can express a broad family of explanation notions, including abductive, contrastive, feature-based, and distance-based queries. We also prove that the evaluation problem for each query in ExplAIner belongs to the Boolean hierarchy over every class of Boolean models for which some basic predicates can be evaluated in polynomial time. In particular, that property holds for deterministic and decomposable Boolean circuits. Finally, we introduce Opt-FOIL, an optimization-oriented fragment of ExplAIner for computing explanations that are minimal with respect to strict partial orders, and prove that its evaluation problem is in $\mathrm{FP}^{\mathrm{NP}}$ under the same tractability assumptions. These complexity results have a direct algorithmic consequence: a fixed ExplAIner query can be evaluated with a fixed number of calls to a SAT solver, while a notion of explanation specified in Opt-FOIL can be computed with a polynomial number of such calls. This is particularly relevant in formal XAI, where SAT solvers have been successfully used to compute explanations for several classes of ML models.

View source

Similar papers

Preprint Sep 2026

Property Testing for Recursive Query Languages

In the context of database querying, property testing provides a framework for testing query answers with high confidence while inspecting only a sublinear part of the database, through completion queries and size queries. A fundamental result of Chen and Yoshida (2019) states that non-satisfaction of a Boolean conjunc...

Isolde Adler, Carsten Lutz, Quentin Manière et al. · 0 citations
#artificial intelligence Preprint Oct 2026

When Plans Change Answers: Formalizing Cost-Accuracy Optimization for Semantic Queries

In semantic query engines, predicates are evaluated by machine-learned models, and the choice of a query plan affects not only the cost of a query but also its result. Existing systems either apply a fixed threshold to each semantic operator or tune accuracy per operator, without accounting for how errors propagate thr...

Kyoungmin Kim · 0 citations

Querying LLMs as if they were Digital Libraries

This study provides an initial assessment on the feasibility of using LLMs as a KB for CH, using “Galois”, a recent framework for executing Structured Query Language (SQL) queries over LLMs with logical and physical optimizations tailored to the model’s behavior.

Mirco Cazzaro, G. Silvello · 1 citation
#natural language process... Preprint Sep 2026

From Token Probabilities to Semantic Constraints: Towards Declarative Probabilistic Evaluation of Language Models

A declarative probabilistic framework for pre-training evaluation that makes the semantic structure of model behavior explicit and provides new formal tools for relating evaluation to learning, and links evaluation and learning through a shared semantics.

Kyle Richardson, C. Anderson, Pranav Balakrishnan et al. · 1 citation
#small language model Open access Aug 2026

Concept Tree Learner (CTL): An Incremental and Interpretable Symbolic Framework for Binary String Rule Induction

The Concept Tree Learner is introduced, an incremental and interpretable symbolic framework that induces logical concepts over binary strings from minimal labeled data and generalizes substantially better to unseen strings than both a classical entropy-based decision tree and the RIPPER rule learner.

Muhammed Tekin Ertekin, Burkay Genç · 0 citations
#artificial intelligence Preprint Sep 2026

Solving Hard XAI Queries Based on a Compiled Dual-Rail Encoding

It is proved in this paper that several classes of abductive explanations, remain hard to compute even for Ordered Binary Decision Diagrams, one of the most tractable subsets of the knowledge compilation map.

Arthur Ledaguenel, Florent Capelli, Jean-Marie Lagniez · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.