Fast and Correct Gradient-Based Optimisation for Probabilistic Programming via Smoothing

01/09/2023
by   Basim Khajwal, et al.
0

We study the foundations of variational inference, which frames posterior inference as an optimisation problem, for probabilistic programming. The dominant approach for optimisation in practice is stochastic gradient descent. In particular, a variant using the so-called reparameterisation gradient estimator exhibits fast convergence in a traditional statistics setting. Unfortunately, discontinuities, which are readily expressible in programming languages, can compromise the correctness of this approach. We consider a simple (higher-order, probabilistic) programming language with conditionals, and we endow our language with both a measurable and a smoothed (approximate) value semantics. We present type systems which establish technical pre-conditions. Thus we can prove stochastic gradient descent with the reparameterisation gradient estimator to be correct when applied to the smoothed problem. Besides, we can solve the original problem up to any error tolerance by choosing an accuracy coefficient suitably. Empirically we demonstrate that our approach has a similar convergence as a key competitor, but is simpler, faster, and attains orders of magnitude reduction in work-normalised variance.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/19/2017

Importance Sampled Stochastic Optimization for Variational Inference

Variational inference approximates the posterior distribution of a proba...
research
07/20/2019

Towards Verified Stochastic Variational Inference for Probabilistic Programs

Probabilistic programming is the idea of writing models from statistics ...
research
07/27/2023

Linear Convergence of Black-Box Variational Inference: Should We Stick the Landing?

We prove that black-box variational inference (BBVI) with control variat...
research
03/26/2018

A Common Framework for Natural Gradient and Taylor based Optimisation using Manifold Theory

This technical report constructs a theoretical framework to relate stand...
research
10/15/2021

GaussED: A Probabilistic Programming Language for Sequential Experimental Design

Sequential algorithms are popular for experimental design, enabling emul...
research
10/23/2019

Autoencoding with XCSF

Autoencoders enable data dimensionality reduction and are a key componen...

Please sign up or login with your details

Forgot password? Click here to reset