[Paper Review] An Outlier Detection-based Tree Selection Approach to Extreme Pruning of Random Forests
This paper proposes LOFB-DRF, an extreme pruning method for Random Forests that selects only the most diverse trees using Local Outlier Factor (LOF) scoring, achieving up to 99% pruning while maintaining or improving accuracy. By prioritizing trees with high LOF scores—indicating greater diversity—the method reduces model size and inference time without sacrificing performance, making it suitable for real-time applications.
Random Forest (RF) is an ensemble classification technique that was developed by Breiman over a decade ago. Compared with other ensemble techniques, it has proved its accuracy and superiority. Many researchers, however, believe that there is still room for enhancing and improving its performance in terms of predictive accuracy. This explains why, over the past decade, there have been many extensions of RF where each extension employed a variety of techniques and strategies to improve certain aspect(s) of RF. Since it has been proven empirically that ensembles tend to yield better results when there is a significant diversity among the constituent models, the objective of this paper is twofolds. First, it investigates how an unsupervised learning technique, namely, Local Outlier Factor (LOF) can be used to identify diverse trees in the RF. Second, trees with the highest LOF scores are then used to produce an extension of RF termed LOFB-DRF that is much smaller in size than RF, and yet performs at least as good as RF, but mostly exhibits higher performance in terms of accuracy. The latter refers to a known technique called ensemble pruning. Experimental results on 10 real datasets prove the superiority of our proposed extension over the traditional RF. Unprecedented pruning levels reaching 99% have been achieved at the time of boosting the predictive accuracy of the ensemble. The notably high pruning level makes the technique a good candidate for real-time applications.
Motivation & Objective
- To address the high computational and memory cost of large Random Forests with 100–500 trees by reducing ensemble size without sacrificing accuracy.
- To enhance predictive performance by ensuring high diversity among the remaining trees in the pruned ensemble.
- To develop a pruning strategy that is both efficient and effective, enabling real-time deployment of compact yet accurate models.
- To investigate whether unsupervised outlier detection can effectively identify diverse, high-performing trees for ensemble pruning.
- To demonstrate that extreme pruning (up to 99%) is feasible while preserving or boosting accuracy through diversity-driven tree selection.
Proposed method
- The method uses Local Outlier Factor (LOF) to compute anomaly scores for each tree in the Random Forest based on the diversity of their predictions across training instances.
- Trees with the highest LOF scores are selected as they represent the most diverse, or 'outlying', predictions within the ensemble.
- The final pruned model, LOFB-DRF, uses only these high-LOF trees for majority voting, significantly reducing the number of trees in the ensemble.
- LOF is applied to the prediction vectors of all trees on the training set, treating each tree’s output as a point in a high-dimensional space.
- The pruning process is unsupervised and does not require retraining; it operates directly on the pre-trained Random Forest.
- The approach is evaluated across 10 real-world datasets to assess accuracy, pruning ratio, and computational efficiency.
Experimental results
Research questions
- RQ1Can Local Outlier Factor effectively identify diverse trees in a Random Forest that contribute most to ensemble performance?
- RQ2To what extent can Random Forests be pruned using LOF-based tree selection while maintaining or improving accuracy?
- RQ3What is the maximum pruning ratio achievable with LOF-based selection before performance degrades?
- RQ4How does LOFB-DRF compare to traditional Random Forests in terms of accuracy and inference speed across diverse datasets?
- RQ5Can extreme pruning (e.g., 99%) be achieved without significant loss in predictive performance when guided by diversity?
Key findings
- LOFB-DRF achieved up to 99% pruning on several datasets, including 'audit' and 'vote', with minimal or no loss in accuracy.
- On the 'sonar' dataset, the pruned model retained 97.97% accuracy with only 5 trees (95% pruning), outperforming the full RF in some cases.
- The 'vote' dataset showed 97.97% accuracy with just 5 trees (95% pruning), demonstrating high performance at extreme compression.
- In the 'soybean' dataset, LOFB-DRF maintained 77.59% accuracy with only 5 trees, outperforming the full RF in some configurations.
- The method consistently outperformed or matched the full Random Forest across all 10 datasets, even at pruning levels exceeding 90%.
- The approach achieved a notable balance between model compactness and predictive accuracy, making it suitable for real-time deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.