Supervised Manifold Learning via Random Forest Geometry-Preserving Proximities

Jake Slater RhodesSampTA Paper 2023 · DOI

Introduction

Manifold learning and dimensionality reduction are essential tools in exploratory data analysis, enabling researchers to visualize high-dimensional datasets in intuitive 2D or 3D spaces. While unsupervised algorithms like t-SNE, UMAP, and Diffusion Maps are widely used, they inherently ignore label information. Conversely, existing supervised variants often introduce significant structural distortions. This paper introduces a novel approach using Random Forest Geometry-Preserving (RF-GAP) proximities as a similarity kernel to bridge the gap between supervised learning and geometric integrity.

The Limitations of Current Supervised Methods

When researchers attempt to incorporate labels into manifold learning, they typically encounter three primary issues:

  1. Structural Distortion: Most supervised extensions use "class-conditional distances" that artificially pull classes apart. While this creates visually distinct clusters, it destroys the global relationships and the "connective tissue" between different classes.
  2. Overfitting: These methods frequently produce perfect linear separations in the embedding space that do not reflect the true complexity of the data, leading to inflated performance metrics that fail to generalize.
  3. Categorical Constraints: The majority of supervised manifold learning techniques are designed strictly for classification tasks and cannot handle continuous labels required for regression analysis.

Methodology: The RF-GAP Approach

The authors propose replacing standard distance kernels (such as Euclidean distance) with a modified version of Random Forest proximities.

The RF-GAP Innovation

Standard Random Forest proximities measure how often two points share a leaf node. However, the authors utilize Geometry- and Accuracy-Preserving (GAP) proximities. This specific variant acts as a kernel that mimics the actual predictive behavior of the Random Forest. To integrate this into manifold learning, the proximity matrix is normalized and symmetrized, allowing it to serve as the input for various frameworks, including Isomap, t-SNE, UMAP, and PHATE.

By leveraging the Random Forest as a "front-end" processor, the manifold learning algorithm inherits several key strengths:

  • Mixed Data Handling: It naturally processes both numerical and categorical features.
  • Feature Selection: It ignores noise variables that do not contribute to the label's prediction.
  • Interaction Capture: It captures complex, non-linear feature interactions that simple distance metrics miss.

Experimental Results and Insights

The study evaluated the RF-GAP method across 19 datasets from the UCI Machine Learning Repository and a Life Expectancy dataset from the WHO.

Consistency and Accuracy

A key finding was the consistency of k-NN accuracy. The accuracy of models trained on the 2D embeddings generated via RF-GAP was highly reflective of the accuracy achieved on the full high-dimensional dataset. This stands in contrast to unsupervised methods, which often lose too much information, and traditional supervised methods, which "overfit" the visualization to create unrealistically high accuracy.

Preserving the Continuum

In regression tasks, such as the Life Expectancy analysis, unsupervised models often split data into isolated "Developed" vs. "Developing" islands. Traditional supervised models tend to exaggerate this split. However, the RF-PHATE approach demonstrated a smooth progression—a continuum—that respected the underlying economic status while showing the gradual change in life expectancy, preserving the global hierarchy of the data.

Denoising and Variable Importance

Because Random Forests perform implicit feature selection, the resulting embeddings are naturally denoised. The authors found that RF-GAP methods significantly outperformed competitors in retaining the "hierarchy" of variable importance, ensuring that the most influential features in the original space remained the primary drivers of the low-dimensional visualization.

Conclusion and Future Directions

RF-GAP proximities provide a robust framework for supervised manifold learning that avoids the "shattering" effect of traditional methods. While the visual output still depends on the specific manifold algorithm used (e.g., UMAP vs. PHATE), the underlying proximity data ensures a more faithful representation of both the labels and the intrinsic geometry. Future work may explore the semi-supervised potential of this method, leveraging the Random Forest's ability to handle out-of-sample data to project unlabeled points into the supervised manifold.

Summary updated

BibTeX
@misc{rhodes2023supervised,
  author = {Jake Slater Rhodes},
  title = {{Supervised Manifold Learning via Random Forest Geometry-Preserving Proximities}},
  year = {2023},
  eprint = {2307.01077},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.01077},
}
Figure