Abstract
Stochastic generative models enable us to capture the geometric structure of a data manifold lying in a high dimensional space through a Riemannian metric in the latent space. However, its practical use is rather limited mainly due to inevitable functionality problems and computational complexity. In this work we propose a surrogate conformal Riemannian metric in the latent space of a generative model that is simple, efficient and robust. This metric is based on a learnable prior that we propose to learn using a basic energy-based model. We theoretically analyze the behavior of the proposed metric and show that it is sensible to use in practice. We demonstrate experimentally the efficiency and robustness, as well as the behavior of the new approximate metric. Also, we show the applicability of the proposed methodology for data analysis in the life sciences.
Introduction
Variational Auto-Encoders (VAEs) are widely used to compress high-dimensional data into a low-dimensional latent space. According to the "manifold hypothesis," high-dimensional data often resides on a lower-dimensional curved surface. However, standard practice often treats the latent space as a flat Euclidean domain. This assumption is problematic: a straight line (Euclidean geodesic) between two latent points may traverse regions of low data density, resulting in decoded outputs that are nonsensical or blurry.
To address this, researchers utilize Riemannian metrics to identify geodesics that remain on the data manifold. The standard "pull-back metric" relies on the generator's Jacobian to map latent distances to the data space. However, this approach is computationally expensive, numerically unstable, and scales poorly with dimensionality. This paper introduces a surrogate conformal Riemannian metric that leverages a learnable prior to achieve similar geometric fidelity with significantly improved efficiency and robustness.
Methodology: Prior-Based Conformal Metric
The proposed approach simplifies latent geometry by using the data density as a proxy for distance. The method consists of two primary components:
- Learnable Prior via Energy-Based Models (EBM): Instead of a fixed Gaussian prior, the authors employ an EBM to learn the actual distribution of data in the latent space. This prior captures the underlying shape of the data manifold.
- Conformal Riemannian Metric: A new metric $M_\psi(z)$ is defined as inversely proportional to the learned prior density. In high-density regions, the metric is small, making "travel" computationally cheap. Conversely, in low-density regions, the metric is large, penalizing paths that stray from the data.
By defining the metric as a conformal scaling of the identity matrix, the differential equations required to compute shortest paths are simplified, avoiding the instabilities associated with full Jacobian-based pull-back metrics.
Experimental Results
The authors evaluated the metric across synthetic manifolds, standard benchmarks (MNIST, FashionMNIST), and life science datasets (Mouse Cortex cell data, ZINC database).
Efficiency and Robustness
The surrogate metric demonstrates superior performance in high-dimensional settings. In a statistical modeling task (fitting LANDs), the proposed metric reduced computation time from 2 hours (pull-back) to just 10 minutes. Furthermore, the pull-back metric frequently failed to converge in dimensions greater than 5, while the prior-based metric remained stable.
Qualitative and Generative Performance
In chemical compound interpolation (ZINC database), the metric produced diverse and chemically valid molecular samples, whereas linear interpolation yielded unrealistic results. Additionally, VAEs equipped with the EBM prior achieved better Negative Log-Likelihood (NLL) scores, indicating a superior fit to the data distribution. In life science applications, the metric improved cluster analysis for single-cell RNA-seq data by better capturing the biological manifold.
Conclusion
The prior-based conformal metric offers a practical alternative to traditional pull-back metrics for latent space analysis. While the conformal assumption (isotropic scaling) is a simplification of the potentially anisotropic nature of the true data manifold, the gains in efficiency and numerical stability are substantial. Future work may explore using this metric as a regularizer during model training to further align latent geometry with the data distribution.
Summary updated