Cost free hyper-parameter selection/averaging for Bayesian inverse problems with vanilla and Rao-Blackwellized SMC samplers

Alessandro Viani, Adam M. Johansen, Alberto Sorrentino

Abstract

In Bayesian inverse problems, one aims at characterizing the posterior distribution of a set of unknowns, given indirect measurements. For non-linear/non-Gaussian problems, analytic solutions are seldom available: Sequential Monte Carlo samplers offer a powerful tool for approximating complex posteriors, by constructing an auxiliary sequence of densities that smoothly reaches the posterior. Often the posterior depends on a scalar hyper-parameter, for which limited prior information is available. In this work, we show that properly designed Sequential Monte Carlo (SMC) samplers naturally provide an approximation of the marginal likelihood associated with this hyper-parameter for free, i.e. at a negligible additional computational cost. The proposed method proceeds by constructing the auxiliary sequence of distributions in such a way that each of them can be interpreted as a posterior distribution corresponding to a different value of the hyper-parameter. This can be exploited to perform selection of the hyper-parameter in Empirical Bayes (EB) approaches, as well as averaging across values of the hyper-parameter according to some hyper-prior distribution in Fully Bayesian (FB) approaches. For FB approaches, the proposed method has the further benefit of allowing prior sensitivity analysis at a negligible computational cost. In addition, the proposed method exploits particles at all the (relevant) iterations, thus alleviating one of the known limitations of SMC samplers, i.e. the fact that all samples at intermediate iterations are typically discarded. We show numerical results for two distinct cases where the hyper-parameter affects only the likelihood: a toy example, where an SMC sampler is used to approximate the full posterior distribution; and a brain imaging example, where a Rao-Blackwellized SMC sampler is used to approximate the posterior distribution of a subset of parameters in a conditionally linear Gaussian model.

1. Introduction

Bayesian inverse problems involve estimating hidden variables $x$ from indirect and noisy measurements $y$. A common challenge in these problems is the dependence of the posterior on a scalar hyper-parameter $ heta$ (e.g., noise variance) for which prior information is often scarce. Traditionally, researchers address this via Empirical Bayes (EB), maximizing the marginal likelihood for a single $ heta$, or Fully Bayesian (FB) approaches, which average over the hyper-parameter distribution. Both methods are computationally intensive, especially when using Sequential Monte Carlo (SMC) samplers. SMC samplers evolve a population of "particles" through a sequence of distributions to reach the target posterior, but they are typically inefficient as they discard all intermediate samples. This paper introduces a method to repurpose these intermediate steps to perform hyper-parameter selection or averaging for "free."

2. Methodology

The core innovation lies in the design of the tempering sequence. In standard SMC, the likelihood is raised to a growing power $\alpha_t \in [0, 1]$. The authors demonstrate that for specific model classes, this power-tempering is mathematically equivalent to varying a hyper-parameter.

2.1 Vanilla SMC and the Natural Exponential Family

For likelihoods within the Natural Exponential Family (NEF)—including Gaussian, Exponential, and Laplace distributions—tempering steps can be directly interpreted as posterior distributions for different values of $\theta$. This allows the sampler to naturally produce marginal likelihood estimates for a range of $\theta$ values as it progresses.

2.2 Rao-Blackwellized SMC

For complex Conditionally Linear Gaussian (CLG) models, the authors derive a specific auxiliary sequence. This allows for the analytical integration of certain variables while maintaining the cost-free hyper-parameter interpretation for the remaining parameters. By recycling intermediate particles, the proposed FB method significantly increases the Effective Sample Size (ESS) and provides a smoother posterior approximation.

3. Experimental Validation

3.1 Toy Gaussian Example

The method was first validated using a 1D proof-of-concept: reconstructing the mean of a Gaussian waveform from noisy data. This setup allowed for a direct comparison between the proposed "cost-free" methods and standard, more expensive EB and FB implementations.

Toy Gaussian example: original waveform (top) and noisy measurements (bottom).

3.2 M/E-EG Source Imaging

A high-dimensional real-world application was conducted using Magneto/Electro-encephalography (M/E-EG). The task involved estimating neural activity (dipoles) in the brain from scalp recordings using a simulation with 8,193 voxels and 59 EEG channels. In this complex scenario, the proposed method achieved results comparable to standard FB approaches but with a substantial reduction in computational time and fewer likelihood evaluations.

4. Key Insights and Results

  • The "Free Lunch": The marginal likelihood, usually a byproduct of SMC, becomes the primary tool for model selection by aligning the tempering path with the hyper-parameter.
  • Instant Sensitivity Analysis: In the FB framework, the prior on $\theta$ can be changed post-simulation. Re-weighting existing results allows for rapid testing of prior assumptions without re-running simulations.
  • Efficiency and Accuracy: The "PropEB" and "PropFB" methods matched the accuracy of traditional methods in parameter estimation (e.g., dipole location) and hyper-parameter estimation (noise levels) while maintaining a more stable ESS.

5. Conclusion and Future Work

While the current method is highly effective for scalar hyper-parameters in NEF or CLG models, extending it to multivariate hyper-parameters remains a challenge. Future research may explore adaptive SMC paths that follow the gradient of the marginal likelihood to scale the method to more complex, multi-dimensional hyper-parameter spaces.

Summary updated

Abstract

In Bayesian inverse problems, one aims at characterizing the posterior distribution of a set of unknowns, given indirect measurements. For non-linear/non-Gaussian problems, analytic solutions are seldom available: Sequential Monte Carlo samplers offer a powerful tool for approximating complex posteriors, by constructing an auxiliary sequence of densities that smoothly reaches the posterior. Often the posterior depends on a scalar hyper-parameter, for which limited prior information is available. In this work, we show that properly designed Sequential Monte Carlo (SMC) samplers naturally provide an approximation of the marginal likelihood associated with this hyper-parameter for free, i.e. at a negligible additional computational cost. The proposed method proceeds by constructing the auxiliary sequence of distributions in such a way that each of them can be interpreted as a posterior distribution corresponding to a different value of the hyper-parameter. This can be exploited to perform selection of the hyper-parameter in Empirical Bayes (EB) approaches, as well as averaging across values of the hyper-parameter according to some hyper-prior distribution in Fully Bayesian (FB) approaches. For FB approaches, the proposed method has the further benefit of allowing prior sensitivity analysis at a negligible computational cost. In addition, the proposed method exploits particles at all the (relevant) iterations, thus alleviating one of the known limitations of SMC samplers, i.e. the fact that all samples at intermediate iterations are typically discarded. We show numerical results for two distinct cases where the hyper-parameter affects only the likelihood: a toy example, where an SMC sampler is used to approximate the full posterior distribution; and a brain imaging example, where a Rao-Blackwellized SMC sampler is used to approximate the posterior distribution of a subset of parameters in a conditionally linear Gaussian model.
BibTeX
@inproceedings{viani2023cost,
  author = {Alessandro Viani and Adam M. Johansen and Alberto Sorrentino},
  title = {{Cost free hyper-parameter selection/averaging for Bayesian inverse problems with vanilla and Rao-Blackwellized SMC samplers}},
  booktitle = {Stat. Comput},
  year = {2023},
  url = {https://openreview.net/forum?id=R3DT8R3xGM},
}
Figure