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
While Random Forests (RF) are a staple of machine learning, they face inherent limitations in complex scenarios. Standard RFs are typically "flat" architectures, lacking the hierarchical representation learning capabilities of deep neural networks. Furthermore, they treat all training samples with equal weight, which often leads to poor performance on imbalanced datasets where the model may ignore rare but critical minority classes to maximize overall accuracy.
The Deep Dynamic Boosted Forest (DDBF) bridges the gap between tree-based interpretability and deep cascading performance. By focusing on "hard example mining" (HEM), DDBF iteratively refines its focus on the most difficult samples, effectively learning complex decision boundaries in skewed data environments.
The DDBF Architecture
DDBF introduces a multi-layered, cascading structure where each layer consists of a specialized Random Forest. The training process is iterative: after a forest is trained, it identifies "easy" examples—those classified with high confidence across the ensemble—and removes them from the training pool. The subsequent layer is then trained exclusively on the remaining "hard" examples.
During inference, data flows through this cascade. If a sample is classified with high confidence by an early layer (an "easy" case), a prediction is made immediately. Otherwise, the sample is passed to deeper, more specialized layers for further analysis.
Core Mechanisms for Robust Learning
The DDBF framework relies on three primary innovations to improve upon standard ensemble methods:
- Hard Example Mining (HEM): Instead of simple error-based boosting, DDBF evaluates the "quality" of leaf nodes using metrics like F1-score or Gini impurity. Samples landing in high-quality nodes are deemed "easy" and filtered out for the next iteration.
- Evolution Mechanism: To maintain ensemble quality, DDBF employs a fitness-based pruning step. It calculates a performance score for every tree and eliminates the bottom 20% (the "weakest links") before final voting.
- Smart Iteration: This mechanism uses validation performance to manage the growth of the cascade, implementing early stopping and rejecting data splits that fail to accurately categorize "easy" examples.
Experimental Results
The authors evaluated DDBF against standard benchmarks, including UCI datasets (ADULT, LETTER, YEAST, SKIN, POKER), MNIST, and the Kaggle Credit Card Fraud dataset.
- Imbalance Robustness: On the Credit Card Fraud dataset—characterized by extreme imbalance—DDBF achieved a state-of-the-art AUC of 0.9848, outperforming all other ensemble and deep learning baselines.
- Performance Stability: While other deep forest models saw performance drops as data imbalance increased (e.g., on modified MNIST), DDBF remained stable due to its dynamic re-sampling nature.
- Efficiency: Despite its depth, DDBF is computationally efficient. In practice, the training set size shrinks rapidly as easy examples are removed, allowing deeper layers to train on a fraction of the original data.
Conclusion
DDBF represents a significant advancement in ensemble learning, particularly for imbalanced classification tasks. By treating depth as a form of specialization rather than just abstraction, and by using leaf-level quality to drive hard example mining, it provides a robust alternative to both standard Random Forests and deep neural networks. Future work may further refine the "fitness" functions and automate threshold selection via Mutual Information to enhance the model's adaptability across diverse domains.
Summary updated