Abstract
In recent years, dynamically growing data and incrementally growing number of classes pose new challenges to large-scale data classification research. Most traditional methods struggle to balance the precision and computational burden when data and its number of classes increased. However, some methods are with weak precision, and the others are time-consuming. In this paper, we propose an incremental learning method, namely, heterogeneous incremental Nearest Class Mean Random Forest (hi-RF), to handle this issue. It is a heterogeneous method that either replaces trees or updates trees leaves in the random forest adaptively, to reduce the computational time in comparable performance, when data of new classes arrive. Specifically, to keep the accuracy, one proportion of trees are replaced by new NCM decision trees; to reduce the computational load, the rest trees are updated their leaves probabilities only. Most of all, out-of-bag estimation and out-of-bag boosting are proposed to balance the accuracy and the computational efficiency. Fair experiments were conducted and demonstrated its comparable precision with much less computational time.
The Challenge of Dynamic Data
In real-world scenarios, data is rarely static. It flows in continuously, often introducing entirely new categories (classes) over time. Traditional Random Forests (RF) are "static" learners; they assume a fixed number of classes and a stable data distribution from the outset.
When new classes appear, a standard RF typically requires retraining from scratch on the entire accumulated dataset. For large-scale applications like ImageNet, this approach is prohibitively slow and computationally expensive. While "online" RF variants exist, they often struggle with the introduction of brand-new classes or sacrifice significant precision for speed. The authors of this paper aim to bridge this gap by creating a model that is both fast enough for incremental updates and accurate enough for large-scale classification.
The hi-RF Framework
The proposed hi-RF (Heterogeneous Incremental Nearest Class Mean Random Forest) addresses these challenges by allowing Random Forests to learn from new data and new classes on the fly. The core innovation is its heterogeneous approach to model updates, using a "triage" system based on Out-of-Bag (OOB) estimation.
Instead of treating every tree in the forest identically, hi-RF adaptively chooses one of two paths:
- Rolling Release NCM (RRN): If a tree’s performance (measured by OOB error) falls below a specific threshold, it is discarded and replaced. The replacement is a Nearest Class Mean (NCM) decision tree. Unlike standard trees that search for optimal feature splits, NCM trees use class centroids to split data, making them significantly faster to train and better suited for integrating new classes.
- Regenerate Leaves Probabilities (RLP): If a tree remains high-performing, its structure is left intact. Instead, the new data is passed through the existing tree to update the class probabilities at the leaf nodes. This update is computationally negligible compared to full retraining.
To maintain long-term stability and prevent the forest from becoming "stale," the authors introduce OOB boosting. This technique artificially increases the error metric for trees updated via RLP, ensuring that even "good" trees are eventually cycled out and replaced with fresh structural information.
Experimental Evaluation
The authors evaluated hi-RF using the ILSVRC2010 (ImageNet) dataset, featuring 96,833 training samples and 15,000 test samples across 100 classes. Features were extracted using AlexNet (4,096-dimensional vectors). The experiments simulated scenarios where the model started with a small subset of classes (e.g., 10) and incrementally added more until reaching the full 100.
Key Results
- Efficiency: hi-RF's training time is consistently less than half (roughly 50-60%) of the time required for a standard offline Random Forest.
- Accuracy: The trade-off for this speed is minimal. The accuracy loss compared to an offline model (which sees all data at once) was only about 2.7% at its worst, and as low as 0.22% in some scenarios.
- Scalability: The model remained stable regardless of whether new classes were added individually or in large batches (e.g., 10 classes at a time).
Conclusion and Future Work
The hi-RF framework demonstrates that it is possible to achieve high-performance incremental learning without the massive overhead of full retraining. By combining the speed of NCM trees with a selective update strategy, hi-RF provides a scalable solution for large-scale classification.
Future work may focus on exploiting the inherent parallelism of Random Forests to further reduce training time via GPU acceleration. Additionally, the authors suggest that future versions could incorporate more sophisticated feature selection algorithms to further reduce the computational burden without sacrificing precision.
Summary updated