Skip to main content
QUICK REVIEW

[Paper Review] Logic-Based Explainability in Machine Learning

João Marques‐Silva|arXiv (Cornell University)|Oct 24, 2022
Explainable Artificial Intelligence (XAI)Computer Science5 citations
TL;DR

This paper introduces logic-based formal explainability in machine learning, proposing rigorous, logically sound explanations using automated reasoning techniques such as SAT, SMT, and MILP solvers. It establishes formal definitions for abductive and contrastive explanations, demonstrates their computational complexity, and provides logical encodings for diverse classifiers—achieving provably correct, interpretable explanations for high-stakes ML applications.

ABSTRACT

The last decade witnessed an ever-increasing stream of successes in Machine Learning (ML). These successes offer clear evidence that ML is bound to become pervasive in a wide range of practical uses, including many that directly affect humans. Unfortunately, the operation of the most successful ML models is incomprehensible for human decision makers. As a result, the use of ML models, especially in high-risk and safety-critical settings is not without concern. In recent years, there have been efforts on devising approaches for explaining ML models. Most of these efforts have focused on so-called model-agnostic approaches. However, all model-agnostic and related approaches offer no guarantees of rigor, hence being referred to as non-formal. For example, such non-formal explanations can be consistent with different predictions, which renders them useless in practice. This paper overviews the ongoing research efforts on computing rigorous model-based explanations of ML models; these being referred to as formal explanations. These efforts encompass a variety of topics, that include the actual definitions of explanations, the characterization of the complexity of computing explanations, the currently best logical encodings for reasoning about different ML models, and also how to make explanations interpretable for human decision makers, among others.

Motivation & Objective

  • Address the lack of rigor in existing model-agnostic explainability methods, which often produce logically inconsistent or unreliable explanations.
  • Develop formal, logically grounded explanations for machine learning models that are provably correct and interpretable for human decision-makers.
  • Characterize the computational complexity of computing explanations across different classifier families, distinguishing between tractable and intractable cases.
  • Enable trustworthy AI in high-risk and safety-critical applications by ensuring explanations are logically consistent and verifiable.
  • Integrate formal methods such as automated reasoning and proof assistants to certify explanations and explainability queries.

Proposed method

  • Define formal explanations using abductive and contrastive reasoning frameworks grounded in propositional and first-order logic.
  • Use SAT, SMT, and MILP solvers as backend reasoners to compute exact explanations by encoding classifier behavior into logical formulas.
  • Develop logical encodings for diverse models including decision trees, decision lists, neural networks, and tree ensembles.
  • Formulate explainability queries (e.g., explanation membership, enumeration) as logical decision problems solvable via automated reasoning.
  • Introduce probabilistic explanations by extending logical encodings to reason over input distributions and feature constraints.
  • Apply surrogate models with formal guarantees to explain complex models, ensuring correctness through logical validation.

Experimental results

Research questions

  • RQ1How can we define formal, logically rigorous explanations for machine learning models that avoid the pitfalls of non-formal, model-agnostic approaches?
  • RQ2What is the computational complexity of computing formal explanations across different families of classifiers, and which classes admit tractable solutions?
  • RQ3How can we ensure the correctness and consistency of explanations using formal verification and proof assistants?
  • RQ4What role do input constraints and input distributions play in improving the accuracy and relevance of formal explanations?
  • RQ5Can surrogate models be used to explain complex models while maintaining formal guarantees on explanation quality and consistency?

Key findings

  • Formal explainability using logic-based reasoning provides explanations that are logically consistent and provably correct, avoiding contradictions found in non-formal methods.
  • The paper establishes a comprehensive framework for formal explanations, including abductive, contrastive, and global explanations, with formal definitions and complexity characterizations.
  • For decision trees and monotonic classifiers, computing explanations is tractable, enabling efficient explanation generation via logical encodings.
  • The use of SAT/SMT/MILP solvers enables exact and scalable explanation computation across diverse models, including neural networks and tree ensembles.
  • Probabilistic explanations can be formally defined and computed using logical encodings extended with probabilistic reasoning, improving interpretability under uncertainty.
  • Explanation certification via formal methods (e.g., proof assistants) is feasible and essential for high-risk applications, ensuring implementation correctness and trustworthiness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.