Hyperbolic spaces have become a powerful tool for representation learning. Because the volume of a hyperbolic manifold grows exponentially with its radius, it can embed hierarchical, tree-like structures—such as taxonomies, graph networks, and decision paths—with virtually no distortion.
However, translating this elegant geometry into deep learning architectures reveals a fundamental conflict: the exponential expansion of hyperbolic space clashes directly with the finite precision of modern computing hardware. When training models in hyperbolic space, researchers frequently encounter severe numerical instability, vanishing or exploding gradients, and catastrophic "NaN" errors.
To understand why these failures occur and how to fix them, we must look at how hyperbolic geometry behaves under the constraints of floating-point arithmetic.
The Root Cause: The Boundary and the Conformal Factor
The most intuitive way to visualize hyperbolic space is the Poincaré ball model, which maps the infinite hyperbolic space into a bounded Euclidean unit ball ($||x|| < 1$). In this model, as a point moves closer to the boundary ($||x|| \to 1$), the actual hyperbolic distance to the origin approaches infinity.
This mapping is governed by a metric tensor scaled by a conformal factor: $$\lambda_x = \frac{2}{1 - ||x||^2}$$
This conformal factor acts as a local scaling multiplier. As an embedding vector $x$ approaches the boundary of the ball, the denominator $(1 - ||x||^2)$ approaches zero, causing $\lambda_x$ to explode.
As Law et al. note in their work on Lorentzian Distance Learning for Hyperbolic Representations, standard distance calculations in the Poincaré metric involve denominators that vanish near the boundary. When computing gradients during backpropagation, this exploding conformal factor acts as a disruptive multiplier. Klein et al. demonstrate in Understanding and Improving Hyperbolic Deep Reinforcement Learning that this calculus causes gradients to explode violently as embedding norms increase, leading to training failure or "entropy collapse," where a model prematurely converges to a single representation.
Conversely, if a model is initialized randomly near the origin, the geometric properties of the space can cause the opposite problem. Franco et al. observe in Hyperbolic Self-paced Learning for Self-supervised Skeleton-based Action Representations that models can suffer from vanishing gradients in the early stages of learning, as updates become negligible before a meaningful hierarchy is established.
The High-Dimensional Migration Trap
This boundary problem is exacerbated by the curse of dimensionality. In high-dimensional spaces, the vast majority of a volume's mass naturally concentrates near its outer shell.
Moreira et al. show in Hyperbolic vs Euclidean Embeddings in Few-Shot Learning: Two Sides of the Same Coin that high-dimensional hyperbolic embeddings naturally migrate toward the boundary during optimization. Once there, standard floating-point formats (like FP32 or FP16) lack the precision required to distinguish between coordinates that are extremely close to $1$ but represent vastly different hyperbolic positions.
As Yu explains in Numerically Accurate Hyperbolic Embeddings Using Tiling-Based Models, the precision required to maintain the geometric integrity of hyperbolic space grows exponentially with the distance from the origin. Standard floats cannot keep up, resulting in unbounded numerical errors and underflow.
Poincaré Ball Model:
+-----------------------------------+
| Boundary | <- Embeddings naturally migrate here
| . . . . . . . | <- Denominator (1 - ||x||^2) -> 0
| . . | <- Conformal factor explodes
| . Origin . | <- Gradients explode / NaN errors
| . . |
| . . . . . . . |
| |
+-----------------------------------+
Furthermore, standard neural network operations like feature concatenation or splitting become hazardous. Shimizu et al. point out in Hyperbolic Neural Networks++ that combining vectors can easily yield intermediate representations that exceed the allowed boundaries of a bounded manifold, causing immediate mathematical invalidity.
The Tangent Space Trap
To avoid working directly with these volatile boundary equations, many early architectures adopted a hybrid approach: they store embeddings in hyperbolic space but perform standard linear algebra operations by mapping the data into a flat Euclidean tangent space at the origin using exponential and logarithmic maps.
While this allows the use of standard layers, it introduces a new source of instability. King argues in Hypformer: Exploring Efficient Transformer Fully in Hyperbolic Space that constantly transitioning between hyperbolic and Euclidean spaces via complex transcendental functions introduces severe computational overhead and accumulates numerical errors across deep layers, ultimately degrading the geometric advantages of the manifold.
Strategies for Stabilization
To build deep, reliable hyperbolic networks, researchers have developed several distinct strategies to bypass or fix these numerical bottlenecks.
1. Feature Clipping and Radius Constraints
The most straightforward heuristic is to prevent embeddings from ever reaching the unstable boundary. Ermolov et al. implement a feature clipping mechanism in Hyperbolic Vision Transformers: Combining Improvements in Metric Learning to restrict embeddings within a strict, safe radius of the origin.
Similarly, Franco et al. show in Hyperbolic Active Learning for Semantic Segmentation under Domain Shift that rescaling features before projecting them onto the manifold ensures they remain within a numerically stable region, preventing gradient vanishing and allowing models to train successfully under domain shift.
2. Shifting to the Lorentz (Hyperboloid) Model
Instead of trying to patch the Poincaré ball, a highly effective alternative is to change the coordinate system entirely. The Lorentz (or hyperboloid) model represents hyperbolic space as the upper sheet of a hyperboloid in a higher-dimensional Minkowski space.
Poincaré Ball (Bounded) Lorentz Model (Unbounded Sheet)
[ O ] \ /
/ \ \ / <- No boundary boundary;
[ x->1 ] <- Explodes \___/ cleaner polynomial math
As Liu et al. establish in Hyperbolic Graph Neural Networks, the Lorentz model provides significantly better numerical stability for multi-layer architectures because its distance functions avoid the division-heavy operations that plague the Poincaré ball.
Because it lacks a strict coordinate boundary, the Lorentz model eliminates the conformal factor multiplier. Klein et al. leverage this property to stabilize reinforcement learning agents, while Watanabe et al. use it in Hyperboloid GPLVM for Discovering Continuous Hierarchies via Nonparametric Estimation to prevent deep hierarchical branches from shattering due to boundary truncation.
3. Intrinsic and Norm-Stabilized Operations
To completely eliminate the errors introduced by tangent-space mappings, recent work focuses on building fully intrinsic layers. However, even within the Lorentz model, sequential operations can cause the norm of feature vectors to grow excessively.
To counteract this, Shi et al. introduce the Intrinsic Lorentz Neural Network, which incorporates mechanisms to stabilize the expected log-radius of features across layers. This ensures that operations like feature concatenation do not cause the representation to drift into unstable, high-norm regions of the hyperboloid sheet.
4. Advanced Floating-Point Representations
Rather than altering the geometry or constraining the model, a final direction re-engineers how computers store the coordinates.
In Representing Hyperbolic Space Accurately using Multi-Component Floats, Yu demonstrates that numerical instability is often localized to specific arithmetic operations like addition and subtraction. By adopting the Poincaré upper-half space model, one can isolate exactly where precision loss occurs. Yu introduces Multi-Component Floats (MCF)—which represent numbers as sums of multiple standard floats—to apply targeted high-precision arithmetic only to those sensitive operations, eliminating NaN errors entirely while maintaining GPU acceleration speed.
Key Foundational Work
Leveraging Hierarchical Representations for Preserving Privacy and Utility in Text (2019) — contributed 2 concept elements to this direction.
Leveraging Hierarchical Representations for Preserving Privacy and Utility in Text (2019) — contributed 2 concept elements to this direction.
Continuous Hierarchical Representations with Poincaré Variational Auto-Encoders (2019) — contributed 2 concept elements to this direction.