Variational sparse Bayesian neural networks with regularized horseshoe priors and scale mixture priors
Xu Chen , Lilong Sima , Zhen Wei , Xingde Duan , Ping Feng , Fuhong Song
AIMS Mathematics ›› 2025, Vol. 10 ›› Issue (9) : 21929 -21952.
Choosing an appropriate prior distribution for the weights of Bayesian neural networks (BNNs) remains an open challenge. In most cases, a Gaussian prior is adopted, but its typically high variance can lead to overestimation of the predictive uncertainty. Recently, horseshoe priors have been proposed for model selection and compression, as they effectively deactivate units that do not contribute to explaining the data and yield well-calibrated structural weight uncertainty estimates. However, the horseshoe prior has been found to underestimate predictive uncertainty, especially in regions lacking data. In this paper, we proposed an efficient variational sparse BNN that integrates both a regularized horseshoe prior and a Gaussian scale mixture prior. Both priors can induce sparsity, thereby mitigating overfitting and improving the model's generalization ability. Our approach enables computationally efficient optimization via variational inference while providing more reliable predictive uncertainty. Experimental results demonstrate that the proposed model delivers competitive predictive performance and reasonable posterior weight uncertainty estimates in non-linear regression, image classification, and anomaly detection tasks compared with recent methods.
Bayesian neural networks / regularized horseshoe prior / variational inference / uncertainty estimation
| [1] |
|
| [2] |
J. C. Bai, Q. F. Song, G. Cheng, Efficient variational inference for sparse deep learning with theoretical guarantee, In: Proceedings of the 34th International Conference on Neural Information Processing Systems, Red Hook: Curran Associates Inc., 2020,466–476. |
| [3] |
F. Bergamin, Pablo. Moreno-Muñoz, S. Hauberg, G. Arvanitidis, Riemannian Laplace approximations for Bayesian neural networks, 37th Annual Conference on Neural Information Processing Systems, New Orleans, US, 2023. |
| [4] |
C. Blundell, J. Cornebise, K. Kavukcuoglu, D. Wierstra, Weight uncertainty in neural networks, In: Proceedings of the 32nd International Conference on Machine Learning, New York: PMLR, 2015, 1613–1622. |
| [5] |
C. M. Carvalho, N. G. Polson, J. G. Scott, Handling sparsity via the horseshoe, In: Proceedings of the Twelfth International Conference on Artificial Intelligence and Statistics, New York: PMLR, 2009, 73–80. |
| [6] |
|
| [7] |
|
| [8] |
|
| [9] |
N. Dabiran, B. Robinson, R. Sandhu, Mo. Khalil, D. Poirel, A. Sarkar, Sparse Bayesian neural networks for regression: Tackling overfitting and computational challenges in uncertainty quantification, arXiv: 2310.15614, (2023). |
| [10] |
E. Daxberger, E. Nalisnick, J. U. Allingham, J. Antorán, J. Hernández-Lobato, Bayesian deep learning via subnetwork inference, In: Proceedings of the 38th International Conference on Machine Learning, New York: PMLR, 2021, 2510–2521. |
| [11] |
|
| [12] |
|
| [13] |
Y. Gal, R. Islam, Z. Ghahramani, Deep Bayesian active learning with image data, In: Proceedings of the 34th International Conference on Machine Learning, New York: PMLR, 2017, 1183–1192. |
| [14] |
|
| [15] |
S. Ghosh, Y. Yao, F. Doshi-Velez, Structured variational learning of Bayesian neural networks with horseshoe priors, In: Proceedings of the 35th International Conference on Machine Learning, New York: PMLR, 2018, 1739–1748. |
| [16] |
D. Hendrycks, K. Gimpel, A baseline for detecting misclassified and out-of-distribution examples in neural networks, In: International Conference on Learning Representations, 2017, 1–12. |
| [17] |
|
| [18] |
J. M. Hernández-Lobato, Y. Z. Li, M. Rowland, T. Bui, D. Hernández-Lobato, R. Turner, Black-box alpha-divergence minimization, In: Proceedings of the 33rd International Conference on Machine Learning, New York: PMLR, 2016, 1511–1520. |
| [19] |
A. Hubin, G. Storvik, Variational inference for Bayesian neural networks under model and parameter uncertainty, arXiv: 2305.00934, (2023). |
| [20] |
J. Ingraham, D. S. Marks, Variational inference for sparse and undirected models, In: Proceedings of the 34th International Conference on Machine Learning, New York: PMLR, 2017, 1607–1616. |
| [21] |
|
| [22] |
|
| [23] |
|
| [24] |
A. Kendall, Y. Gal, What uncertainties do we need in Bayesian deep learning for computer vision?, In: Proceedings of the 31st International Conference on Neural Information Processing Systems, Red Hook: Curran Associates Inc., 2017, 5580–5590. |
| [25] |
D. P. Kingma, M. Welling, Auto-encoding variational Bayes, International Conference on Learning Representations, Banff, Canada, 2014. |
| [26] |
D. Krueger, C.-W. Huang, R. Islam, R. Turner, A. Lacoste, A. Courville, Bayesian hypernetworks, Second workshop on Bayesian Deep Learning (NIPS 2017), Long Beach, USA, 2017. |
| [27] |
Y. Z. Li, Y. Gal, Dropout inference in Bayesian neural networks with alpha-divergences, In: Proceedings of the 34th International Conference on Machine Learning, New York: PMLR, 2017, 2052–2061. |
| [28] |
|
| [29] |
C. Louizos, K. Ullrich, M. Welling, Bayesian compression for deep learning, In: Proceedings of the 31st International Conference on Neural Information Processing Systems, Red Hook: Curran Associates Inc., 2017, 3290–3300. |
| [30] |
|
| [31] |
|
| [32] |
|
| [33] |
|
| [34] |
A. Malinin, M. Gales, Predictive uncertainty estimation via prior networks, In: Proceedings of the 32nd International Conference on Neural Information Processing Systems, Red Hook: Curran Associates Inc., 2018, 7047–7058. |
| [35] |
J. Mitros, A. Pakrashi, B. M. Namee, Ramifications of approximate posterior inference for Bayesian deep learning in adversarial and out-of-distribution settings, In: Computer Vision–ECCV 2020 Workshops, Cham: Springer, 2020, 71–87. https://doi.org/10.1007/978-3-030-66415-2_5 |
| [36] |
E. T. Nalisnick, On prior for Bayesian neural networks, PhD Thesis, UC Irvine, 2018. |
| [37] |
E. T. Nalisnick, J. M. Hernandez-Lobato, P. Smyth, Dropout as a structured shrinkage prior, In: Proceedings of the 36th International Conference on Machine Learning, New York: PMLR, 2019, 4712–4722. |
| [38] |
S. W. Ober, L. Aitchison, Global inducing point variational posteriors for Bayesian neural networks and deep Gaussian processes, In: Proceedings of the 38th International Conference on Machine Learning, New York: PMLR, 2021, 8248–8259. |
| [39] |
H. Overweg, A.-L. Popkes, A. Ercole, Y. Z. Li, J. M. Hernández-Lobato, Y. Zaykov, et al., Interpretable outcome prediction with sparse Bayesian neural networks in intensive care, arXiv: 1905.02599, (2019). |
| [40] |
J. Piironen, A. Vehtari, On the hyperprior choice for the global shrinkage parameter in the horseshoe prior, In: Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, New York: PMLR, 2017,905–913. |
| [41] |
|
| [42] |
|
| [43] |
S. Y. Sun, G. D. Zhang, J. X. Shi, Functional variational Bayesian neural networks, Bayesian Deep Learning (NeurIPS 2018), Montréal, Canada, 2019. |
| [44] |
M. Sarıyıldız, K. Alahari, D. Larlus, Y. Kalantidis, Fake it till you make it: Learning transferable representations from synthetic imagenet clones, 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, Canada, 2023, 8011–8021. https://doi.org/10.1109/CVPR52729.2023.00774 |
| [45] |
L. Skaaret-Lund, G. Storvik, A. Hubin, Sparsifying Bayesian neural networks with latent binary variables and normalizing flows, arXiv: 2305.03395, (2023). |
| [46] |
F. B. Smith, A. Kirsch, S. Farquhar, Y. Gal, A. Foster, T. Rainforth, Prediction-oriented Bayesian active learning, In: Proceedings of The 26th International Conference on Artificial Intelligence and Statistics, New York: PMLR, 2023, 7331–7348. |
| [47] |
|
| [48] |
|
| [49] |
|
| [50] |
|
/
| 〈 |
|
〉 |