Large-Margin Classification in Hyperbolic Space

Hyunghoon Cho, Benjamin Demeo, Jian Peng, Bonnie Berger

Abstract

Representing data in hyperbolic space can effectively capture latent hierarchical relationships. To enable accurate classification of points in hyperbolic space while respecting their hyperbolic geometry, we introduce hyperbolic SVM, a hyperbolic formulation of support vector machine classifiers, and describe its theoretical connection to the Euclidean counterpart. We also generalize Euclidean kernel SVM to hyperbolic space, allowing nonlinear hyperbolic decision boundaries and providing a geometric interpretation for a certain class of indefinite kernels. Hyperbolic SVM improves classification accuracy in simulation and in real-world problems involving complex networks and word embeddings. Our work enables end-to-end analyses based on the inherent hyperbolic geometry of the data without resorting to ill-fitting tools developed for Euclidean space.

Introduction

In recent years, hyperbolic space has emerged as a superior medium for representing hierarchical data, such as tree structures, social networks, and language taxonomies. This is due to the exponential growth of volume in hyperbolic space relative to distance, which naturally mirrors the branching structure of hierarchical systems. However, a significant gap exists in the analytical pipeline: once data is embedded into hyperbolic space, researchers often revert to standard Euclidean tools like logistic regression or standard Support Vector Machines (SVMs) for classification.

These Euclidean tools assume linear decision boundaries that are straight lines in flat space. In the curved geometry of hyperbolic space, these boundaries are mathematically arbitrary and often "ill-fitting," failing to capture the natural separations between hierarchical clusters. This paper introduces Hyperbolic SVM, a principled generalization of SVMs designed specifically for data embedded in hyperbolic space.

Methodology: The Minkowski Framework

The authors develop their framework using the Hyperboloid model situated within a Minkowski space. The core mathematical shift involves replacing the standard Euclidean dot product with the Minkowski inner product: $x * y = x_0y_0 - x_1y_1 - \dots - x_ny_n$.

Visualizing decision boundaries across different models of hyperbolic space: (a) Hyperboloid, (b) Poincaré ball, (c) Poincaré half-space, and (d) Klein ball.

Key technical contributions include:

  • Linear Hyperbolic SVM: Redefining the "margin" using hyperbolic distance. While the resulting optimization problem is non-convex, it can be solved effectively using projected gradient descent, particularly when initialized with a standard Euclidean SVM solution.
  • Hyperbolic Kernels: Extending the "kernel trick" to hyperbolic space. The authors provide a method to transform existing Euclidean kernels into valid hyperbolic ones, establishing conditions for symmetric matrices to represent Minkowski inner product kernels.
  • Geometry-Aware Boundaries: A "linear" boundary in hyperbolic space appears as a curve when projected onto models like the Poincaré disk. This allows the classifier to "wrap around" hierarchical branches more effectively than a Euclidean straight line.

Experimental Results and Insights

The authors evaluated Hyperbolic SVM across simulated Gaussian mixtures, WordNet semantic hierarchies, and real-world static and evolving networks.

Performance comparison and visual intuition: (a) Macro-AUPR comparison showing Hyperbolic SVM's superiority, (b) Hyperbolic SVM's curved decision boundaries, and (c) Euclidean SVM's straight-line boundaries on the same data.

Key Findings:

  • Superior Accuracy: On simulated hyperbolic Gaussians, Hyperbolic SVM achieved a massive performance boost over Euclidean SVM ($p = 6.17 \times 10^{-28}$). In WordNet "mammal" subtree classification, the macro-averaged AUPR increased from 0.41 to 0.70—a nearly 70% improvement.
  • Network Robustness: On complex networks, Hyperbolic SVM consistently matched or outperformed Euclidean SVMs, even when the Euclidean versions were given much higher-dimensional embeddings (up to 25D vs. 2D for the hyperbolic version).
  • Indefinite Kernels: This work provides a concrete geometric interpretation for why certain "indefinite" (non-positive semidefinite) kernels might be the optimal choice for specific data geometries, as hyperbolic kernels are naturally non-PSD.

Conclusion and Future Work

Hyperbolic SVM positions itself as a broader generalization of the classic SVM, collapsing back into the standard Euclidean formulation if the Minkowski "time" coordinate is ignored. While the non-convex nature of the optimization remains a theoretical challenge, the practical gains in classification accuracy for hierarchical data are substantial. Future research may focus on developing a true "Hyperbolic RBF" kernel and expanding these ground-up hyperbolic redesigns to other machine learning tools like clustering and neural network layers.

Summary updated

BibTeX
@inproceedings{cho2019large,
  author = {Hyunghoon Cho and Benjamin Demeo and Jian Peng and Bonnie Berger},
  title = {{Large-Margin Classification in Hyperbolic Space}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2019},
  url = {https://openreview.net/forum?id=H1m9r4dhdi},
}
Figure