Simplifying Random Forests: On the Trade-off between Interpretability and Accuracy

Michael Rapp, Eneldo Loza Mencía, Johannes FürnkranzarXiv 2019

TL;DR

Random Forests are powerful but notoriously difficult to interpret. This paper demonstrates that by decomposing these massive ensembles into individual classification rules and selecting a diverse subset, we can create models that are highly interpretable, significantly smaller, and sometimes even more accurate than the original forest.

What Problem Does This Paper Address?

Random Forests (RF) are a staple of modern machine learning, prized for their ability to handle complex, non-linear boundaries through bagging and random feature sampling. However, their "black-box" nature is a major drawback. While a single decision tree is easy for a human to follow, a forest containing hundreds or thousands of trees is impossible to audit manually.

Previous attempts to simplify these models often focused on selecting a subset of trees. The authors argue this is too coarse-grained. A single tree covers the entire instance space and inevitably contains redundant rules. By breaking trees down into their constituent paths (rules), we can perform a much finer-grained analysis to find the optimal trade-off between model complexity and predictive power.

Methods

The authors propose a two-step pipeline:

  1. Rule Extraction: Every path from the root of a tree to a leaf is converted into a propositional rule ($H \leftarrow B$), where $B$ is the conjunction of conditions along the path and $H$ is the predicted class.
  2. Rule Selection: Since a forest generates thousands of rules, the authors test two main strategies to pick the best $n$ rules:
  3. Best Rules: Rules are ranked by a heuristic (like precision, recall, or the $m$-estimate) and the top $n$ are chosen.
  4. Weighted Covering: This is an iterative approach designed to reduce redundancy. After a rule is selected, the weights of the training instances it covers are halved. The remaining rules are then re-evaluated based on these new weights, forcing the algorithm to pick rules that cover "neglected" parts of the data.

For prediction, the selected rules act as an ensemble where each rule covering an instance provides a vote for its predicted class.

Datasets

The researchers evaluated their approach using:

  • Synthetic Data: A 2D dataset with an oblique decision boundary designed to test how well a small number of axis-aligned rules can approximate a diagonal split.
  • UCI Breast Cancer Dataset: A standard real-world benchmark used to evaluate accuracy and coverage via 10-fold cross-validation.
  • Other UCI Datasets: The authors note that results on additional datasets (not shown in detail) exhibited similar trends.

Key Insights and Ideas

  • Redundancy is the Enemy of Interpretability: Simply picking the "best" rules based on a heuristic often leads to a cluster of rules that all explain the same "easy" part of the data. As seen in Figure 1, the "30 best rules" approach leaves large areas of the instance space poorly defined compared to "weighted covering."
Comparison of rule selection strategies on synthetic data. Weighted covering (b) provides a much better approximation of the decision boundary than simply picking the top-ranked rules (a).
  • Recall is Robust: In a voting-based ensemble, the recall heuristic proved surprisingly robust. It helps ensure that the selected rules cover a large portion of the instance space quickly.
  • The "Less is More" Phenomenon: One of the most striking findings is that a subset of rules can actually outperform the full forest. By selecting only the most effective and diverse rules, the model may be filtering out noise or overfit branches from the original trees.

Key Results

The experiments on the breast cancer dataset (Figure 2) yielded impressive quantitative results:

  • Rapid Convergence: The simplified model reached the baseline accuracy of the full forest using only 20 rules (via recall) or 60 rules (via $m$-estimate).
  • Performance Peak: Accuracy often peaked when using only about 20% of the total rules, clearly outperforming the original, much larger model.
  • Efficiency: The weighted covering strategy achieved high coverage of the training data much faster than the standard "best rules" approach.
Accuracy vs. number of rules on the breast cancer dataset. Note how several strategies (like m-estimate covering) peak in accuracy well before using 100% of the rules.

Limitations and Future Work

While the results are promising, the authors acknowledge this is a preliminary study.

  • Selection Heuristics: The paper suggests that the greatest room for improvement lies in refining the rule selection strategies. Current heuristics are borrowed from standard rule learning; specialized heuristics for ensemble-based rule selection might perform even better.
  • Scalability: While the method works well on the tested datasets, further research is needed to see how the rule extraction and iterative weighting scale to extremely large datasets with millions of instances and features.
  • Global Interpretability: While a few dozen rules are better than thousands of trees, a model with 60 rules is still complex. Future work could look into how to further group or simplify these rules for even better human comprehension.

Summary updated

BibTeX
@misc{rapp2019simplifying,
  author = {Michael Rapp and Eneldo Loza Mencía and Johannes Fürnkranz},
  title = {{Simplifying Random Forests: On the Trade-off between Interpretability and Accuracy}},
  year = {2019},
  eprint = {1911.04393},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.04393},
}
Figure