Riemannian generative decoder
Andreas Bjerregaard, Søren Hauberg, Anders Krogh
TL;DR
The paper addresses learning latent representations on general Riemannian manifolds without encoder-based density models. It introduces the Riemannian generative decoder (RGD), which learns manifold-valued latents via a Riemannian optimizer while training a decoder, bypassing density estimation and amortized inference. A geometry-aware regularization based on curvature-aligned noise guides local decoder smoothness to reflect the manifold metric, improving alignment between latent distances and data geometry. Across three diverse datasets—the synthetic branching diffusion, hmtDNA haplogroups, and scRNA-seq cell cycles—RGD yields geometry-consistent latent spaces, demonstrates competitive generative fidelity, and scales favorably to higher latent dimensionality, highlighting potential for broad non-Euclidean representation learning.
Abstract
Riemannian representation learning typically relies on an encoder to estimate densities on chosen manifolds. This involves optimizing numerically brittle objectives, potentially harming model training and quality. To completely circumvent this issue, we introduce the Riemannian generative decoder, a unifying approach for finding manifold-valued latents on any Riemannian manifold. Latents are learned with a Riemannian optimizer while jointly training a decoder network. By discarding the encoder, we vastly simplify the manifold constraint compared to current approaches which often only handle few specific manifolds. We validate our approach on three case studies -- a synthetic branching diffusion process, human migrations inferred from mitochondrial DNA, and cells undergoing a cell division cycle -- each showing that learned representations respect the prescribed geometry and capture intrinsic non-Euclidean structure. Our method requires only a decoder, is compatible with existing architectures, and yields interpretable latent spaces aligned with data geometry. Code available on https://github.com/yhsure/riemannian-generative-decoder.
