mlsanityData to 14 Oct 2026

AI4BayesCode: From Natural Language Descriptions to Validated Modular Stateful Bayesian Samplers

arXiv 2605.18476 ↗First posted 18 May 2026stat.CO cs.AI cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Coding and computation remain major bottlenecks in Markov chain Monte Carlo (MCMC) workflows, especially as modern sampling algorithms have become increasingly complex and existing probabilistic programming systems remain limited in model support, extensibility, and composability. We introduce AI4BayesCode, an extensible LLM-driven system that translates natural-language Bayesian model descriptions into runnable, validated MCMC samplers. To improve reliability, AI4BayesCode adopts a modular design that decomposes models into modular sampling blocks and maps each block to a built-in sampling component, reducing the need to implement complex sampling algorithms from scratch. Reliability is further improved through pre-generation validation of model specifications and post-generation validation of generated sampler code. AI4BayesCode also introduces a novel recursively stateful coding paradigm for MCMC, allowing modular sampling components, potentially developed by different contributors, to be composed coherently within larger MCMC procedures. We develop a benchmark suite to evaluate AI4BayesCode for sampler-generation. Experiments show that AI4BayesCode can implement a wide range of Bayesian models from natural-language descriptions alone. As an open-ended system, its capability can continue to expand with improvements in the underlying AI agent and the addition of new built-in blocks. The software is available at https://ai4bayescode.com/.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 19 of its 44 references that are in the map. First posted on arXiv 18 May 2026.

Builds on

19 of 44 references.

References · 19

  1. 2019Composable Effects for Flexible and Accelerated Probabilistic Programming in NumPyrocited by 191
  2. 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnessescited by 142
  3. 2019Rank-normalization, folding, and localization: An improved widehatR for assessing convergence of MCMCcited by 93
  4. 2026Externalization in LLM Agents: A Unified Review of Memory, Skills, Protocols and Harness Engineeringcited by 74
  5. 2026Natural-Language Agent Harnessescited by 61
  6. 2013Hamiltonian Monte Carlo for Hierarchical Modelscited by 52
  7. 2024LLM-Based Test-Driven Interactive Code Generation: User Study and Empirical Evaluationcited by 49
  8. 2015Pareto Smoothed Importance Samplingcited by 42
  9. 2017Bayesian Regression Tree Ensembles that Adapt to Smoothness and Sparsitycited by 34
  10. 2024LAMBDA: A Large Model Based Data Agentcited by 30
  11. 2025AI Agentic Programming: A Survey of Techniques, Challenges, and Opportunitiescited by 28
  12. 2025A Survey of Vibe Coding with Large Language Modelscited by 27
7 more
  1. 2024Bayesian Concept Bottleneck Models with LLM Priorscited by 17
  2. 2024AutoElicit: Using Large Language Models for Expert Prior Elicitation in Predictive Modellingcited by 15
  3. 2022Generalized Bayesian Additive Regression Trees Models: Beyond Conditional Conjugacycited by 8
  4. 2024A Comprehensive Survey of AI-Driven Advancements and Techniques in Automated Program Repair and Code Generationcited by 8
  5. 2025LLM-Prior: A Framework for Knowledge-Driven Prior Elicitation and Aggregationcited by 6
  6. 2025LLM-BI: Towards Fully Automated Bayesian Inference with Large Language Modelscited by 1
  7. 2026AutoStan: Autonomous Bayesian Model Improvement via Predictive Feedbackcited by 1

Built on by

Not cited yet.