Mixed-curvature decision trees and random forests

Philippe Chlenski, Quentin Chu, Raiyan R. Khan, Kaizhu Du, Antonio Khalil Moretti, Itsik Pe'er

This paper, recently presented at ICML 2025, introduces a robust way to bring the power of Decision Trees (DTs) and Random Forests (RFs) to non-Euclidean spaces—specifically, product manifolds. By using a clever angular reformulation for splitting data, the authors achieve state-of-the-art results across a massive suite of 57 benchmarks.

TL;DR

The authors extend Decision Trees and Random Forests to "product manifolds"—spaces that combine Euclidean, hyperbolic, and spherical geometries. By redefining splits as angles in 2D subspaces rather than linear thresholds, they preserve essential geometric properties, allowing these models to outperform standard Euclidean and neural network baselines on complex, non-Euclidean datasets.

What Problem Does This Paper Address?

Most machine learning assumes the world is flat (Euclidean). However, many real-world datasets have inherent non-Euclidean structures: hierarchical data (like taxonomies) fits naturally in hyperbolic space, while cyclical data (like time of day or global coordinates) belongs in spherical space.

"Product manifolds" allow us to combine these geometries to better represent complex data. While neural networks have been adapted for these spaces, Decision Trees—the workhorses of tabular data—have lagged behind. A naive approach of just running a standard DT on the raw coordinates of a manifold fails because linear splits in the "ambient" (surrounding) space can create disconnected or non-convex decision regions, violating the geometric intuition that makes trees effective.

Figure 2: Decision tree splits are based on Euclidean dis- tances in the ambient space, and their assumptions some- times fail to hold for geodesic distances on non-Euclidean manifolds. For example, splits can create disconnected re- gions (Continuity), geodesics may cross boundaries within regions (Convexity), and distances to splits become unequal (Equidistance).

Methods

The core innovation is a unified angular framework for manifold splits. Instead of a standard threshold like $x_d > \theta$, the authors propose projecting data onto two-dimensional subspaces (like the $x_0, x_d$ plane) and representing both data points and splits as angles ($\theta$).

Key components include:

  • Angular Reformulation: Splits are defined by an angle $\theta$, partitioning the manifold into regions where the projection angle falls within $[\theta, \theta + \pi)$.
  • Geometric Desiderata: This approach ensures five key properties: Continuity (connected regions), Convexity (geodesically convex leaves), Equidistance (splits are halfway between points), Efficiency ($O(nd)$ candidates), and Speed ($O(1)$ evaluation).
  • Manifold-Specific Midpoints: The authors derive specific formulas for calculating the "angular midpoint" between two points for Euclidean ($E$), Hyperbolic ($H$), and Hyperspherical ($S$) components to ensure the "Equidistance" property is maintained regardless of curvature.
Figure 3: Decision boundaries in different constant-curvature manifolds can be represented as a single angle $\theta$ in a 2D projection.

Datasets

The authors evaluated their method on a diverse suite of 57 benchmarks:

  • Synthetic: Mixtures of 8 Gaussians sampled on single and product manifolds with varying curvatures.
  • Graph Embeddings: Classification, regression, and link prediction on standard graph datasets (CiteSeer, Cora, PolBlogs, etc.) embedded into product manifolds.
  • VAE Latent Spaces: Classifying embeddings from Variational Autoencoders trained on MNIST, CIFAR-100, and biological datasets (Blood, Lymphoma).
  • Empirical Datasets: Real-world data with natural non-Euclidean structures, such as geospatial "Landmasses" ($S^2$), neural spiking patterns ($(S^1)^{10}$), global temperatures ($S^2 \times S^1$), and traffic prediction ($(S^1)^4 \times E^1$).

Key Insights and Ideas

  • Geometry Matters: The success of DTs in Euclidean space relies on properties like convexity and continuity. By explicitly building these into the manifold version, the authors show that "geometric intuition" translates to better generalization.
  • Unified Framework: The angular approach is elegant because it treats $E$, $H$, and $S$ spaces under one umbrella. A split in a product manifold simply iterates through all possible 2D angular projections across all its component manifolds.
  • Interpretability: Unlike complex manifold neural networks, these trees remain interpretable. You can visualize exactly which 2D projection and which angle was used to make a decision at any node in the tree.

Key Results

The "Product RF" was a dominant performer:

  • Ranked 1st on 29 out of 57 tasks (51%).
  • Ranked in the top 2 on 41 out of 57 tasks (72%).
  • On the "Landmasses" dataset (predicting land vs. water on a sphere), the Product RF achieved 90% accuracy, significantly outperforming the Ambient RF (85%) and even a specialized Manifold GCN (65%).
Figure 6: Qualitative comparison on the "Landmasses" dataset. The Product RF learns a much cleaner, more geometrically appropriate representation of the Earth's surface compared to Euclidean or neural baselines.

Limitations and Future Work

  • Embedding Dependency: The method's performance is tied to the quality of the initial manifold embeddings and the choice of the "signature" (the specific mix of $H, S, E$ components).
  • Privileged Basis: Standard DTs rely on axis-aligned splits. In non-Euclidean spaces, there isn't always a "natural" set of axes. The authors suggest that future work could explore "rotation forests" or oblique trees to move beyond this limitation.
  • Computational Cost: Generating high-quality manifold embeddings can be computationally expensive compared to standard Euclidean preprocessing.

Summary updated

Abstract

Decision trees (DTs) and their random forest (RF) extensions are workhorses of classification and regression in Euclidean spaces. However, algorithms for learning in non-Euclidean spaces are still limited. We extend DT and RF algorithms to product manifolds: Cartesian products of several hyperbolic, hyperspherical, or Euclidean components. Such manifolds handle heterogeneous curvature while still factorizing neatly into simpler components, making them compelling embedding spaces for complex datasets. Our novel angular reformulation respects manifold geometry while preserving the algorithmic properties that make decision trees effective. In the special cases of single-component manifolds, our method simplifies to its Euclidean or hyperbolic counterparts, or introduces hyperspherical DT algorithms, depending on the curvature. In benchmarks on a diverse suite of 57 classification, regression, and link prediction tasks, our product RFs ranked first on 29 tasks and came in the top 2 for 41. This highlights the value of product RFs as straightforward yet powerful new tools for data analysis in product manifolds. Code for our method is available at https://github.com/pchlenski/manify.
BibTeX
@inproceedings{chlenski2025mixed,
  author = {Philippe Chlenski and Quentin Chu and Raiyan R. Khan and Kaizhu Du and Antonio Khalil Moretti 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