English

Beyond Bayesian Model Averaging over Paths in Probabilistic Programs with Stochastic Support

Machine Learning 2024-04-15 v2 Programming Languages

Abstract

The posterior in probabilistic programs with stochastic support decomposes as a weighted sum of the local posterior distributions associated with each possible program path. We show that making predictions with this full posterior implicitly performs a Bayesian model averaging (BMA) over paths. This is potentially problematic, as BMA weights can be unstable due to model misspecification or inference approximations, leading to sub-optimal predictions in turn. To remedy this issue, we propose alternative mechanisms for path weighting: one based on stacking and one based on ideas from PAC-Bayes. We show how both can be implemented as a cheap post-processing step on top of existing inference engines. In our experiments, we find them to be more robust and lead to better predictions compared to the default BMA weights.

Keywords

Cite

@article{arxiv.2310.14888,
  title  = {Beyond Bayesian Model Averaging over Paths in Probabilistic Programs with Stochastic Support},
  author = {Tim Reichelt and Luke Ong and Tom Rainforth},
  journal= {arXiv preprint arXiv:2310.14888},
  year   = {2024}
}

Comments

Accepted at the 27th International Conference on Artificial Intelligence and Statistics (AISTATS) 2024

R2 v1 2026-06-28T12:58:53.961Z