Forward Thinking: Building Deep Random Forests

Kevin Miller, Chris Hettinger, Jeffrey Humpherys, Tyler Jarvis, David KartchnerarXiv 2017

Abstract

The success of deep neural networks has inspired many to wonder whether other learners could benefit from deep, layered architectures. We present a general framework called forward thinking for deep learning that generalizes the architectural flexibility and sophistication of deep neural networks while also allowing for (i) different types of learning functions in the network, other than neurons, and (ii) the ability to adaptively deepen the network as needed to improve results. This is done by training one layer at a time, and once a layer is trained, the input data are mapped forward through the layer to create a new learning problem. The process is then repeated, transforming the data through multiple layers, one at a time, rendering a new dataset, which is expected to be better behaved, and on which a final output layer can achieve good performance. In the case where the neurons of deep neural nets are replaced with decision trees, we call the result a Forward Thinking Deep Random Forest (FTDRF). We demonstrate a proof of concept by applying FTDRF on the MNIST dataset. We also provide a general mathematical formulation that allows for other types of deep learning problems to be considered.

Introduction

Deep Neural Networks (DNNs) have revolutionized machine learning, yet they carry significant overhead. Training via backpropagation is computationally intensive, requires substantial memory, and often necessitates specialized hardware like GPUs. Furthermore, the architectural design of DNNs—such as the number of layers—often requires manual tuning and extensive regularization to prevent overfitting.

In contrast, Random Forests are known for their speed and robustness, particularly on tabular data, but they lack the hierarchical feature-learning capabilities of deep architectures. This paper introduces the "Forward Thinking" framework to bridge this gap, enabling the construction of deep architectures using non-neuron learners like decision trees, thereby avoiding the pitfalls of backpropagation.

The Forward Thinking Framework

The core of this approach is a sequential, layer-by-layer training process. Unlike traditional deep learning, which updates all weights simultaneously, Forward Thinking builds the network greedily:

  1. Layer-by-Layer Training: The first hidden layer is trained on raw input data.
  2. Forward Mapping: Once a layer is trained, input data is passed through it. The outputs (e.g., class probability vectors from individual trees) become the features for the subsequent layer.
  3. Iterative Deepening: This process repeats, with each layer transforming the data into a more separable representation.
  4. Adaptive Growth: The model uses a validation set to decide when to stop. If a new layer fails to improve accuracy by a predefined threshold (e.g., 1%), growth halts.
The Forward Thinking framework builds deep architectures by training one layer at a time, using the outputs of one layer as features for the next.

In the Forward Thinking Deep Random Forest (FTDRF) implementation, each layer consists of a mix of "Random" and "Extra Random" decision trees. By passing the outputs of individual trees rather than entire forests, FTDRF provides a richer feature set for subsequent layers.

Experimental Results

The FTDRF model was evaluated on the MNIST handwritten digit dataset. To handle spatial relationships in image data, the authors employed Multi-Grained Scanning (MGS), which uses sliding windows to generate sub-images.

The results demonstrate that FTDRF is highly competitive with existing deep forest models like gcForest while being more efficient. As shown in the table below, FTDRF achieved a peak accuracy of 98.98% using only 2,000 trees per layer, compared to gcForest's 4,000 trees. Remarkably, even with the tree count reduced to 500 per layer, the model maintained an accuracy of 98.89%.

Performance comparison on MNIST with Multi-Grained Scanning (MGS), showing FTDRF achieves comparable accuracy with fewer trees.

Conclusion and Future Work

Forward Thinking offers a viable alternative to backpropagation-based deep learning. By allowing the data to determine the model depth and utilizing efficient learners like decision trees, FTDRF achieves near-state-of-the-art performance with reduced computational requirements.

Future research will focus on scaling this approach to more complex datasets like CIFAR-10 and ImageNet. Additionally, the framework's flexibility allows for the exploration of other base learners, such as Support Vector Machines or Gradient Boosted Trees, and the potential integration of boosting techniques to further enhance accuracy.

Summary updated

BibTeX
@misc{miller2017forward,
  author = {Kevin Miller and Chris Hettinger and Jeffrey Humpherys and Tyler Jarvis and David Kartchner},
  title = {{Forward Thinking: Building Deep Random Forests}},
  year = {2017},
  eprint = {1705.07366},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.07366},
}
Figure