Introduction
Normalizing flows (NFs) are a powerful tool in machine learning used to create complex probability distributions by transforming a simple base distribution through a series of invertible mappings. However, standard NFs are restricted to Euclidean space.
This restriction becomes a significant bottleneck because many real-world datasets—such as biological phylogenies, taxonomies, and social hierarchies—are inherently "tree-like." In Euclidean space, the volume of a sphere grows polynomially with its radius, but in a tree, the number of nodes grows exponentially with depth. This mismatch leads to high "distortion" when trying to embed hierarchical data into Euclidean space. Hyperbolic space, which has constant negative curvature, naturally accommodates this exponential growth, making it the ideal "home" for hierarchical data.
This paper introduces the first extension of normalizing flows to hyperbolic spaces, providing a way to model data with complex hierarchical structures more effectively than standard Euclidean methods. By lifting flexible transformations into the Lorentz model of hyperbolic geometry, the authors achieve state-of-the-art performance in density estimation and graph generation for hierarchical datasets.
Methods
The authors propose two novel hyperbolic coupling transforms based on the Lorentz (Hyperboloid) model:
- Tangent Coupling (TC): This approach maps points from the hyperbolic manifold to the tangent space at the origin using a logarithmic map. Once in this Euclidean-like tangent space, a standard flow (like RealNVP) is applied. Finally, the points are projected back to the manifold using an exponential map.
- Wrapped Hyperboloid Coupling (WHC): This is a more sophisticated, fully hyperbolic transformation. Unlike TC, which is "anchored" at the origin, WHC uses parallel transport to shift transformations between different tangent spaces across the manifold. This allows the flow to better leverage the global geometric structure of the space.
Crucially, the authors derive the change-of-volume formulas (Jacobian determinants) for these transforms, showing they can be computed with $O(n)$ efficiency, making them highly practical for deep learning applications.
Key Insights and Ideas
- Geometry as an Inductive Bias: The core insight is that the choice of latent geometry acts as a powerful prior. By using hyperbolic space, the model inherently "knows" that data is likely hierarchical before it even sees a single training sample.
- The Low-Dimension Advantage: Hyperbolic flows show the most significant gains in low-dimensional latent spaces (e.g., 2D). In high dimensions, Euclidean models can sometimes "cheat" by using the extra dimensions to mimic hierarchical structures, but hyperbolic models are much more parameter-efficient.
- Parallel Transport is Key: While Tangent Coupling is easier to implement, Wrapped Hyperboloid Coupling (WHC) is more expressive because it isn't restricted to transformations centered at a single point (the origin).
Key Results
The researchers evaluated their models on several tasks, including structured density estimation (a synthetic Binary Diffusion Process and dynamically binarized MNIST), graph reconstruction (disease spreading patterns), and graph generation.
- Density Estimation: On the BDP dataset, hyperbolic flows (TC and WHC) consistently outperformed Euclidean VAEs and standard Hyperbolic VAEs in low dimensions (2, 4, and 6).
- Graph Reconstruction: WHC achieved the highest Area Under the Curve (AUC) and Average Precision (AP) on the Disease datasets, proving it can better capture the underlying connectivity of hierarchical networks.
- Graph Generation: When generating new graphs, the hyperbolic models produced valid trees much more frequently than Euclidean baselines. For example, on the Lobster graph task, the Euclidean baseline achieved 0% accuracy in matching the specific "tree-like" properties, while WHC excelled.
Limitations and Future Work
Despite the strong results, the authors identify a few hurdles for future research:
- Numerical Stability: Hyperbolic math involves functions like
coshandexp, which can explode. The authors had to use "clamping" operations to keep values within a safe range, which can limit the depth of the neural networks. - The Lorentz Model Limits: While the Lorentz model is stable, the authors suggest that future work could explore "tiling-based" models or integer-based hyperbolic geometry to further improve stability.
- New Flow Types: This paper focused on coupling-based flows; extending this to other architectures like autoregressive flows or residual flows in hyperbolic space remains an exciting open research direction.
Summary updated