Skip to main content
QUICK REVIEW

[Paper Review] Neural Networks are Decision Trees

Çağlar Aytekin|arXiv (Cornell University)|Oct 11, 2022
Neural Networks and ApplicationsComputer Science17 citations
TL;DR

This paper proves that any neural network—regardless of architecture or activation function—can be exactly represented as a decision tree through an equivalence transformation, preserving all predictions without approximation. The tree representation enables full interpretability and reveals that, for small networks, the tree can offer computational advantages over the original neural network.

ABSTRACT

In this manuscript, we show that any neural network with any activation function can be represented as a decision tree. The representation is equivalence and not an approximation, thus keeping the accuracy of the neural network exactly as is. We believe that this work provides better understanding of neural networks and paves the way to tackle their black-box nature. We share equivalent trees of some neural networks and show that besides providing interpretability, tree representation can also achieve some computational advantages for small networks. The analysis holds both for fully connected and convolutional networks, which may or may not also include skip connections and/or normalizations.

Motivation & Objective

  • To address the black-box nature of neural networks by providing an exact, interpretable representation.
  • To demonstrate that any neural network, including those with convolutional layers, skip connections, and normalization, can be converted into an equivalent decision tree.
  • To show that the tree representation preserves the original network's accuracy exactly, without approximation.
  • To explore computational trade-offs between neural networks and their equivalent decision tree representations.

Proposed method

  • The method derives an equivalent decision tree by analyzing the piecewise linear behavior of activation functions such as ReLU and Leaky ReLU.
  • It rewrites each layer's computation using element-wise multiplication with slope indicators (a_i), transforming the network into a tree-structured composition of linear functions.
  • The decision tree is constructed by recursively partitioning the input space based on linear inequalities derived from weight matrices and activation slopes.
  • The tree is pruned to remove redundant rules, resulting in a minimal, interpretable structure that maintains exact equivalence.
  • The approach generalizes to any activation function by treating each linear region as a distinct decision path.
  • The method applies to fully connected, convolutional, residual, and normalized networks, including recurrent networks.

Experimental results

Research questions

  • RQ1Can every neural network with any activation function be exactly represented as a decision tree?
  • RQ2Does the decision tree representation preserve the original network’s predictions without approximation?
  • RQ3Can the tree representation improve interpretability of neural network decisions?
  • RQ4Are there computational advantages in the tree representation compared to the original neural network?
  • RQ5How do the number of parameters, comparisons, and arithmetic operations compare between the neural network and its equivalent tree?

Key findings

  • Any feedforward neural network with any piecewise linear activation function can be exactly represented as a decision tree, with no loss in accuracy.
  • The equivalence holds for fully connected, convolutional, residual, and normalized networks, as well as recurrent networks.
  • The decision tree representation enables full interpretability by exposing the logical rules governing each prediction.
  • For small networks, the tree representation reduces computational complexity in terms of floating-point operations, despite higher memory usage.
  • In a toy regression example (y = x²), the induced tree had 16 initial regions but was pruned to 5 meaningful, interpretable regions that reflect the network’s behavior.
  • In a half-moon classification task, the tree revealed bounded, reliable regions, unbounded regions that may lead to poor extrapolation, and some empty regions not covered by training data.

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.