Riemannian Manifold Dynamics for Stochastic Sampling

You are reading version 1 of this direction, frozen 2026-10-04. The latest version is version 2.

Version 1 of 2141 papers202 conceptsfrozen 2026-10-04

Traditional Markov Chain Monte Carlo (MCMC) algorithms often struggle with high-dimensional probability distributions that exhibit "pathological" geometry—regions where the landscape is incredibly steep in some directions and frustratingly flat in others. In these narrow, anisotropic valleys, standard random walks or even gradient-based methods like Hamiltonian Monte Carlo (HMC) become inefficient, either taking steps that are too small to explore the space or too large to remain stable.

The research direction of Riemannian Manifold Dynamics solves this by reframing sampling as a physical process occurring on a curved manifold rather than a flat Euclidean space. By adapting to the local "shape" of the posterior distribution, these samplers can navigate complex landscapes with far greater reliability and speed.

The Geometry of the Posterior

The core intuition is that the parameter space of a statistical model is not naturally flat. As Mark Zlochin and Yoram Baram argue in Manifold Stochastic Dynamics for Bayesian Learning, simulating dynamics on a curved manifold that reflects the intrinsic geometry of the problem leads to higher sampling reliability.

To do this, researchers use a metric tensor—typically the Fisher Information Matrix or the Hessian of the log-density—to define the "distance" between points. In regions of high curvature (where the distribution changes rapidly), the metric "stretches" the space, forcing the sampler to take smaller, more precise steps. In flat regions, the metric "shrinks" the space, allowing for larger, more exploratory leaps. This preconditioning ensures that the sampler's effective step size is always tuned to the local terrain.

Hamiltonian Flow on Curved Surfaces

Standard HMC treats the parameters as a particle moving in a potential energy field. Michael Betancourt and Simon Byrne formalized this in The Geometric Foundations of Hamiltonian Monte Carlo by viewing HMC as a flow on a symplectic manifold (specifically, the cotangent bundle of the sample space).

When we move to a Riemannian manifold, the kinetic energy of the particle becomes position-dependent. This means the particle's "mass" changes depending on where it is in the distribution. While this makes the physics more complex—requiring Christoffel symbols to account for the curvature—it allows the sampler to follow the natural contours of the distribution. As shown by Adam D. Cobb and colleagues in Introducing an Explicit Symplectic Integration Scheme for Riemannian Manifold Hamiltonian Monte Carlo, incorporating this local geometric information allows samplers to navigate "funnels" and high-curvature regions that would cause standard HMC to diverge or stall.

Scaling with Stochastic Gradients

For modern deep learning, we cannot compute the full geometry of the posterior because it requires looking at the entire dataset. Yi-An Ma, Tianqi Chen, and Emily Fox addressed this in A Complete Recipe for Stochastic Gradient MCMC. They provided a unified framework that combines the scalability of minibatch gradients with manifold-aware dynamics.

By parameterizing the sampler using a diffusion matrix (which handles the local geometry) and a curl matrix (which handles non-reversible dynamics), they showed how to maintain convergence even when the gradients are noisy. This approach, often called Stochastic Gradient Riemannian Langevin Dynamics (SGRLD), allows Bayesian neural networks to adapt to the "pathological curvature" of loss landscapes, accelerating movement in flat directions and slowing down in steep ones to prevent numerical instability.

Mirror Maps and Constrained Spaces

Sometimes the "manifold" isn't just a mathematical convenience but a hard constraint—for example, when parameters must be positive or lie on a sphere. Sinho Chewi and co-authors in Exponential ergodicity of mirror-Langevin diffusions explore Mirror Langevin dynamics, which uses a "mirror map" to transform a constrained or ill-conditioned space into a dual space where the geometry is more manageable.

This is closely related to Shiwei Lan’s work on Spherical Augmentation, which maps constrained distributions onto the surface of a higher-dimensional sphere. By sampling on this boundary-free manifold, the algorithm avoids the "walls" of the original parameter space, achieving massive speedups in high-dimensional constrained environments like Lasso or Latent Dirichlet Allocation.

Stability through Relativity

A recent innovation to stabilize these geometric samplers is General Relativistic HMC (GR-HMC). Kai Xu and Hong Ge propose in Practical Hamiltonian Monte Carlo on Riemannian Manifolds via Relativity Theory that we should impose a "speed limit" on the sampling particles. By borrowing the concept of a metric-dependent maximum velocity from Einstein’s relativity, the sampler automatically slows down as it enters high-curvature regions. This prevents the "numerical explosions" that often plague Riemannian samplers when the local metric changes too abruptly, making the algorithms robust enough for practical, automated use in probabilistic programming.

Papers in this version

Showing 60 of 141 papers.

History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 221 papers
  2. Version 1 · 2026-10-04 · 141 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_manifold_aware_sampling_e8f35f2d,
  title = {manifold-aware sampling},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/manifold-aware-sampling/rdr_e8f35f2d97cb4a5ca9f82f19b72168a3},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_riemannian_manifold_dynamics_for_stochas_e8f35f2d_v1,
  title = {Riemannian Manifold Dynamics for Stochastic Sampling},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/riemannian-manifold-dynamics-for-stochastic-sampling/rdr_e8f35f2d97cb4a5ca9f82f19b72168a3/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}