arXiv:2610.06745cs.LGOct 2026

Manuscript Offprint

arXiv:2610.06745

Hyperbolic Graph Representation Learning: Embed in One Metric, Optimize with Another

Federico Larroca, Paola Bermolen, Marcelo Fiori, Bernardo Marenco

ABSTRACT

Hierarchical graphs embed in hyperbolic space with lower distortion than in Euclidean space owing to its negative curvature. However, their gradient-based learning is hampered at large radii, where the Poincaré ball and the Lorentz hyperboloid models fail numerically. Polar coordinates avoid this problem, but the hyperbolic metric scales the angular step by the hyperbolic sine of the radius, freezing angular motion. We observe that this factor is a choice, silently fixed by existing implementations: the Euclidean tangent parametrization, for instance, uses the radius itself. We show that other choices are not only possible but preferable. They are endpoints of a one-parameter family of optimization preconditioners with curvatures from -1 to 0, while the embedding remains at curvature -1. We show that since the Euclidean preconditioner rearranges a layout but refines it poorly, while an intermediate one refines far better once a layout is in place, combining them in two stages reduces the loss on real-world trees by 46–74% over the best single curvature.

Keywords Hyperbolic Graph Embedding · Gradient Descent · Metric Selection

1 Introduction

The analysis, modeling, and optimization of complex networks from the perspective of machine learning is one of the most important topics in data science today with countless applications. Many of these techniques are based on the fundamental assumption that there is a latent geometry in which the network nodes are located, and these nodes are then interpreted as vectors in that space [6]. Traditionally, techniques for estimating these vectors (embeddings) assume an Euclidean geometry.

However, hyperbolic geometry has emerged as an alternative representation capable of capturing structures, such as hierarchical, tree-like and large-hubs networks, with very few dimensions [11, 18]. A wide family of techniques for hyperbolic embeddings assumes knowledge of a certain distance between nodes, and the goal is to position the embeddings in space in a way that best reflects these distances. Some of these methods include Poincaré Maps [10], Hydra [9], and Poincaré Embeddings [13] (or their version in the Lorentz model of hyperbolic spaces, known as Lorentz Embeddings [14]). To find the embeddings that best reflect these distances, both Poincaré Maps and Poincaré/Lorentz Embeddings perform gradient descent on the manifold defined by hyperbolic space [1, 2]. Hydra instead applies a gradient based algorithm from a good initial point calculated from spectral decompositions.

Although optimization over manifolds is well understood [3], hyperbolic representations suffer from well-known numerical issues at large radii [12, 17, 19], which is precisely where hierarchical graphs place most of their nodes: both the Poincaré ball and the Lorentz hyperboloid lose precision through catastrophic cancellations. Polar coordinates remain accurate over a much wider range of radii, but the hyperbolic metric scales the angular component by the hyperbolic sine of the radius, which freezes angular motion under gradient-based optimization.

The central observation of this work is that the metric used to take gradient steps need not be the metric in which the embeddings live. The loss is always evaluated with the hyperbolic distance, so the optimizer's metric acts only as a preconditioner: it changes the path followed by the optimizer, not the problem being solved. Existing implementations silently fix this choice: Riemannian methods step with the exact hyperbolic metric, whereas the Euclidean tangent parametrization of [12] implicitly scales the angular component by the radius itself. Our contributions are threefold. (i) We show that these two choices are the endpoints of a one-parameter family of preconditioners, given by the metrics of constant curvature running from -1 to 0, while the embedding space remains at curvature -1 throughout since the loss is untouched (unlike mixed-curvature approaches [4], which change the embedding space itself). (ii) We explain why both endpoints fail when nodes span a wide range of radii: the hyperbolic one freezes angular motion, and the flat one cannot move inner and outer nodes with a single learning rate. (iii) We show that other members of the family yield better results, particularly in a two-stage scheme (flat first, then an intermediate curvature) that reduces the stress on real-world trees by 46–74% over the best single curvature.

References (31)