AutoStan: Autonomous Bayesian Model Improvement via Predictive Feedback
On the map: LLM agents and tool use → Web, search, and research agents
Abstract (arXiv)
We present AutoStan, a framework in which a command-line interface (CLI) coding agent autonomously builds and iteratively improves Bayesian models written in Stan. The agent operates in a loop, writing a Stan model file, executing MCMC sampling, then deciding whether to keep or revert each change based on two complementary feedback signals: the negative log predictive density (NLPD) on held-out data and the sampler's own diagnostics (divergences, R-hat, effective sample size). We evaluate AutoStan on five datasets with diverse modeling structures. On a synthetic regression dataset with outliers, the agent progresses from naive linear regression to a model with Student-t robustness, nonlinear heteroscedastic structure, and an explicit contamination mixture, matching or outperforming TabPFN, a state-of-the-art black-box method, while remaining fully interpretable. Across four additional experiments, the same mechanism discovers hierarchical partial pooling, varying-slope models with correlated random effects, and a Poisson attack/defense model for soccer. No search algorithm, critic module, or domain-specific instructions are needed. This is, to our knowledge, the first demonstration that a CLI coding agent can autonomously write and iteratively improve Stan code for diverse Bayesian modeling problems.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 5 of its 23 references that are in the map. First posted on arXiv 29 Mar 2026.
Builds on
5 of 23 references.
References · 5
- 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,120
- 2015Practical Bayesian model evaluation using leave-one-out cross-validation and WAICcited by 110
- 2024Automated Statistical Model Discovery with Language Modelscited by 41
- 2025Large Language Bayescited by 10
- 2026A Probabilistic Framework for LLM-Based Model Discoverycited by 10
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026RankEvolve: A Reliable Multi-Agent Auto-Research Harness for Evolving Ranking Models
- 2026DeltaML-Bench: Evaluating Machine Learning Agents on Real-World Research Repositories
- 2026Rehearse: Stepping Back from the Confidence Cliff in Self-Improving Autoresearch
- 2026Bayesian control for coding agents
- 2026Scaling Automatic Research Agents via World Models
- 2026The Bayesian Reflex: Online Learning as the Autonomic Nervous System of Modern and Future AI
- 2026AutoScientist-Quant: Self-Evolving Coding Agents for Automatic Research in Quantitative Investment
- 2026AlphaLab: Autonomous Multi-Agent Research Across Optimization Domains with Frontier LLMs