Fast and robust Bayesian Inference using Gaussian Processes with GPry

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Gammal, Jonas El, Schöneberg, Nils, Torrado, Jesús, Fidler, Christian
Format: Preprint
Veröffentlicht: 2022
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915209683140608
author Gammal, Jonas El
Schöneberg, Nils
Torrado, Jesús
Fidler, Christian
author_facet Gammal, Jonas El
Schöneberg, Nils
Torrado, Jesús
Fidler, Christian
contents We present the GPry algorithm for fast Bayesian inference of general (non-Gaussian) posteriors with a moderate number of parameters. GPry does not need any pre-training, special hardware such as GPUs, and is intended as a drop-in replacement for traditional Monte Carlo methods for Bayesian inference. Our algorithm is based on generating a Gaussian Process surrogate model of the log-posterior, aided by a Support Vector Machine classifier that excludes extreme or non-finite values. An active learning scheme allows us to reduce the number of required posterior evaluations by two orders of magnitude compared to traditional Monte Carlo inference. Our algorithm allows for parallel evaluations of the posterior at optimal locations, further reducing wall-clock times. We significantly improve performance using properties of the posterior in our active learning scheme and for the definition of the GP prior. In particular we account for the expected dynamical range of the posterior in different dimensionalities. We test our model against a number of synthetic and cosmological examples. GPry outperforms traditional Monte Carlo methods when the evaluation time of the likelihood (or the calculation of theoretical observables) is of the order of seconds; for evaluation times of over a minute it can perform inference in days that would take months using traditional methods. GPry is distributed as an open source Python package (pip install gpry) and can also be found at https://github.com/jonaselgammal/GPry.
format Preprint
id arxiv_https___arxiv_org_abs_2211_02045
institution arXiv
publishDate 2022
record_format arxiv
spellingShingle Fast and robust Bayesian Inference using Gaussian Processes with GPry
Gammal, Jonas El
Schöneberg, Nils
Torrado, Jesús
Fidler, Christian
Cosmology and Nongalactic Astrophysics
Instrumentation and Methods for Astrophysics
Methodology
Machine Learning
We present the GPry algorithm for fast Bayesian inference of general (non-Gaussian) posteriors with a moderate number of parameters. GPry does not need any pre-training, special hardware such as GPUs, and is intended as a drop-in replacement for traditional Monte Carlo methods for Bayesian inference. Our algorithm is based on generating a Gaussian Process surrogate model of the log-posterior, aided by a Support Vector Machine classifier that excludes extreme or non-finite values. An active learning scheme allows us to reduce the number of required posterior evaluations by two orders of magnitude compared to traditional Monte Carlo inference. Our algorithm allows for parallel evaluations of the posterior at optimal locations, further reducing wall-clock times. We significantly improve performance using properties of the posterior in our active learning scheme and for the definition of the GP prior. In particular we account for the expected dynamical range of the posterior in different dimensionalities. We test our model against a number of synthetic and cosmological examples. GPry outperforms traditional Monte Carlo methods when the evaluation time of the likelihood (or the calculation of theoretical observables) is of the order of seconds; for evaluation times of over a minute it can perform inference in days that would take months using traditional methods. GPry is distributed as an open source Python package (pip install gpry) and can also be found at https://github.com/jonaselgammal/GPry.
title Fast and robust Bayesian Inference using Gaussian Processes with GPry
topic Cosmology and Nongalactic Astrophysics
Instrumentation and Methods for Astrophysics
Methodology
Machine Learning
url https://arxiv.org/abs/2211.02045