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

Neural Decision Trees

Randall BalestrieroarXiv 2017

Introduction

Neural Decision Trees (NDT) represent a hybrid architecture designed to bridge the gap between the hierarchical space-partitioning of decision trees and the gradient-based optimization of neural networks. By replacing "hard" binary splits with "soft," differentiable sigmoid functions, NDTs allow for global optimization of the entire tree structure via backpropagation. This evolution leads to the "Hashing Neural Network" (HNN), which learns complex, non-linear decision boundaries with greater efficiency and fewer parameters than standard multi-layer perceptrons (MLPs).

The Divide: Decision Trees vs. Neural Networks

Traditional machine learning often faces a trade-off between two paradigms:

  1. Decision Trees (DTs): These models excel at decomposing complex problems into simpler sub-regions. However, they are typically constructed using greedy algorithms that optimize one split at a time, often missing global optima. Furthermore, standard DTs are restricted to axis-aligned splits and lack differentiability.
  2. Artificial Neural Networks (ANNs): While powerful and globally optimizable, ANNs often require significant depth to handle non-linearly separable data, as standard output layers expect linear separability in the final hidden representation.

The NDT framework seeks a "synergistic melting" of these approaches, providing a hierarchical structure that remains fully differentiable.

Methodology: From Trees to Hashing Networks

The transition from a standard tree to a Hashing Neural Network involves several key innovations.

Soft Splitting and Tree Structure

Instead of a hard threshold (e.g., "is $x > 5$? "), each node in an NDT utilizes a sigmoid activation function. This represents the probability of an instance traversing to a specific child node.

A simple binary tree structure representing hierarchical space partitioning.

The Hashing Layer

The NDT can be reformulated as a specific type of MLP where the final layer—the "hashing layer"—uses sigmoid activations. Each output neuron in this layer acts as a "bit." A specific sequence of these bits (a "chain") uniquely identifies a sub-region of the input space, analogous to a leaf in a decision tree.

The Hashing Neural Network (HNN) architecture where output bits define unique sub-regions in the input space.

Differentiable Loss Functions

To enable training, the author derives "soft" versions of classical decision tree metrics, such as Information Gain, Gini Impurity, and Variance Reduction. Because these metrics are now differentiable, the model can optimize all splitting parameters and preceding feature-extraction layers (e.g., CNNs) simultaneously rather than greedily.

Key Insights and Results

The HNN architecture offers several advantages demonstrated through synthetic benchmarks like the Two-Moons and Two-Circle datasets:

  • Exponential Capacity: An HNN with $n$ output neurons can represent up to $2^n$ distinct sub-regions, providing massive modeling power with minimal neurons.
  • Parameter Efficiency: HNNs achieved superior decision boundaries compared to 3-layer MLPs while using fewer total parameters (e.g., 9 parameters for HNN vs. 13 for MLP).
  • Faster Convergence: In circle dataset experiments, the HNN converged in approximately 20 iterations, compared to over 300 for a standard MLP.
  • Geometric Flexibility: By using a global loss function, the model avoids the "horizon effect" of greedy splits, allowing it to learn complex non-linear boundaries as a union of linear planes.

Limitations and Future Work

While theoretically robust, the current empirical evaluation is focused on 2D synthetic datasets. Future research is needed to assess performance on high-dimensional, large-scale data like ImageNet. Additionally, exploring ensemble methods such as "bagging" or "boosting" specifically for the hashing layer could lead to even more efficient and powerful models.

Summary updated

BibTeX
@misc{balestriero2017neural,
  author = {Randall Balestriero},
  title = {{Neural Decision Trees}},
  year = {2017},
  eprint = {1702.07360},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1702.07360},
}
Figure