Speeding up Very Fast Decision Tree with Low Computational Cost

Jian Sun, Hongyu Jia, Bo Hu, Xiao Huang, Hao Zhang, Hai Wan, Xibin Zhao

Abstract

The Very Fast Decision Tree (VFDT) is a cornerstone for learning from massive data streams, yet it suffers from a computational bottleneck during split-attempts. This paper proposes the Incremental Measure Algorithm based on Candidate attributes (IMAC) to address this. IMAC achieves constant-time incremental updates for split heuristics and restricts updates to a small subset of promising attributes. Experimental results demonstrate that IMAC reduces split-attempts by 5–10x and significantly decreases split-delay, leading to faster training and higher accuracy across various synthetic and real-world datasets.

1. Introduction

In the era of Big Data, traditional decision tree algorithms like C4.5 or CART are often impractical because they require the entire dataset to reside in memory. The Very Fast Decision Tree (VFDT) addressed this by utilizing the Hoeffding bound to determine when a leaf node has sufficient data to justify a split. However, VFDT faces a significant computational bottleneck: the split-attempt. Calculating split heuristics (e.g., Information Gain or Gini Index) is computationally expensive. To mitigate this, VFDT typically performs these checks only after every $n_{min}$ examples. This creates a trade-off: a small $n_{min}$ wastes CPU cycles on premature calculations, while a large $n_{min}$ introduces "split-delay," hindering the tree's growth and learning accuracy.

2. The IMAC Methodology

The authors introduce the IMAC algorithm to break this trade-off through three primary innovations:

  • Incremental Heuristic Measures: IMAC derives mathematical formulations that allow for the incremental update of Information Gain or Gini Index in constant time $O(1)$ as each new example arrives. This eliminates the need for periodic batch scans of statistics, making split-attempts nearly "free."
  • Candidate Attribute Set ($P$): Recognizing that many attributes in high-dimensional data are noise for any given split, IMAC maintains a small set $P$ (typically 10% of total attributes) of the most promising candidates. Heuristic measures are updated only for attributes within this set, drastically reducing the total work per example.
  • Adaptive Switching Mechanism: To ensure the "true" best attribute isn't missed, IMAC employs rules to manage the candidate set. Attributes statistically proven to be inferior are ignored, while promising attributes outside the set $P$ can be swapped in during periodic checks.

3. Performance and Scalability

The experimental results highlight the efficiency gains of the IMAC approach. IMAC consistently reduced split-attempts by 5 to 10 times on average compared to standard VFDT. On the massive MNIST8M dataset, IMAC achieved a 2x speedup, completing training in 316 seconds versus 638 seconds for VFDT.

Comparison of total-time and attempt-time against the number of attributes and examples for VFDT, OSM, and IMAC.

As shown in Figure 6, IMAC scales significantly better than both standard VFDT and the state-of-the-art OSM optimization as the number of attributes and examples increases. Specifically, the "attempt-time" (the time spent calculating split heuristics) remains remarkably low and stable for IMAC, validating the effectiveness of the incremental updates and candidate attribute selection. This reduction in overhead directly translates to lower split-delay, allowing the model to adapt more quickly to data patterns.

4. Conclusion

IMAC represents a significant advancement for streaming decision tree algorithms. By making split-attempts nearly "free" and focusing computational resources on the most relevant attributes, it resolves the split-delay dilemma inherent in VFDT. While future work is needed to refine handling for numerical attributes and automate hyperparameter tuning, IMAC provides a robust framework for high-performance learning on massive, high-dimensional data streams.

Summary updated

BibTeX
@inproceedings{sun2020speeding,
  author = {Jian Sun and Hongyu Jia and Bo Hu and Xiao Huang and Hao Zhang and Hai Wan and Xibin Zhao},
  title = {{Speeding up Very Fast Decision Tree with Low Computational Cost}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/177},
}
Figure