Feature Preserving Shrinkage on Bayesian Neural Networks via the R2D2 Prior
Tsai Hor Chan, Dora Yan Zhang, Guosheng Yin, Lequan Yu
TL;DR
The paper tackles the challenge of prior choice in Bayesian neural networks by introducing the R2D2-Net, which uses the $R^2$-induced Dirichlet Decomposition (R2D2) prior to achieve strong sparsity without sacrificing important signals. A variational Gibbs inference scheme is developed to jointly estimate weights and shrinkage parameters, with closed-form KL divergences for several shrinkage components to yield accurate ELBO optimization. The authors establish a posterior contraction result, showing minimax-type convergence under regularity conditions, and demonstrate through simulations and real-data experiments that R2D2-Net attains superior predictive performance and more reliable uncertainty estimates, including robust OOD detection. The approach offers a principled, scalable framework for shrinkage in deep Bayesian models and holds promise for applications in medical imaging and broader Bayesian deep learning contexts.
Abstract
Bayesian neural networks (BNNs) treat neural network weights as random variables, which aim to provide posterior uncertainty estimates and avoid overfitting by performing inference on the posterior weights. However, the selection of appropriate prior distributions remains a challenging task, and BNNs may suffer from catastrophic inflated variance or poor predictive performance when poor choices are made for the priors. Existing BNN designs apply different priors to weights, while the behaviours of these priors make it difficult to sufficiently shrink noisy signals or they are prone to overshrinking important signals in the weights. To alleviate this problem, we propose a novel R2D2-Net, which imposes the R^2-induced Dirichlet Decomposition (R2D2) prior to the BNN weights. The R2D2-Net can effectively shrink irrelevant coefficients towards zero, while preventing key features from over-shrinkage. To approximate the posterior distribution of weights more accurately, we further propose a variational Gibbs inference algorithm that combines the Gibbs updating procedure and gradient-based optimization. This strategy enhances stability and consistency in estimation when the variational objective involving the shrinkage parameters is non-convex. We also analyze the evidence lower bound (ELBO) and the posterior concentration rates from a theoretical perspective. Experiments on both natural and medical image classification and uncertainty estimation tasks demonstrate satisfactory performance of our method.
