Abstract
While interpretable machine learning models like rule lists offer transparency, they often fail to gain user trust when they rely on variables that domain experts consider irrelevant or secondary. We present S-Classy, an algorithm designed to incorporate expert intuition into the rule discovery process. By utilizing the Minimum Description Length (MDL) principle and a prioritized beam search, S-Classy nudges the model toward "preferred variables" nominated by experts. Our evaluation across 14 diverse datasets demonstrates that S-Classy produces models that align with expert knowledge without sacrificing predictive accuracy, and in some cases, improving generalization.
Introduction
The "black box" nature of complex machine learning models has led to a surge in interest in interpretable models, such as decision trees and rule lists. However, interpretability does not automatically equate to trust. A model may achieve high accuracy by exploiting spurious correlations or data artifacts that a domain expert knows are not causal or relevant. This "right for the wrong reasons" phenomenon can lead to the rejection of models in high-stakes domains like healthcare and law.
Existing methods for incorporating domain knowledge often require experts to manually define complex logical constraints or hard-code rules, which is labor-intensive and error-prone. S-Classy addresses this by allowing experts to simply nominate a set of "preferred variables." The algorithm then attempts to build the model using these variables first, falling back to the full variable set only when the preferred ones do not sufficiently explain the data.
Methodology
S-Classy is built upon the framework of Probabilistic Rule Lists (PRL), where each rule provides a probability distribution over classes rather than a single label. The core of the algorithm is the integration of human guidance with the Minimum Description Length (MDL) principle.
Model Selection via MDL
MDL treats learning as a data compression problem. The best model is the one that minimizes the total length (in bits) of the model description plus the data encoded using that model. This approach naturally balances model complexity and fit, eliminating the need for manual hyperparameter tuning (like pruning or depth limits) and providing a robust defense against overfitting.
The S-Classy Search Strategy
S-Classy employs a greedy beam search to construct the rule list. The search is divided into two phases for each rule:
- Preferred Search: The algorithm first searches for the best rule using only the expert-nominated "preferred variables."
- Fallback Search: If no rule from the preferred set improves the MDL score (i.e., provides better compression than the current model), the algorithm expands its search to include all available variables.
To ensure diversity, once a preferred variable is successfully used in a rule, it is removed from the priority list for subsequent rules, encouraging the model to explore other expert-suggested factors.
Experimental Setup
The performance of S-Classy was evaluated on 14 discrete-valued datasets from the LUCS/KDD repository, representing medical, physical, and social domains. Since live domain experts were not available for all datasets, the researchers simulated expert knowledge by using Random Forest feature importance to identify the "Top-K" variables as the preferred set.
The algorithm was compared against bClassy (a baseline version without variable preference) and standard Random Forests to assess predictive performance and model structure.
Results and Discussion
Predictive Performance
S-Classy achieved classification accuracy (measured by AUC) comparable to both the baseline bClassy and Random Forests. This indicates that guiding the model toward specific variables does not necessarily come at the cost of predictive power.
Interpretability and Expert Alignment
A key metric for S-Classy is the position of preferred variables within the rule list. In a sequential list, the top rules are the most influential. S-Classy consistently placed preferred variables at the top of the list (@1) significantly more often than the baseline. For instance, in the Dermatology and Heart datasets, the model successfully prioritized expert-aligned variables in the primary decision rules.
Robustness and Generalization
Interestingly, models built with "Top-K" preferred variables often showed reduced overfitting compared to the baseline. This suggests that variables identified as important by experts (or high-quality proxies) often capture more generalizable patterns than those selected purely by an unguided search. Furthermore, experiments using "Bottom-K" (least important) variables showed that the MDL framework prevents the model from collapsing; the algorithm eventually ignores poor advice in favor of more predictive non-preferred variables.
Conclusion
S-Classy demonstrates that minimal human input—a simple list of preferred variables—can significantly steer the automated discovery of interpretable models. By grounding this guidance in the MDL principle, the algorithm maintains high accuracy while ensuring the resulting rules are "sensible" to domain experts. Future work will focus on interactive learning environments where experts can provide real-time feedback during the model construction process.
Summary updated