Abstract
Riemannian geometry provides powerful tools to explore the latent space of generative models while preserving the underlying structure of the data. By equipping the latent space with a Riemannian metric pulled back from the data manifold, we can navigate the space using geodesics. However, stochasticity in generative models makes the data space and the resulting metric stochastic. A common heuristic is to use the expected Riemannian metric, but this does not minimize the expected path length. We propose a Finsler metric whose geodesics explicitly minimize expected length. We prove that in high dimensions, this Finsler metric converges to the expected Riemannian metric at a rate of $O(1/D)$, providing a theoretical justification for the latter's use in practical implementations.
Introduction: The Stochastic Geometry Problem
Generative models like Variational Autoencoders (VAEs) or Gaussian Process Latent Variable Models (GPLVMs) map low-dimensional latent codes to high-dimensional data. To measure distances meaningfully in this latent space, we must account for the geometry of the data manifold. In deterministic models, this is done via a pullback metric. However, modern models are often stochastic, meaning the metric itself is a random variable.
The standard engineering fix has been to take the expectation of the metric tensor to obtain a deterministic Riemannian metric. While computationally convenient, geodesics calculated this way do not actually minimize the expected length of the path. This paper addresses this theoretical gap by introducing a Finslerian framework that directly minimizes the expected norm.
Methodology: From Riemannian to Finsler
Instead of averaging the metric tensor (the squared part of the distance), the authors propose taking the expectation of the norm directly.
The Finsler Framework
The authors prove that this expected norm satisfies the requirements of a Finsler metric. Unlike Riemannian geometry, where the local "unit ball" (indicatrix) is always an ellipse, Finsler geometry allows for more general convex shapes.
For models using Gaussian Processes (GPs) as decoders, the authors derive a closed-form expression for this Finsler metric using the confluent hypergeometric function (the Kummer function). Geodesics are then computed numerically by minimizing curve energy on discretized manifolds using the Stochman library.
Key Insights: The Variance Penalty and Dimensionality
The core difference between the standard Riemannian approximation and the proposed Finsler metric lies in how they handle uncertainty in the model.
The Variance Penalty
The Riemannian metric acts conservatively, pushing paths toward regions of high model certainty (low variance). In contrast, the Finsler metric is "braver," following shorter paths even if they traverse uncertain zones. This is reflected in the shape of the indicatrices: in low-variance regions near data points, they are nearly identical, but they diverge significantly in the "voids" between data clusters.
The Blessing of Dimensionality
A key theoretical contribution is the proof of convergence. While high dimensionality is often a "curse," here it acts as a "blessing." The authors prove that the relative difference between the Finsler and Riemannian metrics shrinks at a rate of $O(1/D)$, where $D$ is the data dimension. In high-dimensional spaces, the stochasticity "averages out," making the simpler Riemannian approximation remarkably accurate.
Results and Empirical Validation
The paper evaluates the theory on a mix of synthetic and real-world benchmarks, including font splines ($D=256$), single-cell gene expression ($D=48$), and MNIST images.
- Qualitative Differences: In low-dimensional experiments (e.g., 3D spheres), Finsler and Riemannian geodesics look significantly different. The Finsler path is shorter in the data space, while the Riemannian path hugs the data points more closely to avoid variance.
- Empirical Convergence: On high-dimensional datasets like the Font and qPCR benchmarks, the geodesics produced by both metrics are virtually indistinguishable, confirming the $O(1/D)$ convergence theory.
Conclusion
This work provides the first rigorous justification for why researchers have been successful using the "expected Riemannian metric": in high dimensions, it is a near-perfect approximation of the theoretically grounded Finsler metric. While the Finsler metric is more expensive to compute, its existence validates the simpler Riemannian shortcut for high-dimensional generative modeling. Future work will focus on extending this compatibility to standard VAE architectures and exploring alternative volume measures in Finsler geometry.
Summary updated