Convex Relaxation for Solving Large-Margin Classifiers in Hyperbolic Space

Sheng Yang, Peihan Liu, Cengiz Pehlevan

Hyperbolic geometry has emerged as a powerful framework for representing hierarchical data, such as taxonomies, social networks, and biological lineages. While the geometry is mathematically elegant, optimizing classifiers within these spaces is notoriously difficult. A recent paper from researchers at Harvard University proposes a novel approach to move past the "hit-or-miss" nature of current hyperbolic classifiers by leveraging the power of convex relaxations.

The Hyperbolic SVM Challenge

In Euclidean space, Support Vector Machines (SVMs) are a well-understood problem because they are convex; any local optimum is guaranteed to be a global optimum. However, in hyperbolic space—specifically the Lorentz model—the mathematical landscape changes significantly. What was once a simple quadratic program becomes a constrained non-convex optimization problem.

Historically, the standard method for solving a Hyperbolic SVM (HSVM) has been Projected Gradient Descent (PGD). The primary drawback of PGD is its extreme sensitivity to initialization and hyperparameters. It frequently converges to poor local minima, particularly when dealing with imbalanced or highly overlapping datasets. The authors sought a more robust, principled method to identify the maximum-margin separator without relying on a fortunate starting guess.

Methodology: From Non-Convex to Convex

The researchers developed a three-step approach to "convexify" the HSVM problem:

  1. Polynomial Reformulation: The HSVM objective and constraints were rewritten into a polynomial format. Since the standard hyperbolic penalty function (arcsinh) is non-polynomial, a Taylor expansion was used for approximation, transforming the HSVM into a Polynomial Optimization Problem (POP).
  2. Semidefinite Relaxation (SDP): The authors initially applied a standard Shor relaxation. While this made the problem solvable, the resulting solutions were often not "tight" enough, meaning they remained significantly distant from the true global optimum.
  3. Sparse Moment-Sum-of-Squares (Moment): To achieve a tighter fit, they utilized the Lasserre hierarchy (Moment-SOS). While typically computationally prohibitive, the authors identified a unique "star-shaped sparsity" pattern within the problem structure.
The star-shaped sparsity pattern identified in the HSVM structure, where slack variables interact only with the global weight vector.

By exploiting this sparsity, where slack variables for each data point interact with the global weight vector but not with each other, they created a "Sparse-Moment" version that is computationally feasible for real-world datasets.

Experimental Validation

The authors validated their methods across a diverse array of synthetic and real-world 2D hyperbolic embeddings. These included Gaussian mixtures with varying overlaps and random tree graphs, where hyperbolic space is particularly effective at capturing structure.

Synthetic datasets used for validation, including Gaussian mixtures (a-c) and hierarchical tree structures (d-f).

Key datasets included:

  • Real-world Graphs: Social networks such as football, karate, and polbooks.
  • Biological Data: Single-cell RNA sequencing datasets (e.g., Olsson, Krumsiek) which exhibit natural hierarchical branching.
  • Computer Vision: Hyperbolic embeddings of CIFAR-10 and Fashion-MNIST.

Key Insights and Results

  • Certifying Optimality: Unlike gradient descent, which only provides a result, these relaxation methods allow for the calculation of an optimality gap ($\eta$). A gap near zero provides a mathematical certificate that the global optimum has been found.
  • Robustness to Imbalance: PGD often fails on imbalanced tree data, frequently collapsing to a single-class classification. In contrast, the Moment relaxation consistently identifies clean, balanced separators.
  • Superior Accuracy: The Sparse-Moment method outperformed PGD in test accuracy and F1 scores across nearly all datasets, especially in "one-vs-rest" multiclass scenarios.
  • Stability: The proposed methods were far less sensitive to the regularization parameter ($C$) than PGD, reducing the need for extensive grid searching.

Limitations and Future Work

The primary trade-off for this increased robustness is computational cost. While PGD is fast (seconds), the Sparse-Moment relaxation can take minutes to hours for larger datasets. Future work may involve developing heuristic solvers that "warm-start" from these relaxations, combining the speed of gradient descent with the global-reaching power of convex relaxations. Additionally, the authors proposed a "Robust HSVM" version to handle inherent data uncertainty.

Summary updated

BibTeX
@article{yang2025convex,
  author = {Sheng Yang and Peihan Liu and Cengiz Pehlevan},
  title = {{Convex Relaxation for Solving Large-Margin Classifiers in Hyperbolic Space}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2025},
}
Figure