Geodesic Slice Sampler for Multimodal Distributions with Strong Curvature

Bernardo Williams, Hanlin Yu, Hoang Phuc Hau Luu, Georgios Arvanitidis, Arto Klami · DOI

Introduction

Markov Chain Monte Carlo (MCMC) methods are essential tools in Bayesian statistics and machine learning for sampling from complex probability distributions. However, two primary challenges often hinder their performance: strong local curvature and multimodality. Strong curvature, often seen in "funnel" distributions, causes standard samplers to struggle with narrow, twisting regions. Multimodality, where a distribution has multiple separated peaks, often traps samplers in a single mode, preventing them from exploring the full landscape.

While Riemannian geometry has been used to address curvature and tempering techniques have been used for multimodality, few algorithms tackle both simultaneously. This paper introduces the Metric-agnostic Geodesic Slice Sampler (MAGSS), a purely geometric approach designed to navigate sharp curves and bridge distant modes.

Methodology: From Straight Lines to Geodesics

MAGSS builds upon Hit-and-Run slice sampling. While traditional slice sampling moves along straight Euclidean lines, MAGSS utilizes geodesics—curved paths defined by a Riemannian metric tailored to the target distribution's geometry.

Because these custom metrics rarely yield closed-form solutions for geodesics, the authors employ numerical ODE solvers (such as the Dormand-Prince method) to approximate paths dynamically. This flexibility allows the sampler to adapt to arbitrary, target-specific geometries.

Bridging the Gap: Inverse Metrics

To specifically address multimodality, the researchers propose two novel metrics: the Inverse Monge Metric and the Inverse Generative Metric. Unlike standard metrics that slow down exploration in high-density regions, these inverse metrics accelerate the sampler as it enters low-probability "deserts" between modes.

Effect of the inverse generative metric parameter λ on mode bridging

As shown in the figure above, decreasing the hyperparameter $\lambda$ in the Inverse Generative Metric effectively shrinks the geometric distance between distant modes. This allows the sampler to "shoot" across low-density regions, making distant peaks appear adjacent in the warped space.

Experimental Validation

The authors evaluated MAGSS against several synthetic and high-dimensional targets, including complex unimodal targets (Funnel, Squiggle), multimodal mixtures, and the Allen-Cahn Field System, a physics model with $2^{16}$ local maxima.

Key Results

  • Superior Mode Jumping: In 16-dimensional Gaussian mixtures, MAGSS successfully transitioned between modes where baseline methods like Parallel Tempering (PT) and Diffusive Gibbs (DiGS) remained trapped.
  • Handling Extreme Multimodality: On the Allen-Cahn system, MAGSS explored complex, lower-density modes that other state-of-the-art samplers missed entirely.
  • Efficiency: For distributions featuring both high curvature and multimodality, MAGSS achieved higher accuracy (lower Wasserstein distance) with significantly fewer samples than Parallel Tempering.

Conclusion and Future Directions

MAGSS demonstrates that clever geometric warping can replace traditional tempering for multimodal sampling. By inverting metrics to accelerate through low-probability regions, the algorithm provides a robust framework for complex Bayesian inference.

However, the primary limitation is computational overhead; solving ODEs at every step is slower per iteration than Euclidean methods. Future work will focus on developing faster, approximate numerical integrators to maintain the sampler's geometric advantages while reducing wall-clock time.

Summary updated

BibTeX
@inproceedings{williams2025geodesic,
  author = {Bernardo Williams and Hanlin Yu and Hoang Phuc Hau Luu and Georgios Arvanitidis and Arto Klami},
  title = {{Geodesic Slice Sampler for Multimodal Distributions with Strong Curvature}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=O01q63Hrj5},
}
Figure