[Paper Review] Random Hinge Forest for Differentiable Learning
This paper introduces Random Hinge Forest (RHF), a differentiable decision forest variant that enables end-to-end training within computation graphs using stochastic gradient descent. RHF achieves competitive performance with state-of-the-art models like neural decision forests while using significantly fewer parameters and enabling efficient, logarithmic-time gradient computation.
We propose random hinge forests, a simple, efficient, and novel variant of decision forests. Importantly, random hinge forests can be readily incorporated as a general component within arbitrary computation graphs that are optimized end-to-end with stochastic gradient descent or variants thereof. We derive random hinge forest and ferns, focusing on their sparse and efficient nature, their min-max margin property, strategies to initialize them for arbitrary network architectures, and the class of optimizers most suitable for optimizing random hinge forest. The performance and versatility of random hinge forests are demonstrated by experiments incorporating a variety of of small and large UCI machine learning data sets and also ones involving the MNIST, Letter, and USPS image datasets. We compare random hinge forests with random forests and the more recent backpropagating deep neural decision forests.
Motivation & Objective
- To overcome the limitations of traditional random forests, which cannot be trained end-to-end and rely on fixed features.
- To develop a differentiable decision forest that integrates seamlessly into arbitrary computation graphs for joint optimization with other learnable components.
- To improve upon existing differentiable decision forests by ensuring numerical stability, logarithmic gradient complexity, and robustness to parameter initialization.
- To demonstrate that RHF achieves competitive performance on both tabular (UCI) and image (MNIST, USPS, Letter) datasets with significantly fewer parameters than state-of-the-art alternatives.
Proposed method
- RHF uses piecewise linear hinge functions as decision boundaries, enabling differentiable traversal through trees via smooth approximations.
- Each tree in the forest is constructed using randomized, learnable feature projections, allowing the model to adaptively learn useful feature combinations.
- Gradient computation for RHF is logarithmic in complexity due to sparse, path-based backpropagation, avoiding the exponential cost of prior methods.
- The model employs a min-max margin property to stabilize training and reduce sensitivity to saturation or precision loss in activation functions.
- Initialization strategies are proposed to adapt RHF to arbitrary network architectures, including convolutional feature maps in image tasks.
- RHF supports small-batch training due to its efficient, non-probabilistic leaf prediction mechanism, unlike models requiring large histograms for stability.
Experimental results
Research questions
- RQ1Can a differentiable decision forest be efficiently trained end-to-end within a computation graph using stochastic gradient descent?
- RQ2How does RHF's performance compare to random forests and neural decision forests on standard benchmark datasets?
- RQ3What is the impact of parameter efficiency and training speed on RHF's scalability and practical deployment?
- RQ4Can RHF generalize well despite its piecewise linear decision boundaries, especially when compared to non-linear alternatives like sigmoid-based decision forests?
Key findings
- RHF achieved performance comparable to neural decision forests on MNIST and USPS, and second-best on the Letter dataset, outperforming random forests.
- On the MNIST dataset, RHF used approximately 17× fewer parameters than neural decision forests, while maintaining competitive accuracy.
- RHF trained effectively with small mini-batch sizes (e.g., 1000 for MNIST), unlike neural decision forests which required large batches for histogram stability.
- Gradient computation in RHF scales logarithmically with tree depth, enabling fast training even on large forests (e.g., 1000 depth-10 trees on CPU).
- On the Madelon dataset, RHF underperformed due to poor performance of inner-product features, suggesting limitations when learnable features are not sparsely selected.
- RHF’s fern variant achieved performance comparable to RHF with approximately half the number of parameters, demonstrating high parameter efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.