Computing Optimal Decision Sets with SAT

Jinqiang Yu, Alexey Ignatiev, Peter J. Stuckey, Pierre Le Bodic

In the era of "black-box" deep learning, the demand for explainable artificial intelligence (XAI) has never been higher. While modern models predict outcomes with high accuracy, the underlying reasoning often remains opaque. Researchers at Monash University propose a return to logic-based "decision sets," utilizing state-of-the-art SAT solvers to ensure these models are as concise as mathematically possible.

The Challenge of Interpretability

The gold standard for explainability in machine learning is the decision rule (e.g., "If Income > $50k and Credit Score > 700, then Approve Loan"). A decision set is a collection of such rules that can be interpreted independently.

However, existing heuristic methods for building these sets often prioritize minimizing the number of rules. This frequently results in a few "monster rules" containing dozens of conditions, which are difficult for humans to parse. The authors argue that true interpretability is better measured by the total number of literals—the total count of conditions across all rules in the set.

Example of a binary dataset with features (L, C, E, S) and target class H.

Finding the absolute smallest decision set for a given dataset is a computationally intensive task. This paper addresses this by formulating the problem as a search for the minimum total literal count.

Methodology: SAT and MaxSAT Solvers

The researchers leverage the power of modern Satisfiability (SAT) and Maximum Satisfiability (MaxSAT) solvers. Their approach includes several novel components:

  1. Iterative SAT Model: They designed a SAT encoding that queries whether a decision set of total size $N$ exists. Starting with $N=1$ and incrementing until a solution is found, they guarantee the minimum possible size.
  2. MaxSAT for Sparsity: To handle cases where a "perfect" model is too large, a MaxSAT version allows for "sparse" models. This trades a small amount of accuracy for a significant reduction in size, controlled by a regularization parameter ($\lambda$).
  3. Separated Models: To improve computational speed, rules for "Positive" and "Negative" instances are built separately and then combined. This "divide and conquer" strategy makes the NP-complete problem of SAT solving more manageable.
  4. Literal-Based Objective: Unlike previous work focusing on rule counts, their objective function specifically targets the total number of literals plus class descriptors.
Visualization of a decision set represented as a sequence of literals and class outcomes.

Experimental Evaluation

The approach was evaluated on 71 datasets from the UCI Machine Learning Repository and the Penn Machine Learning Benchmarks. These datasets varied widely, with instance counts from 14 to over 67,000 and feature counts from 3 to 384.

Key Insights

  • Literals Over Rules: A model with five rules of two conditions each (10 literals) is significantly more interpretable than a model with two rules of twenty conditions each (40 literals).
  • Explicit Class Rules: Many existing models (like RIPPER) compute rules for only one class, treating the other as a "default." Explaining a default prediction requires negating the entire model logic, which is complex. The proposed SAT-based model provides explicit, succinct rules for every class.
  • Attainable Optimality: Despite the NP-complete nature of SAT solving, modern solvers can find optimal or near-optimal models for most practical datasets within a 1800-second timeframe.

Results and Impact

The results demonstrate a dramatic improvement in model conciseness:

  • Extreme Compression: The sparse model ($sp[\lambda_3]$) produced decision sets with an average of just 4.18 literals.
  • Comparison to Heuristics: In contrast, the popular RIPPER algorithm averaged 35.14 literals, and CN2 averaged 598.05 literals.
  • Accuracy: Despite being orders of magnitude smaller, the SAT-based models remained competitive. "Perfect" SAT models achieved an average accuracy of ~85.9%, while sparse versions maintained high performance with vastly improved readability.

Conclusion

By mathematically optimizing for brevity, this research provides a powerful tool for high-stakes industries like healthcare, law, and finance. While SAT-based methods still face challenges with extremely high-dimensional data, they prove that we do not have to sacrifice interpretability for performance. Future work will explore alternative interpretability measures and further optimizations to handle larger datasets.

Summary updated

BibTeX
@inproceedings{yu2020computing,
  author = {Jinqiang Yu and Alexey Ignatiev and Peter J. Stuckey and Pierre Le Bodic},
  title = {{Computing Optimal Decision Sets with SAT}},
  booktitle = {CP},
  year = {2020},
  url = {https://openreview.net/forum?id=-GZFCRBm4nS},
}
Figure