English

Approximating splits for decision trees quickly in sparse data streams

Machine Learning 2026-01-21 v1 Data Structures and Algorithms

Abstract

Decision trees are one of the most popular classifiers in the machine learning literature. While the most common decision tree learning algorithms treat data as a batch, numerous algorithms have been proposed to construct decision trees from a data stream. A standard training strategy involves augmenting the current tree by changing a leaf node into a split. Here we typically maintain counters in each leaf which allow us to determine the optimal split, and whether the split should be done. In this paper we focus on how to speed up the search for the optimal split when dealing with sparse binary features and a binary class. We focus on finding splits that have the approximately optimal information gain or Gini index. In both cases finding the optimal split can be done in O(d)O(d) time, where dd is the number of features. We propose an algorithm that yields (1+α)(1 + \alpha) approximation when using conditional entropy in amortized O(α1(1+mlogd)loglogn)O(\alpha^{-1}(1 + m\log d) \log \log n) time, where mm is the number of 1s in a data point, and nn is the number of data points. Similarly, for Gini index, we achieve (1+α)(1 + \alpha) approximation in amortized O(α1+mlogd)O(\alpha^{-1} + m \log d) time. Our approach is beneficial for sparse data where mdm \ll d. In our experiments we find almost-optimal splits efficiently, faster than the baseline, overperforming the theoretical approximation guarantees.

Keywords

Cite

@article{arxiv.2601.12525,
  title  = {Approximating splits for decision trees quickly in sparse data streams},
  author = {Nikolaj Tatti},
  journal= {arXiv preprint arXiv:2601.12525},
  year   = {2026}
}
R2 v1 2026-07-01T09:09:41.480Z