Riemann$^2$: Learning Riemannian Submanifolds from Riemannian Data

Leonel Rozo, Miguel González-Duque, Noémie Jaquier, Søren Hauberg

TL;DR

This paper introduces RIEMANN$^2$, a novel generative model that learns low-dimensional representations of data residing on curved geometric spaces (Riemannian manifolds). By explicitly accounting for the data's intrinsic geometry, RIEMANN$^2$ enables more meaningful latent space representations, leading to improved performance in tasks like robot motion synthesis and analysis of complex biological data.

What Problem Does This Paper Address?

Many real-world datasets don't live in simple flat Euclidean spaces. Instead, they are constrained to lie on curved geometric structures, like spheres (for orientations) or spaces of matrices with specific properties. Traditional machine learning models, particularly latent variable models like Gaussian Process Latent Variable Models (GPLVMs) and Variational Autoencoders (VAEs), often assume a flat, Euclidean latent space. This assumption can lead to several problems:

  • Ignoring Geometry: The models might not respect the inherent constraints of the data, potentially generating outputs that are invalid (e.g., an impossible orientation).
  • Meaningless Latent Spaces: Distances and paths in the learned latent space might not accurately reflect the relationships between data points on the manifold. This makes downstream tasks like motion generation or interpolation difficult and unreliable.
  • Suboptimal Representations: Existing methods that try to address this either fail to fully capture the manifold's geometry or don't equip the latent space with a geometry-aware metric.

RIEMANN$^2$ aims to bridge this gap by learning latent representations that not only respect the data's manifold structure but also equip the latent space with a metric that mirrors the data's geometry.

Methods

The core of RIEMANN$^2$ lies in its use of Wrapped Gaussian Process Latent Variable Models (WGPLVMs). Here's a breakdown of the key methodological contributions:

  • Riemannian Pullback Metric: The central idea is to "pull back" the metric from the data manifold (e.g., a sphere) into the latent space. This is achieved by using the Jacobian of the decoder function (which maps latent variables to the manifold) to define a metric in the latent space. This ensures that distances and geodesics in the latent space correspond to meaningful geometric paths on the data manifold.
  • Multitask Gaussian Processes: To handle complex data where different output dimensions might be correlated (e.g., position and orientation of a robot arm), RIEMANN$^2$ employs multitask GPs. This allows for modeling dependencies between output dimensions, leading to richer representations.
  • Geometry-Aware Latent Space: By using WGPLVMs, the model inherently ensures that decoded outputs lie on the specified manifold. The learned pullback metric then provides a geometry-aware structure to the latent space itself.
  • Automatic Uncertainty Quantification: Like standard GPLVMs, RIEMANN$^2$ provides automatic uncertainty estimates for its predictions, which is crucial for defining a stochastic Riemannian metric.

Datasets

The paper evaluates RIEMANN$^2$ on several datasets:

  • Synthetic Data: An illustrative example on $\mathbb{R}^2 \times S^2$ to demonstrate the differences between RIEMANN$^2$ and baseline models.
  • Robot Motion Synthesis: Data from a 7-DoF robotic arm performing a reach-and-pick-up task, with end-effector positions and rotations encoded in $\mathbb{R}^3 \times S^3$.
  • Manipulability Learning: Data from a planar robot in $\mathbb{R}^2 \times S^2$ involving learning both end-effector trajectories and manipulability profiles.
  • Brain Connectomes: Functional brain connectome data from the Human Connectome Project, represented as points on the $S^{15}$ manifold.

Key Insights and Ideas

  • Geometry Matters for Latent Spaces: The paper strongly demonstrates that ignoring the underlying geometry of data leads to suboptimal latent representations, especially for tasks involving motion generation or interpolation.
  • Pulling Back the Metric is Powerful: By defining a latent space metric that mirrors the data manifold's geometry, RIEMANN$^2$ enables more accurate and meaningful geodesic computations.
  • Multitask GPs Enhance Representation: Accounting for correlations between output dimensions significantly improves performance, particularly in complex robotic tasks.
  • RIEMANN$^2$ Generalizes Previous Work: The proposed model unifies and extends prior work on geometry-aware generative models, offering a more comprehensive solution.

Key Results

  • Improved Geodesic Generation: RIEMANN$^2$ consistently generates geodesics that stay on the data manifold and more closely resemble demonstrated trajectories compared to baseline models. For instance, in the $R^3 \times S^3$ robot motion synthesis task, RIEMANN$^2$ successfully generates valid orientations on $S^3$, unlike pGPLVM.
  • Quantitative Metrics: Table 2 and Table 3 show that RIEMANN$^2$ achieves high percentages of geodesics on the manifold and competitive or superior Dynamic Time Warping Distances (DTWD) compared to baselines across various tasks. For example, in the manipulability learning experiment, RIEMANN$^2$ with correlated outputs achieved the best DTWD.
  • Meaningful Latent Space Visualization: Figure 2, 5, 6, and 8 show that RIEMANN$^2$'s latent spaces are more evenly distributed and better capture the data manifold's structure, as indicated by the magnification factor of the pullback metric.

Limitations and Future Work

  • Computational Cost: While not explicitly detailed as a limitation, the use of GPs and Riemannian geometry can be computationally intensive, especially for very large datasets.
  • Manifold-Specific Basis: The paper notes that constructing smooth and global bases for tangent spaces can be challenging for some manifolds, and they rely on non-smooth choices that work well in practice.
  • Future Work: The authors suggest that RIEMANN$^2$'s components can be used independently. For example, learning a Riemannian pullback metric can be useful for data manifold estimation and sample generation even if ambient geometry adherence isn't critical. They also mention the possibility of incorporating additional smoothness constraints via priors and back constraints, though this increases computational cost.

Summary updated

BibTeX
@inproceedings{rozo2025riemann,
  author = {Leonel Rozo and Miguel González-Duque and Noémie Jaquier and Søren Hauberg},
  title = {{Riemann$^2$: Learning Riemannian Submanifolds from Riemannian Data}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
}
Figure