arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.00699cs.LGcs.AIstat.ML
收藏

参数扩展随机梯度马尔可夫链蒙特卡洛

Parameter Expanded Stochastic Gradient Markov Chain Monte Carlo

KAIST(韩国科学技术院)

Hyunsu Kim, Giung Nam, Chulhee Yun, Hongseok Yang, Juho Lee

AI总结:

针对SGMCMC在贝叶斯神经网络中样本多样性不足的问题,提出通过分解权重矩阵进行重参数化的方法,在不增加推理成本且无需退火或多链的情况下显著提升样本多样性与混合速度。

摘要:

贝叶斯神经网络(BNNs)通过估计网络参数的后验分布,为建模预测不确定性和增强分布外鲁棒性(OOD)提供了一个有前景的框架。Stochastic Gradient Markov Chain Monte Carlo (SGMCMC) 是 BNNs 中用于可扩展后验采样的最强大方法之一,它通过将随机梯度下降与二阶 Langevin 动力学相结合来实现高效性。然而,SGMCMC 在实践中经常受限于样本多样性不足,这影响了不确定性估计和模型性能。我们提出了一种简单而有效的方法来增强 SGMCMC 的样本多样性,而无需进行退火或运行多条链。我们的方法通过对神经网络进行重参数化,将其每个权重矩阵分解为矩阵的乘积,从而产生一条能够更好地探索目标参数空间的采样轨迹。这种方法产生了一组更多样化的样本,允许在相同的计算预算内更快地混合。值得注意的是,与标准 SGMCMC 相比,我们的采样器在不增加推理成本的情况下实现了这些改进。在图像分类任务上的大量实验,包括 OOD 鲁棒性、多样性、损失表面分析,以及与 Hamiltonian Monte Carlo 的比较研究,证明了所提出方法的优越性。

英文摘要:

Bayesian Neural Networks (BNNs) provide a promising framework for modeling predictive uncertainty and enhancing out-of-distribution robustness (OOD) by estimating the posterior distribution of network parameters. Stochastic Gradient Markov Chain Monte Carlo (SGMCMC) is one of the most powerful methods for scalable posterior sampling in BNNs, achieving efficiency by combining stochastic gradient descent with second-order Langevin dynamics. However, SGMCMC often suffers from limited sample diversity in practice, which affects uncertainty estimation and model performance. We propose a simple yet effective approach to enhance sample diversity in SGMCMC without the need for tempering or running multiple chains. Our approach reparameterizes the neural network by decomposing each of its weight matrices into a product of matrices, resulting in a sampling trajectory that better explores the target parameter space. This approach produces a more diverse set of samples, allowing faster mixing within the same computational budget. Notably, our sampler achieves these improvements without increasing the inference cost compared to the standard SGMCMC. Extensive experiments on image classification tasks, including OOD robustness, diversity, loss surface analyses, and a comparative study with Hamiltonian Monte Carlo, demonstrate the superiority of the proposed approach.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