arXiv:2609.04931cs.AISep 2026

Manuscript Offprint

arXiv:2609.04931

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

Arthur Ledaguenel, Florent Capelli, Jean-Marie Lagniez

Abstract

The widespread adoption of artificial intelligence (AI) within real-world applications has raised a lot of concerns regarding their trustworthiness, especially in critical applications. The field of eXplainable AI (XAI) has emerged with the objective of providing explanations to the users about the decisions made by AI systems. Several explanations for boolean classifiers have been introduced in the literature, including abductive and contrastive explanations, each giving a different insight on the decision of the classifier. However, computing an explanation for a decision of a boolean classifier is a hard problem in general. One way to deal with this complexity is to rely on a compiled representation of the classifier for which each explanation can be computed efficiently. Unfortunately, we prove 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. Included in such classes are shorter abductive explanations or abductive explanations that include the explainee's preferences. To recover the benefits of working with compiled representations, we show that a proper representation of the dual-rail encoding of the classifier can be used to compute efficiently these classes of explanations.

1 Introduction

The widespread adoption of artificial intelligence (AI) within real-world applications, powered by the recent advancements of machine learning, has raised a lot of concerns regarding their trustworthiness, especially in critical applications. Building trust in AI systems depends on characteristics like fairness, robustness, and explainability, each of which has been the subject of active research in the past decade. Hence, the field of eXplainable AI (XAI) has emerged with the objective of providing explanations to the users about the decisions made by AI systems. Within this field, formal explainability (Ignatiev, Narodytska, and Marques-Silva, 2019) designs explanations with provable guarantees and studies the complexity of computing these explanations based on the type of model used in the AI system. On boolean classifiers specifically, several explanations have been introduced in the literature, each giving a different insight on the decision of the classifier. For example, abductive explanations highlight a set of features in the input instance whose values are sufficient to fix the decision of the classifier (Ignatiev, Narodytska, and Marques-Silva, 2019), whereas contrastive explanations suggest a minimal set of features that can be changed in the input instance to swap the decision of the classifier (Audemard, Lagniez, and Marquis, 2024). Other types of explanations such as the Shapley value have also been adapted to boolean classifiers (Létoffé, Huang, and Marques-Silva, 2025).

Computing an explanation for a decision of a boolean classifier is a hard problem in general. In fact, one of the main focus of the literature in formal explainability has been to characterize for which types of classifiers a given explanation can be computed efficiently (typically in time polynomial in the size of the classifier).

*corresponding author: arthur.ledaguenel@gmail.com

This cartographic approach of formal explainability draws a natural parallel with knowledge compilation (Darwiche and Marquis, 2002), a field whose goal is to characterize propositional languages representing boolean functions according to their succinctness and the set of tractable queries and transformations they support. Hence, the complexity of computing explanations based on a compiled representation of the classifier has been heavily explored recently (Audemard, Koriche, and Marquis, 2020; Huang et al., 2022). It is known for instance that computing subset-minimal abductive explanations (also called sufficient reasons or prime implicant explanations) can be done efficiently for d-DNNF classifiers. Unfortunately, we prove in this paper that several classes of abductive explanations remain hard even for Ordered Binary Decision Diagrams (OBDD), one of the most tractable subsets of the knowledge compilation map. This is for instance the case of shortest (or minimal-size) explanations (Audemard et al., 2024) or optimal abductive explanations with respect to an additive utility function representing the explainee's preferences (Audemard et al., 2022). Algorithms based on SAT-like solvers have been proposed for these types of explanations, but they lack the guarantees that compiled representations can provide. The aim of this paper is precisely to fill that gap.

At the core of computing abductive explanations lies the complexity of reasoning about the implicants of a formula. The dual-rail encoding (Bryant et al., 1987) has already been used to generate or enumerate selected implicants of a formula (Manquinho et al., 1997; Palopoli, Pirri, and Pizzuti, 1999; Jabbour et al., 2014; Previti et al., 2015), but we believe that its full potential has not yet been explored. In particular, we show that a proper representation of the dual-rail encoding of a classifier can be used to efficiently compute several hard explanations, such as shortest abductive explanations, preferred abductive explanations or coverage-based explanations in the presence of domain constraints (Cooper and Amgoud, 2023). We also show that the dual-rail of a CNF can be easily represented as another CNF, which allows us to use existing knowledge compilers as-is. Finally, we measure experimentally the complexity gap between compiling the original function and its dual-rail.

Outline. We first review related works in Section 2. We define preliminary notions on boolean functions, knowledge compilation and XAI queries in Section 3. We define the dual-rail encoding in 4 and demonstrate its potential for solving hard XAI queries in Section 5. We discuss how to compile dual-rail encodings into tractable representations in Section 6 and test this approach experimentally in Section 7. Finally, we conclude our paper and discuss future research directions in Section 8.

References (31)