Decision Tree Embedding by Leaf-Means

Cencheng Shen, Yuexiao Dong, Carey E. PriebearXiv 2025 · DOI

Introduction

In tabular data analysis, researchers often face a trade-off between the interpretability of Decision Trees and the predictive power of ensembles like Random Forests (RF). While RFs reduce the high variance inherent in single trees, they do so at a significant computational cost, often becoming "black boxes." Neural Networks offer another alternative but frequently struggle with overfitting on medium-sized datasets and require extensive hyperparameter tuning.

Researchers Cencheng Shen, Yuexiao Dong, and Carey E. Priebe propose Decision Tree Embedding (DTE) to bridge this gap. DTE leverages the structural strengths of decision trees while achieving the computational efficiency of neural networks. By focusing on stable leaf-level sample means rather than jittery split boundaries, DTE creates a robust feature representation that matches ensemble performance with the speed of a single tree.

Methodology

The DTE algorithm transforms raw features into a high-performance embedding space through a three-step process:

  1. Tree Training: A standard classification tree is trained to partition the feature space into disjoint leaf regions.
  2. Anchor Point Extraction: For each leaf, the algorithm calculates the mean ($\mu$) of all training samples within that region. These "anchor points" summarize the local data geometry more stably than the tree's split rules.
  3. Embedding Construction: Input data $x$ is mapped into a new embedding space $Z$. Each dimension in $Z$ represents the affinity (inner product) of the input to a specific leaf mean. Mathematically, $Z = XW^\top + 1b^\top$, where $W$ contains the leaf means.
Visualizing the DTE transformation from 2D raw data to 3D embedding space using leaf-means.

For enhanced performance, the authors introduce DTEt, which concatenates embeddings from a small ensemble (e.g., $t=3$ trees). The final classification is typically performed using Linear Discriminant Analysis (LDA) on the resulting embedding. This setup is functionally equivalent to a shallow, two-layer neural network where weights are derived from tree geometry rather than backpropagation.

Experimental Results

The authors evaluated DTE across 20 real-world datasets spanning text, image recognition, and standard tabular data, as well as synthetic Gaussian mixtures.

Performance and Accuracy

DTE-3 (using only 3 trees) consistently matched or outperformed Random Forests (using 50 trees). Notably, DTE-3 was significantly more accurate than a single decision tree in 16 out of 20 benchmark cases. The theoretical framework provided in the paper confirms that DTE preserves conditional density (Bayes-homogeneity), ensuring that the embedding captures essential classification information.

Comparison of classification error rates across 20 benchmark datasets for DTE and baseline models.

Computational Efficiency

DTE offers a substantial speed advantage over traditional ensembles. Because it replaces recursive "if-else" traversals with a single matrix multiplication, inference is highly scalable. On average, a 50-tree Random Forest was found to be 9x slower than DTE-1 and 4x slower than DTE-3.

Discussion and Conclusion

DTE represents a significant step toward efficient, robust tabular modeling. By shifting the focus from unstable split boundaries to stable leaf centers, it achieves ensemble-level accuracy with minimal computational overhead.

However, some limitations remain. The embedding dimensionality grows linearly with the number of trees, which can eventually impact the performance of downstream classifiers like LDA due to its quadratic complexity. Future work may involve integrating DTE into deeper architectures or exploring alternative tree-splitting criteria to further enhance its versatility across diverse data types.

Summary updated

BibTeX
@misc{shen2025decision,
  author = {Cencheng Shen and Yuexiao Dong and Carey E. Priebe},
  title = {{Decision Tree Embedding by Leaf-Means}},
  year = {2025},
  eprint = {2512.01819},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.01819},
}
Figure