automodel: A Skill for Agentic Model Discovery

Marco Virgolin, Harry Desmond, Ester Bergantin, Giorgio Morales, John W. Sheppard, Luigi Romano, Alessandro LucantonioarXiv 2026 · arXiv

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:

  1. Setup: The researcher defines the goal, data, success metrics (e.g., error vs. complexity), and physical constraints.
  2. Baseline: The agent establishes a reference point by fitting a standard model and verifying the evaluation pipeline.
  3. 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.
  4. Finalize: The best-found models undergo a final assessment against held-out data or physical "sanity checks."
Figure 1: The four phases of automodel. In phase 3, parallel agents are spawned to test different structural hypotheses through sequential attempts, while a coordinating agent compares results and redirects the next meta-iteration. The score and final check are defined for each application during setup.

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, automodel found 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.
Figure 2: The best ESR function, the Bernardi function, and the best function found by automodel (A5), overplotted on the binned SMF data. Top: the number density ϕ against stellar mass, both logarithmic, with the measurements as points. Bottom: residuals in units of the Poisson measurement uncertainty. A5 and Bernardi both track the data to within about 2σ, as expected for a high-quality fit, while the complexity-limited ESR function is visibly worse.
Figure 3: Pareto fronts of ∆DL (blue) and ∆NLL (red) against complexity, relative to the best value in each panel, for the two versions of the stellar mass function dataset. Connected points are the best ESR function at each complex- ity, circled markers are the Saunders and Bernardi literature forms and stars are the functions found by automodel, labelled A1–A7 by increasing complexity. The lower panels zoom in on the ∆DL competition, the dashed horizontal line marking Bernardi’s value. The gold-rimmed A5 function beats Bernardi by description length on both datasets. (Markers can coincide: two of the functions are at complexity 19, and A5’s ∆DL and ∆NLL markers lie exactly on top of one another on dataset 2.)

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

Abstract

The search for better models, whether expressed as analytical equations or neural architectures, has increasingly shifted from manual design toward data-driven automation. While a multitude of algorithms exist, ranging from exhaustive search to AlphaEvolve, recent advances in general-purpose coding agents such as Claude Code and OpenAI Codex raise the question: could providing such systems with a "model discovery recipe" be enough to discover or improve models? We present automodel, an agent skill for general model discovery. With case studies in astrophysics, cardiovascular dynamics, precision agriculture, traffic flow, and vehicle tire dynamics, we show how commercial agents equipped with automodel can successfully identify novel and scientifically-relevant models. Our findings suggest that encoding model-discovery methodology as a portable agent skill can provide a simple, interactive, powerful and broadly applicable alternative to domain-specific automated discovery pipelines. The skill is available at: https://github.com/unlayer-ai/automodel.
BibTeX
@misc{virgolin2026automodel,
  author = {Marco Virgolin and Harry Desmond and Ester Bergantin and Giorgio Morales and John W. Sheppard and Luigi Romano and Alessandro Lucantonio},
  title = {{automodel: A Skill for Agentic Model Discovery}},
  year = {2026},
  eprint = {2611.24347},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.24347},
}

Loading related content...

Figure