The Numerical Stability of Hyperbolic Representation Learning

Gal Mishne, Zhengchao Wan, Yusu Wang, Sheng Yang
10/31/2022
cs.LGmath.NA

Official code: yangshengaa/stable-hyperbolic (9 stars, Python, last commit 2024-03-14).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Official Implementation for The Numerical Stability of Hyperbolic Representation Learning

90Python, ShellOct 22, 20222 years agoNOASSERTION

Similar Papers

Cite this paper

@article{mishne2022numerical,
  title  = {The Numerical Stability of Hyperbolic Representation Learning},
  author = {Gal Mishne and Zhengchao Wan and Yusu Wang and Sheng Yang},
  year   = {2022},
  eprint = {2211.00181},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.00181}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2211.00181.svg)](https://codeofpaper.com/paper/2211.00181)

Discussion