TL;DR
automodel is a portable "skill"—a structured set of instructions—that enables general-purpose coding agents (like Claude Code or OpenAI Codex) to autonomously discover and refine scientific models. By providing a reusable "recipe" for research, it successfully identified novel, high-performing models in fields as diverse as astrophysics, cardiovascular dynamics, and traffic flow, often outperforming established literature standards.
What Problem Does This Paper Address?
Scientific model discovery—the process of finding the right mathematical equations or architectures to describe data—is traditionally a manual, labor-intensive task. While automated tools like Symbolic Regression (SR) and AutoML exist, they are often "dedicated harnesses": rigid, domain-specific pipelines that are difficult to adapt to new problems.
Recent advances in Large Language Models (LLMs) have produced powerful coding agents capable of writing code and running experiments. However, these agents lack a built-in methodology for rigorous scientific discovery. The authors ask: Can we package the methodology of model discovery as a portable "skill" that any general agent can use?
Methods
The authors introduce automodel, which is not a new software library, but a structured scientific workflow designed for agentic execution. It organizes the discovery process into four sequential phases:
- Setup: The researcher defines the goal, data, success metrics (e.g., error vs. complexity), and physical constraints.
- Baseline: The agent establishes a reference point by fitting a standard model and verifying the evaluation pipeline.
- Iterate: This is the core engine. An orchestrator agent spawns multiple parallel sub-agents to test different structural hypotheses. They iteratively modify code, fit parameters, and record results.
- Finalize: The best-found models undergo a final assessment against held-out data or physical "sanity checks."
Unlike traditional SR, which often searches through a predefined set of operators, automodel allows agents to modify existing complex codebases (like a C++ cardiovascular simulator) or propose entirely new functional forms based on domain knowledge provided in the setup.
Datasets
The paper evaluates automodel across five distinct scientific case studies:
- Astrophysics: SDSS survey measurements of the Stellar Mass Function (SMF).
- Cardiovascular Modeling: Cardiac MRI measurements from four heart failure patients.
- Precision Agriculture: Nitrogen-response curves from winter wheat fields in Montana.
- Automotive Tire Modeling: Experimental lateral tire force measurements across varying vertical loads.
- Traffic Flow: Density, velocity, and flow measurements from the NGSIM Interstate 80 dataset.
Key Insights and Ideas
- Methodology as Portability: The most striking finding is that a single natural-language "recipe" can be applied to vastly different domains. The same skill helped discover a one-line equation in astrophysics and a structural modification to a complex C++ heart simulator.
- Bridging the Complexity Gap: In astrophysics,
automodelfound models that were more complex than what "exhaustive" search algorithms could reach, yet simpler and more accurate than manually designed literature models. - Interactivity is a Feature: Unlike "black-box" optimizers, researchers can interact with the agent during the process—refining objectives or catching "cheating" models that fit the data but violate physical laws.
- Persistence via Meta-Iterations: The structured "meta-iteration" loop (where an orchestrator reviews sub-agent failures) significantly improves the agent's ability to find physically admissible models compared to a generic "improve this model" prompt.
Key Results
The results across all five domains were significant:
- Astrophysics: The agent discovered a new SMF model (labeled A5) that achieved a better "Description Length" (a metric balancing fit and simplicity) than the current literature standard (Bernardi et al.).
- Cardiovascular: It identified a novel "fiber-stretch activation" term that reduced Mean Absolute Percentage Error (MAPE) across all development patients, dropping error from 4.15% to 3.77% in one case.
- Precision Agriculture: Discovered functional "skeletons" that were up to 248x more accurate than classical agronomic models.
- Automotive: Found an asymmetric hyperbolic-tangent model that reduced RMSE by ~12% compared to the industry-standard Pacejka's Magic Formula.
Limitations and Future Work
The authors acknowledge several hurdles:
- Stochasticity: Because LLMs are probabilistic, different runs can yield different models. The "skill" mitigates this through parallel agents, but it doesn't eliminate it.
- Identifiability: While the discovered equations fit the data well, the individual parameters may not always have a clear physical meaning without further expert audit.
- Human-in-the-loop: The system still requires a knowledgeable researcher to set up the problem correctly and perform the final "sanity check" on the results.
Future work includes more systematic comparisons with traditional search algorithms and testing the skill on even more complex tasks, such as discovering neural network architectures from scratch.
The skill is open-source and available at: https://github.com/unlayer-ai/automodel.
Summary updated