Abstract: The high performance of tree ensemble classifiers benefits from a large set of rules, which, in turn, makes the models hard to understand. To improve interpretability, existing methods extract a subset of rules for approximation using model reduction techniques. However, by focusing on the reduced rule set, these methods often lose fidelity and ignore anomalous rules that, despite their infrequency, play crucial roles in real-world applications. This paper introduces a scalable visual analysis method to explain tree ensemble classifiers that contain tens of thousands of rules. The key idea is to address the issue of losing fidelity by adaptively organizing the rules as a hierarchy rather than reducing them. To ensure the inclusion of anomalous rules, we develop an anomaly-biased model reduction method to prioritize these rules at each hierarchical level. Synergized with this hierarchical organization of rules, we develop a matrix-based hierarchical visualization to support exploration at different levels of detail. Our quantitative experiments and case studies demonstrate how our method fosters a deeper understanding of both common and anomalous rules, thereby enhancing interpretability without sacrificing comprehensiveness.
Introduction
Tree ensemble classifiers, such as Random Forests and Gradient Boosted Trees, are the workhorses of modern machine learning. They excel in high-stakes domains like finance and healthcare due to their predictive power. However, this performance comes at the cost of interpretability; a single model can contain tens of thousands of individual decision rules, creating a "black box" effect. To make these models understandable, researchers typically employ model reduction—selecting a small subset of "representative" rules and discarding the rest.
The Interpretability Gap: Fidelity vs. Anomalies
The primary challenge in existing rule-based explanations is the trade-off between scalability and fidelity. When 99% of rules are discarded to create a simple summary, the resulting model often fails to accurately reflect the original ensemble's behavior. Furthermore, standard reduction techniques suffer from an "average bias," focusing on common rules that cover the majority of data points while ignoring anomalous rules.
In real-world applications, these rare, anomalous rules are often the most critical. They may reveal spurious associations—such as a credit card approval based on a driver's license rather than income—or point toward labeling errors in the training data. RuleExplorer addresses this by refusing to discard these edge cases, instead organizing them into a navigable structure.
The RuleExplorer Framework
RuleExplorer introduces a two-pronged approach to bridge the gap between model complexity and human understanding: anomaly-biased model reduction and dynamic hierarchical visualization.
Anomaly-Biased Model Reduction
Rather than simply selecting the most frequent rules, RuleExplorer utilizes logistic regression to calculate an "anomaly score" for every rule in the ensemble. An optimization problem is then solved to select a subset of rules that maximizes both fidelity (how well the subset represents the full model) and anomaly coverage. This ensures that rare but significant decision paths are preserved for expert review.
Matrix-Based Hierarchical Visualization
To manage the cognitive load of thousands of rules, RuleExplorer organizes them into a hierarchy. The interface features an enhanced matrix view where rows represent rules and columns represent attributes. Key features include:
- Contextual Zooming: Users can select a high-level rule and "zoom in" to see its mathematical "neighborhood"—the underlying rules that share similar conditions.
- Matrix Reordering: The tool employs a version of the Traveling Salesman Problem (TSP) to group rules with similar conditions together, making patterns across multiple attributes visually apparent.
Evaluation and Key Insights
The researchers evaluated RuleExplorer using six UCI benchmark datasets and real-world case studies in credit approval and stock market analysis.
Superior Fidelity and Anomaly Preservation: Quantitative tests against baselines like RuleMatrix and Node Harvest showed that RuleExplorer consistently achieved fidelity scores above 95%. Unlike its competitors, it successfully maintained high average anomaly scores, proving its ability to keep "interesting" rules that others discard.
Practical Debugging: In practice, the tool proved to be a powerful debugging instrument. High-error anomalous rules often pointed directly to labeling errors in training data. By identifying and correcting these cases, researchers were able to retrain models with significantly higher accuracy. In a stock trading case study, the tool helped a trader identify redundant technical indicators, simplifying the model and improving simulated returns to 48.7% over a three-month period.
Conclusion and Future Work
RuleExplorer demonstrates that interpretability does not have to come at the cost of comprehensiveness. By organizing rules into an anomaly-biased hierarchy, it allows experts to explore both the broad behavior of a model and its critical edge cases. Future work will focus on accelerating the computational cost of the linear programming used in model reduction and implementing "what-if" analysis to allow users to manually tweak rule conditions in real-time.
Summary updated