← Back to Machine Learning
cs.LG

Turning English descriptions into working Bayesian samplers

Jungang Zou, Alex Ziyu Jiang, Qixuan Chen

May 18, 2026

MCMC sampling requires writing complex, error-prone code. AI4BayesCode lets you describe a Bayesian model in English and generates validated samplers automatically. It breaks models into modular blocks (each mapped to a pre-built sampling algorithm) and validates the specification before and after code generation. The system introduces a "recursively stateful" design so different components can be composed together coherently. Experiments show it handles diverse models correctly—potentially saving hours of coding and debugging.
Published as AI4BayesCode: From Natural Language Descriptions to Validated Modular Stateful Bayesian Samplers arXiv:2605.18476
Read the original paper →