Learning Optimal Decision Sets and Lists with SAT

Jinqiang Yu, Alexey Ignatiev, Peter J. Stuckey, Pierre Le BodicJAIR 2021 · DOI

Abstract Rule-based models like decision sets and lists are cornerstone techniques for explainable artificial intelligence (XAI). However, existing heuristic methods often produce models that are unnecessarily complex, hindering human interpretability. This paper presents a novel approach using Boolean Satisfiability (SAT) and Maximum Satisfiability (MaxSAT) solvers to learn provably optimal decision sets and lists. By minimizing the total number of literals rather than just the number of rules, the proposed method generates significantly more succinct models. Evaluation across over a thousand benchmark instances demonstrates that this SAT-based approach achieves competitive accuracy while providing a new gold standard for model conciseness.

The Challenge of Complexity in XAI

In the quest for "Explainable AI," we often turn to rule-based models like decision sets and decision lists. They feel intuitive: "If X and Y, then Z." But a model with five rules isn't actually simple if each rule contains twenty complex conditions. A recent paper from researchers at Monash University, published in the Journal of Artificial Intelligence Research, tackles this head-on. By leveraging the power of modern SAT solvers, they’ve developed a way to find the mathematically "smallest" possible rule-based models, ensuring the highest possible level of human-readable conciseness.

Methodology: SAT and MaxSAT Formulation

The researchers formulated the learning process as a combinatorial optimization problem. Most machine learning models are "black boxes," but rule-based models offer transparency. The authors argue that the total number of conditions (literals) is the true bottleneck for human understanding. To address this, they utilize different SAT formulations:

  1. Iterative SAT for "Perfect" Models: For datasets where 100% training accuracy is required, they use an iterative SAT approach. They query the solver to find the smallest possible model of size $N$, incrementing $N$ until a solution is found.
  2. MaxSAT for "Sparse" Models: Real-world data is often noisy. The authors use MaxSAT to balance a trade-off between model size and accuracy. By assigning weights to misclassifications and the use of literals, the solver finds the optimal sparse model that avoids overfitting.
A sample dataset with binary features (A-E) and a target class (H), typical of the inputs processed by the SAT solver.

To handle large, multi-class datasets, they propose "separated" models—computing rules for each class independently. This significantly boosts scalability without sacrificing much in terms of model quality.

Key Insights: Literals vs. Rules

The core innovation of this work is the shift from minimizing the number of rules to minimizing the total number of literals. This creates models that "look" much simpler to a human observer. The paper also explores the trade-off between Decision Sets (DS) and Decision Lists (DL):

  • Decision Lists (DL) are generally smaller as a whole model because they use ordering to "catch" remaining cases efficiently.
  • Decision Sets (DS) often provide smaller individual explanations because you only need to look at the specific rule that fired, rather than tracing through a list of "else" statements.
An example of a decision list structure showing how rules are ordered for classification.

Results and Evaluation

The approach was rigorously tested on a massive benchmark suite of 71 datasets sourced from the UCI Machine Learning Repository and the Penn Machine Learning Benchmarks, resulting in 1,065 total evaluation instances.

  • Succinctness: Their optimal sparse decision sets were found to be as accurate as popular heuristic methods like RIPPER and CN2, but significantly more concise.
  • Accuracy: In the "perfect" model category, their SAT-based approach outperformed other state-of-the-art methods like IMLI in terms of testing accuracy.
  • Global Optimality: For the first time, they provided a method to determine optimal decision lists that agree with all training data, filling a significant gap in the literature.

Conclusion

While SAT solving is NP-complete, the authors show that modern solvers (like Glucose 3 and RC2-B) are now powerful enough to find provably optimal rules for medium-sized datasets. This work demonstrates that we don't have to settle for "good enough" heuristics; with the right optimization framework, we can achieve provable simplicity in AI explainability.

Summary updated

BibTeX
@article{yu2021learning,
  author = {Jinqiang Yu and Alexey Ignatiev and Peter J. Stuckey and Pierre Le Bodic},
  title = {{Learning Optimal Decision Sets and Lists with SAT}},
  journal = {J. Artif. Intell. Res.},
  year = {2021},
  doi = {10.1613/jair.1.12719},
}
Figure