arXiv:2610.06257cs.LGOct 2026

Manuscript Offprint

arXiv:2610.06257

SimAuthor: Harnessing Foundation Models for Persistent Scientific Simulator Authoring

Yishan Wang, Ran Piao, Mathias Funk, Aaqib Saeed

ABSTRACT

Foundation models can generate scientific code, but authoring a scientific simulator (an executable program encoding hypotheses about how mechanisms generate observable signals) requires iterative refinement. Scientific adequacy rarely admits a unique implementation or exact test, so simulators must instead be judged against limited real observations. We study this setting as scientific simulator authoring under weak empirical feedback, where distributional comparisons between simulated and real signals guide revision, and the target is the simulator itself rather than only its generated samples. We introduce SIMAUTHOR, a persistent authoring harness that retains and revises executable simulators, separates scalar search scores from structured discrepancy feedback, and accumulates reusable implementation mechanisms. We evaluate SIMAUTHOR on six biomedical tasks spanning cardiac and respiratory audio, photoplethysmography (PPG), and electrocardiography (ECG). Under a fixed 100-attempt budget, SIMAUTHOR outperforms PUCT score search on all six tasks, generally outperforms textual-strategy optimization, and achieves the highest endpoint score on five of six. The authored simulators also improve on unseen recordings, transfer to independent pretrained representations, and yield substantial out-of-distribution gains in downstream ECG classification. Finally, 111 of 138 audited revisions alter program structure and account for 86.1% of the signed score improvement. These results suggest that persistent revision can progressively convert foundation-model knowledge into better executable scientific simulators from limited empirical evidence.

1 INTRODUCTION

Foundation models, when coupled with inference-time harnesses that organize search, execution, and revision, are becoming increasingly capable scientific and programming systems. Pretraining equips them with substantial domain knowledge and strong zero-shot code generation abilities (Singhal et al., 2023; Li et al., 2023; Guo et al., 2024), while inference-time scaffolding extends what they can accomplish through planning and iterative refinement (Shinn et al., 2023; Romera-Paredes et al., 2024; Novikov et al., 2025). These capabilities raise an underexplored question: can foundation models author scientific simulators? We consider a simulator an executable program that encodes hypotheses about how interpretable mechanisms and stochastic processes generate observable real-world signals. Unlike many LLM-guided program-search settings, simulator authoring typically lacks an exact verifier: there is rarely a unique correct implementation, and no unit test determines whether the generated behavior is scientifically adequate. Candidate simulators must therefore be judged indirectly against limited real-world observations.

We study this problem in biomedical signal simulation, where the opportunity and the difficulty are especially concrete. For example, a COPD respiratory simulator is an executable program that generates breathing recordings from explicit models of respiratory timing, adventitious sounds, and measurement variability. Yet this knowledge does not directly translate into a useful simulator: a plausible zero-shot program may capture broad phenomenological features while omitting the stochastic, temporal, and measurement processes (Figure 1, left). Simulation is particularly valuable when real recordings are scarce, imbalanced, or difficult to share (Rieke et al., 2020; Wagner et al.,

*Code: https://github.com/yishani/SimAuthor. Project page: https://yishani.github.io/SimAuthor.

Figure

Figure 1: Overview. SimAuthor turns LLM prior knowledge into executable simulator code when exact verification is unavailable and feedback comes only from scarce real data.

2020; Rocha et al., 2017), but the same scarcity provides only limited empirical grounding for authoring and validating the simulator. In the absence of an exact verifier, we use distributional comparisons between generated and real recordings as empirical feedback for revision (Figure 1, middle top). In this work, the target is the simulator itself rather than only its samples: an explicit, executable model that can be inspected, modified, and controlled (Figure 1, right).

We introduce SIMAUTHOR, a harness designed for this weak-feedback authoring regime (Figure 1, middle). Rather than repeatedly generating programs from scratch, SIMAUTHOR persistently develops executable simulator candidates, using empirical feedback to guide revision while retaining useful mechanisms discovered across model calls. In this way, simulator construction becomes a cumulative authoring process rather than zero-shot code generation.

We evaluate this setting on six biomedical simulator-authoring tasks spanning cardiac audio, respiratory audio, electrocardiography (ECG), and photoplethysmography (PPG). Under a fixed 100-attempt authoring budget, SIMAUTHOR outperforms repeated independent generation and score-only program search on all six tasks, generally outperforms textual-strategy optimization, and achieves the strongest endpoint on five of six. Additional evaluations on unseen representations and downstream prediction tasks provide evidence that these gains extend beyond the authoring objective. Component ablations show that structured discrepancy feedback is critical for final quality, while mechanism memory consistently improves search efficiency. A revision audit further finds that structural program changes account for 86.1% of the signed score improvement, indicating that progress is realized through changes to the explicit, inspectable simulator rather than only parameter retuning. These results support persistent artifact-centered revision as a way to convert foundation-model knowledge into better executable scientific models under weak empirical feedback.

Our contributions can be summarized as follows:

  1. We introduce foundation-model-based scientific simulator authoring as a new problem setting: foundation models construct executable simulators that encode scientific assumptions and generative mechanisms. We formalize this setting under weak empirical feedback, where only limited real observations and no exact verifier are available.

  2. We introduce SIMAUTHOR, a persistent authoring harness that progressively revises executable simulators while carrying useful information and mechanisms across model calls.

  3. We evaluate simulator authoring across six biomedical tasks and four signal modalities, showing consistent gains over independent sampling, score-only search, and a textual-strategy optimization baseline, with additional evidence that these gains extend beyond the authoring objective.