Data Subsampling for Bayesian Neural Networks

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Kawasaki, Eiji, Holzmann, Markus, Adu-Gyamfi, Lawrence
Format: Preprint
Published: 2022
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909322383982592
author Kawasaki, Eiji
Holzmann, Markus
Adu-Gyamfi, Lawrence
author_facet Kawasaki, Eiji
Holzmann, Markus
Adu-Gyamfi, Lawrence
contents Markov Chain Monte Carlo (MCMC) algorithms do not scale well for large datasets leading to difficulties in Neural Network posterior sampling. In this paper, we propose Penalty Bayesian Neural Networks - PBNNs, as a new algorithm that allows the evaluation of the likelihood using subsampled batch data (mini-batches) in a Bayesian inference context towards addressing scalability. PBNN avoids the biases inherent in other naive subsampling techniques by incorporating a penalty term as part of a generalization of the Metropolis Hastings algorithm. We show that it is straightforward to integrate PBNN with existing MCMC frameworks, as the variance of the loss function merely reduces the acceptance probability. By comparing with alternative sampling strategies on both synthetic data and the MNIST dataset, we demonstrate that PBNN achieves good predictive performance even for small mini-batch sizes of data. We show that PBNN provides a novel approach for calibrating the predictive distribution by varying the mini-batch size, significantly reducing predictive overconfidence.
format Preprint
id arxiv_https___arxiv_org_abs_2210_09141
institution arXiv
publishDate 2022
record_format arxiv
spellingShingle Data Subsampling for Bayesian Neural Networks
Kawasaki, Eiji
Holzmann, Markus
Adu-Gyamfi, Lawrence
Machine Learning
Markov Chain Monte Carlo (MCMC) algorithms do not scale well for large datasets leading to difficulties in Neural Network posterior sampling. In this paper, we propose Penalty Bayesian Neural Networks - PBNNs, as a new algorithm that allows the evaluation of the likelihood using subsampled batch data (mini-batches) in a Bayesian inference context towards addressing scalability. PBNN avoids the biases inherent in other naive subsampling techniques by incorporating a penalty term as part of a generalization of the Metropolis Hastings algorithm. We show that it is straightforward to integrate PBNN with existing MCMC frameworks, as the variance of the loss function merely reduces the acceptance probability. By comparing with alternative sampling strategies on both synthetic data and the MNIST dataset, we demonstrate that PBNN achieves good predictive performance even for small mini-batch sizes of data. We show that PBNN provides a novel approach for calibrating the predictive distribution by varying the mini-batch size, significantly reducing predictive overconfidence.
title Data Subsampling for Bayesian Neural Networks
topic Machine Learning
url https://arxiv.org/abs/2210.09141