Fixed-Mean Gaussian Processes for Post-hoc Bayesian Deep Learning

Luis A. Ortega, Simón Rodríguez-Santana, Daniel Hernández-Lobato
12/5/2024
cs.LGstat.ML

No official code found. Best implementation: Ludvins/FixedMeanGaussianProcesses (1 star, last commit 2024-11-26).

Abstract

Recently, there has been an increasing interest in performing post-hoc uncertainty estimation about the predictions of pre-trained deep neural networks (DNNs). Given a pre-trained DNN via back-propagation, these methods enhance the original network by adding output confidence measures, such as error bars, without compromising its initial accuracy. In this context, we introduce a novel family of sparse variational Gaussian processes (GPs), where the posterior mean is fixed to any continuous function when using a universal kernel. Specifically, we fix the mean of this GP to the output of the pre-trained DNN, allowing our approach to effectively fit the GP's predictive variances to estimate the DNN prediction uncertainty. Our approach leverages variational inference (VI) for efficient stochastic optimization, with training costs that remain independent of the number of training points, scaling efficiently to large datasets such as ImageNet. The proposed method, called fixed mean GP (FMGP), is architecture-agnostic, relying solely on the pre-trained model's outputs to adjust the predictive variances. Experimental results demonstrate that FMGP improves both uncertainty estimation and computational efficiency when compared to state-of-the-art methods.

View on arXivView PDF

Code Implementations(1)

10Python, Jupyter NotebookNov 26, 20241 years ago

Similar Papers

Cite this paper

@article{ortega2024fixedmean,
  title  = {Fixed-Mean Gaussian Processes for Post-hoc Bayesian Deep Learning},
  author = {Luis A. Ortega and Simón Rodríguez-Santana and Daniel Hernández-Lobato},
  year   = {2024},
  eprint = {2412.04177},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.04177v1}
}

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/2412.04177.svg)](https://codeofpaper.com/paper/2412.04177)

Discussion