自动拉普拉斯坍缩采样:通过自动微分实现高维潜在参数的可扩展边缘化
Automatic Laplace Collapsed Sampling: Scalable Marginalisation of Latent Parameters via Automatic Differentiation
AI总结:
本文提出ALCS框架,通过自动微分结合嵌套采样,高效稳健地进行贝叶斯模型中潜在参数的边缘化,支持高维场景下的证据计算,并展示自动微分在局部近似中的应用。
摘要:
我们提出了自动拉普拉斯坍缩采样(ALCS),一种通过自动微分进行贝叶斯模型中潜在参数边缘化的通用框架,结合嵌套采样以稳健高效地探索超参数空间。在每次嵌套采样似然评估中,ALCS通过最大后验(MAP)优化和拉普拉斯近似将高维潜在变量$z$坍缩为标量贡献,二者均通过自动微分计算。这将有效维度从$d_θ + d_z$降至仅$d_θ$,使高维设置下的贝叶斯证据计算变得可行,无需手动导出梯度或海森矩阵,且需最小模型特定工程。MAP优化和海森矩阵评估在GPU硬件上并行化,使方法在大规模上可行。我们还展示自动微分能够超越拉普拉斯近似,用于参数族如学生t分布的局部近似,从而改进重尾潜在变量的证据估计。我们验证了ALCS在涵盖分层、时间序列和离散似然模型的基准测试集上的性能,并确定高斯近似适用的区域。这使得能够进行后验有效样本数(ESS)诊断,无需昂贵的联合采样即可局部化超参数空间中的失败区域。
英文摘要:
We present Automatic Laplace Collapsed Sampling (ALCS), a general framework for marginalising latent parameters in Bayesian models using automatic differentiation, which we combine with nested sampling to explore the hyperparameter space in a robust and efficient manner. At each nested sampling likelihood evaluation, ALCS collapses the high-dimensional latent variables $z$ to a scalar contribution via maximum a posteriori (MAP) optimisation and a Laplace approximation, both computed using autodiff. This reduces the effective dimension from $d_θ+ d_z$ to just $d_θ$, making Bayesian evidence computation tractable for high-dimensional settings without hand-derived gradients or Hessians, and with minimal model-specific engineering. The MAP optimisation and Hessian evaluation are parallelised across live points on GPU-hardware, making the method practical at scale. We also show that automatic differentiation enables local approximations beyond Laplace to parametric families such as the Student-$t$, which improves evidence estimates for heavy-tailed latents. We validate ALCS on a suite of benchmarks spanning hierarchical, time-series, and discrete-likelihood models and establish where the Gaussian approximation holds. This enables a post-hoc ESS diagnostic that localises failures across hyperparameter space without expensive joint sampling.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。