Riemannian Laplace Approximation with the Fisher Metric

Hanlin Yu, Marcelo Hartmann, Bernardo Williams Moreno Sanchez, Mark Girolami, Arto Klami

Abstract

Laplace’s method approximates a target density with a Gaussian distribution at its mode. It is computationally efficient and asymptotically exact for Bayesian inference due to the Bernstein-von Mises theorem, but for complex targets and finite-data posteriors it is often too crude an approximation. A recent generalization of the Laplace Approximation transforms the Gaussian approximation according to a chosen Riemannian geometry providing a richer approximation family, while still retaining computational efficiency. However, as shown here, its properties depend heavily on the chosen metric, indeed the metric adopted in previous work results in approximations that are overly narrow as well as being biased even at the limit of infinite data. We correct this shortcoming by developing the approximation family further, deriving two alternative variants that are exact at the limit of infinite data, extending the theoretical analysis of the method, and demonstrating practical improvements in a range of experiments.

Introduction

In Bayesian machine learning, the central challenge is often the intractability of the posterior distribution. While Markov Chain Monte Carlo (MCMC) methods provide high accuracy, their computational cost is often prohibitive. The Laplace Approximation (LA) offers a fast alternative by fitting a Gaussian distribution at the Maximum A Posteriori (MAP) estimate. However, the standard LA is limited by its rigid Gaussian shape, which fails to capture the nuances of skewed or highly curved distributions common in finite-data regimes.

The Riemannian Laplace Framework

To overcome the limitations of standard LA, the Riemannian Laplace Approximation (RLA) was recently introduced. RLA enhances flexibility by sampling from a base Gaussian in a tangent space and then "warping" these samples along curved paths, known as geodesics, defined by the geometry of the parameter space.

Conceptual illustration of the Riemannian Laplace Approximation: samples are transported from the tangent space at the mode to the parameter space via the exponential map.

While conceptually powerful, the initial implementation of RLA utilized a "Monge metric" based on local gradients. As this paper demonstrates, this choice introduces a fundamental mathematical bias. The Monge metric causes the velocity of samples to decay as they move away from the mode, leading to an underestimation of uncertainty and a failure to recover even simple Gaussian targets.

Correcting the Bias: The Fisher Metric

The authors propose a robust solution by replacing the Monge metric with the Fisher Information Matrix (FIM). This new variant, RLA-F, leverages the expected curvature of the probabilistic model rather than just local gradients.

Key contributions include:

  1. Asymptotic Exactness: Unlike the previous Monge-based RLA, RLA-F recovers the guarantees of the Bernstein-von Mises theorem, becoming exact as the dataset size grows.
  2. Diffeomorphic Exactness: RLA-F is exactly correct for any distribution that can be represented as a warped Gaussian (a diffeomorphism), even with limited data.
  3. Hausdorff MAP: The method utilizes a reparameterization-invariant MAP estimate that aligns with the Fisher geometry, ensuring consistent results across different coordinate systems.

Experimental Evaluation

The proposed method was tested against standard LA and the biased RLA baseline across various benchmarks, including toy 2D distributions (Banana, Funnel) and Bayesian logistic regression.

Quantitative comparison of the proposed exact method (ELA) against the biased RLA baseline (RLA-B). The proposed method maintains a low Wasserstein distance to the ground truth across increasing dimensions.

The results highlight two major advantages of the Fisher metric:

  • Accuracy: RLA-F consistently achieved the lowest Wasserstein distance to ground-truth MCMC samples.
  • Efficiency: The Fisher metric creates a smoother geometric surface, allowing numerical ODE solvers to converge much faster. In logistic regression tasks, RLA-F required orders of magnitude fewer function evaluations than the Monge-based method, which often struggled with numerical instability.

Conclusion

By grounding the Riemannian Laplace Approximation in Fisher geometry, this work resolves the theoretical bias of previous methods while improving computational stability. While the $O(D^3)$ cost of inverting the Fisher Information Matrix remains a challenge for very large models, RLA-F sets a new standard for accurate and efficient Bayesian inference in small-to-medium scale applications. Future research into scalable FIM approximations promises to extend these benefits to deep learning.

Summary updated

BibTeX
@inproceedings{yu2024riemannian,
  author = {Hanlin Yu and Marcelo Hartmann and Bernardo Williams Moreno Sanchez and Mark Girolami and Arto Klami},
  title = {{Riemannian Laplace Approximation with the Fisher Metric}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
  url = {https://openreview.net/forum?id=VCHhYiDdLs},
}
Figure