Random forest kernel for high-dimension low sample size classification

Simon Bernard, Lucca Portes Cavalheiro, Simon Bernard 0001, Jean Paul Barddal, Laurent Heutte

Introduction

In modern bioinformatics, genomics, and medical imaging, researchers frequently encounter the "High-Dimension, Low Sample Size" (HDLSS) challenge. This phenomenon occurs when the number of features ($m$)—such as gene expressions or image voxels—vastly exceeds the number of available instances ($n$). Traditional machine learning algorithms often falter in this regime: k-Nearest Neighbors suffers from the curse of dimensionality as distances become indistinguishable; Linear Discriminant Analysis (LDA) fails due to singular covariance matrices; and standard Support Vector Machines (SVMs) often succumb to "data-piling," where the model overfits the training data so precisely that it loses generalizability.

To address these limitations, this paper introduces RFSVM, a hybrid classification framework that utilizes Random Forest (RF) similarity as a custom kernel for SVMs. By combining the robust feature-handling capabilities of Random Forests with the margin-maximization strengths of SVMs, RFSVM provides a state-of-the-art solution for complex, high-dimensional datasets.

Methodology: The RFSVM Framework

The core innovation of RFSVM lies in the "kernel trick." Instead of using standard kernels like Linear or Radial Basis Function (RBF), the authors propose a learned similarity measure derived directly from the data structure via a Random Forest.

1. Random Forest Similarity

When a Random Forest is trained, every instance in the dataset is passed through multiple decision trees, eventually landing in specific leaf nodes. The RFSVM approach defines similarity based on leaf co-occurrence: if two instances frequently end up in the same leaf nodes across the forest, they are considered highly similar. This measure inherently accounts for non-linear relationships and feature interactions that the RF identifies during training.

2. The Kernel Matrix

The authors calculate these pairwise similarities to construct a Similarity Matrix. Crucially, the paper provides mathematical proof that this matrix is positive semi-definite, satisfying the requirements to be used as a precomputed kernel for an SVM.

3. The Hybrid Advantage

In this architecture, the Random Forest acts as a sophisticated, noise-resistant feature extractor. It distills the high-dimensional input space into a structured similarity map. The SVM then utilizes this map to find the optimal geometric decision boundary, effectively mitigating the data-piling issues common in standard SVM applications.

Experimental Design and the $\Omega$ Metric

The study evaluated RFSVM across 40 public datasets, including 21 from OpenML, 3 from UCI, and 16 specialized medical datasets. To better characterize the difficulty of these tasks, the authors introduced a new metric, $\Omega$ (Omega), defined as the average number of instances per class divided by the total number of features.

An $\Omega < 1$ indicates an HDLSS scenario. In this study, 32 of the 40 datasets met this criteria, allowing the authors to test the limits of the algorithm in extremely sparse data environments.

Key Results and Insights

RFSVM was benchmarked against six prominent methods, including XGBoost, standard Random Forests, standard SVMs, and Distance Weighted Discrimination (DWD). The results demonstrated significant performance gains:

  • Superior Accuracy: RFSVM achieved the highest accuracy on 16 out of the 40 datasets, outperforming all other individual methods in terms of total "wins."
  • Statistical Significance: Using Friedman and Nemenyi tests, the authors confirmed that RFSVM is statistically superior to traditional methods, particularly in "very-HDLSS" scenarios where $\Omega < 0.015$.
  • Bayesian Validation: Pairwise Bayesian sign tests indicated a high probability (often exceeding 90%) that RFSVM outperforms traditional SVMs and gradient-boosted trees (XGBoost) on HDLSS tasks.
  • Versatility: While optimized for high-dimensional data, RFSVM remained competitive on "normal" datasets ($\Omega \ge 1$), suggesting it is a robust general-purpose classifier.

Limitations and Future Directions

Despite its performance, RFSVM introduces higher computational overhead than a standard SVM, as it requires training a full Random Forest to generate the kernel. However, the authors note that since $n$ is typically small in HDLSS problems, the total training time remains manageable.

Future research will focus on extending this framework to regression tasks and investigating the method's efficacy in handling "data sparsity," where datasets contain a high frequency of missing or zero-value features.

Conclusion

RFSVM represents a significant step forward for HDLSS classification. By leveraging the ensemble learning of Random Forests to inform the geometric optimization of SVMs, the method provides a powerful tool for researchers working with the small, high-dimensional datasets that define the frontiers of modern medicine and bioinformatics.

Summary updated

BibTeX
@article{bernard2024random,
  author = {Simon Bernard and Lucca Portes Cavalheiro and Simon Bernard and Jean Paul Barddal and Laurent Heutte},
  title = {{Random forest kernel for high-dimension low sample size classification}},
  journal = {Stat. Comput},
  year = {2024},
  doi = {10.1007/s11222-023-10309-0},
}
Figure