hi-RF: Incremental Learning Random Forest for Large-Scale Multi-class Data Classification

Tingting Xie, Changjian Wang, Yuxing Peng

Abstract

In recent years, dynamically growing data and large-scale data classification have become critical research areas. Traditional methods often struggle to balance precision and computational burden as the number of classes increases. This paper proposes a heterogeneous incremental Nearest Class Mean Random Forest (hi-RF) to address these challenges. By adaptively replacing trees or updating leaf probabilities, hi-RF reduces computational time while maintaining comparable performance. Key innovations include out-of-bag (OOB) estimation and boosting to balance accuracy and efficiency.

Introduction

In real-world applications, data is rarely static. A model trained on a fixed set of categories often needs to incorporate new classes over time. Traditional Random Forests (RF) are typically designed for a fixed number of classes, making incremental learning difficult. Practitioners often face a choice between retraining the entire model from scratch—which is computationally prohibitive for large datasets like ImageNet—or using online updates that may suffer from "catastrophic forgetting," where the model loses its ability to recognize old data while learning the new.

The hi-RF Framework

The proposed hi-RF algorithm introduces a "heterogeneous" update strategy that selectively modifies the forest based on performance metrics. This approach ensures that computational resources are focused on underperforming components of the model.

The incremental learning process of hi-RF, showing the transition from an initial model to successive incremental models as new image streams arrive.

Core components of the framework include:

  • Nearest Class Mean (NCM) Decision Trees: These trees use class centroids for splits rather than standard feature-based splits, allowing for more natural integration of new categories into the existing tree structure.
  • Heterogeneous Update Strategy: When new data arrives, the model evaluates each tree using Out-Of-Bag (OOB) estimation.
  • Rolling Release NCM (RRN): Trees with error rates exceeding a specific threshold are discarded and retrained using a combination of old and new data.
  • Regenerate Leaves Probabilities (RLP): Healthy trees simply have their leaf node class probabilities updated, a computationally "lightweight" operation that costs almost zero time.
  • OOB Boosting: To ensure long-term stability and prevent the model from becoming stale, a boosting technique periodically forces full refreshes (RRN) by slightly inflating the error metrics of RLP-updated trees.
Summary of mathematical notations used to define the hi-RF algorithm and its evaluation metrics.

Experimental Evaluation

The hi-RF method was benchmarked using the ILSVRC2010 (ImageNet) dataset, featuring 100 classes and nearly 100,000 training samples. Features were extracted using a pre-trained AlexNet architecture to provide a high-dimensional representation of the visual data. The experiments simulated incremental learning by starting with a small subset of classes and adding the remaining classes in batches.

Key Results

  • Efficiency: hi-RF achieved a 50-60% reduction in training time compared to a full offline retraining baseline.
  • Accuracy: The accuracy trade-off was minimal. In various scenarios, hi-RF performed within 0.22% to 2.70% of the baseline's precision, demonstrating that the speedup does not come at the cost of significant performance loss.
  • Scalability: The framework demonstrated robustness regardless of whether new classes were introduced individually or in larger batches (up to 10 classes at a time).

Conclusion

hi-RF provides a scalable solution for incremental multi-class classification by balancing the precision of retraining with the speed of leaf updates. By using OOB error as a health check, the system intelligently allocates its computational budget. Future work will focus on integrating incremental feature extraction and enhancing parallelization to further improve performance on massive, high-dimensional datasets.

Summary updated

BibTeX
@misc{xie2016hi,
  author = {Tingting Xie and Changjian Wang and Yuxing Peng},
  title = {{hi-RF: Incremental Learning Random Forest for Large-Scale Multi-class Data Classification}},
  year = {2016},
  eprint = {1608.08761},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1608.08761},
}
Figure