                                    Mixed-Curvature Decision Trees and Random Forests



    Continuity             Convexity            Equidistance         Our contributions:

                                                                       1. We generalize DTs and RFs to all constant-curvature

                                                                          manifolds: By representing data and splits as angles

                                                                          in two-dimensional subspaces, we guarantee the five

                                                                          desiderata above. For single manifolds, this extends

                                                                          existing Euclidean and hyperbolic models or intro-

                                                                          duces hyperspherical DTs and RFs.

Figure 2: Decision tree splits are based on Euclidean dis-             2. We introduce novel DT and RF algorithms for product

tances in the ambient space, and their assumptions some-                  manifolds.

times fail to hold for geodesic distances on non-Euclidean             3. We extend techniques for sampling mixtures of Gaus-

manifolds. For example, splits can create disconnected re-                sians to product manifolds.

gions (Continuity), geodesics may cross boundaries within              4. We show how problems like link prediction in graphs

regions (Convexity), and distances to splits become unequal               and signal analysis can be recast as inference problems

(Equidistance).                                                           on product manifolds.

                                                                       5. We demonstrate the effectiveness of our algorithms on

                                                                          a diverse suite of 57 benchmarks.



plored. In particular, decision trees (DTs) and random               1.1. Related work

forests (RFs)—some of the most successful and widely-

used algorithms in machine learning—still lack a product             Non-Euclidean representation learning. Important back-

space variant.                                                       ground on manifolds in machine learning is given in Cayton

                                                                     (2005) and Bengio et al. (2014). Much of the work on

A natural approach would be to simply apply standard                 product manifolds is indebted to early works on hyperbolic

DTs/RFs to the coordinate representation of points embed-            spaces, including Nickel & Kiela (2017); Chamberlain et al.

ded in the product manifold. However, this naive strategy ig-        (2017), and Ganea et al. (2018).

nores the underlying geometry: splits that appear reasonable

in coordinate space can violate fundamental geometric prop-          Machine learning in product manifolds. Tabaghi et al.

erties when interpreted on the manifold itself. We conjecture        (2021) describe linear classifiers, including perceptron and

that the success of DTs stems from five key desiderata that          support vector machines; Tabaghi et al. (2024) adapt prin-

standard Euclidean splits naturally preserve:                        cipal component analysis; and Cho et al. (2023) generalize

                                                                     transformer architectures to product manifolds.

  1. Continuity: Leaves partition space into connected

     regions;                                                        Product manifold-derived features. Sun et al. (2021) and

  2. Convexity: Leaves correspond to geodesically convex             Borde et al. (2023b) use product manifolds to compute rich

     subsets of the input space;                                     similarity measures as features for classification.Giovanni

  3. Equidistance: Splits maintain equal distance to near-           et al. (2022) introduce a heterogeneous variant of product

     est points on either side;                                      manifolds; Borde et al. (2024) combine quasi-metrics and

  4. Efficiency: Consider O(nd) candidates per split; and            partial orders for graph representation.

  5. Speed: Evaluate splits in O(1) time.                            Manifold random forests. Our method is inspired by re-

Figure 2 illustrates how these desiderata fail on curved mani-       cent work by Doorenbos et al. (2023) and Chlenski et al.

folds: standard linear splits through the ambient space leave        (2024) extending RFs to hyperbolic space. Other work

room for topologically discontinuous leaves, geodesics that          has explored generalizations of random forests to man-

cross decision boundaries, and unequal distances to the deci-        ifolds, including random forest regression for manifold-

sion boundary. Such issues could lead to misgeneralization,          valued targets (Tsagkrasoulis & Montana, 2017), manifold

undermining the geometric intuition that makes decision              oblique random forests (Li et al., 2022), and Fréchet random

trees interpretable and effective.                                   forests (Capitaine et al., 2024). Chlenski & Pe’er (2025)

                                                                     explores faster ways to train hyperbolic random forests.

We present a unified framework that preserves all five

desiderata across arbitrary product manifolds. By repre-             Applications of product manifolds. Product manifolds

senting splits as angles in two-dimensional subspaces, our           are used to embed knowledge graphs (Wang et al., 2021;

approach naturally handles hierarchical data (hyperbolic             Nguyen-Van et al., 2023; Li et al., 2024). In biology, they

components), cyclical patterns (spherical components), and           have been used to represent pathway graphs (McNeela et al.,

traditional features (Euclidean components) within a single,         2024), cryo-EM images (Zhang et al., 2021), and single-cell

principled framework.                                                transcriptomic profiles (Tabaghi et al., 2021). Skopek et al.

                                                                     (2020) also embed image datasets into product manifolds.



                                                                 2

