Minimax Rates and Spectral Distillation for Tree Ensembles

Binh Duc Vu, David WatsonNeurIPS 2026

TL;DR

Random forests and gradient boosting machines are the undisputed kings of tabular data, yet we still don't fully understand why their greedy splits generalize so well—and their massive memory footprints make them tough to deploy on tiny devices. By viewing tree ensembles through the lens of linear algebra and spectral theory, the authors prove for the first time that standard greedy random forests achieve statistically optimal convergence rates. Better yet, they use this exact insight to build SCATE, a distillation method that shrinks bloated tree ensembles by orders of magnitude into tiny neural networks without sacrificing accuracy.

What Problem Does This Paper Address?

If you have tabular data, you probably reach for a Random Forest (RF) or a Gradient Boosting Machine (GBM). Despite their practical dominance, they suffer from two nagging problems: one theoretical, one practical.

First, the theory gap: Analyzing the exact algorithm Leo Breiman invented—where trees greedily pick axis-aligned splits based on data—is notoriously mathematical quicksand. Most theoretical guarantees cheat by analyzing "purely random" forests where splits ignore the labels entirely, completely missing the adaptive magic that makes real RFs work in high dimensions. Establishing minimax-optimal convergence rates (showing an algorithm learns as fast as mathematically possible for a given problem class) for greedy CART-based forests has remained elusive.

Second, the deployment bottleneck: A strong ensemble might consist of hundreds of deep trees, easily taking up megabytes of memory. That’s fine on a server, but a dealbreaker for TinyML microcontrollers with strict kilobyte budgets. Existing pruning methods usually require setting an error tolerance and hoping the resulting model fits in memory, rather than letting engineers specify an exact target size upfront.

Methods

The unifying thread of this paper is treating tree ensembles as linear smoothers—models whose predictions are weighted combinations of training labels.

Figure 1: Summary of our pipeline. (a) Start with tabular training data for supervised learning (regression or binary classification). (b) Train a RF or GBM. (c) A kernel matrix K or smoother matrix S is extracted from the ensemble. (d) Compute the spectrum of the operator. (e) Under fast decay, RFs converge at the minimax-optimal rate. (f) The base ensemble is distilled by SCATE, which approximates model predictions by learning the top spectral directions.
  • For Random Forests, the weights form a symmetric, positive semi-definite kernel matrix $\hat{\mathbf{K}}$ measuring how often data points land in the same leaves.
  • For GBMs, sequential residual fitting yields an asymmetric smoother matrix $\hat{\mathbf{S}}$.

1. Theoretical Framework: The authors analyze RFs over a spectral source class defined by mixed partition kernels whose eigenvalues decay polynomially ($\lambda_i \asymp i^{-\beta}$). They introduce a novel condition called Amortized Spectral Gain (ASG)—a weaker, more realistic cousin of standard impurity-decrease assumptions—which guarantees that greedy MSE splits steadily resolve the leading spectral energy of the target function.

2. SCATE (Spectral Compression of Adaptive Tree Ensembles): Instead of pruning branches or training a student network to mimic raw predictions, SCATE extracts the top $m$ eigenvectors of $\hat{\mathbf{K}}$ (for RFs) or left singular vectors of $\hat{\mathbf{S}}$ (for GBMs)—typically $m=50$. Because these top spectral modes capture the lion's share of predictive variance, the authors train a tiny Multi-Layer Perceptron (MLP) with SiLU activations to map input features directly to these $m$ spectral coordinates. Test-time inference reduces to a fast pass through the tiny MLP followed by a fixed dot product. To help the small network learn cleanly, the loss function weights errors by the squared eigenvalues/singular values (prioritizing dominant directions) alongside a soft orthogonality penalty.

Datasets

The authors evaluate their methods across 18 standard tabular benchmarks—10 regression tasks and 8 binary classification tasks. No new datasets are introduced; instead, these serve to test compression across varying difficulty and spectral decay profiles:

  • Regression: abalone, auto_mpg, bike, boston, california, concrete, diamonds, friedman_1, student, and wq.
  • Binary Classification: adult, banknote, bc, churn, diabetes, magic, spambase, and telco.

