A Rotated Hyperbolic Wrapped Normal Distribution for Hierarchical Representation Learning
TL;DR
The Rotated Hyperbolic Wrapped Normal (RoWN) distribution addresses a geometric limitation in modeling uncertainty within hyperbolic space. By simply rotating the covariance matrix to align with a data point's radial direction, RoWN better captures the natural "spokes-of-a-wheel" structure of hierarchical data, improving performance in tasks like word embedding and visual representation learning.
The Problem with Diagonal Covariance in Hyperbolic Space
Hyperbolic space is the "natural habitat" for hierarchical data, such as family trees or organizational charts, because its volume expands exponentially with the radius—mirroring the growth of tree nodes. To perform probabilistic machine learning in this space, researchers typically rely on the Hyperbolic Wrapped Normal (HWN) distribution.
For computational efficiency, models usually employ a "diagonal" HWN. However, the authors identified a significant geometric flaw: in the Poincaré disk model, the principal axes of a diagonal HWN remain rigidly parallel to the standard global x and y axes. In a hierarchical tree, variation naturally occurs in two distinct ways: along the "branch" (radial distance or depth) and between "siblings" (angular distance). Because a diagonal HWN cannot rotate its axes to align with the specific direction of a branch, it struggles to accurately represent local node relationships as they move further from the origin.
The RoWN Solution
To resolve this misalignment, the authors introduce RoWN, a mathematically grounded modification to the HWN sampling process.
The standard HWN samples a vector from a Euclidean Gaussian, parallel transports it to the target mean in hyperbolic space, and maps it onto the manifold. The "RoWN twist" introduces a crucial step: before parallel transport, RoWN calculates a rotation matrix. This matrix rotates the diagonal covariance so that its primary axis perfectly aligns with the direction of the mean vector.
This rotation is computationally cheap and maintains a tractable probability density function, making it easy to integrate into frameworks like Variational Autoencoders (VAEs). Essentially, RoWN ensures the "uncertainty ellipse" always points toward the origin, matching the radial nature of hierarchies.
Key Insights and Results
The authors evaluated RoWN across three distinct datasets: a noisy synthetic binary tree, WordNet, and Atari 2600 Breakout frames.
- The "Full Covariance" Trap: While a full covariance matrix could theoretically learn any rotation, the authors found it often performs worse than RoWN. Optimizing a full covariance matrix in hyperbolic space is a difficult, high-dimensional problem. RoWN provides the correct inductive bias (radial alignment) without the optimization headache.
- Synthetic Trees: RoWN significantly improved the correlation between embedding distance and tree distance, preserving depth information better than all baselines across various tree depths.
- WordNet: In probabilistic word embeddings testing hypernymy (is-a) relationships, RoWN achieved a Mean Rank of 1.783 (lower is better) at latent dimension 20, significantly outperforming both the diagonal HWN (2.062) and Euclidean baselines (1.955).
- Visualizing Hierarchy (Atari): RoWN-based VAEs demonstrated a much stronger correlation between the radial "depth" in hyperbolic space and the actual game score (number of blocks broken) compared to standard Euclidean or diagonal hyperbolic models.
Limitations and Future Work
Currently, the formulation of RoWN is specifically designed for hyperbolic space (specifically, the Lorentz model). Extending this method to other types of Riemannian manifolds remains an open area for future work. Additionally, while RoWN outperforms full covariance HWN due to easier optimization, developing better optimization algorithms for full covariance matrices in hyperbolic space is an ongoing challenge. Finally, while the fixed radial rotation is highly effective, future research could explore more flexible, data-driven rotation schemes.
Summary updated