Provably Accurate and Scalable Linear Classifiers in Hyperbolic Spaces

Chao Pan, Eli Chien, Puoya Tabaghi, Jianhao Peng, Olgica Milenkovic

TL;DR

This paper introduces a unified framework for building linear classifiers—like Perceptrons and SVMs—specifically designed for hyperbolic spaces. By leveraging tangent space formalisms in the Poincaré ball model, the authors provide the first hyperbolic classifiers that are both mathematically proven to converge and scalable enough to handle millions of high-dimensional data points.

What Problem Does This Paper Address?

Many real-world datasets, such as biological taxonomies, social networks, and hierarchical image categories, have a "tree-like" structure. While we usually process data in Euclidean space (the flat geometry we learn in school), forcing hierarchical data into a flat space causes high distortion. Hyperbolic space, which has constant negative curvature, is a much better fit for these structures because its "volume" grows exponentially, just like the number of nodes in a tree.

However, doing machine learning in hyperbolic space is hard. Standard tools like Support Vector Machines (SVMs) often become non-convex and difficult to optimize when moved to hyperbolic models. Previous attempts at hyperbolic classifiers either lacked theoretical convergence guarantees, were computationally slow, or failed to work in high dimensions.

Methods

The authors focus on the Poincaré ball model of hyperbolic space. Their key innovation is a "tangent space formalism."

  1. Tangent Space Mapping: They utilize the fact that the tangent space at any point in the Poincaré ball is Euclidean. By using the logarithmic map, they project hyperbolic data points into a local Euclidean tangent space.
  2. Weighted Classification: They prove that a hyperbolic hyperplane can be represented in this tangent space. Crucially, they derive a specific weighting factor ($\eta_i$) that allows them to reformulate the hyperbolic classification problem as a convex optimization problem in the tangent space.
  3. Reference Point Selection: Since the tangent space depends on a "base point," the authors propose using hyperbolic convex hull algorithms (like Graham scan or Quickhull) to find a midpoint between classes to serve as the optimal reference point.
A linear classifier in the Poincaré disk (left) and its representation in the Euclidean tangent space (right).

This approach allowed them to develop:

  • Poincaré Perceptron: An online learner with a provable upper bound on the number of mistakes.
  • Poincaré SVM: A max-margin classifier that is guaranteed to find a global optimum.
  • Advanced Variants: Extensions for second-order information (to speed up convergence) and strategic classification (where agents might manipulate their data to get a better classification).

Datasets

The researchers evaluated their methods on both massive synthetic datasets and diverse real-world benchmarks:

  • Synthetic Data: Up to $10^6$ points in 1,000 dimensions to test scalability.
  • Olsson’s scRNA-seq: Single-cell RNA-seq expression measurements (8 classes).
  • CIFAR-10 & Fashion-MNIST: Standard image classification benchmarks (10 classes each).
  • mini-ImageNet: A subset of ImageNet containing 20 classes, embedded into a 512-dimensional Poincaré ball.
Visualization of the four real-world datasets embedded in hyperbolic space.

Key Insights and Ideas

  • Convexity is King: By transforming the hyperbolic SVM into a convex problem, the authors moved away from the unstable "local optima" traps that plagued previous hyperboloid SVMs.
  • The Tangent Space "Bridge": The paper shows that we don't need to reinvent the wheel for every hyperbolic algorithm. If we can correctly map the problem to the tangent space with the right weights, we can "transfer" well-understood Euclidean guarantees to the hyperbolic domain.
  • Scalability: Because the resulting optimization is convex and uses standard stochastic gradient descent, it scales linearly with the number of points, making it practical for modern big data.

Key Results

  • Speed: The Poincaré SVM is dramatically faster than previous hyperbolic SVMs. In tests with a million points, the proposed method took 1 minute, while the previous state-of-the-art took 9 hours (a 540x speedup).
  • Accuracy: On hierarchical data like scRNA-seq, the Poincaré SVM achieved 89.77% accuracy, significantly outperforming the Euclidean SVM's 71.59%.
  • Stability: Unlike previous methods that broke down as dimensions reached 1,000, the Poincaré SVM remained stable and maintained near 100% accuracy on synthetic hyperbolic data.
Fig. 2. Classification of N points in d dimensions selected uniformly at random in the Poincar´e ball. The upper and lower boundaries of the shaded region represent the first and third quantile, respectively. The line shows the medium (second quantile) and the marker × indicates the mean. Detailed explanations pertaining to the test results can be found in Section VI.

Limitations and Future Work

  • Reference Point Sensitivity: While the authors provide a method for choosing a reference point $p$, the classification performance can vary depending on this choice. Finding the absolute "best" $p$ for every possible distribution remains an open area.
  • Computational Cost of Convex Hulls: In very high dimensions, finding the exact convex hull to pick a reference point can become expensive, though the authors suggest a hyperboloid perceptron alternative to mitigate this.
  • Mixed Curvature: The authors suggest that this framework could be extended to "product spaces" that combine Euclidean, spherical, and hyperbolic geometries to better model complex, non-uniform data.

Summary updated

BibTeX
@article{pan2023provably,
  author = {Chao Pan and Eli Chien and Puoya Tabaghi and Jianhao Peng and Olgica Milenkovic},
  title = {{Provably Accurate and Scalable Linear Classifiers in Hyperbolic Spaces}},
  journal = {Knowledge and Information Systems},
  year = {2023},
  doi = {10.1007/s10115-022-01820-3},
}
Figure