arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.06962cs.LGcs.AI
收藏

基于剪枝MCMC采样的紧凑贝叶斯神经网络

Compact Bayesian Neural Networks via pruned MCMC sampling

ITTC ARC Centre for Data Analytics for Resources and Environment(ITTC ARC资源与环境数据分析中心);University of Sydney(悉尼大学);UNSW Data Science Hub(新南威尔士大学数据科学中心);University of New South Wales(新南威尔士大学);Geocoastal Research Group(地理海岸研究组);Transitional Artificial Intelligence Research Group(过渡人工智能研究组)

Ratneel Deo, Scott Sisson, Jody M. Webster, Rohitash Chandra

AI总结:

针对贝叶斯神经网络训练计算成本高、参数冗余的问题,提出结合MCMC采样与网络剪枝及剪枝后重采样的方法,可在网络规模缩减75%以上时保留泛化与不确定性估计能力,经基准和真实数据集验证有效。

摘要:

贝叶斯神经网络(Bayesian Neural Networks, BNNs)能为模型预测提供可靠的不确定性量化,但训练这类模型存在显著的计算挑战,这主要源于使用马尔可夫链蒙特卡洛(Markov Chain Monte Carlo, MCMC)采样和变分推断算法采样多峰后验分布的难题。此外,随着隐藏层、神经元数量及数据集特征的增加,模型参数数量会呈指数级增长。通常,这些全连接参数中有相当一部分是冗余的,而对神经网络进行剪枝不仅能提升便携性,还有望增强模型的泛化能力。\n本研究通过结合MCMC采样与网络剪枝来解决部分挑战,以得到移除了冗余参数的紧凑概率模型。我们对模型参数(权重和偏置)的后验分布进行采样,并剪枝重要性较低的权重,从而得到紧凑模型。我们通过采用剪枝后重采样的方法,确保紧凑BNN在保留模型训练与泛化性能准确率的同时,仍具备通过后验分布估计不确定性的能力。\n我们通过实证结果分析,在选定的回归与分类问题基准数据集上评估了所提MCMC剪枝策略的有效性;还引入了两个珊瑚礁钻孔岩性分类数据集,以测试剪枝模型在复杂真实世界数据集上的鲁棒性;并进一步探究了对紧凑BNN进行优化是否能弥补性能损失。结果表明,使用MCMC训练并剪枝BNN是可行的,且能在网络规模缩减75%以上的同时保留泛化性能,这为开发可提供不确定性估计的紧凑BNN模型以应用于真实场景铺平了道路。

英文摘要:

Bayesian Neural Networks (BNNs) offer robust uncertainty quantification in model predictions, but training them presents a significant computational challenge. This is mainly due to the problem of sampling multimodal posterior distributions using Markov Chain Monte Carlo (MCMC) sampling and variational inference algorithms. Moreover, the number of model parameters scales exponentially with additional hidden layers, neurons, and features in the dataset. Typically, a significant portion of these densely connected parameters are redundant and pruning a neural network not only improves portability but also has the potential for better generalisation capabilities. In this study, we address some of the challenges by leveraging MCMC sampling with network pruning to obtain compact probabilistic models having removed redundant parameters. We sample the posterior distribution of model parameters (weights and biases) and prune weights with low importance, resulting in a compact model. We ensure that the compact BNN retains its ability to estimate uncertainty via the posterior distribution while retaining the model training and generalisation performance accuracy by adapting post-pruning resampling. We evaluate the effectiveness of our MCMC pruning strategy on selected benchmark datasets for regression and classification problems through empirical result analysis. We also consider two coral reef drill-core lithology classification datasets to test the robustness of the pruning model in complex real-world datasets. We further investigate if refining compact BNN can retain any loss of performance. Our results demonstrate the feasibility of training and pruning BNNs using MCMC whilst retaining generalisation performance with over 75% reduction in network size. This paves the way for developing compact BNN models that provide uncertainty estimates for real-world applications.

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

↑