Coresets for Decision Trees of Signals

Ibrahim Jubran, Ernesto Evgeniy Sanches Shayda, Ilan Newman, Dan Feldman

Decision trees and their ensemble cousins—such as Random Forests, XGBoost, and LightGBM—are industry staples. They are highly interpretable, robust, and exceptionally accurate on tabular data. However, training these models on massive datasets introduces significant computational bottlenecks.

Presented at NeurIPS 2021, this paper introduces a powerful data-summarization technique that bridges the gap between computational geometry and machine learning. The authors provide a novel algorithm to shrink massive datasets into tiny, mathematically rigorous summaries called "coresets." These coresets allow for dramatically faster training and hyperparameter tuning without sacrificing model accuracy.

What Problem Does This Paper Address?

While decision trees are ubiquitous, they face three major hurdles in large-scale applications:

  1. Computational Cost: Finding the mathematically "optimal" decision tree is an NP-hard problem. In practice, we rely on greedy heuristics, but training large ensembles on millions of rows remains notoriously slow.
  2. Hyperparameter Tuning: Finding the right number of leaves ($k$) or the optimal tree depth requires running the training algorithm dozens or hundreds of times, multiplying the computational expense.
  3. The "No-Coreset" Problem: Previous theoretical work suggested that a small coreset—a summary that approximates the loss for any possible model—might not exist for decision trees in a general, unconstrained sense.

To overcome these hurdles, the authors focus on "signals"—data structured as a 2D matrix (such as an image, a sensor grid, or discretized tabular data) where every coordinate has a corresponding label.

1D decision tree regression and its corresponding 2D matrix partition

By treating the data as a signal, a $k$-decision tree can be viewed as a recursive partition of a matrix into $k$ block matrices (axis-parallel rectangles), where each block represents a leaf node assigned a real label.

Methods: Constructing the Coreset

The core contribution of the paper is a deterministic algorithm that constructs a $(k, \epsilon)$-coreset.

Given a dataset $D$, the coreset $C$ is a much smaller, weighted version of $D$. The defining feature of this coreset is that the regression or classification loss of any decision tree with $k$ leaves evaluated on $C$ will be within a strict factor of $(1 \pm \epsilon)$ of its loss on the original, massive dataset $D$.

A 2D signal partitioned into blocks, representing the leaves of a decision tree

The authors achieve this compression through a three-step pipeline:

  1. Bi-criteria Approximation: The algorithm first computes a "rough" partition of the data. This uses more than $k$ leaves but establishes a reliable baseline for the error.
  2. Balanced Partitioning: Borrowing a concept from computational geometry known as "partition trees," the algorithm recursively slices the 2D signal into sub-rectangles. This is done so that any potential decision tree will only "intersect" or cut through a very small number of these blocks.
  3. Carathéodory’s Theorem: For the blocks that are not cut by the tree, the data is mathematically "smooth." The authors use Carathéodory’s classic geometric theorem to compress all the points in that block into just four weighted points. These four points perfectly preserve the mean and variance, which are the essential components for calculating the Sum of Squared Errors (SSE) loss.

Key Insights and Ideas

  • The "Signal" Loophole: The authors realized that while coresets for decision trees are impossible for arbitrary, unstructured point sets, they are possible if the data is discretized into a grid (a signal). This assumption maps well to many real-world applications.
  • Geometry Meets ML: The breakthrough moment of the paper is linking decision trees to "simplicial partitions." By treating a decision tree as a geometric query that slices through space, the authors successfully applied 1980s-era computational geometry proofs to bound the error of their machine learning summary.
  • AutoML Acceleration: Because the coreset approximates the loss for any tree configuration, hyperparameter tuning (like searching for the best $k$) can be performed entirely on the tiny coreset. The massive original dataset only needs to be processed once.

Key Results

The authors evaluated their algorithm on synthetic 2D signals and real-world datasets (like the Air Quality and Gesture Phase Segmentation datasets from the UCI Machine Learning Repository), yielding impressive practical results:

  • Massive Compression: In experiments, the generated coreset was often less than 1% of the original dataset's size.
  • 10x Speedup: Using the coreset for hyperparameter tuning boosted the computation time of Random Forests (via scikit-learn) and Gradient Boosted Trees (via LightGBM) by up to 10x.
  • High Fidelity: Despite the extreme compression, the accuracy drop was negligible, with an SSE difference of roughly 0.03 compared to models trained on the full dataset.
  • Deterministic Reliability: Unlike many coreset methods that rely on random sampling (which can accidentally discard important outliers), this algorithm is deterministic, guaranteeing a reliable and mathematically bounded summary every single time.

Limitations and Future Work

While groundbreaking, the approach has a few limitations. The current implementation is specifically optimized for the Sum of Squared Errors (SSE) loss function. Adapting it for different loss functions, such as Gini impurity for classification tasks, would require further mathematical adjustments.

Additionally, while the authors state the method generalizes to higher-dimensional tensors, the detailed proofs and current practical implementations focus heavily on 2D signals. Finally, while the theoretical "worst-case" size of the coreset is polynomial in $k$ and $\log N$, the authors note that on real-world structured data, the coreset is vastly smaller in practice than the theoretical bounds predict.

Summary updated

BibTeX
@inproceedings{jubran2021coresets,
  author = {Ibrahim Jubran and Ernesto Evgeniy Sanches Shayda and Ilan Newman and Dan Feldman},
  title = {{Coresets for Decision Trees of Signals}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=GvU4RvMwlGo},
}
Figure