Key Insights and Ideas

  • Generalization and compressibility are two sides of the same coin: When an ensemble's kernel or smoother spectrum decays rapidly, most predictive power lives in a handful of principal directions. Under these exact conditions, RFs learn at the minimax-optimal rate and can be compressed dramatically with minimal loss.
  • Eigenfunctions are the "soft labels" of regression: In deep learning distillation, student networks learn much faster from a teacher's soft probability distributions than from hard classification labels. Naive distillation of a regression forest fails miserably because a single scalar output is an impoverished teaching signal. Training the student MLP to predict the top $m$ eigenfunctions provides rich geometric supervision that unlocks extreme compression.
Rate-performance Pareto curves showing SCATE matching the Base RF at orders of magnitude smaller sizes, while Naive Distillation struggles.
  • Exact memory budgeting: Unlike pruning algorithms where final model size is an unpredictable byproduct of regularization strength, SCATE lets you pick the exact MLP architecture upfront to fit strict hardware constraints (like 10KB or 100KB).

Key Results

  • Theoretical Optimality: Under polynomial eigenvalue decay and linear partition complexity, greedy CART-based RFs achieve the minimax-optimal $L^2$ error rate of $N^{-\frac{s}{s+1}}$ (and within a logarithmic factor when using finite-sample empirical splits).
  • Extreme Compression: Evaluated at strict microcontroller memory budgets of 10KB and 100KB—representing compression factors around $1000\times$ for RFs and $100\times$ for GBMs at the 10KB mark—SCATE achieves the best average rank across all 18 datasets for both RFs (avg. rank 1.53 at 10KB, 1.56 at 100KB) and GBMs (avg. rank 2.06 at both budgets), outperforming state-of-the-art pruning (ForestPrune, LOP) and rule-extraction (FIRE, TreeExtract) baselines.

Limitations and Future Work

  • Training Memory Bottlenecks: Computing and decomposing an $N \times N$ operator takes $\mathcal{O}(N^2)$ memory and $\mathcal{O}(N^2m)$ time. However, the authors note that subsampling training sets to 10,000 points (or using Nyström/randomized SVD approximations) eliminates this bottleneck without hurting distillation accuracy.
  • Loss of Interpretability & Loss Constraints: Compiling trees into an MLP trades away the rule-based transparency and formal verifiability of decision trees. Additionally, because the GBM smoother relies on MSE residuals, GBM classification is currently restricted to binary tasks trained with MSE loss.
  • Future Directions: Extending minimax optimality proofs to GBMs (challenging due to asymmetric smoothers and sequential dependencies) and exploring parallels between RF/GBM operators and neural network kernels (specifically Conjugate Kernels and Neural Tangent Kernels).

Summary updated

Abstract

Tree ensembles such as random forests (RFs) and gradient boosting machines (GBMs) are among the most widely used supervised learners, yet their theoretical properties remain incompletely understood. We adopt a spectral perspective on these algorithms, with two main contributions. First, we derive minimax-optimal convergence for RF regression, showing that, under mild regularity conditions on tree growth, the eigenvalue decay of the induced kernel operator governs the statistical rate. Second, we exploit this spectral viewpoint to develop compression schemes for tree ensembles. For RFs, leading eigenfunctions of the kernel operator capture the dominant predictive directions; for GBMs, leading singular vectors of the smoother matrix play an analogous role. Learning nonlinear maps for these spectral representations yields distilled models that are orders of magnitude smaller than the originals while maintaining competitive predictive performance. Our methods compare favorably to state of the art algorithms for forest pruning and rule extraction, with applications to resource constrained computing.
BibTeX
@inproceedings{vu2026minimax,
  author = {Binh Duc Vu and David Watson},
  title = {{Minimax Rates and Spectral Distillation for Tree Ensembles}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=5uMDws28Ir},
}
Figure