Skip to main content
QUICK REVIEW

[Paper Review] The Tree Ensemble Layer: Differentiability meets Conditional Computation

Hussein Hazimeh, Natalia Ponomareva|arXiv (Cornell University)|Feb 18, 2020
Advanced Neural Network ApplicationsComputer Science25 references16 citations
TL;DR

The paper introduces the Tree Ensemble Layer (TEL), a differentiable, differentiable decision tree-based layer for neural networks that enables true conditional computation via a sparse, smooth-step activation function and optimized forward/backward passes. TEL achieves over 10x speedup over prior differentiable trees and reduces model size by 20x compared to gradient boosted trees, while maintaining competitive performance and enabling joint optimization of deep and wide tree ensembles.

ABSTRACT

Neural networks and tree ensembles are state-of-the-art learners, each with its unique statistical and computational advantages. We aim to combine these advantages by introducing a new layer for neural networks, composed of an ensemble of differentiable decision trees (a.k.a. soft trees). While differentiable trees demonstrate promising results in the literature, they are typically slow in training and inference as they do not support conditional computation. We mitigate this issue by introducing a new sparse activation function for sample routing, and implement true conditional computation by developing specialized forward and backward propagation algorithms that exploit sparsity. Our efficient algorithms pave the way for jointly training over deep and wide tree ensembles using first-order methods (e.g., SGD). Experiments on 23 classification datasets indicate over 10x speed-ups compared to the differentiable trees used in the literature and over 20x reduction in the number of parameters compared to gradient boosted trees, while maintaining competitive performance. Moreover, experiments on CIFAR, MNIST, and Fashion MNIST indicate that replacing dense layers in CNNs with our tree layer reduces the test loss by 7-53% and the number of parameters by 8x. We provide an open-source TensorFlow implementation with a Keras API.

Motivation & Objective

  • To combine the strengths of neural networks and tree ensembles by enabling end-to-end training of differentiable decision trees within deep architectures.
  • To address the computational inefficiency of existing differentiable trees by introducing true conditional computation through sparse routing.
  • To enable joint optimization of deep and wide tree ensembles using first-order methods like SGD, overcoming limitations of greedy, stage-wise training in gradient boosted trees.
  • To reduce model size and improve inference efficiency without sacrificing predictive performance, particularly in vision and tabular learning tasks.

Proposed method

  • Proposes a novel smooth-step activation function to enable sparse, sample-specific routing through decision trees, mimicking classical tree behavior.
  • Designs specialized forward and backward propagation algorithms that exploit sparsity to achieve optimal time complexity, with backward pass complexity independent of tree depth.
  • Introduces a differentiable ensemble of soft trees (a.k.a. soft trees) that can be trained end-to-end with the rest of a neural network using gradient-based optimization.
  • Employs first-order optimization (e.g., SGD) to jointly update internal node decisions and leaf weights across all trees in the ensemble, enabling compact and expressive models.
  • Implements the TEL as a plug-in layer in neural networks, including CNNs, with a Keras-compatible TensorFlow API for practical deployment.
  • Uses a differentiable routing mechanism that allows each input sample to traverse only a small subset of the tree architecture, enabling conditional computation.

Experimental results

Research questions

  • RQ1Can differentiable decision trees be made efficient enough for joint optimization in deep neural networks through true conditional computation?
  • RQ2Does enabling conditional computation in differentiable trees lead to significant speedups in training and inference compared to existing approaches?
  • RQ3Can joint optimization of deep and wide tree ensembles via first-order methods yield more compact and accurate models than stage-wise training in gradient boosted trees?
  • RQ4To what extent can TEL replace dense layers in CNNs while reducing parameters and improving test loss?
  • RQ5How does the sensitivity of model performance to hyperparameters like the number of trees compare between TEL and gradient boosted trees?

Key findings

  • TEL achieves over 10x speedup in training and inference compared to existing differentiable tree methods on 23 classification datasets, due to efficient sparse routing and optimized backpropagation.
  • On the same datasets, TEL reduces model size by over 20x compared to gradient boosted trees while maintaining competitive AUC performance.
  • On pima, heart-c, and spambase datasets, TEL reaches peak AUC with only 5 trees, whereas GBDT requires over 100 trees for comparable performance, demonstrating superior compactness.
  • In CNNs, replacing dense layers with TEL reduces test loss by 7–53% and model parameters by approximately 8x on CIFAR-10, MNIST, and Fashion-MNIST, with statistically significant improvements on CIFAR and Fashion-MNIST.
  • TEL’s performance is less sensitive to the number of trees than GBDT, indicating more stable and robust learning under joint optimization.
  • The open-source TensorFlow implementation with Keras API enables practical integration of TEL into deep learning pipelines for both tabular and vision tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.