<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Convex Relaxation for Solving Large-Margin Classifiers in Hyperbolic Space</title></titleStmt>
			<publicationStmt>
				<publisher>n/a</publisher>
				<date>04/23/2025</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10679834</idno>
					<idno type="doi"></idno>
					<title level='j'>Transactions on machine learning research</title>
<idno>2835-8856</idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>S Yang</author><author>P Liu</author><author>C Pehlevan</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Hyperbolic spaces have increasingly been recognized for their outstanding performance in handling data with inherent hierarchical structures compared to their Euclidean counterparts. However, learning in hyperbolic spaces poses significant challenges. In particular, extending support vector machines to hyperbolic spaces is in general a constrained non-convex optimization problem. Previous and popular attempts to solve hyperbolic SVMs, primarily using projected gradient descent, are generally sensitive to hyperparameters and initializations, often leading to suboptimal solutions. In this work, by first rewriting the problem into a polynomial optimization, we apply semidefinite relaxation and sparse moment-sumof-squares relaxation to e!ectively approximate the optima. From extensive empirical experiments, these methods are shown to achieve better classification accuracies than the projected gradient descent approach in most of the synthetic and real two-dimensional hyperbolic embedding dataset under the one-vs-rest multiclass-classification scheme.Published in Transactions on Machine Learning Research (04/2025) grounded in the gradient descent dynamics, which is highly sensitive to initialization and hyperparameters and cannot certify optimality.As e"ciently solving for the large-margin solution on hyperbolic spaces to optimality provides performance gain in downstream data analysis, we explore two convex relaxations to the original HSVM problem and examine their empirical tightness through their optimality gaps. Our contributions can be summarized as follows: in Section 3, we briefly introduce the necessary concepts for large-margin learning in hyperbolic space, transform the original HSVM formulation into a quadratically constrained quadratic programming (QCQP) problem, and later apply the standard semidefinite relaxation (SDP) (Shor, 1987) to this QCQP. Empirically, SDP does not yield tight enough solutions, which motivates us to apply the moment-sum-ofsquares relaxation (Moment) (Nie, 2023). The problem with the Moment approach is its limited scalability as it empirically requires a long runtime and large computation memory. However, there is a special star-shaped sparsity structure in the HSVM problem. By exploiting such a sparcity pattern, we successfully reduce the number of decision variables in the original moment-sum-of-squares relaxation and propose an equivalent but sparse moment-sum-of-squares relaxation. In Section 4, we test the performance of our methods in both simulated and real datasets, We observe small optimality gaps for various tasks (in the order of 10 →2 to 10 →1 ) by using the sparse moment-sum-of-squares relaxation and obtain better max-margin separators in terms of test accuracy in a one-vs-rest 5-fold train-test scheme than projected gradient descent (PGD). SDP relaxation, on the other hand, is not tight, but still yields better solutions than PGD, particularly in the one-vs-one training framework. The section then ends with the limitations of our proposed method and a brief practical guidance of when to use our methods. Lastly, we conclude and point out some future directions in Section 5. Additionally, we propose without testing a robust version of HSVM in Appendix F. The code to our implmentations is https://github.com/yangshengaa/hsvm-relax.
Related WorksSupport Vector Machine (SVM) is a classical statistical learning algorithm operating on Euclidean features Cortes & Vapnik (1995). This convex quadratic optimization problem aims to find a linear separator that classifies samples of di!erent labels and has the largest margin to data samples. The problem can be e"ciently solved through coordinate descent or Lagrangian dual with sequential minimal optimization (SMO) Platt (1998) in the kernelized regime. Mature open source implementations exist such as LIBLINEAR Fan et al. (2008) for the former and LIBSVM Chang & Lin (2011) for the latter.Less is known when moving to statistical learning on non-Euclidean spaces, such as hyperbolic spaces. The popular practice is to directly apply neural networks in both obtaining the hyperbolic embeddings and perform inferences, such as classification, on these embeddings Ganea et al.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>The d-dimensional hyperbolic space H d is the unique simply-connected Riemannian manifold with a constant negative sectional curvature -1. Its exponential volume growth with respect to radius motivates representation learning of hierarchical data using the hyperbolic space. Representations embedded in the hyperbolic spaces have demonstrated significant improvements over their Euclidean counterparts across a variety of datasets, including images <ref type="bibr">(Khrulkov et al., 2020)</ref>, natural languages <ref type="bibr">(Nickel &amp; Kiela, 2017)</ref>, and complex tabular data such as single-cell sequencing <ref type="bibr">(Klimovskaia et al., 2020)</ref>.</p><p>On the other hand, learning and optimization on hyperbolic spaces are typically more involved than that on Euclidean spaces. Problems that are convex in Euclidean spaces become constrained non-convex problems in hyperbolic spaces. The hyperbolic Support Vector Machine (HSVM), as explored in recent studies <ref type="bibr">Cho et al. (2019)</ref>; <ref type="bibr">Chien et al. (2021)</ref>, exemplifies such challenges by presenting as a non-convex constrained programming problem that has been solved predominantly based on projected gradient descent. Attempts have been made to alleviate its non-convex nature through reparametrization <ref type="bibr">(Mishne et al., 2023)</ref> or developing a hyperbolic perceptron algorithm that converges to a separator with finetuning using adversarial samples to approximate the large-margin solution <ref type="bibr">(Weber et al., 2020)</ref>. To our best knowledge, these attempts are 2020), and medical imaging <ref type="bibr">(Wang &amp; Singer, 2013)</ref>. Some results on the tightness of SDP have been analyzed on a per-problem basis <ref type="bibr">(Bandeira et al., 2017;</ref><ref type="bibr">Brynte et al., 2022;</ref><ref type="bibr">Zhang, 2020)</ref>. On the other hand, moment-sum-of-squares relaxation, originated from algebraic geometry <ref type="bibr">(Blekherman et al., 2012;</ref><ref type="bibr">Lasserre, 2001)</ref>, has been studied extensively from a theoretical perspective and has been applied for certifying positivity of functions in a bounded domain <ref type="bibr">(Henrion &amp; Lasserre, 2005)</ref>. Synthesizing the work done in the control and algebraic geometry literature and geometric machine learning works is under-explored.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Convex Relaxation Techniques for Hyperbolic SVMs</head><p>In this section, we first introduce fundamentals on hyperbolic spaces and the original formulation of the hyperbolic Support Vector Machine (HSVM) due to <ref type="bibr">Cho et al. (2019)</ref>. Next, we present two relaxations techniques, the semidefinite relaxation and the moment-sum-of-squares relaxation, that can be solved efficiently with convergence guarantees. Our discussions center on the Lorentz manifold as the choice of hyperbolic space, since it has been shown in <ref type="bibr">Mishne et al. (2023)</ref> that the Lorentz formulation o!ers greater numerical advantages in optimization.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Preliminaries</head><p>Hyperbolic Space (Lorentz Manifold): define Minkowski product of two vectors x, y &#8594; R d+1 as x &#8593; y = x 0 y 0 &#8595; d i=1 x i y i . A d-dimensional hyperbolic space (Lorentz formulation) is a submanifold embedded in R d+1 defined by,</p><p>Tangent Space: a tangent space to a manifold at a given point x &#8594; H d is the local linear subspace approximation to the manifold, denoted T x H d . In this case the tangent space is a Euclidean vector space of dimension d written as</p><p>Exponential &amp; Logarithmic Map: the exponential map exp x (.) : T x H d &#8596; H d is a transformation that sends vectors in the tangent space to the manifold. The logarithmic map log x (.) :</p><p>Figure 1: Straight line (red) on Lorentz manifold H 2 as the intersection between a hyperplane and the manifold, presented similarly in <ref type="bibr">Cho et al. (2019)</ref>.</p><p>Exponential and logarithmic maps serve as bridges between Euclidean and hyperbolic spaces, enabling the transfer of notion, such as distances and probability distributions, between these spaces. One way is to consider Euclidean features as residing within the tangent space of the hyperbolic manifold's origin.</p><p>From this standpoint, distributions on hyperbolic space can be obtained through exp 0 .</p><p>Hyperbolic Decision Boundary: straight lines in the hyperbolic space are intersections between d-dimensional hyperplanes passing through the origin and the manifold H d . Suppose w &#8594; R d+1 is the normal direction of the plane, then the plane and hyperbolic manifold intersect if and only if w&#8593;w &lt; 0.</p><p>From this viewpoint, each straight line in the hyperbolic space can be parameterized by w and can be considered a linear separator for hyperbolic embeddings. Hence, we can define a decision function h w <ref type="bibr">(.)</ref>, by the Minkowski product of the feature with the decision plane, as the following,</p><p>where w &#8593; = [&#8595;w 0 , w 1 , ..., w d ]. A visualization is presented in Figure <ref type="figure">1</ref>.</p><p>Stereographic Projection: we visualize H 2 by projecting Lorentz features isometrically to the Poincar&#233; space B d . Denote Lorentz features as x = [x 0 , x 1 , ..., x d ], then its projection is given by x = [ x1 1+x0 , ...,</p><p>Decision boundaries on the Lorentz manifold are mapped to arcs in the Poincar&#233; space. The proof is deferred to Appendix A.2. <ref type="bibr">Cho et al. (2019)</ref> proposed the hyperbolic support vector machine which finds a max-margin separator where margin is defined as the hyperbolic point to line distance. We demonstrate our results in a binary classification setting. Extension to multi-class classification is straightforward using Platt-scaling <ref type="bibr">(Platt et al., 1999)</ref> in the one-vs-rest scheme or majority voting in one-vs-one setting.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Original Formulation of the HSVM</head><p>Suppose we are given {(x i , y i ) :</p><p>The hard-margin HSVM is formulated as,</p><p>whereas the soft-margin version allows misclassification using</p><p>where G &#8594; R (d+1)&#8596;(d+1) is a diagonal matrix with diagonal elements diag(G) = [&#8595;1, 1, 1, ..., 1] (i.e. all ones but the first being -1), to represent the Minkowski product in a Euclidean matrix-vector product manner and is the source of indefiniteness of the problem. In the soft-margin case, the hyperparameter C &#8621; 0 controls the strength of penalizing misclassification. This penalty scales with hyperbolic distances, defined by l(z) = max(0, arcsinh(1) &#8595; arcsinh(z)).</p><p>As C approaches infinity, we recover the hard-margin formulation from the soft-margin one. In the rest of the paper we focus on analyzing relaxations to the soft-margin formulation in Equation ( <ref type="formula">6</ref>) as these relaxations can be applied to both hyperbolic-linearly separable or unseparable data.</p><p>To solve the problem e"ciently, we have two observations that lead to two adjustments in our approach. Firstly, although the constraint involving w is initially posited as a strict inequality, practical considerations allow for a relaxation. Specifically, when equality is achieved, w T Gw = 0, the separator is not on the manifold and assigns the same label to all data samples. However, with su"cient samples for each class in the training set and an appropriate regularization constant C, the solver is unlikely to default to such a trivial solution. Therefore, we may substitute the strict inequality with a non-strict one during implementation. Secondly, the penalization function, l, is not a polynomial. Although projected gradient descent is able to tackle non-polynomial terms in the loss function, solvers typically only accommodate constraints and objectives expressed as polynomials. We thus take a Taylor expansion of the arcsinh term to the first order so that every term in the formulation is a polynomial. This also helps with constructing our semidefinite and moment-sum-of-squares relaxations later on, which is presented in Appendix A.1 in detail. The new formulation of the soft-margin HSVM outlined in Equation ( <ref type="formula">6</ref>) is then given by,</p><p>where &#969; i for i &#8594; [n] are the slack variables. More specifically, given a sample (x i , y i ), if &#969; i = 0, the sample has been classified correctly with a large margin; if &#969; i &#8594; (0, 1 &#8599; 2 ], the sample falls into the right region but with a small hyperbolic margin; and if &#969; i &gt; 1 &#8599; 2 , the sample sits in the wrong side of the separator. We defer a detailed derivation of Equation ( <ref type="formula">7</ref>) to Appendix A.1 and its extension to curvatures other than &#8595;1 in Appendix A.3.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">Semidefinite Formulation</head><p>Note that Equation ( <ref type="formula">7</ref>) is a non-convex quadratically-constrained quadratic programming (QCQP) problem, we can apply a semidefinite relaxation (SDP) <ref type="bibr">(Shor, 1987)</ref>. The SDP formulation is given by</p><p>where decision variables are highlighted in bold and that the last constraint stipulates the concatenated matrix being positive semidefinite, which is equivalent to W &#8595; ww T &#8658; 0 by Schur's complement lemma. In this SDP relaxation, all constraints and the objective become linear in (W , w, &#969;), which could be easily solved. Note that if additionally we mandate W to be rank 1, then this formulation would be equivalent to Equation (7) or otherwise a relaxation. Moreover, it is important to note that this SDP does not directly yield decision boundaries. Instead, we need to extract w &#8600; from the solutions (W , w, &#969;) obtained from Equation (8). A detailed discussion of the extraction methods is deferred to Appendix B.1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4">Moment-Sum-of-Squares Relaxation</head><p>The SDP relaxation in Equation (8) may not be tight, particularly when the resulting W has a rank much larger than 1. Indeed, we often find W to be full-rank empirically. In such cases, moment-sum-ofsquares relaxation may be beneficial. Specifically, it can certifiably find the global optima, provided that the solution exhibits a special structure, known as the flat-extension property <ref type="bibr">(Curto &amp; Fialkow, 2005;</ref><ref type="bibr">Henrion &amp; Lasserre, 2005)</ref>.</p><p>We begin by introducing some necessary notions, with a more comprehensive introduction available in Appendix C. We define the relaxation order as &#949; &#8621; 1 and our decision variables as q = (w, &#969;) &#8594; R n+d+1 . Our objective, p(q), is a polynomial of degree 2&#949; with input q, where its coe"cient is defined such that p(q) = 1 2 w T Gw+C n i=1 &#969; i , thus matching the original objective. Hence, the polynomial p(&#8226;) has s(m, 2&#949;) := m+2&#949; 2&#949; number of coe"cients, where m = n + d + 1 is the dimension of decision variables. Additionally, we define z &#8594; R s (m,2&#949;) as the Truncated Multi-Sequence (TMS) of degree 2&#949;, and we denote a linear functional f associated with this sequence as</p><p>which is the inner product between the coe"cients of polynomial p and the vector or real numbers z. The vector of monomials up to degree &#949; generated by q is denoted as <ref type="bibr">[q]</ref> &#949; . With all these notions established, we can then define the moment matrix of &#949;-th degree, M &#949; [z], and localizing matrix of &#949;-th degree for polynomial g, L &#949;,g <ref type="bibr">[z]</ref>, as the followings,</p><p>where s is the max degree such that 2s + deg(g) &#8619; 2&#949;, [q] &#949; [q] T &#949; is a matrix of polynomials with size s(m, &#949;) by s(m, &#949;), and all the inner products are applied element-wise above. For example, if n = 1 and d = 2 (i.e. 1 data sample from a 2-dimensional hyperbolic space), the degree-2 monomials generated by q = (w 0 , w 1 , w 2 , &#969; 1 ) are</p><p>With all these definitions established, we can present the moment-sum-of-squares relaxation <ref type="bibr">(Nie, 2023)</ref> to the HSVM problem, outlined in Equation ( <ref type="formula">7</ref>), as (Moment) min z&#8595;R s(m,2&#969;)   &#8657;vec(p), z&#8659; .</p><p>Note that g(q) &#8621; 0, as previously defined, serves as constraints in the original formulation. Additionally, when forming the moment matrix, the degree of generated monomials is s = &#949; &#8595; 1, since all constraints in Equation ( <ref type="formula">7</ref>) has maximum degree 1. Consequently, Equation ( <ref type="formula">13</ref>) is a convex programming and can be implemented as a standard SDP problem using mainstream solvers. We further emphasize that by progressively increasing the relaxation order &#949;, we can find increasingly better solutions theoretically, as suggested by Lasserre (2018). However, moment-sum-of-squares relaxation does not scale with the data size due to the combinatorial factors in the dimension of truncated multi-sequence z, leading to prohibitively slow runtimes and excessive memory consumption. To address this issue, we exploit the sparsity pattern inherent in this problem: many generated monomial terms do not appear in the objective or constraints. For instance, there is no cross-terms among the slack variables, such as &#969; i &#969; j for i &#8660; = j &#8594; [n]. Specifically, in this problem, we observe a star-shaped sparsity structure, as ilustrated in Figure <ref type="figure">2</ref>. We observe that, by defining sparsity groups as q (i) = (w, &#969; i ), two nice structural properties can be found: first, the objective function involves all the sparsity groups, {q (i)  } n i=1 and can be decomposed as sum of polynomials p (i) , which involves only q (i) and thus has a smaller number of coe"cients s(m &#8593; , 2&#949;), where m &#8593; = d + 2. Second, each constraint is exclusively associated with a single group q (i) for a specific i. For the remaining constraint, w T Gw, we could assign it to group i = 1 without loss of generality. Hence, by leveraging this sparsity property, we can reformulate the moment-sum-of-squares relaxation equivalently into its sparse version,</p><p>where B is an index set of the moment matrix to entries generated by w along, ensuring that each moment matrix with overlapping regions share the same values as required. We refer the last constraint as the sparsebinding constraint. The nice thing about Equation ( <ref type="formula">14</ref>) is that it is equivalent to Equation ( <ref type="formula">13</ref>) and has a fewer number of decision variables.</p><p>Unfortunately, our solution empirically does not satisfy the flat-extension property and we cannot not certify global optimality. Nonetheless, in practice, it achieves significant performance improvements in selected datasets over both projected gradient descent and the SDP-relaxed formulation. Similarly, this formulation does not directly yield decision boundaries and we defer discussions on the extraction methods to Appendix B.2.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Experiments</head><p>We validate the performances of semidefinite relaxation (SDP) and sparse moment-sum-of-squares relaxations (Moment) by comparing various metrics with that of projected gradient descent (PGD) on a combination of synthetic and real datasets. The PGD implementation follows from adapting the MATLAB code in Cho et al. (2019), with learning rate 0.001 and 2000 epochs for synthetic and 4000 epochs for real dataset and warm-started with a Euclidean SVM solution. Datasets. For synthetic datasets, we construct Gaussian and tree embedding datasets following Cho et al. (2019); Mishne et al. (2023); Weber et al. (2020). Regarding real datasets, our experiments include two machine learning benchmark datasets, CIFAR-10 Krizhevsky et al. (2009) and Fashion-MNIST Xiao et al. <ref type="bibr">(2017)</ref> with their hyperbolic embeddings obtained through standard hyperbolic embedding procedure <ref type="bibr">(Chien et al., 2021;</ref><ref type="bibr">Khrulkov et al., 2020;</ref><ref type="bibr">Klimovskaia et al., 2020)</ref> to assess image classification performance. Additionally, we incorporate three graph embedding datasets, such as football, karate, and polbooks obtained from <ref type="bibr">Chien et al. (2021)</ref>, to evaluate the e!ectiveness of our methods on graph-structured data. We also explore cell embedding datasets, including Paul Myeloid Progenitors developmental dataset <ref type="bibr">(Paul et al., 2015)</ref>, Olsson Single-Cell RNA sequencing dataset <ref type="bibr">(Olsson et al., 2016)</ref>, Krumsiek Simulated Myeloid Progenitors dataset <ref type="bibr">(Krumsiek et al., 2011)</ref>, and Moignard blood cell developmental trace dataset from single-cell gene expression <ref type="bibr">(Moignard et al., 2015)</ref>, where the inherent geometry structures well fit into our methods.</p><p>We emphasize that all features are on the Lorentz manifold, but visualized in Poincar&#233; manifold through stereographic projection if the dimension is 2.</p><p>Evaluation Metrics. The primary metrics for assessing model performance are average training and testing loss, accuracy, and weighted F1 score under a stratified 5-fold train-test split scheme. Furthermore, to assess the tightness of the relaxations, we examine the relative suboptimality gap, defined as</p><p>where f &#8600; is the unknown optimal objective value, p &#8600; is the objective value of the relaxed formulation, and f is the objective associated to the max-margin solution recovered from the relaxed model. Clearly p &#8600; &#8619; f &#8600; &#8619; f , so if &#977; &#8598; 0, we can certify the exactness of the relaxed model.</p><p>Implementations Details. We use MOSEK (ApS, 2022) in Python as our optimization solver without any intermediate parser, since directly interacting with solvers save substantial runtime in parsing the problem.</p><p>MOSEK uses interior point method to update parameters inside the feasible region without projections. All experiments are run and timed on a machine with 8 Intel Broadwell/Ice Lake CPUs and 40GB of memory.</p><p>Results over multiple random seeds have been gathered and reported.</p><p>We first present the results on synthetic Gaussian and tree embedding datasets in Section 4.1, followed by results on various real datasets in Section 4.2.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Synthetic Dataset</head><p>Synthetic Gaussian. To generate a Gaussian dataset on H d , we first generate Euclidean features in R d and lift to hyperbolic space through exponential map at the origin, exp 0 , as outlined in Equation (3). We adjust the number of classes K &#8594; {2, 3, 5} and the variance of the isotropic Gaussian s &#8594; {0.4, 0.6, 0.8, 1.0}.</p><p>Published in Transactions on Machine Learning Research (04/2025) Three Gaussian embeddings in d = 2 are selected and visualized in Figure <ref type="figure">3</ref> and performances with C = 10 for the three dataset are summarized in Table <ref type="table">1</ref>.</p><p>In general, we observe a small gain in average test accuracy and weighted F1 score from SDP and Moment relative to PGD. Notably, we observe that Moment often shows more consistent improvements compared to SDP, across most of the configurations. In addition, Moment gives smaller optimality gaps &#977; than SDP. This matches our expectation that Moment is tighter than the SDP.</p><p>Although in some case, for example when K = 5, Moment achieves significantly smaller losses compared to both PGD and SDP, it is generally not the case. We emphasize that these losses are not direct measurements of the max-margin hyperbolic separators' generalizability; rather, they are combinations of margin maximization and penalization for misclassification that scales with C. Hence, the observation that the performance in test accuracy and weighted F1 score is better, even though the loss computed using extracted solutions from SDP and Moment is sometimes higher than that from PGD, might be due to the complicated loss landscape. More specifically, the observed increases in loss can be attributed to the intricacies of the landscape rather than the e!ectiveness of the optimization methods. Based on the accuracy and F1 score results, empirically SDP and Moment methods identify solutions that generalize better than those obtained by running gradient descent alone. We provide a more detailed analysis on the e!ect of hyperparameters in Appendix E.2 and runtime in Table <ref type="table">5</ref>. Decision boundary for Gaussian 1 is visualized in Figure <ref type="figure">5</ref> as an example. Synthetic Tree Embedding. As hyperbolic spaces are good for embedding trees, we generate random tree graphs and embed them to H 2 following Mishne et al. ( <ref type="formula">2023</ref>). Specifically, we label nodes as positive if they are children of a specified node and negative otherwise. Our models are then evaluated for subtree classification, aiming to identify a boundary that includes all the children nodes within the same subtree.</p><p>Such task has various practical applications. For example, if the tree represents a set of tokens, the decision boundary can highlight semantic regions in the hyperbolic space that correspond to the subtrees of the data graph. We emphasize that a common feature in such subtree classification task is data imbalance, which usually lead to poor generalizability. Hence, we aim to use this task to assess our methods' performances under this challenging setting. Three embeddings are selected and visualized in Figure <ref type="figure">3</ref> and performance is summarized in Table <ref type="table">1</ref>. The runtime of the selected trees can be found in Table <ref type="table">5</ref>. Decision boundary of tree 2 is visualized in Figure <ref type="figure">6</ref>.</p><p>Similar to the results of synthetic Gaussian datsets, we observe better performance from SDP and Moment compared to PGD, and due to data imbalance that gradient-based methods typically struggle with, we have a larger gain in weighted F1 score in this case. In addition, we observe large optimality gaps for SDP but very tight gap for Moment, certifying the optimality of Moment even when class-imbalance is severe. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Real Dataset</head><p>Real datasets consist of embedding of various sizes and number of classes in H 2 , visualized in Figure <ref type="figure">4</ref>. We first report performances of three models using one-vs-rest training scheme, described in Appendix D, in Tables <ref type="table">6 to 8</ref> for C &#8594; {0.1, 1.0, 10} respectively, and report aggregated performances, by selecting the one with the highest average test weighted F1 score, in Table <ref type="table">2</ref>. In general, we observe that Moment achieves the best test accuracy and weighted F1 score, particularly in biological datasets with clear hyperbolic structures, and have smaller optimality gaps compared to SDP relaxation, for nearly all selected data. However, it is important to note that the optimality gaps of these two methods remain distant from zero, suggesting that these relaxations are not tight enough for these datasets. Nevertheless, both relaxed models significantly outperform projected gradient descent (PGD) by a wide margin. Furthermore, our observations reveal that in the one-vs-rest training scheme, PGD shows considerable sensitivity to the choice of the regularization parameter C from Tables <ref type="table">6 to 8</ref>, whereas SDP and Moment are less a!ected, demonstrating better stability and consistency across di!erent C's.</p><p>One critical drawback of semidefinite and sparse moment-sum-of-squares relaxation is that they do not scale e"ciently with an increase in data samples, resulting in excessive consumption of time and memory, for example, CIFAR10 and Fashion-MNIST using a one-vs-rest training scheme. The workaround is one-vsone training scheme, where we train for O(K 2 ) number of classifiers among data from each pair of classes and make final prediction decision using majority voting. We summarize the performance in Table <ref type="table">3</ref> by aggregating results for di!erent C in Tables 9 to 11 as in the one-vs-rest case. We observe that in one-vsone training, the improvement in general from the relaxation is not as significant as it in the one-vs-rest scheme, and SDP relaxation now gives the best performance in average test accuracy and test F1, albeit with large optimality gaps. Note that in the one-vs-one scheme, PGD is more consistent across di!erent C's, potentially because each subproblem-binary classifying one class against another-contains less data compared to one-vs-rest, making it easier to identify solutions.</p><p>A more detailed analysis on the e!ect of regularization C and runtime comparisons are provided in Appendix E.3 and Table <ref type="table">12</ref>. Table 2: Real dataset 5-fold test accuracy, F1, and optimality gap with one-vs-rest training. Best metrics based on weighted F1 is reported here aggregating from Tables 6 to 8. data test acc test f1 (micro) &#977; PGD SDP Moment PGD SDP Moment SDP Moment football 40.87% &#177; 4.43% 32.17% &#177; 4.43% 37.39% &#177; 4.43% 0.29 &#177; 0.03 0.23 &#177; 0.04 0.26 &#177; 0.03 0.3430 0.0999 karate 50.00% &#177; 6.39% 50.00% &#177; 6.39% 50.00% &#177; 6.39% 0.66 &#177; 0.06 0.66 &#177; 0.06 0.66 &#177; 0.06 0.9155 0.0818 polbooks 84.76% &#177; 1.90% 84.76% &#177; 1.90% 84.76% &#177; 1.90% 0.79 &#177; 0.02 0.80 &#177; 0.03 0.80 &#177; 0.03 0.1711 0.0991 krumsiek 81.78% &#177; 2.66% 82.56% &#177; 2.01% 86.47% &#177; 0.64% 0.79 &#177; 0.03 0.80 &#177; 0.03 0.84 &#177; 0.00 0.7519 0.0921 moignard 63.37% &#177; 0.70% 63.68% &#177; 1.75% 63.78% &#177; 1.57% 0.62 &#177; 0.01 0.60 &#177; 0.02 0.60 &#177; 0.02 0.0325 0.0396 olsson 74.27% &#177; 5.15% 79.63% &#177; 3.54% 81.20% &#177; 3.68% 0.69 &#177; 0.07 0.77 &#177; 0.04 0.79 &#177; 0.04 0.4118 0.0976 paul 54.85% &#177; 1.26% 53.72% &#177; 2.42% 64.71% &#177; 2.36% 0.48 &#177; 0.02 0.47 &#177; 0.03 0.61 &#177; 0.02 0.4477 0.0861 myeloidprogenitors 69.34% &#177; 3.81% 70.12% &#177; 3.28% 76.84% &#177; 2.04% 0.66 &#177; 0.05 0.67 &#177; 0.04 0.75 &#177; 0.02 0.6503 0.1074</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Limitations</head><p>Although our proposed SDP and sparse moment relaxation methods achieve generally better classification performance compared to the PGD baseline in the one-vs-rest setting -and slightly less so in the one-vs-one setting -the computational cost is significant due to their longer runtimes, as previously mentioned. One naturally suspects that given equivalent computational resources (including time and memory), PGD might achieve performance comparable to the sparse moment relaxation methods. This scenario becomes especially plausible considering the large hyperparameter space available for PGD: a more aggressive grid search on learning rates, total number of epochs, regularization parameters, and initializations could potentially yield results that rival or even surpass those of the moment-based method.</p><p>To explore this further, we provide an additional comparison between our methods and PGD under approximately equal computational time constraints using the one-vs-rest scheme. Specifically, according to Table <ref type="table">5</ref>, the average runtime per training fold for the Moment method is approximately two orders of magnitude larger than that for PGD. Therefore, we randomly generated 100 di!erent initializations for PGD, with each initialization vector drawn uniformly from the unit sphere subject to the condition w T Gw &gt; 0, and report the best performance among these random initializations in Table <ref type="table">4</ref> below. It's worth noting that for PGD, we follow <ref type="bibr">Cho et al. (2019)</ref>, where the initialization w is determined based on the solution w &#8593; of a soft-margin SVM in the ambient Euclidean space of the Lorentz model. This choice typically ensures better initialization, contributing to the stability of optimization, especially when numerous local optima may exist. Consequently, we observed that the best PGD performance among 100 di!erent random initializations do not significantly improve its performance in this regime. Nevertheless, we do not exclude the possibility that more strategic hyperparameter tuning under similar computational constraints might yield improved PGD performance</p><p>Based on these insights, we o!er practical recommendations for method selection tailored to dataset characteristics and scale. For small-scale, low-dimensional hyperbolic datasets, particularly in 2D, where a hyperparameter-free solution is desired, the SDP and sparse moment relaxation methods clearly excel. Additionally, we advocate exhibiting significant class overlap. For instance, arguably Gaussian 1 and 3 have greater overlap compared to Gaussian 2 (Figure <ref type="figure">3</ref>), leading to a notable performance drop in the PGD method. We suspect that more mixing likely leads PGD to poor local minima, although this conjecture warrants further quantitative investigation. For larger dataset such as MNIST or comparable modern machine learning benchmarks, in which generalization to unseen data takes priority over strict global optimality, we recommend PGD due to its significantly lower computational demands compared to our relaxed proposals.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Discussions</head><p>In this paper, we provide a stronger classification performance on hyperbolic support vector machine using semidefinite and sparse moment-sum-of-squares relaxations on the hyperbolic support vector machine problem compared to projected gradient descent. In the one-vs-rest settings, we observe that they achieve better classification accuracy and F1 score than the existing PGD approach on both simulated and real dataset. Additionally, we discover small optimality gaps for moment-sum-of-squares relaxation, which approximately certifies global optimality of the moment solutions.</p><p>Perhaps the most critical drawback of SDP and sparse moment-sum-of-squares relaxations is their limited scalability. The runtime and memory consumption grows quickly with data size and dimension. We attempted dividing this challenge into sub-tasks, such as using one-vs-one training scheme, to cut overall runtime and memory, but observe a smaller performance advantage over the PGD baseline as they seem to perform better in this alternative setting. Also, if given the same computational resources as moment-sum-Published in Transactions on Machine Learning Research (04/2025) of-squares, we suspect that PGD may be able to perform on par with the moment-relaxation method using a rather greedy hyperparameter hunt such as specifically tunning the learning rates and regularization factors.</p><p>But it is not completely without hope. For relatively large datasets, we could develop more heuristic approaches for solving our relaxed optimization problems to achieve runtime comparable with projected gradient descent. Combining the GD dynamic with interior point iterates in a problem-dependent manner could be useful <ref type="bibr">Yang et al. (2023)</ref>.</p><p>It remains to show if we have performance gain in either runtime or optimality by going through the dual of the problem or by designing feature kernels that map hyperbolic features to another set of hyperbolic features <ref type="bibr">(Lensink et al., 2022)</ref>. Nonetheless, we believe that our work introduces a valuable perspectiveapplying SDP and Moment relaxations -to the geometric machine learning community.</p><p>By introducing the slack variable &#969; i as the penalty term in Equation ( <ref type="formula">6</ref>), we can rewrite Equation ( <ref type="formula">6</ref>) into</p><p>then by rearranging terms and taking sinh on both sides, it follows that</p><p>where the last equality follows from hyperbolic trig identities. To make it ready for moment-sum-of-squares relaxation, we turn the function into a polynomial constraint by taking the taylor expansion up to some odd orders (we need monotonic decreasing approximation to g(.), so we need odd orders).</p><p>If taking up to the first order, we relax the problem into Equation ( <ref type="formula">7</ref>)<ref type="foot">foot_0</ref> . If taking up to the third order, we relax the original problem to,</p><p>It's worth mentioning that we expect the lower bound gets tighter as we increase the order of Taylor expansion. However, once we apply the third order Taylor expansion, the constraint is no longer quadratic, eliminating the possibility of deriving a semidefinite relaxation. Instead, we must rely on moment-sum-ofsquares relaxation, potentially requiring a higher order of relaxation, which may be highly time-costly.</p><p>It is also worth noting that such a Taylor expansion is consistent with the arcsinh when we allow the curvature of the hyperbolic space to vary. Specifically, one can show that as the curvature approaches 0 (i.e. as the hyperbolic space tends to Euclidean), both the arcsinh formulation in Equation ( <ref type="formula">6</ref>) and Equation ( <ref type="formula">7</ref>) formulation recovers the standard Euclidean SVM problem. This further justifies the naturalness of taking such a Taylor expansion.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.2 Stereographic projection maps a straight line on H 2 to an arc on Poincar&#233; ball B 2</head><p>Suppose w = [w 0 , w 1 , w 2 ] is a valid hyperbolic decision boundary (i.e. w &#8593; w &lt; 0), and suppose a point on the Lorentz straight line,</p><p>If w &gt; 0, we further have</p><p>i.e. the straight line on Poincar&#233; space is an arc on a circle centered at ( w1 w0 , w2 w0 ) with radius</p><p>One could show that if w 0 = 0, then it is the "arc" of a infinitely large circle, or just a Euclidean straight line passing through the origin with normal vector (w 1 , w 2 ). With this simplification, one could plot the decision boundary on the Poincar&#233; ball easily.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.3 An extension to curvature other than -1</head><p>Throughout the paper, we assume that the hyperbolic space has a constant negative curvature &#8595;1 without loss of generality. Our analysis and relaxation easily extend to curvature other than &#8595;1.</p><p>Define c as the negative curvature. That is, all the discussions in the main text are about c = 1. To derive the prooblem formulation and associated relaxation, we can follow Table <ref type="table">1</ref> in <ref type="bibr">Skopek et al. (2019)</ref> and retrace the proof in the supplemental material in Chien et al. ( <ref type="formula">2021</ref>), then we see that the decision function, the objective, and many constraints stay the same except the following slack variable constraint in Equation ( <ref type="formula">16</ref>):</p><p>and with some rearrangements, we have</p><p>whose Taylor expansion around &#969; i = 0 gives</p><p>Essentially, this is nothing but adding a curvature factor c into the problem formulation, so that solving the SVM problem in other curvature has no additional theoretical challenges. The rest follows likewise as in Appendix A.1.</p><p>The intuition behind why only this single constraint is a!ected can be made as follows: SVM cares about direction of the decision boundary, and if the optimal direction is found for an embedding in one c, the "same" direction is also optimal for the same embedding stretched to other C; but since the slack variables are associated to distance measures, they need to be scaled accordingly.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B Solution Extraction in Relaxed Formulation</head><p>In this section, we detail the heuristic methods for extracting the linear separator w from the solution of the relaxed model.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B.1 Semidefinite Relaxation</head><p>For SDP, we initially construct a set of candidates w derived from (W , w, &#969;). Then, among candidates in this set, we choose the one that minimizes the loss function in Equation ( <ref type="formula">7</ref>).</p><p>The candidates, denoted as w's, include 1. Scaled top eigendirection: w = &#8600; &#982; max u max , where &#982; max and u max are the largest eigenvalue and the eigenvector associated with the largest eigenvaue; 2. Gaussian randomizations: sample w &#8601; N (w, W &#8595; ww T )<ref type="foot">foot_2</ref> . We empirically generate 10 samples from this distributions;</p><p>3. Scaled matrix columns: if it were the case that W = ww T , then each column of W contains w scaled by some entry within itself. Using columns of W divided by the corresponding entry of w (e.g. divide first column by w 0 , second column by w 1 , and so on), we get d + 1 many candidates w = w's;</p><p>4. Nominal solution: w = w, i.e. include w itself as a candidate.</p><p>Typically the top eigendirection is selected as the best candidate.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B.2 Moment-Sum-of-Squares Relaxation</head><p>In moment-sum-of-squares relaxation, the decision variable is the truncated multi-sequence z, but we could decode the solution from the moment matrix M &#949; [z] it generates. We are able to extract the part in TMS that corresponds to w = [w 0 , w 1 , ..., w d ], by reading o! these entries from the moment matrix, which is already a good enough solution.</p><p>For example, in d = 2, &#949; = 2, one of the sparcity group, say q (1) consists of [w, &#969; 1 ], which has monomials generated in Equation ( <ref type="formula">12</ref>). Define &#8733; as a binary operator between two vectors of monomials that generates another vector with monomials given by the unique combinations of the product into vectors, such that</p><p>Then, monomials generated can be more succinctly expressed as</p><p>and the moment matrix can be expressed in block form as</p><p>Note that the value for w (the red part) is contained close to the top left corner of the moment matrix, which provides us good linear separator w in this problem.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C On Moment Sum-of-Squares Relaxation Hierarchy</head><p>In this section, we provide necessary background on moment-sum-of-squares hierarchy. We start by considering a general Polynomial Optimization Problem (POP) and introduce the sparse version. This section borrows substantially from the course note<ref type="foot">foot_3</ref> .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C.1 Polynomial Optimization and Dual Cones</head><p>Polynomial optimization problem (POP) in the most generic form can be presented as</p><p>where p(x) is our polynomial objective and h i (x), g i (x) are our polynomial equality and inequality constraints respectively. However, in general, solving such POP to global optimality is <ref type="bibr">NP-hard (Lasserre, 2001;</ref><ref type="bibr">Nie, 2023)</ref>. To address this challenge, we leverage methods from algebraic geometry <ref type="bibr">(Blekherman et al., 2012;</ref><ref type="bibr">Nie, 2023)</ref>, allowing us to approximate global solutions using convex optimization methods.</p><p>To start with, we define sum-of-squares (SOS) polynomials as polynomials that could be expressed as a sum of squares of some other polynomials, and we define ![x] to be the collection of SOS polynomials.</p><p>More formally, we have</p><p>where R[x] denotes the polynomial ring over R.</p><p>Next, we recall the definitions of quadratic module and its dual. Given a set of polynomials g = [g 1 , g 2 , ..., g l ], the quadratic module generated by g is defined as</p><p>and its degree 2d-truncation is defined as,</p><p>where g 0 = 1. It has been shown that the dual cone of Qmodule[g] 2d is exactly the convex cone defined by the PSD conditions of the localizing matrices,</p><p>refers to the d th order localizing matrix of g i generated by z, and f z (g i ) = &#8657;f z , g i &#8659; = &#8657;z, vec(g i )&#8659; refers to the linear functional associated with z applied on g i &#8594; R[x] 2d . It is worth mentioning that the application of the linear functional f z to the symmetric polynomial matrix g(x)</p><p>s is element-wise. Formally speaking, for all g &#8593; &#8594; Qmodule[g] 2d and for all g &#8594; M[g] 2d , we have &#8657;g &#8593; , g&#8659; &#8242; 0. Similarly, given a set of polynomials h = [h 1 , h 2 , ..., h m ], the ideal generated by h is defined as,</p><p>and its degree 2d-truncation is defined as,</p><p>where &#982; i 's are also called polynomial multipliers. Interestingly, it is shown that we can perfectly characterize the dual of the sum of ideal and quadratic module,</p><p>} is the convex cone defined by the PSD conditions of the localizing matrices.</p><p>With these notions setup, we can reformulate the POP above into the following SOS program for arbitrary &#949; &#8594; N as the relaxataion order,</p><p>whose optimal value produces a lower bound to p &#8600; , i.e. &#962; &#8600; &#949; &#9651; p &#8600; , and its dual problem of the SOS program above is, n,2d)   &#8657;f z , p&#8659; .</p><p>This pair of SOS programs is called the moment-sum-of-squares hierarchy first proposed in Lasserre <ref type="bibr">(2001)</ref>. It is particularly useful as it has been shown that</p><p>and {&#962; &#8600; &#949; } &#949; and {&#966;&#949; &#8600; } &#949; are two monotonically increasing sequences. In our work, we implement our SOS programs following the dual route.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C.2 Sparse Polynomial Optimization</head><p>In this section, we briefly discuss how sparse moment-sum-of-squares is formulated. Using the same sparsity pattern defined in Section 3 (i.e. q (i) = (w, &#969; i )), we first introduce the notion of correlated sparsity. Definition 1. Correlated Sparsity for an objective p &#8594; R[x] and associated set of constraints means 1. For any constraint g i (q), &#8656;i &#8594; [l], it only involves term in one sparsity group q (i)  for some i &#8594; [n]</p><p>2. The objective can be split into</p><p>3. The grouping satisfies the running intesection property (RIP), i.e. for all i &#8594; {1, 2, ..., n &#8595; 1}, we have</p><p>&#8771; q (s) , for some s &#8619; i</p><p>In our case, the first property is straightforward. For the second, we may define explicitly p i (q (i) ) = p i (w, &#969; i ) = 1 2n w T Gw + C&#969; i so that we get back the original objective after summation. The last property direct follows from the star-shaped structure, i.e. &#8656;i &#8594; {1, 2, ..., n &#8595; 1}, we indeed have &#824; i k=1 q (i) &#9661; q (i+1) = w &#8771; q (1) . Hence, our sparsity group indeed satisfies all three property and thus we have correlated sparsity in the problem.</p><p>With correlated sparsity and data regularity (Putinar's Positivestellentz outlined in Nie ( <ref type="formula">2023</ref>)), we are able to decompose the Qmodule generated by the entire set of decision variables into the Minkowski sum of Qmodules generated by each sparsity group of variables, e!ectively reducing the number of decision variables in the implementations. For a problem with only inequality constraints, which is our case for HSVM, the sparse POP for our problem reads as max &#962; ,</p><p>and we could derive its dual accordingly and present the SDP form for implementation in Equation ( <ref type="formula">14</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D Platt Scaling (Platt et al., 1999)</head><p>Platt scaling <ref type="bibr">(Platt et al., 1999)</ref> is a common way to calibrate binary predictions to probabilistic predictions in order to generalize binary classification to multiclass classification, which has been widely used along with SVM. The key idea is that once a separator has been trained, an additional logistic regression is fitted on scores of the predictions, which can be interpreted as the closeness to the decision boundary.</p><p>In the context of HSVM, suppose w &#8600; is the linear separator identified by the solver, then we find two scalars, A, B &#8594; R, with</p><p>where &#8593; refers to the Minkowski product defined in Equation ( <ref type="formula">1</ref>). The value of A and B are trained on the trained set using logistic regression with some additional empirical smoothing. For one-vs-rest training, we will then have K sets of (A, B) to train, and at the end we classify a sample to the class with the highest probability. See detailed implementation here <ref type="url">https://home.work.caltech.edu/ htlin/program/libsvm/doc/</ref>platt.py in LIBSVM.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E Detailed Experimental Results</head><p>This section documents the experiment details. The code base is adapted partly from LIBSVM<ref type="foot">foot_4</ref> with a BSD-3-Clause license for Platt scaling, hyplinear<ref type="foot">foot_5</ref> with an MIT license for PGD implementation, and stable-hyperbolic<ref type="foot">foot_6</ref> with an MIT license for hyperbolic related functions and obtaining tree embeddings. The data used is described in Section 4.</p><p>Our Python code also uses some common publicly available packages, including NumPy <ref type="bibr">(Harris et al., 2020)</ref> with a BSD license, Matplotlib <ref type="bibr">(Hunter, 2007)</ref> with a BSD license, Pandas (McKinney et al., 2010) under a BSD license, scikit-learn <ref type="bibr">(Pedregosa et al., 2011)</ref> with a BSD license, MOSEK (ApS, 2022) a closed-source commercial solver, and toml with an MIT license.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E.1 Visualizing Decision Boundaries</head><p>Here we visualize the decision boundary of for PGD, SDP relaxation and sparse moment-sum-of-squares relaxation (Moment) on one fold of the training to provide qualitative judgements.</p><p>We first visualize training on the first fold for Gaussian 1 dataset from Figure <ref type="figure">3</ref> in Figure <ref type="figure">5</ref>. We mark the train set with circles and test set with triangles, and color the decision boundary obtained by three methods with di!erent colors. In this case, note that SDP and Moment overlap and give identical decision boundary up to machine precision, but they are di!erent from the decision boundary of PGD method. This slight visual di!erence causes the performance di!erence displayed in Table <ref type="table">1</ref>.</p><p>We next visualize the decision boundary for tree 2 from Figure <ref type="figure">3</ref> in Figure <ref type="figure">6</ref>. Here the di!erence is dramatic: we visualize both the entire data in the left panel and the zoomed-in one on the right. We indeed observe that the decision boundary from moment-sum-of-squares relaxation have roughly equal distance from points to the grey class and to the green class, while SDP relaxation is suboptimal in that regard but still enclosing the entire grey region. PGD, however, converges to a very poor local minimum that has a very small radius enclosing no data and thus would simply classify all data sample to the same class, since all data falls to one side of the decision boundary. As commented in Section 4, data imbalance is to blame, in which case the final converged solution is very sensitive to the choice of initialization and other hyperparameters such as learning rate. This is in stark contrast with solving problems using the interior point method, where after implementing into MOSEK, we are essentially care-free. From this example, we see that empirically sparse moment-sum-of-squares relaxation finds linear separator of the best quality, particularly in cases where PGD is expected to fail.  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E.2 Synthetic Gaussian</head><p>To generate mixture of Gaussian in hyperbolic space, we first generate them in Euclidean space, with the center coordinates independently drawn from a standard normal distribution. K such centers are drawn for defining K di!erent classes. Then we sample isotropic Gaussian at respective center with scale s. Finally, we lift the generated Gaussian mixtures to hyperbolic spaces using exp 0 . For simplicity, we only present results for the extreme values: K &#8594; {2, 5}, s &#8594; {0.4, 1}, and C &#8594; {0.1, 10}.</p><p>For each method (PGD, SDP, Moment), we compute the train/test accuracy, weighted F1 score, and loss on each of the 5 folds of data for a specific (K, s, C) configuration. We then average these metrics across the 5 folds, for all methods and configurations. To illustrate the performance, we plot the improvements of the average metrics of the Moment and SDP methods compared to PGD as bar plots for 15 di!erent seeds.</p><p>Outliers beyond the interquartile range (Q1 and Q3) are excluded for clarity, and a zero horizontal line is marked for reference. Additionally, to compare the Moment and SDP methods, we compute the average optimality gaps similarly, defined in Equation ( <ref type="formula">15</ref>), and present them as bar plots. Our analysis begins by examining the train/test accuracy and weighted F1 score of the PGD, SDP, and Moment methods across various synthetic Gaussian configurations, as shown in Figures 7 to 10.</p><p>Across various configurations, we observe that both the Moment and SDP methods generally show improvements over PGD in terms of train and test accuracy as well as weighted F1 score. Notably, we observe that Moment method often shows more consistent improvements compared to SDP. This consistency is evident across di!erent values of (K, s, C), suggesting that the Moment method is more robust and provide more generalizable decision boundaries. Moreover, we observe that 1. for larger number of classes (i.e. larger K), the Moment method consistently and significantly outperforms both SDP and PGD, highlighting its capability to manage complex class structures e"ciently; and 2. for simpler datasets (with smaller scale s), both Moment and SDP methods generally outperform PGD, where the Moment method particularly shows a promising performance advantage over both PGD and SDP.</p><p>Next, we move to examine the train/test loss improvements compared to PGD and optimality gaps comparison across various configurations, shown in Figures 11 to 14. We observe that for K = 5, the Moment method achieves significantly smaller losses compared to both PGD and SDP, which aligns with our previous observations on accuracy and weighted F1 scores. However, for K = 2, the losses of the Moment and SDP methods are generally larger than PGD's. Nevertheless, it is important to note that these losses are not direct measurements of our optimization methods' quality; rather, they measure the quality of the extracted solutions. Therefore, a larger loss does not necessarily imply that our optimization methods are inferior to PGD, as the heuristic extraction methods might significantly impact the loss. Additionally, we observe that the optimality gaps of the Moment method are significantly smaller than those of the SDP method, suggesting that Moment provides better solutions. Interestingly, the optimality gaps of the Moment method also exhibit smaller variance compared to SDP, as indicated by the smaller boxes in the box plots, further supporting the consistency and robustness of the Moment method.  Lastly, we compare the computational e"ciency of methods, where we compute the average runtime to finish 1 fold of training for each model on synthetic dataset, shown in Table <ref type="table">5</ref>. We observe that sparse moment relaxation typically requires at least one order of magnitude runtime compared to other which to some extent limits the applicability of this method to large scale dataset.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E.3 Real Data</head><p>In this section we provide detailed performance breakdown by the choice of regularization C for both onevs-one and one-vs-rest scheme in Tables 6 to 11.  In one-vs-rest scheme, we observe that the Moment method consistently outperforms both PGD and SDP across almost all datasets and C in terms of accuracy and F1 scores. Notably, the optimality gaps, &#977;, for Moment are consistently lower than those for SDP, indicating that the Moment method's solution obatin a better gap, which underscore the e!ectiveness of the Moment method in datasets.  In one-vs-one scheme however, we observe that the SDP and Moment have comparative performances, both better than PGD. Nevertheless, the optimality gaps of SDP are still significantly larger than the Moment's, for almost all cases.</p><p>Similarly, we compare the average runtime to finish 1 fold of training for each model on these real datasets, shown in Table <ref type="table">12</ref>. We observe a similar trend: the sparse moment relaxation typically requires at least an order of magnitude more runtime compared to the other methods. </p><p>For the implementation in MOSEK, we linearize the l 1 norm term by introducing extra auxiliary variables, which we do not show here. The moment relaxation can be implemented likewise, since this is constraint-wise uncertainty and we preserve the same sparsity pattern so that the same sparse moment relaxation applies.</p><p>Remark 1. Since we take a Taylor approximation to first order, &#360;x also does not guarantee that all of its elements live strictly on the hyperbolic manifold H d . One could seek the second order approximation to the defining function, which make the robust criterion a quadratic form on the uncertainty parameter z. Remark 2. Equation (33) arises from a l &#8656; uncertainty set. We could of course generalize this analysis to other types of uncertainty sets such as l 2 uncertainty and ellipsoidal uncertainty, each with di!erent number of auxiliary variables introduced in their linearization.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>note that in(Cho et al.,  </p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_1"><p>2019), the authors use 1 &#8594; &#969; i instead of 1 &#8594; &#8593; 2&#969; i . We consider our formulation less sensitive to outliers than the former formulation.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_2"><p>a method mentioned in slide 14 of https://web.stanford.edu/class/ee364b/lectures/sdp-relax_slides.pdf</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_3"><p>Chapter 5 Moment Relaxation: https://hankyang.seas.harvard.edu/Semidefinite/Moment.html</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_4"><p>https://github.com/cjlin1/libsvm</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_5"><p>https://github.com/hhcho/hyplinear</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="6" xml:id="foot_6"><p>https://github.com/yangshengaa/stable-hyperbolic</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_7"><p>Published in Transactions on Machine Learning Research (04/2025) Figure 13: Train/test loss improvements compared to PGD and optimality gaps comparison across various C &#8594; {0.1, 10} for K = 5 and s = 0.4</p></note>
		</body>
		</text>
</TEI>
