Abstract: Decision trees and their ensemble variants, such as Random Forests and Gradient Boosted Trees, are widely used for their interpretability and accuracy on tabular data. However, they face significant scalability challenges when applied to massive datasets. This paper introduces the first coreset construction specifically designed for decision trees trained on "signal" data (matrix-structured data like images or sensor logs). By leveraging geometric partitioning and Caratheodory compression, the proposed SIGNAL-CORESET algorithm reduces large datasets into small, representative summaries. This approach enables up to 10x faster training and hyperparameter tuning with provable $(1 \pm \epsilon)$ approximation guarantees, effectively bypassing previous theoretical limitations for general decision tree coresets.
Introduction
While decision trees are industry favorites, optimizing them is NP-hard, and training ensembles on massive datasets is computationally and memory-intensive. "Coresets"—small subsets of data that act as proxies for the whole—have been successfully applied to algorithms like k-means or linear regression. However, they were previously thought to be impossible for decision trees due to the lack of structure in general datasets.
This research identifies a mathematical loophole: by focusing on "signals" (data represented as a grid or matrix), we can utilize the inherent geometric structure to create efficient summaries. This makes the technique immediately applicable to structured data types like time-series and sensor logs.
The SIGNAL-CORESET Framework
The authors propose a novel algorithm that operates in three main stages to compress data while preserving the sum of squared errors (SSE) loss:
- Bi-criteria Approximation: The algorithm first generates a rough version of the decision tree to establish a baseline for the data's structure.
- Balanced Partitioning: Using concepts from computational geometry, the input matrix is divided into a set of disjoint rectangles. This partitioning ensures that any potential decision tree will only intersect a small number of these regions.
- Caratheodory Compression: For each rectangle, the algorithm applies Caratheodory’s Theorem to replace thousands of data points with just four weighted points that mathematically preserve the region's mean and variance.
The construction is deterministic and highly efficient, running in $O(Nk)$ time, where $N$ is the number of points and $k$ is the number of leaves. The core logic for this partitioning is detailed in the algorithms below:
Experimental Evaluation
The approach was evaluated using synthetic datasets (Blobs, Moons, Circles) and real-world UCI benchmarks, including Air Quality and Gesture Phase Segmentation data. The coresets were integrated as a pre-processing step for standard libraries like scikit-learn and LightGBM.
Key Results
- Massive Speedups: Computation time for training and parameter tuning improved by up to 10x.
- Extreme Compression: Coresets representing only 1% to 10% of the original data achieved nearly identical accuracy to the full dataset.
- Theoretical Rigor: Unlike random sampling, this method provides a $(1 \pm \epsilon)$ guarantee, ensuring the loss on the coreset is provably close to the loss on the full data.
- Hyperparameter Tuning: Because the coreset approximates every possible tree of a certain size, it can be used to test hundreds of configurations (depth, leaf count) without re-accessing the original massive dataset.
Discussion and Future Work
By reviving 1980s-era computational geometry concepts like simplicial partitions, this paper provides a bridge between geometry and modern machine learning. While currently optimized for SSE loss and 2D signals, the framework offers a clear path for expansion. Future research will focus on extending these guarantees to other loss functions (like Gini impurity) and higher-dimensional tensors (d-dimensional signals).
Summary updated