Mixed-Curvature Decision Trees and Random Forests

Philippe Chlenski, Quentin Chu, Itsik Pe'er

TL;DR

This paper introduces a novel extension of decision trees and random forests to "product space manifolds," which are combinations of different geometric spaces like Euclidean, hyperspherical, and hyperbolic. This allows for more expressive and accurate machine learning models on complex data structures that don't fit neatly into a single geometric space, outperforming traditional Euclidean methods.

What Problem Does This Paper Address?

Many machine learning algorithms assume data resides in a simple Euclidean space. However, real-world data often exhibits more complex geometric structures. While some research has explored data on single non-Euclidean manifolds (like spheres or hyperboloids), these can still be limiting. This paper tackles the challenge of modeling data that lies on "product space manifolds," which are formed by taking the Cartesian product of multiple different types of manifolds. These product spaces offer a much richer and more flexible way to represent complex relationships and distances in data. The key problem is the lack of expressive machine learning tools, specifically decision trees and random forests, that can effectively learn from data residing in these product spaces. Existing methods for product spaces are often limited to simple linear classifiers, failing to capture the intricate decision boundaries that trees and forests can represent.

Methods

The core contribution is the adaptation of decision tree and random forest algorithms to work with product space manifolds. The authors generalize existing methods for fitting decision trees to constant-curvature manifolds (Euclidean, hyperspherical, hyperbolic) and then extend this to product spaces.

Key methodological innovations include:

  • Generalized Decision Trees for Manifolds: The paper adapts decision tree splitting criteria to work with homogeneous hyperplanes that intersect manifolds along geodesic submanifolds. This involves transforming points into angles and computing angular midpoints to define splits.
  • Product Space Extension: The algorithm is extended to product spaces by iterating over all component manifolds and keeping track of which "special" dimension is used for angle computation. This allows the tree to learn splits across different geometric components.
  • Gaussian Mixture Sampling: The authors extend existing methods for sampling Gaussian mixtures on hyperbolic spaces to product spaces. This involves sampling means and covariance matrices for each component manifold and then concatenating the resulting embeddings.
  • Efficient Implementation: The goal is to fit trees efficiently, aiming for O(ndt) time complexity, where n is the number of points, d is the number of dimensions, and t is the tree depth.

Datasets

The paper uses synthetic datasets for evaluation. Specifically, they generate mixtures of Gaussian distributions on various product space manifolds with different constant curvatures. They compare their method against baselines on these synthetic datasets. No new benchmark datasets are introduced, but the synthetic data generation process is detailed in Appendix A.

Key Insights and Ideas

  • Product Spaces are Crucial for Expressiveness: The paper strongly advocates for product space manifolds as a more powerful representation for complex data than single manifolds or Euclidean space. Their ability to capture intricate distance relationships with low distortion is highlighted.
  • Decision Trees Adapt Well to Non-Euclidean Geometries: The work demonstrates that the inductive bias of decision trees (partitioning space into convex regions) can be effectively adapted to various manifold geometries, including product spaces, by modifying the splitting criteria.
  • Unified Approach for Mixed Curvatures: The proposed method offers a unified framework that can handle combinations of Euclidean, hyperspherical, and hyperbolic components within a single product manifold, which is a significant step beyond methods limited to a single curvature.
  • Superiority over Euclidean Baselines: The results consistently show that the proposed mixed-curvature decision trees and random forests outperform Euclidean methods (operating in ambient or tangent spaces) on these non-Euclidean data distributions.

Key Results

The paper presents benchmark results comparing their proposed "Product DT" and "Product RF" against "Euclidean DT (ambient)", "Euclidean DT (tangent plane)", and their corresponding random forest variants.

  • Classification Accuracy: In Table 1, the proposed Product DT and Product RF consistently achieve higher statistical significance (p < 0.05) compared to Euclidean baselines across various product manifold signatures (e.g., (H⁵)², (S⁵)², H⁵ x S⁵, (H²)⁵, (S²)⁵, (H²)² × E² × (S²)²). For instance, on the (H⁵)² signature, Product DT achieves 97.6 ± 1.0% accuracy, significantly outperforming Euclidean DT (ambient) at 92.8 ± 2.3%.
  • Performance across Curvatures: Figure 1 shows that for decision trees, performance differences increase with the magnitude of curvature |K|. For K=0 (Euclidean case), all methods perform identically, validating the equivalence.
  • Generalization: The method demonstrates effectiveness across a range of constant-curvature and product manifolds, suggesting good generalization capabilities.

Limitations and Future Work

  • Discontinuity in Distance Functions: The authors acknowledge a discontinuity in distance functions when transitioning between negative, zero, and positive curvatures, which creates an "inelegant discontinuity."
  • Euclidean Embedding Lift: For Euclidean spaces, they arbitrarily lift the embedding to x₀ = 1, rather than using a more continuous approach like projective geometry.
  • Future Benchmarking: The authors plan to conduct more thorough benchmarking, comparing their method against product space perceptrons and SVMs, and applying it to real-world data embedded using methods like Gu et al. (2018) and Skopek et al. (2020).
  • Regression and Complex Data: Future work will also focus on high-quality regression benchmarks and applications to complex biological data, such as spatial transcriptomics.

Summary updated

Abstract

We extend decision tree and random forest algorithms to product space manifolds: Cartesian products of Euclidean, hyperspherical, and hyperbolic manifolds. Such spaces have extremely expressive geometries capable of representing many arrangements of distances with low metric distortion. To date, all classifiers for product spaces fit a single linear decision boundary, and no regressor has been described. Our method enables a simple, expressive method for classification and regression in product manifolds. We demonstrate the superior accuracy of our tool compared to Euclidean methods operating in the ambient space or the tangent plane of the manifold across a range of constant-curvature and product manifolds. Code for our implementation and experiments is available at https://github.com/pchlenski/embedders.
BibTeX
@inproceedings{chlenski2025mixed,
  author = {Philippe Chlenski and Quentin Chu and Itsik Pe'er},
  title = {{Mixed-Curvature Decision Trees and Random Forests}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=wptlUkP48t},
}
Figure