Visualizing the Decision-making Process in Deep Neural Decision Forest.

Shichao Li, Kwang-Ting Cheng · OpenReview

Introduction

Deep Neural Decision Forests (NDFs) represent a hybrid architecture that merges the representation learning capabilities of deep neural networks with the structural interpretability of decision trees. While traditional decision trees offer clear decision paths based on hand-crafted features, they often underperform on raw high-dimensional data like images. NDFs address this by utilizing a neural network as a feature extractor to drive the tree's split nodes. However, to enable end-to-end training via backpropagation, NDFs employ "soft routing," where an input sample stochastically traverses all paths. This probabilistic nature can obscure the model's internal logic. This paper introduces Decision Saliency Maps (DSM) to visualize the specific image regions influencing routing decisions and investigates whether these models maintain "decisive" (binary-like) behavior in complex tasks.

Methodology

The core contribution of this work is the development of tools to interpret the internal routing of NDFs.

Architecture and Soft Routing

An NDF consists of a neural network feature extractor followed by a stochastic decision tree. Each split node $i$ in the tree computes a routing probability $s_i = \sigma(f_i(\mathbf{x}))$, where $f_i$ is a function of the extracted features and $\sigma$ is the sigmoid function. This structure allows the model to learn complex spatial hierarchies while maintaining a tree-like flow.

The architecture of a Deep Neural Decision Forest, illustrating the integration of a feature extractor with a hierarchical tree structure.

Decision Saliency Maps (DSM)

To identify which parts of an input image $\mathbf{x}$ drive a specific routing decision at node $i$, the authors compute the gradient of the routing probability with respect to the input: $$DSM = \frac{\partial s_i}{\partial \mathbf{x}}$$ The resulting heatmap highlights pixels that most significantly impact the "left" or "right" turn at that specific node, providing a visual explanation for the model's internal logic.

Cascaded NDF for Regression

Beyond classification, the authors extend NDFs to multi-task coordinate regression, specifically for 3D facial landmark detection. They employ a cascaded approach where multiple NDF ensembles progressively refine landmark coordinates across 10 stages, starting from a coarse initialization.

Experiments and Results

The methodology was evaluated on MNIST, CIFAR-10, and the 3DFAW (3D Facial Alignment in the Wild) dataset.

Decisiveness and Interpretability

A key finding is that despite the "soft" mathematical formulation, NDFs naturally learn "hard" routing. Probability distributions at split nodes are typically peaked near 0 or 1, indicating that the model makes clear, binary-like choices.

Visualization of routing paths and Decision Saliency Maps on MNIST. The model shows high confidence (P=1.00) and node-specific focus.

As shown in the visualizations, different nodes specialize in distinct spatial features. For instance, in digit recognition, specific nodes focus on the loops or tails of numbers. When the model is uncertain (probabilities near 0.5), it often correlates with misclassification, suggesting that routing probability serves as a reliable proxy for model confidence.

Performance Metrics

The NDF models achieved competitive results across tasks:

  • MNIST: 99.3% accuracy using a shallow CNN feature extractor.
  • CIFAR-10: 92.4% accuracy with a VGG16 backbone and 93.4% with a ResNet50 backbone.
  • 3DFAW: The cascaded NDF successfully refined coarse facial shape initializations into accurate fits, demonstrating that the interpretability of NDFs extends to high-precision regression tasks.

Discussion

This research demonstrates that Deep Neural Decision Forests are not merely "black box" ensembles but maintain the inherent interpretability of classical trees. The proposed Decision Saliency Maps provide a granular view of the decision-making process, revealing spatial decomposition and node specialization. While the computational cost of soft routing remains a challenge for very deep trees, the "decisive" nature of these models opens avenues for network pruning and model diagnostics. Future work may focus on optimizing training efficiency to scale these interpretable architectures to even larger datasets.

Summary updated

BibTeX
@misc{li2019visualizing,
  author = {Shichao Li and Kwang-Ting Cheng},
  title = {{Visualizing the Decision-making Process in Deep Neural Decision Forest.}},
  year = {2019},
  eprint = {1904.09201},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.09201},
}
Figure