Bayesian Model Discovery with Language Models: Closing the Loop between Hypotheses and Experiments
Organizations: Korea University · KAIST · KETI
Abstract
Scientific model discovery requires proposing candidate models of an unknown system and designing experiments that discriminate among them. However, LLM-based approaches typically rely on in-context learning to predict outcomes and select experiments, lacking explicit model evaluation to systematically guide hypothesis search, while Bayesian approaches enable principled model comparison but are confined to a predefined candidate set which results in limited search spaces. To this end, we introduce BMD, which closes the loop between LLM-driven hypothesis generation and Bayesian experimental design. Specifically, an LLM proposes model families, while a numerical engine fits their parameters, weighs them by model evidence, and averages their predictions. Then, BMD chooses the next experimental conditions by maximizing the joint expected information gain over families and their parameters, while feeding the updated beliefs and residual diagnostics back to the LLM to guide its next proposals. Across four scientific discovery benchmarks, BMD achieves lowest final prediction error than in-context learning and LLM-based scientific agents while recovering exact functional forms more often, with ablations supporting numerical feedback and the joint objective.
Figures & tables
| Benchmark | Scientific setting | Design observation | Evaluation target |
|---|---|---|---|
| ChemBench | Enzyme kinetics | Reaction conditions rate | Noise-free observation mean (nMSLE) |
| BoxingGym | Ecological/statistical processes | Task inputs noisy responses | Noise-free response mean (nMSE) |
| ForceBench | Force and motion laws | Conditions trajectories | Shifted-design trajectories (nMSE) |
| NewtonBench | Counterfactual physical laws | Settings physical responses | Noise-free governing law (nMSLE) |
| Components | Relative error ( , ) | GT identification (%, ) | |||||||||||
| Model | Explicit | SMC fit | Evidence | Chem | Boxing | Force | Newton | Overall | Chem | Boxing | Force | Newton | Overall |
| A | X | X | X | 1.000 | 1.000 | 1.000 | 1.000 | 1.000 | – | – | – | – | – |
| B | O | X | X | 0.917 | 0.868 | 0.230 | 0.777 | 0.613 | 98.9 | 18.5 | 50.0 | 90.0 | 79.3 |
| C | O | O | X | 0.351 | 1.388 | 0.174 | 0.219 | 0.369 | 98.9 | 18.5 | 50.0 | 90.0 | 79.3 |
| D | O | O | O | 0.349 | 0.667 | 0.036 | 0.247 | 0.214 | 96.7 | 63.0 | 83.3 | 78.6 | 84.8 |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| ChemBench | BoxingGym | ForceBench | NewtonBench | |
|---|---|---|---|---|
| Tasks | Michaelis–Menten, product inhibition, ping-pong; each easy/medium/hard | Death, dugongs, hyperbolic, peregrines, survival | Gravity, Yukawa, Coulomb (easy), oscillator, extra dimensions | Magnetic force, Fourier, Snell, radioactive decay, Malus, sound speed, Hooke, Bose–Einstein, heat transfer (medium) |
| BMD runs | 27 | 15 | 15 | 27 |
| Recovery runs | 27 | 12 | 9 | 24 |
| / additional / final | 3 / 30 / 33 | 2 / 30 / 32 | 2 / 16 / 18 | 4 / 30 / 34 |
| Design space | 7 continuous reaction conditions | Task-specific; hyperbolic has 3 integer inputs, survival a discrete patient menu | 2 continuous parameters in | Task-specific continuous inputs |
| Prediction scored | After proposals | Before proposals | Before proposals | After proposals |
| ChemBench | BoxingGym | ForceBench | NewtonBench | |
|---|---|---|---|---|
| Initial data | 3 fixed designs | 2 random designs | 2 trajectories | 4 random designs |
| Coefficient prior | Default | Default; hyperbolic: wide | Signed ; positive LogNormal | Wide |
| Observation family | Fixed LogNormal | Fixed per task | Fixed trajectory likelihood | Fixed LogNormal |
| Archive review | Every 5 rounds to 30 | Every 5 rounds to 30 | Rounds 5, 10, 15 | Every 5 rounds to 30 |
| EIG draws | 128 posterior draws | 128; count tasks use outcome tables | 128 outer and 128 inner draws | 128 posterior draws |
| Search starts | 5 uniform | 5 best candidate designs; survival enumerated | 5 uniform | 5 uniform |
| Benchmark (metric) | A | B | C | D |
|---|---|---|---|---|
| ChemBench (nMSLE) | ||||
| BoxingGym (nMSE) | ||||
| ForceBench (nMSE) | ||||
| NewtonBench (nMSLE) | ||||
| Overall (geomean) |
| Benchmark | B/C | D |
|---|---|---|
| ChemBench | 89/90 | 87/90 |
| BoxingGym | 5/27 | 17/27 |
| ForceBench | 15/30 | 25/30 |
| NewtonBench | 63/70 | 55/70 |
| Overall | 172/217 | 184/217 |
| Bundle | Contents | Visible in |
|---|---|---|
| Common | Observations, task interface, candidate expressions, coefficient roles, grammar, structural duplicate history, syntax/repair status, and eligible retired identifiers | All variants |
| Belief | Log evidence, model weights, best-model marker, parameter posterior summaries, pre-observation predictive log scores, and archived evidence values | |
| Diagnostics | Standardized predictive residuals for every active model at the acquired observations, identified by model |
| Objective | ChemBench | BoxingGym | ForceBench |
|---|---|---|---|
| Joint EIG | 0.0101 | ||
| Model-only | 0.0111 | ||
| Parameter-only | 0.0168 | ||
| Random | 0.0570 | ||
| EPIG | — | 0.0132 |
| Task | Primary EIG | Primary random | Primary ICL | Obs. EIG | Obs. random | Obs. ICL |
|---|---|---|---|---|---|---|
| c0 easy | ||||||
| c0 medium | ||||||
| c0 hard | ||||||
| c2 easy | ||||||
| c2 medium | ||||||
| c2 hard |
| Entry | Stable | Primary error at admission | Final error | ||||
|---|---|---|---|---|---|---|---|
| Policy | Seed | round | round | Before | After | Primary | Observation |
| EIG | 31 | 9 | 9 | ||||
| EIG | 37 | 7 | 7 | ||||
| EIG | 41 | 18 | 18 | ||||
| Random | 31 | 9 | 9 | ||||
| Random | 37 | 5 | 17 | ||||
| Difficulty | Control | Histories | Minimum | Median | Maximum |
|---|---|---|---|---|---|
| Easy | Constants estimated | 27 | |||
| Easy | Constants supplied | 27 | |||
| Hard | Constants estimated | 27 | |||
| Hard | Constants supplied | 27 |
Scientific Discovery
Scientific discovery uses computational methods to find hypotheses, laws, mechanisms, and materials from data, literature, and experiments.
See all 86 papers