arXiv:2610.18378cs.AIOct 2026

Manuscript Offprint

arXiv:2610.18378

Delegating Earth science model calibration to knowledge-guided LLM agents

Zhanliang Zhu, Ziwei Li, Liujun Zhu, Yuchen Liu, Junliang Jin, Jianyun Zhang

Abstract

Applying process-based Earth science models to new sites and questions often requires expert calibration decisions. Reliable delegation to language-model agents must preserve scientific competence and reproducibility. Here we develop a general calibration harness (GCH) for end-to-end delegation from a calibration request to assessed results. Constrained by a knowledge infrastructure (KI) and a validation convention, agents define parameter domains, observation mappings and objectives, and generate model-specific code. GCH checks the formulations against the same declarations and freezes them before numerical search and assessment, which require no further agent judgement. Agent-authored workflows executed across six model families, with assessment identifying unmet criteria. In snow-model tests, five of five knowledge-guided specifications executed on the first attempt, compared with none of five given only the model name, achieving validation Nash–Sutcliffe efficiency (NSE) of 0.81–0.94 against 0.57 for defaults. Under a common objective, independent GR4J formulations yielded scores within 0.001 NSE; re-evaluating eleven saved parameter vectors reproduced their metrics. In ten paired VIC tests with matched budgets, fixed search was non-inferior to continuing agent proposals (margin, -0.02 NSE; median difference, -0.003). This separation enables end-to-end calibration delegation with inspectable scientific choices and reproducible numerical evaluation.

1 Introduction

Process-based models of crops, catchments, snowpacks, land surfaces and aquifers are the instruments through which Earth and environmental scientists test process understanding and make predictions [1,2]. A model is built once and applied many times, and each application has its own scientific aim, spatial scale and observational situation [3]. A catchment model used to estimate total runoff, and the same model used to analyse runoff, snow storage and evaporation together, are one code applied under different constraints and judged against different targets. Bringing a model into a specific application therefore means matching its configuration to the available data, the question asked and the standard of evidence expected, and it usually means organizing a calibration and an evaluation for that application.

Numerical optimization executes an objective that has already been defined, and the definition rests on prior judgements. Which parameters may vary, and within what ranges, depends on the model configuration and on how far the observations can constrain them, because many parameter sets reproduce an observed series equally well [4,5]. Which simulated quantity corresponds to which observation, in what units and at what temporal and spatial resolution, decides whether a comparison is physically meaningful, and comparing several fluxes and states at once exposes compensating errors that a single series conceals [6,7]. Which metric expresses the question changes the parameter set that is selected [8,9], and the criteria by which a result is judged adequate are conventions of a field, codified for hydrological variables [10] and still debated for crop models [11]. Together these choices determine what the model is tested against. They are documented unevenly, in code comments, manuals, methods sections and the working notes of experienced users, and reassembling them for each new application is a large part of the effort of calibration.

Large language models can read and organize such material, generate the interface code that connects a model to data and optimizers, and act on simulation feedback. Each ability has been examined in Earth-science modelling. Language models have proposed parameter updates from simulation diagnostics inside an iterative calibration, where their proposals were compared with established optimizers [12]; they have orchestrated flood-modelling workflows from data retrieval to reporting under human oversight [13]; they have been trained as policies that learn parameter proposals from simulator feedback [14]; and they have reasoned within codified forecasting skills while numerical tools performed calibration and simulation [15]. Executable environments have made such work checkable in software repair and scientific coding [16,17], and knowledge infrastructures that package how a model is operated have allowed agents to run simulation workflows across models [18]. The parameter-update role of a language model has thus been tested. The role examined here comes before it: the formulation of the calibration experiment itself.

Whether existing model knowledge can support that role is an open question. A formulation written by a language model must satisfy two kinds of constraint at once. Interface constraints require that the named observation exists in the model output, that each parameter is applied in the unit and location the model expects, and that the metric is computed on comparable quantities. Scientific constraints require that the parameters, ranges, objectives and acceptance criteria fit the application at hand. A program can violate both and still run to completion, because a mismatched variable name or a parameter in the wrong unit leaves the numerics internally consistent while the experiment is wrong, and assessments of foundation models in hydrometeorology have documented such method-selection errors alongside successful programming [19]. The question is therefore whether the knowledge that defines a model's interface and its evaluation conventions can be supplied in a form that guides the generation of an experiment and that the same software then uses to check, execute and assess it, so that generation, execution and evaluation share one definition.

Here we test this with a general calibration harness (GCH) in which knowledge-guided language model agents formulate calibration experiments and deterministic software executes them. The agent reads a model's knowledge infrastructure [18], extended for calibration with a model graph that declares what each output can be compared with and a validation convention that records declared, literature-informed assessment criteria, and writes a calibration contract and the model-specific runner once, before any search. GCH compiles objectives from the same declarations, checks the generated code against the model's reference run, performs numerical search with conventional optimizers and assesses every observed variable against the declared criteria. We ask whether agents formulate executable experiments for six model families with different interfaces and observation structures; whether the supplied knowledge is what makes the formulations usable, using comparisons across information conditions for a snow model; and what fixed formulations deliver numerically, using repeated formulations, a paired comparison between fixed search and continuing agent proposals, and replays of saved evaluations. Knowledge-guided formulations executed across the six families and the assessment identified which observed targets remained unresolved; model-specific interface knowledge decided first-pass execution; and fixed formulations gave closely similar results under a shared objective and met the non-inferiority criterion without agent calls during search. Each calibration leaves an explicit, reusable experiment definition in which the scientific choices of a model application can be inspected and compared.