Neural Forest Learning

Yun-Hao Cao, Jianxin WuarXiv 2019

Abstract

Neural Random Subspace (NRS) is a novel module that integrates the principles of forest-style ensemble learning into differentiable deep learning architectures. By utilizing random permutations and group convolutions, NRS constructs an end-to-end trainable ensemble. This approach bridges the gap between traditional forest methods, which excel on tabular data, and deep learning models. Empirical results demonstrate that NRS outperforms conventional forest methods on tabular datasets and enhances the performance of Convolutional Neural Networks (CNNs) on image and 3D recognition tasks with minimal computational overhead.

Introduction

In machine learning, a persistent divide exists between models optimized for tabular data and those designed for unstructured data like images. Tabular or "vectorized" data is typically the domain of "forest" methods, such as Random Forests or Gradient Boosting Decision Trees (GBDTs). These models leverage the Random Subspace Method (RSM) to train diverse learners on different feature subsets, providing robustness in high-dimensional spaces. However, forest methods are generally non-differentiable and cannot learn feature representations from scratch.

Conversely, deep learning models like Convolutional Neural Networks (CNNs) excel at representation learning but often rely on simple linear operations, such as Global Average Pooling (GAP), for final classification. This approach misses the non-linear "wisdom of the crowd" that ensemble methods provide. Neural Random Subspace (NRS) addresses this by creating a differentiable version of a random subspace ensemble that can be seamlessly integrated into any neural network.

Methods

The NRS module functions as a differentiable counterpart to random subspace ensembles through two primary stages: Expansion and Aggregation.

Expansion: Creating Subspaces

The module begins with an input feature vector $x \in \mathbb{R}^d$. To simulate the Random Subspace Method, NRS generates multiple random permutations $\sigma^1, \dots, \sigma^k$ of the input indices. These permutations are used to create a set of permuted vectors $Z = \{z^1, \dots, z^k\}$. These vectors are then concatenated and reshaped into a 3D tensor $I$. This process effectively creates multiple "views" of the original data. Crucially, the permutation strategy ensures that every input feature is represented an equal number of times across the ensemble, providing better coverage than traditional bootstrapping.

The NRS architecture illustrating the Expansion phase (random permutations and reshaping) and the Aggregation phase (group convolution) with a detailed numerical example.

Aggregation: Differentiable Base Learners

Once the tensor $I$ is formed, NRS applies a group convolution layer. In a group convolution, filters are restricted to specific channel groups, meaning each filter only "sees" a particular subset of the input data. The authors demonstrate that a group convolution followed by a ReLU activation is mathematically equivalent to an ensemble of "one-level oblique decision trees" or "decision stumps." By adjusting the kernel size, the complexity of these base learners can be increased. Because NRS is built entirely from standard neural network operations, it is fully differentiable and highly optimized for modern GPU hardware.

Experiments and Results

The authors conducted an extensive evaluation of NRS across several domains, demonstrating its versatility and efficiency.

Tabular Data and Document Retrieval

On a suite of 35 classification datasets, including MNIST, GISETTE, and the large-scale SUSY dataset (3.5 million instances), NRS significantly outperformed traditional Random Forests and GBDTs in the majority of cases, winning or tying on 28 out of 34 datasets. It also showed competitive performance on document retrieval tasks using the Microsoft 10K and 30K "Learning to Rank" benchmarks.

Computer Vision and 3D Recognition

Integrating NRS into standard CNN architectures yielded substantial performance gains:

  • ImageNet: Replacing the final linear layer of a ResNet-18 with NRS reduced the Top-1 error by 1.92% with negligible increases in parameters and FLOPs.
  • Fine-Grained Recognition: On the Stanford Cars dataset, adding NRS to a VGG-16 backbone resulted in a 7.8% accuracy gain. Similar improvements were observed on CUB-200-2011 Birds and FGVC-aircraft.
  • 3D Point Clouds: NRS also improved performance on the ModelNet40 dataset, showing its applicability beyond 2D images.

Efficiency and Speed

A key advantage of NRS is its speed. Unlike previous attempts at "deep forests," such as Neural Decision Forests (NDF), NRS leverages standard, highly-optimized convolution layers. This allows it to achieve superior results while maintaining the high throughput required for large-scale deep learning tasks.

Conclusion

Neural Random Subspace (NRS) successfully bridges the gap between forest-style ensemble learning and deep representation learning. By reformulating the Random Subspace Method using permutations and group convolutions, the authors provide a powerful, differentiable module that enhances performance across tabular, image, and 3D data. While future work is needed to manage memory bloat in extremely high-dimensional non-sparse settings, NRS represents a significant step toward unifying two of the most successful paradigms in machine learning.

Summary updated

BibTeX
@misc{cao2019neural,
  author = {Yun-Hao Cao and Jianxin Wu},
  title = {{Neural Forest Learning}},
  year = {2019},
  eprint = {1911.07845},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.07845},
}
Figure