Abduction-Based Explanations for Machine Learning Models

Alexey Ignatiev, Nina Narodytska, João Marques-Silva

Abstract

As machine learning (ML) models are increasingly deployed in high-stakes environments, the need for rigorous, interpretable explanations of their decisions has become paramount. Current heuristic-based approaches, such as LIME and SHAP, offer approximations but lack formal guarantees regarding the necessity or sufficiency of the features they highlight. This paper introduces a principled framework for generating "formal" explanations using abductive reasoning. By representing ML models—specifically neural networks with ReLU activations—as systems of linear constraints, the authors provide methods to compute subset-minimal and cardinality-minimal explanations. Our evaluation across various datasets demonstrates that Mixed Integer Linear Programming (MILP) solvers offer superior performance over Satisfiability Modulo Theories (SMT) solvers, enabling the generation of highly compressed and logically sound explanations.

Introduction

The "black box" nature of modern machine learning models poses significant risks in safety-critical fields like medicine and finance. While explainable AI (XAI) tools have gained popularity, most rely on heuristics that may include irrelevant features or fail to identify the smallest set of features required to maintain a prediction. This research addresses this gap by framing the search for an explanation as a Propositional Abduction Problem (PAP). The goal is to identify a minimal set of input features that forces the model to produce a specific output, providing a level of rigor previously missing in the field.

Methods

The authors propose encoding the behavior of neural networks into a constraint-based language. Specifically, networks using Rectified Linear Unit (ReLU) activations are translated into Mixed Integer Linear Programming (MILP) models. Within this framework, two types of explanations are defined:

  1. Subset-Minimal Explanations: These are "prime implicants" where no single feature can be removed without potentially changing the model's prediction. They are computed using a greedy iterative removal process.
  2. Cardinality-Minimal Explanations: These represent the absolute smallest number of features required to guarantee the prediction, solved using an Implicit Hitting Set paradigm.

This approach is constraint-agnostic, allowing it to be adapted to any model that can be represented via MILP or Satisfiability Modulo Theories (SMT).

Results and Discussion

The framework was tested on 12 datasets from the UCI repository and the MNIST handwritten digit dataset. A key finding was the efficiency of MILP solvers (such as CPLEX) compared to SMT solvers (such as Yices2). MILP proved significantly faster at handling the numerical constraints inherent in neural networks.

Table 1: Performance comparison of SMT and MILP solvers across various UCI datasets for minimal and minimum explanations.

As shown in the experimental results, subset-minimal explanations were often found in less than a second for smaller datasets, reducing feature sets to an average of 60.5% of their original size. In extreme cases, such as the australian dataset, a single feature was sufficient to guarantee the prediction.

On the MNIST dataset, the complexity of the input space (784 pixels) presented a greater challenge. While subset-minimal explanations were computable in approximately 52.86 seconds on average, cardinality-minimal explanations frequently reached solver timeouts due to the complexity of the problem.

Figure 1: Visualizing subset-minimal explanations for the digit '3' on MNIST. Different pixel orderings lead to different logically valid explanations.

The visual results on MNIST highlight an interesting property: the order in which features are tested during the greedy reduction process affects the final explanation. While all resulting sets are logically valid, they may vary in their intuitive appeal to humans, suggesting that future work could incorporate user preferences into the minimization process.

Conclusion

This work establishes a rigorous foundation for XAI through formal abduction. While the current MILP-based approach scales well to medium-sized networks, further research is needed to address the computational demands of massive architectures like Transformers. Additionally, integrating human-centric heuristics to guide the selection of "intuitive" minimal sets remains a promising direction for future work.

Summary updated

BibTeX
@inproceedings{ignatiev2019abduction,
  author = {Alexey Ignatiev and Nina Narodytska and João Marques-Silva},
  title = {{Abduction-Based Explanations for Machine Learning Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33011511},
}
Figure