SAT-Based Rigorous Explanations for Decision Lists

Alexey Ignatiev, Joao Marques-SilvaarXiv 2021

TL;DR

This paper challenges the common assumption that Decision Lists (DLs) are inherently interpretable, proving that finding rigorous justifications for their predictions is actually NP-hard. To overcome this, the authors introduce a novel SAT-based framework that efficiently computes and enumerates both abductive and contrastive explanations for complex, real-world Decision Lists.

What Problem Does This Paper Address?

In Machine Learning, Decision Lists (DLs)—ordered sequences of IF-THEN rules—are often favored because they are perceived as "interpretable." However, as these models grow in complexity to handle real-world data, the actual reason for a specific prediction can become obscured by rule ordering and literal redundancy.

The authors address the challenge of generating rigorous explanations:

  • Abductive Explanations (AXps): The smallest set of feature values that guarantee the model's prediction.
  • Contrastive Explanations (CXps): The smallest set of features that, if changed, could lead to a different prediction.

While previous research showed these can be found quickly for Decision Trees, this paper proves that for Decision Lists, the problem is computationally much tougher (NP-hard).

Methods

The authors bridge the gap between theoretical hardness and practical utility using formal logic:

  1. Complexity Proofs: They formally prove that finding a prime implicant (PI) explanation for a DL is NP-hard, contrasting with the polynomial-time algorithms available for Decision Trees.
  2. Propositional Encoding: They developed a novel way to translate the ordered logic of a Decision List into a Boolean formula. This encoding captures the "firing" mechanics of the list: for a specific rule to fire, all preceding rules must fail.
  3. SAT-Based Enumeration: Leveraging the "hitting set duality" (where every AXp is a minimal hitting set of all CXps and vice versa), they implemented a MARCO-like algorithm. This uses a SAT oracle (Glucose 3) to check if a set of features is sufficient for a prediction and a MaxSAT oracle (RC2) to manage the enumeration of multiple explanations.

An example of the type of model they analyze is shown in the following decision list:

Example Decision List from the paper

Datasets

The approach was evaluated on a comprehensive suite of 72 datasets sourced from:

  • The UCI Machine Learning Repository.
  • Penn Machine Learning Benchmarks.
  • Existing XAI and algorithmic fairness literature.

Using 5-fold cross-validation, the authors generated 360 distinct DL models. These models varied significantly in scale, ranging from simple lists with 6 rules to complex ones with over 2,000 rules, resulting in SAT encodings with up to 3.9 million clauses.

Key Insights and Ideas

  • Interpretability is not inherent: The paper highlights that "rule-based" does not automatically mean "easy to explain." The jump from trees to ordered lists fundamentally changes the computational complexity of finding justifications.
  • Succinctness over Rules: A firing rule might have many literals, but a rigorous AXp often finds that only a small fraction of those literals are actually necessary for the prediction.
  • The Power of Duality: By treating the explanation problem as a search for Minimal Unsatisfiable Subsets (MUSes) and Minimal Correction Subsets (MCSes), the authors can use highly optimized off-the-shelf automated reasoning tools.
  • SAT is surprisingly scalable: Despite the NP-hard nature of the problem, modern SAT solvers can process even the largest encoded DL models in seconds, making complete enumeration feasible for practical applications.

Key Results

  • Performance: The SAT-based explainer successfully computed all explanations for every instance across all 360 datasets within the time limits.
  • Efficiency: The MARCO-based approach for AXp enumeration emerged as the most efficient configuration overall.
  • Explanation Characteristics:
    • AXps (Abductive) are generally fewer in number but longer (averaging up to 15.8 literals).
  • CXps (Contrastive) are more numerous but very short (rarely exceeding 2.8 literals), providing very concise "what-if" scenarios for users.
  • Feasibility: Complete enumeration of all possible explanations is possible for most practical DL settings, providing a holistic view of why a model behaves the way it does.

Limitations and Future Work

The authors acknowledge that their current propositional encoding, while effective, contains some redundancy. Future work could involve developing more sophisticated, non-redundant encodings using auxiliary variables to further boost performance.

Additionally, while this paper focuses on categorical data and Decision Lists, the success of the SAT-based approach motivates research into explaining other complex model types—such as ensembles of rules or models with continuous features—using similar automated reasoning techniques.

Summary updated

BibTeX
@misc{ignatiev2021sat,
  author = {Alexey Ignatiev and Joao Marques-Silva},
  title = {{SAT-Based Rigorous Explanations for Decision Lists}},
  year = {2021},
  eprint = {2105.06782},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.06782},
}
Figure