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.

PDF (4024KB)
AIMS Mathematics ›› 2025, Vol. 10 ›› Issue (9) :21929 -21952. DOI: 10.3934/math.2025977
research-article
Variational sparse Bayesian neural networks with regularized horseshoe priors and scale mixture priors
Author information +
History +
PDF (4024KB)

Abstract

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.

Keywords

Bayesian neural networks / regularized horseshoe prior / variational inference / uncertainty estimation

Cite this article

Download citation ▾
Xu Chen, Lilong Sima, Zhen Wei, Xingde Duan, Ping Feng, Fuhong Song. Variational sparse Bayesian neural networks with regularized horseshoe priors and scale mixture priors. AIMS Mathematics, 2025, 10 (9) : 21929-21952 DOI:10.3934/math.2025977

登录浏览全文

4963

注册一个新账户 忘记密码

References

[1]

Abdullayev I., Akhmetshin E., Kosorukova I., Klochko E., Cho W., Joshi G. P. (2024) Modeling of extended osprey optimization algorithm with Bayesian neural network: An application on Fintech to predict financial crisis. AIMS Mathematics 9: 17555-17577. https://doi.org/10.3934/math.2024853

[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]

Cao Y., Kao Y. G., Wang Z., Yang X. S., Park J. H., Xie W. (2024) Sliding mode control for uncertain fractional-order reaction-diffusion memristor neural networks with time delays. Neural Networks 178: 106402. https://doi.org/10.1016/j.neunet.2024.106402

[7]

Chen X., Liu C. C., Zhao Y., Jia Z. Y., Jin G. (2022) Improving adversarial robustness of Bayesian neural networks via multi-task adversarial training. Inform. Sciences 592: 156-173. https://doi.org/10.1016/j.ins.2022.01.051

[8]

Chen X., Zhao Y., Liu C. C. (2022) Medical image segmentation using scalable functional variational Bayesian neural networks with Gaussian processes. Neurocomputing 500: 58-72. https://doi.org/10.1016/j.neucom.2022.05.055

[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]

Franchi G., Bursuc A., Aldea E., Dubuisson S., Bloch I. (2024) Encoding the latent posterior of Bayesian neural networks for uncertainty quantification. IEEE T. Pattern Anal. 46: 2027-2040. https://doi.org/10.1109/TPAMI.2023.3328829

[12]

Ghoshal B., Tucker A., Sanghera B., Wong W. L. (2021) Estimating uncertainty in deep learning for reporting confidence to clinicians in medical image segmentation and disease detection. Comput. Intell. 37: 701-734. https://doi.org/10.1111/coin.12411

[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]

Ghosh S., Yao Y., Doshi-Velez F. (2019) Model selection in Bayesian neural networks via horseshoe priors. J. Mach. Learn. Res. 20: 1-46.

[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]

Hernández-Lobato J. M., Hernández-Lobato D., Suárez A. (2015) Expectation propagation in linear regression models with spike-and-slab priors. Machine Learning 99: 437-487. https://doi.org/10.1007/s10994-014-5475-7

[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]

Insua D. R., Naveiro R., Gallego V., Poulos J. (2023) Adversarial machine learning: Bayesian perspectives. J. Am. Stat. Assoc. 118: 2195-2206. https://doi.org/10.1080/01621459.2023.2183129

[22]

Jantre S., Bhattacharya S., Maiti T. (2023) Layer adaptive node selection in Bayesian neural networks: Statistical guarantees and implementation details. Neural Networks 167: 309-330. https://doi.org/10.1016/j.neunet.2023.08.029

[23]

Jantre S., Bhattacharya S., Maiti T. (2025) Spike-and-slab shrinkage priors for structurally sparse Bayesian neural networks. IEEE T. Neur. Net. Lear. 36: 11176-11188. https://doi.org/10.1109/TNNLS.2024.3485529

[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]

Li Z., Bin L. (2025) On weighted residual varextropy: characterization, estimation and application. AIMS Mathematics 10: 11234-11259. https://doi.org/10.3934/math.2025509

[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]

Li H., Kao Y. G., Bao H. B., Chen Y. Q. (2022) Uniform stability of complex-valued neural networks of fractional order with linear impulses and fixed time delays. IEEE T. Neur. Net. Lear. 33: 5321-5331. https://doi.org/10.1109/TNNLS.2021.3070136

[31]

Li P. F., Hu Q. H., Wang X. F. (2025) Federated learning meets Bayesian neural network: Robust and uncertainty-aware distributed variational inference. Neural Networks 185: 107135. https://doi.org/10.1016/j.neunet.2025.107135

[32]

Lin Y. D., Zhang Q. T., Gao B., Tang J. S., Yao P., Li C. X. (2023) et al., Uncertainty quantification via a memristor Bayesian deep neural network for risk-sensitive reinforcement learning. Nat. Mach. Intell. 5: 714-723. https://doi.org/10.1038/s42256-023-00680-y

[33]

Magris M., Iosifidis A. (2023) Bayesian learning for neural networks: An algorithmic survey. Artif. Intell. Rev. 56: 11773-11823. https://doi.org/10.1007/s10462-023-10443-1

[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]

Qureshi I., Yan J. H., Abbas Q., Shaheed K., Riaz A. B., Wahid A. (2023) et al., Medical image segmentation using deep semantic-based methods: A review of techniques, applications and emerging trends. Inform. Fusion 90: 316-352. https://doi.org/10.1016/j.inffus.2022.09.031

[42]

Rodríguez-Santana S., Hernández-Lobato D. (2022) Adversarial $\alpha$-divergence minimization for Bayesian approximate inference. Neurocomputing 471: 260-274. https://doi.org/10.1016/j.neucom.2020.09.076

[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]

Sun Y., Song Q. F., Liang F. M. (2022) Consistent sparse deep learning: theory and computation. J. Am. Stat. Assoc. 117: 1981-1995. https://doi.org/10.1080/01621459.2021.1895175

[48]

Yang Y., Guo D. D., Chen B., Hu D. X. (2025) Continual learning with Bayesian compression for shared and private latent representations. Neural Networks 185: 107167. https://doi.org/10.1016/j.neunet.2025.107167

[49]

Zhang C., Butepage J., Kjellstrom H., Mandt S. (2019) Advances in variational inference. IEEE T. Pattern Anal. 41: 2008-2026. https://doi.org/10.1109/TPAMI.2018.2889774

[50]

Zhu Z. D., Lin K. X., Jain A. K., Zhou J. Y. (2023) Transfer learning in deep reinforcement learning: A survey. IEEE T. Pattern Anal. 45: 13344-13362. https://doi.org/10.1109/TPAMI.2023.3292075

PDF (4024KB)

0

Accesses

0

Citation

Detail

Sections
Recommended

/

〈 〉