Sampling-based inference for large linear models, with application to linearised Laplace

Javier Antorán, Shreyas Padhy, Riccardo Barbano, Eric Nalisnick, David Janz +1 more
10/10/2022
stat.MLcs.AIcs.LG
bayesian

Official code: cambridge-mlg/sampled-laplace (7 stars, Python, MIT, last commit 2022-10-10).

Abstract

Large-scale linear models are ubiquitous throughout machine learning, with contemporary application as surrogate models for neural network uncertainty quantification; that is, the linearised Laplace method. Alas, the computational cost associated with Bayesian linear models constrains this method's application to small networks, small output spaces and small datasets.

Show full abstract

We address this limitation by introducing a scalable sample-based Bayesian inference method for conjugate Gaussian multi-output linear models, together with a matching method for hyperparameter (regularisation) selection. Furthermore, we use a classic feature normalisation method (the g-prior) to resolve a previously highlighted pathology of the linearised Laplace method. Together, these contributions allow us to perform linearised neural network inference with ResNet-18 on CIFAR100 (11M parameters, 100 outputs x 50k datapoints), with ResNet-50 on Imagenet (50M parameters, 1000 outputs x 1.2M datapoints) and with a U-Net on a high-resolution tomographic reconstruction task (2M parameters, 251k output~dimensions).

View on arXivView PDF

Code Implementations(1)

MIT

Jax implementation for the paper "Sampling-based inference for large linear models, with application to linearised Laplace"

72PythonOct 10, 20224 years agoMIT

Similar Papers

Cite this paper

@article{antorn2022samplingbased,
  title  = {Sampling-based inference for large linear models, with application to linearised Laplace},
  author = {Javier Antorán and Shreyas Padhy and Riccardo Barbano and Eric Nalisnick and David Janz and José Miguel Hernández-Lobato},
  year   = {2022},
  eprint = {2210.04994},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.04994}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.04994.svg)](https://codeofpaper.com/paper/2210.04994)

Discussion