TL;DR
Bayesian inference on complex hierarchical models often forces an uncomfortable choice: use a fast Laplace approximation and live with permanent bias, or run exact MCMC and wait days for your sampler to untangle tricky geometry. This paper bridges that gap by reframing the Laplace approximation as a single-sample importance sampler. By cleverly adding more samples—and differentiating right through them—you keep the geometric speedups of marginalization while converging to the exact, unbiased posterior.
What Problem Does This Paper Address?
Latent Gaussian Models (LGMs)—which include Gaussian processes, spatial models, and mixed-effects models—are workhorses of Bayesian statistics. They pair hyperparameters ($\theta$) with high-dimensional latent Gaussian variables ($z$) to explain observations ($y$).
Sampling the joint posterior of $(\theta, z)$ directly using Markov chain Monte Carlo (MCMC), like Hamiltonian Monte Carlo (HMC), is notoriously painful. The posterior geometry often forms treacherous "funnels" where samplers get stuck or diverge. The standard workaround is to integrate (marginalize) out $z$, leaving a much simpler, lower-dimensional space for $\theta$.
When your data isn't Gaussian (say, Poisson counts), you can't do this integral analytically. Instead, tools like INLA and Stan's Adjoint-Differentiated Laplace Approximation (ADLA) approximate the conditional posterior of $z$ with a Gaussian bump matched to its mode and curvature. This tames the geometry and makes HMC fly, but it introduces permanent approximation error ("posterior error"). No matter how long you run your sampler, you are sampling from the wrong answer.
Methods
The authors start with a neat mathematical observation: standard ADLA evaluates the marginalized model at the Laplace mode $\hat{z}$. If you instead evaluate that exact same formula at random points $z_i$ drawn from the Laplace approximation and average them, you get an unbiased importance sampling estimator of the true marginal model.
To plug this random estimator into HMC (which expects a deterministic, differentiable target density) and propagate gradients through the samples $z_i$ via JAX, the authors introduce three ADLA variants:
- PM-ADLA (Pseudo-Marginal): Augments the HMC state space with $n$ standard normal noise variables used to reparameterize the samples $z_i$. It yields the exact posterior for any $n \ge 1$ and smooths out the nasty geometry, though $n > 1$ actually increases the total dimension of the space.
- QMC-ADLA (Quasi-Monte Carlo): Instead of sampling random noise, it fixes $n$ deterministic, evenly spread points from a low-discrepancy Sobol sequence. This keeps the dimension low and continuous for HMC, becoming exact only asymptotically ($n \to \infty$).
- RQMC-ADLA (Randomized QMC): Combines both worlds by shifting the fixed QMC sequence with a single uniform random vector $U$ of the same dimension as $z$. It yields an exact posterior without inflating the original model's dimension. Because wrapping points around a unit cube (modulo arithmetic) creates discontinuities, the authors pair HMC for $\theta$ with a Metropolis-within-Gibbs step for $U$.
Finally, instead of crudely drawing $z$ from the Gaussian approximation post-hoc, the authors reuse the already-computed importance weights to resample $z$, recovering exact latent marginals for PM and RQMC.
Datasets
No new benchmarks are introduced; the authors evaluate their algorithms in BlackJAX/NumPyro across three standard LGM setups:
- Synthesized Log-Gaussian Cox Process: $N=100$ 1D data points with a Poisson likelihood.
- Sparse Kernel Interaction Model (SKIM): A real-data generalized linear model with pairwise interaction terms (following Margossian et al., 2020).
Epil2Clinical Trial Dataset: A real-world negative-binomial mixed-effects model from theglmmTMBpackage tracking patient seizure counts.
Key Insights and Ideas
- Laplace is just $n=1$ QMC in disguise: Viewing the Laplace approximation as an importance sampler evaluated at a single point (the mode, corresponding to $u_i = 0.5$ in QMC) seamlessly unifies approximate deterministic inference and exact Monte Carlo methods.
- Trading bad geometry for well-behaved dimensions: It seems counterintuitive that PM-ADLA adds dimensions ($n$ copies of $z$'s noise) to help HMC. The magic is that as $n$ grows, the auxiliary noise decouples from $\theta$, turning a warped, funnel-shaped posterior into a clean marginal multiplied by independent standard normals.
- RQMC as training-free reparameterization: Learning optimal reparameterizations (like normalizing flows) usually requires an expensive pre-training phase. RQMC-ADLA acts as an out-of-the-box reparameterization with tuning knob $n$ and guaranteed exactness.
Key Results
- Eliminating Divergences: On the Gaussian process and SKIM tasks, standard HMC (even with non-centered parameterization and a cranked-up 0.99 target acceptance rate) suffered 205 and 153 divergent transitions, respectively. ADLA and all three proposed methods achieved zero divergences at the default 0.8 acceptance rate.
- Closing the Bias Gap: In the Gaussian process experiment, standard ADLA plateaued early with an obvious bias on latent variable $f_{40}$, whereas PM and RQMC drove the error down alongside exact HMC while estimating hyperparameters much faster.
Parameter estimation error over time on the Gaussian Process (Note: See Figure 1 below for error trajectories) Error of estimating parameter means over time
- Speed vs. Accuracy Trade-offs: On SKIM, PM-ADLA became prohibitively slow due to dimension scaling, whereas RQMC ($n=16$) cleanly corrected tail errors in variables like $\log \tau$ where even QMC ($n=64$) struggled. Conversely, on the
Epil2dataset—where standard non-centered HMC is already very efficient—RQMC occasionally produced higher error than ADLA within the fixed time budget due to per-step Gibbs overhead.
Limitations and Future Work
- Asymmetry hurts QMC: Surprisingly, QMC-ADLA sometimes had higher bias than vanilla ADLA (e.g., for $\log \rho$ in the GP task), likely because finite QMC sequences aren't symmetric around the mode.
- Computational Scaling: Every leapfrog step requires $n$ likelihood evaluations. Furthermore, RQMC's coordinate-wise Gibbs updates scale as $\mathcal{O}(n d_z^3)$, hurting its Effective Sample Size per minute as latent dimension $d_z$ grows.
- Heavy-Tailed Weights: Pareto $\hat{k}$ diagnostics on the importance weights averaged around $0.5$ (occasionally $>0.7$), suggesting the weight variance isn't always finite. Future work could swap the Gaussian Laplace proposal for heavier-tailed approximations, or pair these estimators with variational inference instead of HMC.
Summary updated