                                           Mixed-Curvature Decision Trees and Random Forests



The hyperboloid of dimension D and curvature K < 0,                     Here, C(·) is some impurity function (we use Gini impurity

written HD,K , is a set of points with constant Minkowski               for classification and variance for regression). A splitting

norm:                                                                   function S(·) partitions the labels y into y+ and y− and

                                                                        the input space into decision regions. Classically, S(·) is a

  HD,K = {x ∈ RD+1 : ∥x∥L = −1/K 2 , x0 > 0}, (8)                       thresholding function which partitions the input space into

                                                                        high-dimensional boxes given dimension d and threshold θ:

Finally, the hyperbolic distance function for geodesic dis-

tances between u, v ∈ HD,K is given by                                                      S(x) = I{xd > θ}.                     (14)

          δH (u, v) = − cosh−1 (K 2 ⟨u, v⟩L )/K.              (9)

                                                                        This algorithm is applied recursively to each decision region

                                                                        until a stopping condition is met (e.g., maximum number of

2.1.4. M IXED - CURVATURE PRODUCT MANIFOLDS                             splits is reached). The result is a fitted DT, T , which can be

We reiterate the definition of product manifolds Q   from Gu            used for inference. During inference, an unseen point x is

et al. (2018). Following the convention of using i Xi to                passed through T until it reaches a leaf node corresponding

refer to the iterated Cartesian product over sets, the product          to some decision region. For classification, the point is then

manifold is defined as                                                  assigned the majority label inside that region; for regression,

                                                                        it is assigned the mean value inside that region.

                  n                 m

                  Y                 Y           ′

            P=          Ssi ,Ki ×         Hhj ,Kj × Ed .     (10)       Finally, a RF is an ensemble of DTs, typically trained on

                  i=1               j=1                                 a bootstrapped subsample of the points and features in

                                                                        X (Breiman, 2001).

                                  Pn      Pm

The total number of dimensions is i si + j hj +d. Each

individual manifold is called a component manifold, and                 2.2.1. H YPERBOLIC DECISION TREE ALGORITHMS

the decomposition of the product manifold into component                The hyperplane perspective on DTs is helpful background

manifolds is called the signature. Informally, the signature            for understanding our method: mathematically, threshold-

can be considered a list of dimensionalities and curvatures             ing x on a dimension is equivalent to taking its dot prod-

for each component manifold.                                            uct with the normal vector of a separating hyperplane P,

Distances in P decompose as the ℓ2 norm of the distances                even in hyperbolic space. Although this is easy to compute

in each of the component manifolds:                                     for classical thresholding boundaries, which are zero in all

                        sX                                              dimensions but d, this perspective principally admits any

                                                                        hyperplane P as a valid decision boundary.

            δP (u, v) =       δM (uM , vM )2 ,      (11)

                             M∈P                                        Naturally, considerations around choosing an appropriate

                                                                        (and computationally efficient) P abound. To this end,

where uM and vM denotes the restriction of u and v to                   Chlenski et al. (2024) impose homogeneity and sparsity

their components in M and δM refers the distance function               constraints on the hyperplanes they consider for hyperbolic

appropriate to M.                                                       DTs. In hyperbolic space, homogenous hyperplanes— hy-

For x ∈ P, the tangent plane at x, Tx P, is the direct sum              perplanes that contain the origin of the ambient space—

(concatenation) of all component tangent planes:                        intersect HD,K at geodesic submanifolds: that is, P ∩ HD,K

                           M                                            is closed under shortest paths according to δH . The sparsity

                  Tx P =       TxM M.                  (12)             constraint enforces that the normal vectors of P must be

                              M∈P                                       nonzero only in two positions: the timelike coordinate x0

                                                                        and some other xd , which ensures that only O(nd) candi-

We additionally define the origin of P, µ0 , as the concatena-          date hyperplanes are considered per split, and each decision

tion of the origins of each respective manifold. The origin is          can be computed in O(1) time using sparse dot products.

(1/|K|, 0, . . .) for HD,K and SD,K , and (0, 0, . . .) for ED .



2.2. Decision trees and random forests

                                                                        3. Mixed-curvature decision trees

The Classification and Regression Trees (CART) (Breiman,                For any DT, we must transform the input X into a set of

2017) algorithm fits a DT T to a set of labeled data (X, y).            candidate hyperplanes. To this end, we reframe and general-

At each step, it greedily selects the split which partitions the        ize the hyperplane approach of hyperbolic DTs. First, we

dataset with maximum information gain,                                  observe that homogenous hyperplanes are geodesically con-

                                                                        vex in any constant-curvature manifold; therefore, we can

                          |y+ |          |y− |                          extend the hyperbolic DT approach to E and S. Second, we

    IG(y) = C(y) −              C(y+ ) −       C(y− ).       (13)       observe that fitting sparse, homogenous DTs is equivalent

                           |y|            |y|



                                                                    4

