On Probabilistic Pullback Metrics for Latent Hyperbolic Manifolds

Luis Augenstein, Noémie Jaquier, Tamim Asfour, Leonel Rozo

Hierarchical data is everywhere—from the branching structures of biological taxonomies to the complex community networks of social media. While researchers have long used hyperbolic geometry to embed these hierarchies (because hyperbolic space "expands" exponentially, much like a tree), a significant problem remains: how do we move between points in these latent spaces in a way that actually makes sense for the data?

A new paper, "On Probabilistic Pullback Metrics for Latent Hyperbolic Manifolds," addresses this by introducing a "data-aware" way to calculate shortest paths in hyperbolic latent spaces.

TL;DR

The authors propose a probabilistic pullback metric for Hyperbolic Latent Variable Models that forces shortest paths (geodesics) to follow the actual data distribution. This prevents "shortcuts" through empty regions of the latent space, resulting in smoother interpolations and significantly lower prediction uncertainty.

What Problem Does This Paper Address?

When we map high-dimensional data into a low-dimensional "latent" space using models like Gaussian Processes (GPLVMs), we often want to interpolate between points—for example, to see the transition between two different hand grasps or robot designs.

Standard practice is to follow a geodesic, the mathematical shortest path on the manifold. In hyperbolic space, these are well-defined curves. However, these mathematical paths are "data-blind." They often cut through regions of the latent space where no training data exists. When the model tries to "decode" a point from one of these empty regions back into high-dimensional space, it becomes highly uncertain, leading to blurry images or physically impossible motions.

Figure 1: The pullback geodesic (blue) follows the data manifold, whereas the standard hyperbolic geodesic (black) cuts through empty space.

Methods

The authors bridge the gap between differential geometry and probabilistic modeling. Their core contribution is the development of a probabilistic pullback metric specifically for the Gaussian Process Hyperbolic Latent Variable Model (GPHLVM).

  1. The Pullback Metric: Instead of treating the latent space as a uniform "sheet," the pullback metric accounts for how the nonlinear mapping to the high-dimensional space distorts it. It effectively assigns a "cost" to moving through regions of high uncertainty.
  2. Analytic Derivatives: A major technical hurdle is that standard automatic differentiation tools (like PyTorch) fail when calculating derivatives for hyperbolic kernels. They often encounter $0/0$ singularities at the limit where two points coincide. The authors derived analytic kernel derivatives to ensure numerical stability and speed.
  3. Riemannian Optimization: To find the new "data-aware" paths, they minimize a "curve energy" function using Riemannian Adam, ensuring the resulting path respects both the hyperbolic geometry and the underlying data density.

Datasets

The researchers evaluated their approach on four distinct tasks:

  • C-shape: A synthetic 2D "toy" dataset used to visualize how the metric "bends" paths toward data.
  • MNIST Digits: Interpolating between handwritten digits (e.g., turning a '3' into a '6').
  • Multi-cellular Robot Design: A hierarchical dataset of robot morphologies where "coarse" designs branch into "fine" ones.
  • Human Hand Grasps: 3D motion data from the KIT whole-body motion database, organized by a taxonomy of grasp types.

Key Insights and Ideas

  • Geometry vs. Distribution: Hyperbolic geometry provides the inductive bias for hierarchy, but the pullback metric provides the context of the specific dataset. You need both for reliable generative modeling.
  • Uncertainty as a "No-Go" Zone: In a probabilistic model, the pullback metric is related to the variance of the prediction. High variance acts like a mountain in the latent landscape, forcing the geodesic to "walk around" it through well-mapped valleys.
  • The Autodiff Wall: The paper highlights a practical limitation in modern ML: for non-Euclidean manifolds, we can't always rely on "black-box" differentiation. Manual mathematical derivation is still a superpower for stability.
Figure 2: Comparison of curve energy. The pullback geodesic (solid black) maintains a much lower and more stable energy profile relative to the data distribution than the standard manifold geodesic (dashed green).

Key Results

The results show that "data-aware" hyperbolic paths are vastly superior to standard ones:

  • Lower Uncertainty: In the hand-grasp experiment, the prediction uncertainty along the pullback path was orders of magnitude lower than along the standard hyperbolic geodesic.
  • Realistic Interpolation: For MNIST and robot design, the decoded samples along the pullback path remained sharp and recognizable, whereas standard paths produced "blurry" or "broken" intermediate states.

  • Hierarchy Preservation: The GPHLVM with a pullback metric achieved better marginal likelihoods and lower "stress" (a measure of how well distances are preserved) compared to Euclidean versions.

Figure 5: Hand grasp generation. The gray envelope shows that the pullback geodesic (bottom right) has significantly tighter uncertainty bounds than the base manifold geodesic (top right).

Limitations and Future Work

While powerful, the method has some constraints:

  • Dimensionality: The experiments focused on 2D and 3D latent spaces. Scaling the analytic derivatives and the 2D kernel approximation to much higher dimensions remains computationally expensive.
  • Clustered Data: The authors note that pullback geodesics work best when data exhibits smooth transitions. If the data is split into very distinct, isolated clusters, the "high-energy" barriers between them might be impossible for a geodesic to cross.
  • Future Directions: The team suggests exploring alternative autodiff techniques like KeOps to handle kernel computations more efficiently and extending the framework to higher-dimensional hyperbolic kernels.

Summary updated

BibTeX
@misc{augenstein2024probabilistic,
  author = {Luis Augenstein and Noémie Jaquier and Tamim Asfour and Leonel Rozo},
  title = {{On Probabilistic Pullback Metrics for Latent Hyperbolic Manifolds}},
  year = {2024},
  eprint = {2410.20850},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.20850},
}
Figure