NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sparse tree-based Initialization for Neural Networks

Patrick Lutz, Ludovic Arnould, Claire Boyer, Erwan Scornet

While deep learning has revolutionized image and text processing, tabular data remains a "final frontier" where neural networks (NNs) often struggle. For structured data—think spreadsheets with diverse features like age, income, or category—tree ensemble methods like XGBoost and LightGBM are still the gold standard.

The core issue is that NNs lack a "natural" architectural prior for tabular data. Convolutional Neural Networks (CNNs) exploit spatial patterns in images, and Recurrent Neural Networks (RNNs) exploit temporal order in text. Tabular data, however, has an unconstrained covariance structure. Without a good architectural prior, standard Multi-Layer Perceptrons (MLPs) often get stuck in poor local minima or require massive amounts of data and tuning to compete with simple decision trees.

To bridge this gap, researchers have proposed a novel initialization technique for MLPs that leverages the strengths of tree-based models. By translating a pre-trained tree ensemble into the first layers of a network, the authors achieve performance on par with state-of-the-art gradient boosting while significantly outperforming standard deep learning approaches in both accuracy and convergence speed.

The Methodology: Sparse Tree-Based Initialization

Instead of starting an MLP with random weights, the authors propose "warm-starting" it using the logic of decision trees. The process follows four main steps:

  1. Tree Training: First, train a standard tree-based model (like a Random Forest, GBDT, or Deep Forest) on the target dataset.
  2. Translation: Use a known mathematical equivalence to rewrite these trees as a 3-layer MLP. The first layer encodes the decision hyperplanes (the "splits"), the second identifies the leaf nodes, and the third provides the prediction.
Translation of a decision tree into a neural network architecture.
  1. Hybrid Initialization: Use the first two layers of this "tree-net" to initialize the first two layers of a deeper, general-purpose MLP. The remaining deeper layers are initialized randomly.
  2. Fine-tuning: The entire network is then trained using standard gradient descent (Adam optimizer).

Crucially, the authors use a differentiable tanh activation to approximate the step functions typically found in decision trees. This allows the network to be trained via backpropagation while retaining the "knowledge" of the initial tree structure.

Key Insights and Results

The researchers evaluated their method on 10 diverse real-world tabular datasets, ranging from medium-sized (10k observations) to large-scale (500k+ observations). The results highlight several major advantages of this approach:

  • The "Feature Extractor" Analogy: The tree-initialized first layers act as a sparse feature extractor, similar to how the first layers of a CNN detect edges. These layers map raw tabular data into an abstract representation of the "space partition" where an observation lies.
  • Preserving Sparsity: Surprisingly, the sparse structure introduced at initialization is largely preserved throughout training. The network doesn't "wash away" the tree logic; it refines it.
  • Optimization Boost: Tree-based initialization solves the "cold start" problem. Networks start with a much lower validation loss and converge to better minima faster than those with random, Xavier, or Kaiming initialization.
Training loss convergence on the Adult dataset.
  • Performance Parity: The tree-initialized MLP reached predictive performances on par with XGBoost and GBDT, which are notoriously difficult for NNs to beat on tabular data.
  • Beating "Tabular Transformers": The method outperformed SAINT, a complex transformer-based architecture specifically designed for tabular data, on all medium-sized datasets while being computationally more efficient.
  • Speed: Because the network reaches its peak performance in fewer epochs, the overall procedure (tree training + initialization + training) is often faster than training complex deep learning solutions from scratch.

Limitations and Future Work

While highly effective, the method has a few limitations. The current implementation is tied to the tanh activation function to facilitate the tree-to-network translation, though exploring ReLU versions is a promising next step. Additionally, while training is faster, the initial step of training a tree ensemble and translating it adds some computational overhead compared to simple random initialization.

Finally, while tested on datasets up to 500k samples, further investigation is needed for truly massive datasets (millions of rows) where hardware limitations might affect the training of very wide MLPs. A compelling future direction is using the tree structure to automatically determine the optimal width and depth of the neural network, rather than setting them manually.

Summary updated

BibTeX
@inproceedings{lutz2023sparse,
  author = {Patrick Lutz and Ludovic Arnould and Claire Boyer and Erwan Scornet},
  title = {{Sparse tree-based Initialization for Neural Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=78xgBm6ckZr},
}
Figure