This paper introduces a significant optimization for training high-performance regression trees. By applying a classic linear algebra trick to a modern optimization framework, the authors demonstrate that deeper, more complex models can actually be faster to train than their shallower counterparts.
TL;DR
The authors optimize the Tree Alternating Optimization (TAO) algorithm for regression trees with linear leaves by using the Sherman-Morrison-Woodbury formula. This results in a counter-intuitive "non-monotonic" training complexity where, beyond a certain depth, making a tree larger actually makes it faster to train—potentially making a nonlinear tree faster to learn than a single global linear regression.
What Problem Does This Paper Address?
Traditional decision trees, like the ubiquitous CART algorithm, are built using "greedy" recursive partitioning. While fast, these algorithms don't optimize a global objective function, often leading to trees that are unnecessarily large and less accurate.
A more recent alternative, Tree Alternating Optimization (TAO), treats tree training as a global optimization problem, producing smaller, more accurate trees. However, TAO has a bottleneck: in regression trees with linear leaves (where each leaf predicts a value using a linear function $Ax + b$ rather than a constant), the algorithm must solve a ridge regression problem for every leaf in every iteration.
Standard ridge regression scales cubically with the number of features ($D^3$). For high-dimensional data or deep trees with many leaves, this becomes computationally expensive. The authors set out to break this cubic dependency on the feature dimension.
Methods
The core contribution is an "adaptive" leaf optimization step.
- The TAO Framework: TAO optimizes nodes one at a time (or level by level in parallel). For a leaf node, this means fitting a linear model to only the subset of training instances ($M$) that actually reach that leaf.
- The SMW Trick: The authors observe that as a tree gets deeper, the number of instances $M$ in each leaf decreases exponentially. Eventually, $M$ becomes smaller than the number of features $D$.
- The Formula: Instead of solving the standard $D \times D$ linear system, they use the Sherman-Morrison-Woodbury (SMW) formula. This allows them to solve the problem by inverting an $M \times M$ matrix instead.
- Critical Depth: They define a "critical depth" $\Delta^* = \log_2(N/D)$. Once the tree is deeper than this point, the SMW approach is mathematically identical to the standard method but computationally much faster.
Datasets
The authors validated their approach across a diverse range of regression tasks:
- MNIST & Infinite MNIST: Used to test scaling with sample size (up to 1 million points) and feature dimensions (via resizing).
- UCI Repository Sets: Ailerons (flight control) and CT Slice (medical imaging).
- Robotics: SARCOS (inverse dynamics).
- Synthetic/Modified MNIST: Rotated MNIST, Patched Fashion MNIST, and Random MNIST to test high-dimensional outputs and complex nonlinear mappings.
Key Insights and Ideas
- Non-Monotonic Complexity: In most machine learning models, increasing the number of parameters increases training time. Here, the "leaf step" cost first increases with depth, hits a peak at the critical depth, and then decreases as the tree gets deeper.
- The "Happy Collusion": The speedup comes from two factors working together: the leaf predictors depend superlinearly on either $D$ or $M$, and the effective sample size $M$ at each leaf decreases exponentially with depth.
- Faster than Linear Regression: Remarkably, for deep enough trees, the total cost of training all leaves can be lower than the cost of training a single linear regression model on the full dataset.
- Feasibility of HPO: The speedup is most critical during Hyperparameter Optimization (HPO). The authors show that using Bayesian optimization (like Optuna) to find the best tree depth is only feasible with their adaptive algorithm; the "naive" version often times out before finding an optimal deep structure.
Key Results
- Significant Speedups: The "adaptive" algorithm achieved up to 25x speedups over the original TAO implementation on high-dimensional datasets (e.g., the Random MNIST dataset with $D=2500$).
- Scaling: On the 1-million-sample Infinite MNIST dataset, the training time scaled linearly with the number of samples, confirming the theoretical complexity analysis.
- Forests and CART: The authors showed the SMW trick isn't just for TAO; it also provides massive speedups when applied to traditional CART-based "model trees" and regression forests, which often produce much deeper trees than TAO.
- Identical Accuracy: Because the SMW formula is an exact algebraic identity, the faster algorithm produces models with the exact same Root Mean Square Error (RMSE) as the slower version.
Limitations and Future Work
- Balanced Tree Assumption: The theoretical complexity analysis assumes a balanced tree where data is distributed uniformly. In practice, trees are often unbalanced, though the authors note that the speedup still holds empirically.
- Overfitting in Deep Trees: While the algorithm makes training deep trees faster, very deep trees are still prone to overfitting.
- High-Dimensional Outputs: If the output dimension $E$ is also very high, the leaf parameters become numerous. The authors suggest that low-rank linear mappings in the leaves are a promising direction for future work to keep the model parsimonious while maintaining the speed benefits.
Summary updated