Shrub Ensembles for Online Classification

Sebastian Buschjäger, Sibylle Hess, Katharina Morik

Introduction

Online learning requires algorithms to process data streams in real-time, often on resource-constrained devices such as IoT sensors. These algorithms face two primary challenges: memory bloat and concept drift. Traditional online tree ensembles, like Hoeffding Trees (HT), effectively handle drift but suffer from "infinite growth," where nodes are added continuously without removal, eventually exhausting device memory. Conversely, gradient-based "soft" decision trees offer fixed memory usage but require computationally expensive backpropagation, which is often unsuitable for low-power hardware.

Methodology: The Shrub Ensemble (SE)

Shrub Ensembles (SE) provide a "third way" for online classification by maintaining a dynamic, bounded collection of small decision trees. The core idea is to treat the ensemble like a garden: regularly planting new "shrubs" (small trees) and aggressively pruning "weeds" (underperforming trees).

  1. Shrub Generation: Instead of a single monolithic tree, SE utilizes a collection of small-to-medium decision trees trained on sliding windows of recent data using standard algorithms like CART.
  2. Weight Optimization via SPGD: The algorithm assigns a weight to each shrub and uses Stochastic Proximal Gradient Descent (SPGD) to update these weights as new data arrives.
  3. Sparsity and Pruning: The optimization objective includes a constraint limiting the number of active shrubs to a fixed maximum ($M$). After each update, a proximal operator projects the weights back onto a simplex, effectively setting the weights of the weakest shrubs to zero.
  4. Dynamic Adaptation: In every iteration, a new shrub is trained on the current data batch and added to the ensemble. The SPGD step determines if this new shrub outperforms existing ones. If it does, it remains; otherwise, it or an older, less relevant shrub is pruned.

Experimental Evaluation

The researchers evaluated SE on 12 datasets, including synthetic streams with controlled drift (agrawal, led, rbf) and real-world data (airlines, covtype, elec, gas-sensor, nomao, weather).

Statistical Performance

SE demonstrated superior trade-offs between accuracy and memory efficiency. In comparisons against eight state-of-the-art methods, including Adaptive Random Forests (ARF) and Streaming Random Patches (SRP), SE offered the best accuracy-memory trade-off in 7 out of 12 cases.

Critical Difference diagram showing the average rank of Shrub Ensembles (SE) against state-of-the-art methods across 12 datasets.

Statistical analysis using Critical Difference (CD) diagrams confirms that SE ranks first on average and is statistically significantly better than traditional methods like Online Bagging, Hoeffding Trees, and Naive Bayes.

Memory Efficiency and Stability

A defining characteristic of SE is its bounded memory usage. While methods like HT and HTT exhibit monotonic memory growth over time, SE's memory footprint remains strictly limited.

Accuracy and memory consumption over time on the gas-sensor dataset. SE (green line) maintains high accuracy while keeping memory usage orders of magnitude lower than competitors.

As shown in the gas-sensor dataset evaluation, SE achieves accuracy comparable to top-tier ensembles like SRP and ARF while consuming significantly less memory—often by several orders of magnitude.

Discussion and Conclusion

The "step size" ($\alpha$) in the SPGD optimization acts as a critical hyperparameter, toggling between stability and agility. A large step size allows the ensemble to react instantly to sudden concept drift, while a smaller step size provides resilience against noise.

Shrub Ensembles prove that a dynamic-but-bounded approach—constantly replacing aging models with fresh ones through mathematical optimization—is highly effective for non-stationary data streams. By bridging the gap between incremental growth and fixed-structure optimization, SE offers a practical solution for high-performance online classification on resource-constrained hardware.

Summary updated

BibTeX
@inproceedings{buschjager2022shrub,
  author = {Sebastian Buschjäger and Sibylle Hess and Katharina Morik},
  title = {{Shrub Ensembles for Online Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i6.20560},
}
Figure