arXiv:2503.00699cs.LGcs.AI2025-03ICLR被引 2

通过参数分解提升贝叶斯神经网络采样多样性

Parameter Expanded Stochastic Gradient Markov Chain Monte Carlo

  • 将权重矩阵分解为多个矩阵乘积,扩展参数空间探索能力
  • 相同计算量下样本多样性显著提升,收敛更快
  • 无需额外计算开销,适合对不确定性敏感的应用

贝叶斯神经网络(BNN)通过估计参数后验分布,可有效建模预测不确定性并提升分布外(OOD)鲁棒性。随机梯度马尔可夫链蒙特卡洛(SGMCMC)结合随机梯度下降与二阶朗之万动力学,是实现BNN高效后验采样的关键方法。然而,实际中SGMCMC常面临样本多样性不足的问题,影响不确定性估计与模型性能。本文提出一种简单而有效的方法,在不使用温度调节或多链运行的前提下,通过将网络权重矩阵分解为多个矩阵的乘积,重构参数空间表示,使采样轨迹更充分探索目标空间。该方法在相同计算预算下实现更快混合速度,且不增加推理开销。在图像分类任务上的大量实验,包括对OOD鲁棒性、样本多样性、损失曲面分析及与哈密顿蒙特卡洛的对比,均验证了所提方法的优越性。

原文摘要 · Abstract (English)

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.

贝叶斯神经网络采样算法不确定性估计

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。