English

Large Language Bayes

Machine Learning 2025-10-27 v2

Abstract

Many domain experts do not have the time or expertise to write formal Bayesian models. This paper takes an informal problem description as input, and combines a large language model and a probabilistic programming language to define a joint distribution over formal models, latent variables, and data. A posterior over latent variables follows by conditioning on observed data and integrating over formal models. This presents a challenging inference problem. We suggest an inference recipe that amounts to generating many formal models from the large language model, performing approximate inference on each, and then doing a weighted average. This is justified and analyzed as a combination of self-normalized importance sampling, MCMC, and importance-weighted variational inference. Experimentally, this produces sensible predictions from only data and an informal problem description, without the need to specify a formal model.

Keywords

Cite

@article{arxiv.2504.14025,
  title  = {Large Language Bayes},
  author = {Justin Domke},
  journal= {arXiv preprint arXiv:2504.14025},
  year   = {2025}
}

Comments

NeurIPS 2025

R2 v1 2026-06-28T23:03:48.569Z