Sparse Bayesian neural networks improve robustness using new sampling methods

Sparse Bayesian Neural Networks via Sticky Piecewise Deterministic Markov Processes

Machine Learning

Summary

Neural networks work best with only a small portion of their connections active, but figuring out which ones is hard. The authors show a new way to use a Bayesian approach that directly focuses on pruning these connections while accurately handling uncertainty. They use advanced sampling techniques to pick which connections to keep and exactly set others to zero during training. Their method creates smaller, more reliable neural networks that handle noisy input better than traditional dense networks.

What this means in practice

  • For machine learning engineers: Build neural networks that are smaller and more robust to noisy inputs by integrating direct Bayesian pruning during training with advanced sampling methods.
  • For statistical data analysts: Use exact sampling techniques to confidently quantify uncertainty in sparse Bayesian neural network models for more reliable predictions under noisy conditions.

Authors

August Arnstad, Geir Olve Storvik, Filippo Pagani, Leiv Rønneberg

Abstract

There is growing evidence that the performance of a neural network depends largely on a small subset of its weights, which are typically identified by training a dense network and pruning it afterwards. Within a Bayesian framework, pruning can be directly incorporated through a spike-and-slab prior, providing a proper treatment of the uncertainties involved, both with respect to pruning and to parameter uncertainty. In Bayesian neural networks (BNNs), sampling by MCMC is notoriously hard. We demonstrate that modern Monte Carlo methods based on piecewise deterministic Markov processes (PDMPs) can be used to sample posteriors of BNNs asymptotically exact whenever numerically constructed rate bounds hold. Spike-and-slab priors can be incorporated through sticky versions of the PDMPs, setting weights exactly to zero during sampling. We examine the predictive performance and convergence of the samplers, and show that sparse BNNs sampled this way can be more robust to input noise than dense ones.