Horospherical Decision Boundaries for Large Margin Classification in Hyperbolic Space

Xiran Fan, Chun-Hao Yang, Baba C. Vemuri

Overview

Classification in hyperbolic space is essential for hierarchical data, but existing methods rely on geodesic boundaries that lead to difficult, non-convex optimization. This paper introduces HoroSVM, a novel large-margin classifier that uses horospheres as decision boundaries. This shift transforms the task into a geodesically convex optimization problem, guaranteeing a globally optimal solution and superior performance on tree-like datasets.

The Challenge with Hyperbolic Classification

Hyperbolic space is the "gold standard" for representing hierarchical data, such as taxonomies or social networks. Its volume grows exponentially with its radius, perfectly mirroring how the number of nodes grows with the depth of a tree. However, building a simple "linear" classifier in this space is surprisingly difficult.

Most existing hyperbolic Support Vector Machines (SVMs) use geodesics—the hyperbolic equivalent of straight lines—as decision boundaries. While intuitive, this approach has two major flaws:

  1. Optimization Headaches: The resulting optimization problems are non-convex. Solvers often get stuck in local minima or fail to converge entirely.
  2. Geometric Mismatch: Geodesics do not always capture the natural clusters found in hierarchical embeddings, where subtrees often cluster near the boundary of the space.

Enter HoroSVM: Horospheres as Decision Boundaries

To resolve these issues, the authors propose using horospheres instead of geodesics. In the Poincaré ball model, a horosphere is a sphere that is internally tangent to the boundary of the space. You can think of them as the level sets of the Busemann function, which measures the "distance from infinity."

The key technical contributions of this approach include:

  • Point-to-Horosphere Distance: The authors derive a closed-form expression for the hyperbolic distance between any point and a horosphere, which is critical for defining a classification "margin."
  • HoroSVM Formulation: They define a large-margin classifier (HoroSVM) and mathematically prove that its loss function is geodesically convex.
  • Global Optimality: Because the problem is convex on a Riemannian manifold, standard Riemannian gradient descent techniques are guaranteed to find the global optimum, unlike previous geodesic-based methods.

Key Insights: Why Horospheres Work Better

In a tree embedding, a subtree is often best separated by a boundary that "wraps around" it. A horosphere naturally provides this enclosing shape, perfectly isolating subtrees where a geodesic boundary would make multiple errors.

Comparison of horospherical (a) vs. geodesic (b) decision boundaries on a tree embedding.

By choosing horospheres, the authors move from a "hit-or-miss" non-convex optimization to a mathematically principled convex one. This makes the classifier much more stable and reliable in practice. Furthermore, HoroSVM is computationally highly efficient. In tests on a 200-sample synthetic dataset, it trained in just 3.73 seconds, compared to 6.57 seconds for a standard Hyperboloid SVM.

Experimental Results

The authors evaluated HoroSVM against state-of-the-art hyperbolic and Euclidean classifiers using real-world networks (Karate club, Polblogs, Polbooks, Football), WordNet noun hierarchies, and synthetic Gaussian mixtures.

HoroSVM consistently outperformed Euclidean and other hyperbolic SVMs across the board:

  • Network Data: It achieved the highest F1 scores on all four network datasets, showing particular strength on the "Football" dataset where data variance is high.
HoroSVM achieves best-in-class F1 scores on various network datasets.
  • WordNet Subtrees: In low-dimensional embeddings ($D=2$), HoroSVM showed massive gains. For the "Animal" subtree, it achieved an F1 score of 0.57, while the standard Hyperboloid SVM trailed at 0.53 and the Euclidean SVM at a poor 0.39.
  • Robustness: In synthetic tests with label noise, HoroSVM maintained higher accuracy and showed better resistance to noise than Hyperbolic Logistic Regression or Hyperbolic Neural Networks (HNNs).

Limitations and Future Work

While HoroSVM is a powerful "linear" classifier for hyperbolic space, it currently lacks a kernelized version. In Euclidean space, kernels allow SVMs to handle non-linearly separable data. Defining valid positive definite kernels in hyperbolic space remains a known open challenge in the field. The authors plan to address the development of a "Kernel HoroSVM" in future research to handle even more complex data distributions.

Summary updated

BibTeX
@inproceedings{fan2023horospherical,
  author = {Xiran Fan and Chun-Hao Yang and Baba C. Vemuri},
  title = {{Horospherical Decision Boundaries for Large Margin Classification in Hyperbolic Space}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=URAZeoIC1q},
}
Figure