                                   Mixed-Curvature Decision Trees and Random Forests



midpoint angle is computed by finding θu and θv using              γp′ ,q′ crosses into M− , implying γp′ ,q′ ⊈ S, contradict-

Eq 15 and taking their mean:                                       ing our initial assumption that S is geodesically convex.

                                                                   Tabaghi et al. (2021) shows that a linear classifier (that is, a

                mS (u, v) = (θu + θv )/2.              (22)

                                                                   classifier inducing a geodesically convex decision boundary)

                                                                   with weights w and bias b takes the form

3.4. Product decision tree algorithm

Intuitively, the transition from DTs in a single component                P

                                                                         lw = sign(⟨wE , wE ⟩ + αS sin−1 (⟨wS , xS ⟩)

manifold to a product manifold is that we now iterate over

                                                                                     + αH sinh−1 (⟨wH , xH ⟩L ) + b),           (24)

all preprocessed angles together, using the angular midpoint

formula appropriate to each component. The complete pseu-

docode for this algorithm is given in Algorithm 1.                 where vM means the restriction of some v ∈ P to compo-

                                                                   nent manifold M and αM is a weight term.

Letting a single DT span all components—as opposed to an

ensemble of DTs, each operating in a single component—             Under our angular reformulation, this simplifies to

allows the model to independently allocate its splits across

                                                                                  P

components according to their relevance to the task at hand.                     lw = sign(x0 cos(θ) − xd sin(θ)),              (25)

Recasting DT learning in terms of angular comparisons

has three major advantages over finding planar decision            where θ is our splitting angle and d is the dimension along

boundaries directly:                                               which the split happens; because our split is confined to a

  1. We can consider angles under arbitrary linear pro-            single manifold, the weights αM do not affect the split. By

     jections (not just projections onto basis dimensions)         restricting our attention to two dimensions within a single

     while maintaining O(1) decision complexity.                   manifold, our formulation bypasses almost all of the com-

  2. It becomes possible to subsample the features (pre-           plexity of evaluating geodesic splits in product manifolds.

     computed angles) as is typical in RFs.                        This simplified form directly corresponds to our angular

  3. Product manifolds can always represent additional             splitting criterion from Equation 16. Since this is an instance

     features in a new Euclidean manifold.                         of the geodesically convex linear classifiers, our method is

                                                                   guaranteed to produce convex splits.

3.5. Geodesic convexity

Having detailed our algorithm, we now demonstrate that its         4. Benchmarks

splits satisfy the geodesic convexity property. Establishing

                                                                   We carried out benchmarks to evaluate which model, given

this is essential to our stated goals: geodesic convexity

                                                                   a labeled set of mixed-curvature embeddings, achieves the

implies topological continuity. The remaining desiderata (3–

                                                                   lowest error on a test set. While we produced embeddings

5) follow straightforwardly from our angular preprocessing

                                                                   using a range of datasets and embedding techniques, our

and midpoint splitting strategy.

                                                                   results focus only on performance on downstream tasks. We

A subset of a manifold S ⊆ M is said to be geodesically            describe our data generation/embedding methods in more

convex if p, q ∈ S implies that the geodesic γp,q ⊆ S.             detail in Appendix Section D.

That is, for any two points in S, all points in the shortest

                                                                   We summarize our benchmark results, with references to

path between them stay in S. Lack of geodesic convexity

                                                                   specific figures and tables, in Table 1.

is a potential source of misgeneralization for models, and

several classifiers in hyperbolic spaces explicitly seek to

partition the feature space in a geodesically-convex manner        Table 1: Benchmarks summary. The “Task” column is

(Cho et al., 2018; Chlenski et al., 2024).                         C (Classification), R (Regression), or LP (Link prediction).

                                                                   “#Top-k” columns count how often product DTs or RFs were

Building on Udrişte (1994), Chapter 3.1, we present a proof       among the top k predictors for a given set of benchmarks.

sketch that if S ⊂ M is geodesically convex and partitions

M into disjoint regions M+ and M− , then these regions                 Manifold    Task     Ref     #Top-1    #Top-2    Total

are geodesically convex.

                                                                       Single       C      Fig. 4      7        11        11

By way of contradiction, suppose there exist p, q ∈ M+                 Single       R      Fig. 5      7         9        11

such that their geodesic γp,q crosses into M− . Since S                Product      C      Tab. 2      6        10        18

                                                                       Product      R      Tab. 3      8        10        11

separates M+ and M− , γp,q must follow this path:

                                                                       Product      LP     Tab. 4      1         1         6

            M+ → S → M− → S → M+ .                     (23)              Total                        29        41        57

                                         ′   ′

However, this implies the existence of p , q ∈ S such that



                                                               6

