Fast and Correct Gradient-Based Optimisation for Probabilistic Programming via Smoothing
Khajwal, Basim, Ong, C. -H. Luke, Wagner, Dominik
–arXiv.org Artificial Intelligence
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.
arXiv.org Artificial Intelligence
Jan-9-2023
- Country:
- Asia
- Europe
- France (0.04)
- Germany > Berlin (0.04)
- Iceland > Capital Region
- Reykjavik (0.04)
- Luxembourg > Luxembourg Canton
- Luxembourg City (0.04)
- Sweden > Uppsala County
- Uppsala (0.04)
- United Kingdom > England
- Oxfordshire > Oxford (0.04)
- North America
- Canada
- Alberta > Census Division No. 15
- Improvement District No. 9 > Banff (0.04)
- Quebec > Montreal (0.04)
- Alberta > Census Division No. 15
- United States
- Arizona > Maricopa County
- Phoenix (0.04)
- California > San Diego County
- San Diego (0.04)
- Illinois (0.04)
- New York > New York County
- New York City (0.04)
- Arizona > Maricopa County
- Canada
- Genre:
- Research Report (0.50)
- Industry:
- Health & Medicine (0.69)
- Technology: