Abstract
Manifold-valued representation learning is essential for capturing the intrinsic non-Euclidean structures of real-world data, such as hierarchical evolutionary trees or periodic cell cycles. However, traditional Variational Autoencoders (VAEs) struggle with the numerical complexity of defining probability densities on arbitrary manifolds. We introduce the Riemannian Generative Decoder (RGD), an encoder-less architecture that treats latent variables as direct model parameters. By combining Riemannian optimization with a novel geometry-aware noise regularization, RGD avoids the computational bottlenecks of encoders. We demonstrate that RGD scales to high-dimensional latent spaces and provides superior interpretability across synthetic and biological datasets, including human mitochondrial DNA and scRNA-seq data.
Introduction
Real-world data frequently exhibits intrinsic non-Euclidean structures. For instance, evolutionary trees are naturally hierarchical (hyperbolic), while biological processes like cell cycles are periodic (spherical or toroidal). Standard machine learning models often assume a flat Euclidean space ($\mathbb{R}^d$), failing to capture these geometries. While Riemannian VAEs attempt to address this by mapping data to manifolds via an encoder, they encounter significant mathematical hurdles. Defining probability densities on manifolds requires calculating complex normalizing constants and numerically brittle functions, which often limits scalability to low-dimensional latent spaces.
The Riemannian Generative Decoder (RGD)
To overcome these limitations, we propose the Riemannian Generative Decoder (RGD). RGD adopts a "decoder-only" approach, building on the Deep Generative Decoder (DGD) framework. Instead of an encoder network, each data point is assigned a unique latent vector $z$ in the latent space, which is optimized directly alongside the decoder's weights.
To maintain manifold constraints, we utilize RiemannianAdam, an optimizer that projects gradients onto the manifold's tangent space and retracts updates back onto the surface. Furthermore, RGD replaces the KL-divergence regularization of VAEs with a geometry-aware noise injection. By scaling Gaussian noise by the inverse Riemannian metric at each point, we enforce a smoothness constraint that respects the local curvature of the manifold. This approach aligns the neural network's smoothness with the intrinsic stretching of the manifold.
Experimental Results
We validated RGD across three distinct domains to test its ability to recover complex structures:
- Synthetic Branching Diffusion: RGD using a hyperbolic (Lorentz) manifold achieved a Pearson correlation of 0.81 between latent and true tree distances, significantly outperforming Euclidean (0.53) and P-VAE (0.68) baselines.
- Cell Cycle Stages (scRNA-seq): RGD effectively modeled the periodic nature of human fibroblast gene expression. As shown in Figure 2, non-Euclidean manifolds like the sphere and torus provide a more natural representation of the cycle phase compared to flat projections.
- Human Mitochondrial DNA (hmtDNA): On a dataset of 67,305 sequences, the hyperbolic RGD successfully recovered known human migration patterns and haplogroup hierarchies that were lost in standard UMAP or Euclidean projections.
Scalability and Performance
A key advantage of RGD is its scalability. By bypassing the encoder, RGD can handle latent spaces up to 500 dimensions, whereas traditional Riemannian VAEs often become computationally infeasible above 50 dimensions. In high-dimensional settings, RGD maintains stable training times (~0.39s per epoch for 500D) while VAE alternatives often crash or become numerically unstable.
Discussion and Future Work
While RGD offers significant advantages in simplicity and scalability, its memory requirement grows linearly with the dataset size due to the storage of individual latent vectors. This could become a bottleneck for datasets with millions of points. Future research will explore hybrid schemes combining RGD with amortized inference (a light encoder) to handle massive datasets, as well as the application of manifold-valued weights within the neural networks themselves.
Conclusion
The Riemannian Generative Decoder provides a robust and scalable framework for manifold learning. By ditching the encoder and leveraging geometric optimization, it offers a practical path toward learning complex, non-Euclidean representations in high-dimensional data without the mathematical overhead of traditional generative models.
Summary updated