Abstract
Random forest is widely exploited as an ensemble learning method. In many practical applications, however, there is still a significant challenge to learn from imbalanced data. To alleviate this limitation, we propose a deep dynamic boosted forest (DDBF), a novel ensemble algorithm that incorporates the notion of hard example mining into random forest. Specifically, we propose to measure the quality of each leaf node of every decision tree in the random forest to determine hard examples. By iteratively training and then removing easy examples from training data, we evolve the random forest to focus on hard examples dynamically so as to balance the proportion of samples and learn decision boundaries better. Data can be cascaded through these random forests learned in each iteration in sequence to generate more accurate predictions. Our DDBF outperforms random forest on 5 UCI datasets, MNIST and SATIMAGE, and achieved state-of-the-art results compared to other deep models. Moreover, we show that DDBF is also a new way of sampling and can be very useful and efficient when learning from imbalanced data.
Introduction
Random Forests (RF) are a staple of machine learning due to their robustness and interpretability. However, they face three major limitations: they scale primarily horizontally (adding more trees) rather than vertically (stacking layers), they treat every training sample as equally important regardless of difficulty, and they often struggle with the "Imbalance Trap" in real-world applications like fraud detection, where the majority class overwhelms the decision boundary.
Deep Dynamic Boosted Forest (DDBF) aims to bridge the gap between the interpretability of tree-based models and the hierarchical power of deep learning. It introduces a cascaded training procedure that mimics the "hard example mining" typically found in boosting algorithms, but applies it to a multi-layered forest structure.
Methodology: The Cascaded Forest
Instead of training one large forest, DDBF trains a sequence of forests. After each iteration, the model identifies "easy" examples—data points that the current forest classifies correctly with high confidence—and removes them from the training set for the next layer.
Hard Example Mining (HEM)
This is the core innovation of the framework. The authors propose measuring the "quality" of every leaf node in every tree using metrics like F1-score, Gini impurity, or Entropy. If a sample consistently lands in high-quality leaf nodes across the forest, it is labeled "easy." By removing these samples, the model effectively "cleans" the training set for each subsequent layer, allowing the model to zoom in on the most ambiguous regions of the feature space.
Evolution and Smart Iteration
To ensure the quality of the ensemble, DDBF employs a "survival of the fittest" approach for trees, calculating a fitness score and pruning the bottom 20% before voting. Furthermore, a smart iteration mechanism includes an early-stopping guardrail: if validation accuracy drops or if the removed "easy" samples show lower accuracy than the whole set, training terminates to prevent overfitting.
Experimental Results
The authors evaluated DDBF across a diverse range of benchmarks, including UCI datasets, computer vision tasks (MNIST, SATIMAGE), and real-world imbalanced data like Kaggle’s Credit Card Fraud dataset.
- Superiority over RF: DDBF consistently outperformed standard Random Forests. On the Credit Card Fraud dataset, DDBF achieved an AUC of 0.9762, significantly higher than RF's 0.9508.
- Robustness to Imbalance: In controlled experiments on MNIST where the "number 5" class was progressively reduced, DDBF's accuracy remained stable while competitors like
gcForestsaw significant performance degradation. - Efficiency: Despite being an iterative process, DDBF is computationally competitive. By passing actual samples between layers rather than probability vectors, it acts as a dynamic sampling tool that naturally balances class distribution.
Conclusion
DDBF demonstrates that for Random Forests, "depth" (sequential refinement) can be more computationally efficient and accurate than "width" (simply adding thousands of trees). By acting as an automated intelligent sampling tool, DDBF excels at finding complex decision boundaries in highly imbalanced datasets. Future work may involve combining DDBF with representation learning to handle raw, unstructured data even more effectively.
Summary updated