TL;DR
This paper introduces and evaluates "Geometric No-U-Turn Samplers" (Geometric NUTS), an extension of the popular NUTS sampler for Bayesian inference. By leveraging Riemannian geometry, these new samplers can navigate complex probability distributions more effectively than standard Euclidean NUTS, leading to improved sampling efficiency and accuracy, especially in high-curvature scenarios.
What Problem Does This Paper Address?
Bayesian inference, a powerful tool for quantifying uncertainty, often relies on Markov Chain Monte Carlo (MCMC) methods to approximate complex probability distributions. While standard MCMC methods like Hamiltonian Monte Carlo (HMC) and its adaptive variant, No-U-Turn Sampler (NUTS), are widely used, they can struggle with distributions that have highly curved or elongated shapes. This is because they assume a simple, "flat" Euclidean geometry for the parameter space, which can lead to inefficient exploration and slow convergence. Geometric or Riemannian MCMC methods aim to address this by incorporating the geometry of the probability distribution itself, using a "metric tensor" to define distances and trajectories. However, these methods have historically been limited by their complexity, the difficulty in choosing an appropriate metric, and the need for additional tuning parameters. This paper seeks to make geometric MCMC more practical and accessible by providing a unified framework, exploring various metric choices, and adapting the NUTS algorithm's adaptive features to this geometric setting.
Methods
The core contribution of this paper is the extension of the No-U-Turn Sampler (NUTS) to Riemannian manifolds, creating "Geometric NUTS." This involves:
- Riemannian Manifold Hamiltonian Monte Carlo (RMHMC) and Lagrangian Monte Carlo (LMC): The paper builds upon existing Riemannian MCMC frameworks, specifically RMHMC and LMC, which use a metric tensor $G(\theta)$ to define the geometry of the parameter space.
- Metric Choices: The authors explore and propose several metrics:
- Euclidean: The standard flat metric, used as a baseline.
- Fisher Information Metric (FIM): A theoretically motivated metric based on the curvature of the log-probability density.
- Softabs Metric: A general metric that is robust and can be computed efficiently.
- Monge Metric: A metric that offers computational advantages, particularly for its inverse.
- Modified Monge Metric: A novel variant proposed by the authors, combining a global precision matrix $M$ with the Monge metric, aiming for improved robustness and efficiency.
- NUTS Adaptation for Riemannian Geometry: The key innovation is adapting the NUTS algorithm's adaptive mechanisms to the Riemannian setting:
- Warm-up Phase: Dual-averaging is used to tune the step-size ($\epsilon$) and, in some cases, adapt the metric itself.
- Stopping Criterion: The paper adapts the "u-turn" criterion, originally designed for Euclidean space, to Riemannian manifolds. They propose and evaluate several variants, including Euclidean, Betancourt, and a new Riemannian criterion.
- Numerical Integration: The paper utilizes generalized Leapfrog integrators for RMHMC and an explicit integrator for LMC, adapted for the chosen metrics.
Datasets
The paper evaluates their methods on a variety of inference tasks:
- Synthetic Distributions:
- Neal's Funnel distribution: A classic benchmark with a "neck" that can be challenging for standard samplers.
- Rosenbrock distribution: Another synthetic distribution known for its complex geometry.
- Bayesian Logistic Regression: Three real-world datasets are used (Australian, German, Heart) to evaluate performance on a common machine learning task.
- Posteriordb Models: Three models from the posteriordb database are used:
- Eight schools non-centered (8sn)
- Garch-11 (gar)
- Low dimensional Gaussian mixture (ldg)
Reference samples for these models were obtained using Stan with carefully tuned NUTS.
Key Insights and Ideas
- Riemannian Geometry is Generally Beneficial: The paper strongly suggests that Riemannian metrics can outperform the standard Euclidean metric, especially in problems with high curvature. While Euclidean NUTS can sometimes achieve comparable accuracy, it never surpasses the best Riemannian metric.
- Metric Choice is Problem-Specific: There's no single "best" metric. The Fisher Information Metric and Softabs metric performed well across various tasks, with Softabs being particularly robust for the posteriordb examples. The Monge metric offers computational advantages.
- Stopping Criterion is Less Critical Than Expected: For most tasks, the specific choice of Riemannian stopping criterion (Euclidean, Betancourt, or their proposed Riemannian version) had a minimal impact on accuracy, suggesting that the adaptive nature of NUTS can compensate for minor variations in this parameter.
- Dimensionality Matters: As dimensionality increases, the advantage of Riemannian methods becomes more pronounced. Euclidean NUTS struggles in higher dimensions for certain distributions (like the funnel), while Riemannian methods continue to perform well.
- Practicality is Key: The authors' primary goal is to make geometric MCMC more accessible. They achieve this by adapting NUTS's automatic tuning mechanisms and providing a comprehensive empirical comparison of various choices.
Key Results
The paper presents extensive empirical results across various models and configurations. Key findings include:
- Improved Accuracy: In most cases, Riemannian NUTS achieved lower Wasserstein distances to reference samples compared to Euclidean NUTS, indicating better accuracy.
- Fisher Metric Dominance (where applicable): For synthetic and logistic regression problems where the Fisher Information Metric could be computed, it consistently yielded the best results.
- Softabs Robustness: For the posteriordb models, the Softabs metric was the best performer.
- Monge Metric Efficiency: The proposed Monge-M metric showed robustness to its tuning parameter ($\alpha^2$) and achieved good accuracy, often with faster per-iteration times than Softabs.
- Dimensionality Performance: Figure 2 demonstrates that as dimensionality increases, Euclidean NUTS's performance degrades significantly on the funnel distribution, while LMC-NUTS with Riemannian stopping criteria maintains good performance.
- Total Combinations: The study exhaustively evaluated approximately 300 different combinations of samplers, metrics, and stopping criteria.
Limitations and Future Work
- Metric Selection Heuristics: While the paper shows that Riemannian metrics are beneficial, it acknowledges that the question of how a practitioner should choose the optimal metric in practice, without prior knowledge of the true posterior, remains open.
- Simulation-Based Calibration: The authors suggest that Simulation-Based Calibration (SBC) could be a valuable tool for assessing sampler performance when reference samples are unavailable, but further experimentation is needed.
- Exploration of Other Adaptive Techniques: The paper mentions that various alternative formulations for adaptive control of parameters exist and could be explored in the context of Riemannian methods as future work.
- Limited Scope of Problems: While the study covers a range of problems, it's acknowledged that the evaluation could be extended to more complex target densities, new metrics, or other sampler variants.
Summary updated