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

贝叶斯神经网络的随机权重共享

Stochastic Weight Sharing for Bayesian Neural Networks

Lero;Trinity College Dublin University(三一学院都柏林大学);University College Dublin(都柏林大学);Northeast Forestry University(东北林业大学)

Moule Lin, Shuhao Guan, Weipeng Jing, Goetz Botterweck, Andrea Patane

AI总结:

本文提出一种随机权重共享方法,利用二维高斯分布和Wasserstein距离将贝叶斯神经网络压缩至软高斯表示,大幅降低计算开销,实现大规模模型高效训练,参数压缩50倍且精度相当。

摘要:

尽管贝叶斯神经网络(BNNs)为深度学习中的不确定性量化提供了一个有原则的框架,但其应用仍受限于增加的计算需求以及在训练非常深的最先进架构时遇到的收敛困难。在这项工作中,我们从随机视角重新解释了权重共享量化技术,并将其应用于贝叶斯神经网络(BNNs)的训练和推理。具体来说,我们利用二维自适应高斯分布、Wasserstein距离估计和alpha混合,将BNN的随机行为编码为低维度的软高斯表示。通过广泛的实证研究,我们证明了我们的方法将贝叶斯学习固有的计算开销显著降低了几个数量级,从而能够高效地对大规模模型(如ResNet-101和Vision Transformer(ViT))进行贝叶斯训练。在包括CIFAR10、CIFAR100和ImageNet1k在内的多个计算机视觉基准测试中,我们的方法将模型参数压缩约50倍,并将模型大小减少75%,同时实现了与最先进方法相当的准确性和不确定性估计。

英文摘要:

While offering a principled framework for uncertainty quantification in deep learning, the employment of Bayesian Neural Networks (BNNs) is still constrained by their increased computational requirements and the convergence difficulties when training very deep, state-of-the-art architectures. In this work, we reinterpret weight-sharing quantization techniques from a stochastic perspective in the context of training and inference with Bayesian Neural Networks (BNNs). Specifically, we leverage 2D adaptive Gaussian distributions, Wasserstein distance estimations, and alpha blending to encode the stochastic behaviour of a BNN in a lower dimensional, soft Gaussian representation. Through extensive empirical investigation, we demonstrate that our approach significantly reduces the computational overhead inherent in Bayesian learning by several orders of magnitude, enabling the efficient Bayesian training of large-scale models, such as ResNet-101 and Vision Transformer (VIT). On various computer vision benchmarks including CIFAR10, CIFAR100, and ImageNet1k. Our approach compresses model parameters by approximately 50x and reduces model size by 75, while achieving accuracy and uncertainty estimations comparable to the state-of-the-art.

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

↑