arXiv:2512.10602cs.LG2025-12

4位量化让贝叶斯神经网络在边缘设备上保持不确定性精度

Uncertainty-Preserving QBNNs: Multi-Level Quantization of SVI-Based Bayesian Neural Networks for Image Classification

  • 分三策略对变分参数、采样参数和联合参数进行多级量化
  • 4位量化下分类准确率与不确定性解耦性能基本不变
  • 适用于边缘部署的高可靠性模型,为低精度硬件设计提供参考

贝叶斯神经网络(BNNs)能提供可信的不确定性估计,但相比确定性网络存在显著的计算和内存开销。尽管量化技术已成功降低标准深度学习模型的资源需求,但在概率模型中的应用仍很少被探索。本文提出一种基于随机变分推断(SVI)的BNN系统性多级量化框架,区分三种量化策略:变分参数量化(VPQ)、采样参数量化(SPQ)和联合量化(JQ)。通过针对方差参数的对数量化及专用激活函数以保留分布结构,确保了校准的不确定性估计。在Dirty-MNIST数据集上的全面实验表明,BNN可实现低至4位的量化,同时维持分类准确率和不确定性解耦能力。4位时,联合量化相比浮点实现最多实现8倍内存压缩,且对认知不确定性和偶然不确定性估计的退化极小。该结果使BNN可在资源受限的边缘设备上部署,并为未来运行于固有低精度的模拟“贝叶斯机器”提供设计指导。

原文摘要 · Abstract (English)

Bayesian Neural Networks (BNNs) provide principled uncertainty quantification but suffer from substantial computational and memory overhead compared to deterministic networks. While quantization techniques have successfully reduced resource requirements in standard deep learning models, their application to probabilistic models remains largely unexplored. We introduce a systematic multi-level quantization framework for Stochastic Variational Inference based BNNs that distinguishes between three quantization strategies: Variational Parameter Quantization (VPQ), Sampled Parameter Quantization (SPQ), and Joint Quantization (JQ). Our logarithmic quantization for variance parameters, and specialized activation functions to preserve the distributional structure are essential for calibrated uncertainty estimation. Through comprehensive experiments on Dirty-MNIST, we demonstrate that BNNs can be quantized down to 4-bit precision while maintaining both classification accuracy and uncertainty disentanglement. At 4 bits, Joint Quantization achieves up to 8x memory reduction compared to floating-point implementations with minimal degradation in epistemic and aleatoric uncertainty estimation. These results enable deployment of BNNs on resource-constrained edge devices and provide design guidelines for future analog "Bayesian Machines" operating at inherently low precision.

贝叶斯神经网络量化边缘计算不确定性

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