Skip to main content
QUICK REVIEW

[Paper Review] The Numerical Stability of Hyperbolic Representation Learning

Gal Mishne, Zhengchao Wan|arXiv (Cornell University)|Oct 31, 2022
Neural Networks and ApplicationsComputer Science5 citations
TL;DR

This paper identifies numerical instability issues in hyperbolic representation learning, particularly in the Poincaré ball and Lorentz models under 64-bit arithmetic. It proposes a Euclidean parametrization of hyperbolic space that resolves representation and optimization limitations, demonstrating superior performance in hyperbolic SVM and tree embedding tasks compared to existing models.

ABSTRACT

Given the exponential growth of the volume of the ball w.r.t. its radius, the hyperbolic space is capable of embedding trees with arbitrarily small distortion and hence has received wide attention for representing hierarchical datasets. However, this exponential growth property comes at a price of numerical instability such that training hyperbolic learning models will sometimes lead to catastrophic NaN problems, encountering unrepresentable values in floating point arithmetic. In this work, we carefully analyze the limitation of two popular models for the hyperbolic space, namely, the Poincaré ball and the Lorentz model. We first show that, under the 64 bit arithmetic system, the Poincaré ball has a relatively larger capacity than the Lorentz model for correctly representing points. Then, we theoretically validate the superiority of the Lorentz model over the Poincaré ball from the perspective of optimization. Given the numerical limitations of both models, we identify one Euclidean parametrization of the hyperbolic space which can alleviate these limitations. We further extend this Euclidean parametrization to hyperbolic hyperplanes and exhibits its ability in improving the performance of hyperbolic SVM.

Motivation & Objective

  • To analyze the numerical stability limitations of the Poincaré ball and Lorentz models in 64-bit floating-point arithmetic.
  • To theoretically compare the optimization behavior of these models, particularly regarding gradient vanishing.
  • To propose a Euclidean parametrization of hyperbolic space that overcomes representation and optimization issues in existing models.
  • To validate the new parametrization in practical applications such as hyperbolic SVM and hierarchical data embedding.

Proposed method

  • The paper conducts a geometric analysis of representation capacity in the Poincaré ball and Lorentz models under 64-bit floating-point precision.
  • It provides a theoretical analysis of gradient dynamics, showing the Lorentz model is less prone to gradient vanishing than the Poincaré model.
  • A novel Euclidean parametrization of hyperbolic space is introduced, which avoids numerical overflow and underflow issues inherent in both models.
  • The method extends the Euclidean parametrization to hyperbolic hyperplanes, enabling its use in structured prediction tasks like hyperbolic SVM.
  • The proposed LSVMPP model applies the Euclidean parametrization to hyperbolic SVM, using arcsinh transformation and Platt scaling for improved probability calibration.
  • Experiments compare LSVMPP against Lorentz SVM, Euclidean SVM, and Poincaré-based SVM on simulated and real datasets, using consistent training and evaluation protocols.

Experimental results

Research questions

  • RQ1What are the numerical representation limits of the Poincaré ball and Lorentz models under 64-bit floating-point arithmetic?
  • RQ2Why does the Lorentz model empirically outperform the Poincaré model in optimization despite similar representation capacity?
  • RQ3Can a Euclidean parametrization of hyperbolic space simultaneously resolve numerical instability and preserve optimization advantages?
  • RQ4How does the proposed parametrization improve performance in hyperbolic SVM and tree embedding tasks?
  • RQ5Does the Euclidean parametrization enable better generalization than existing hyperbolic models in hierarchical data representation?

Key findings

  • The Poincaré ball model has greater representation capacity than the Lorentz model under 64-bit arithmetic, due to its bounded nature preventing overflow.
  • The Lorentz model exhibits superior optimization behavior due to reduced gradient vanishing, which is theoretically validated in the paper.
  • The proposed Euclidean parametrization eliminates numerical instability issues present in both the Poincaré and Lorentz models.
  • LSVMPP, the hyperbolic SVM based on the Euclidean parametrization, achieves the highest average accuracy (91.96%) and F1 score (0.9197) on CIFAR-10, outperforming all baselines.
  • On Fashion-MNIST, LSVMPP achieves 89.49% accuracy and 0.8955 F1, significantly outperforming Lorentz SVM (71.59% accuracy), demonstrating robustness in hierarchical data.
  • The Euclidean parametrization enables stable training and better performance than PSVM, which suffers from suboptimal reference point selection independent of the hyperplane learning process.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.