Introduction
In the field of Explainable AI (XAI), logic-based models such as decision sets are highly valued for their inherent interpretability. A decision set consists of an unordered collection of independent if-then rules. Unlike decision trees or lists, the lack of a specific order makes these models particularly easy for humans to inspect and understand.
However, the task of finding the "optimal" decision set—defined as the smallest set that perfectly fits a given dataset—is an NP-hard optimization problem. Traditional "one-shot" approaches using propositional satisfiability (SAT) solvers suffer from cubic encoding growth, $O(\text{Rules} \times \text{Examples} \times \text{Features})$, which severely limits their scalability to larger datasets. This paper proposes a novel two-stage approach to overcome these limitations while maintaining model optimality.
Methodology
The authors introduce a pipeline that decouples the rule generation process from the final selection, drawing inspiration from classical logic minimization techniques like the Quine-McCluskey algorithm.
Stage 1: Rule Enumeration via MaxSAT
The first stage involves identifying all candidate "minimal" rules. The algorithm utilizes Maximum Satisfiability (MaxSAT) with a dual-rail encoding to find rules that cover at least one positive instance while excluding all negative instances. To prevent a combinatorial explosion of redundant rules, the authors implement symmetry breaking, ensuring each generated rule covers a unique set of data points.
Stage 2: Rule Selection via ILP
Once the candidate rule pool is established, the problem is framed as a classic Set Cover optimization: selecting the minimum number of rules (or literals) required to cover all positive training examples. Integer Linear Programming (ILP), specifically using the Gurobi solver, is employed for this stage due to its high efficiency in solving set cover structures.
Experimental Setup
The proposed method, implemented in a tool called ruler, was evaluated against a benchmark of 1,065 datasets from the UCI Machine Learning Repository and the Penn Machine Learning Benchmarks. These datasets spanned a wide range of complexity, with up to 384 features and over 67,000 instances. Data was pre-processed to ensure consistency (removing conflicting labels) to allow for the computation of "perfect" models.
Results and Discussion
The two-stage approach demonstrates significant improvements in both scalability and computational efficiency.
Scalability and Speedup
ruler successfully computed optimal models for 802 datasets, more than doubling the 351 datasets handled by the previous state-of-the-art (opt). In direct runtime comparisons, ruler achieved speedups of up to four orders of magnitude (10,000x). This efficiency allows for the computation of models with thousands of literals, whereas previous methods were restricted to much smaller models.
Interpretability through Literal Minimization
The study highlights that minimizing the total number of literals (conditions) rather than just the number of rules leads to more concise and interpretable models. On average, literal-minimized models contained 62.2 literals compared to 116.2 for rule-minimized counterparts.
Conclusion
This research presents a major step forward in making optimal, interpretable logic models practical for large-scale data. While the current implementation focuses on perfect training accuracy, future work aims to extend this framework to "sparse" decision sets that allow for a trade-off between accuracy and simplicity to handle noisy real-world data. Additionally, the authors plan to explore applying this two-stage logic to other structures like decision lists and trees.
Summary updated