Auto-Configuring Scientific Simulators with Lightweight Coding-Agent Adapters

Matthew Ho, Brian Liu, Jixuan Chen, Audrey Wang, Lianhui QinarXiv 2026

TL;DR

Configuring advanced scientific simulators is a massive time sink for researchers, often requiring hours or days of manual debugging to write valid configuration files. Instead of building complex, custom AI agents from scratch, this paper introduces SIGA—a lightweight adapter that supercharges existing, off-the-shelf coding agents with simulator-specific memory, retrieval, and validation gates. SIGA dramatically improves simulation reliability, matching hours of human expert effort in just five minutes across multiple scientific domains.

What Problem Does This Paper Address?

Scientific simulators (such as GEOS for geophysics or OpenFOAM for fluid dynamics) are essential tools for modern research, but configuring them is a notorious bottleneck. To run a simulation, scientists must write highly complex configuration files known as "input decks." These decks function as rigid, domain-specific languages with thousands of lines of schema constraints, cross-file references, and strict vocabulary rules.

Figure 1: Illustrative example of advanced tooling usage bottleneck for the geophysics domain. Here, the GEOS simulator’s extensive documentation helps as a translation guide for its elaborate configuration that is a custom XML (domain specific language/DSL) to produce results such as simu- lating carbon sequestration in deep saline formations (top right) or reservoir flow in heterogeneous hydrocarbon (bottom right).

A single typo or missing block can cause a simulation to fail silently or crash after hours of runtime. While previous AI research has attempted to solve this by building custom "scientific agents" from scratch, doing so discards the highly optimized tool-use, file navigation, and self-correction behaviors already baked into state-of-the-art general coding agents. The authors look to bridge this gap by grounding general coding agents in the specific "executable contract" of a simulator without rebuilding the agent loop.

Methods

The authors introduce the Simulator Interface Grounding Adapter (SIGA). SIGA keeps the underlying LLM and coding agent loop completely frozen, injecting domain-specific capabilities through three clean interfaces:

  1. Procedural Memory (M): An always-on, compact cheatsheet (under 800 tokens) appended to the system prompt that keeps high-frequency simulator vocabulary and common anti-patterns directly in the agent's view.
  2. Semantic Retrieval (R): A Model Context Protocol (MCP) server that grants the agent semantic search capabilities over documentation, schemas, and existing code examples.
  3. Validator-Driven Self-Refinement (X & S): An agent-callable validation tool (X) for mid-trajectory checks, paired with a strict termination gate (S). The stop hook blocks the agent from finishing if the output is invalid, returning structured error feedback until the deck passes validation.

Additionally, SIGA supports Self-Evolution (SE). An offline pipeline allows a supervisor agent to review past execution trajectories and iteratively rewrite the prose instructions and cheatsheets to optimize performance automatically.

Datasets

The approach was evaluated across three distinct simulator environments:

  • GEOS: A 46-task pool mined from advanced examples of a multiphysics subsurface simulator, split into distillation, validation, and 10 hard, held-out evaluation tasks covering poromechanics, hydraulic fractures, and thermal coupling.
  • OpenFOAM (n30_hybrid): A 30-task benchmark derived from FoamGPT, spanning computational fluid dynamics solvers like combustion, mesh, and heat transfer.
  • LAMMPS: A 9-task molecular dynamics benchmark spanning diverse physics scenarios, such as Lennard-Jones melt and nanoindentation.

Key Insights and Ideas

  • Reliability Over Uniform Quality Lift: General coding agents are already proficient at generating basic templates. Their main failure mode is the "hard tail" of catastrophic errors (e.g., leaving a file empty or structurally unparseable). SIGA acts primarily as a safety net, eliminating these zero-score runs and drastically lowering performance variance.
  • Interface-Dependent Bottlenecks: The ideal adapter configuration depends entirely on the simulator's interface. For structured XML/dictionary setups like GEOS and OpenFOAM, the termination gate (S) is the most critical component because structural completeness is the main hurdle. For sequential, schema-free scripts like LAMMPS, procedural memory (M) and retrieval (R) dominate because the challenge shifts to value correctness (units, parameters).
  • The "Cheaper Oracle" Effect: When given a tool to consult a human supervisor for ambiguous tasks, the agent rarely used it (~3% of the time). Instead, it treated the on-disk example library as a cheaper substitute, successfully grepping and copying values from analogous benchmarks rather than asking for help.

Key Results

  • GEOS Hard Tasks: On difficult, held-out tasks, SIGA raised the mean tree-edit similarity score (TreeSim) from 0.720 to 0.789 and reduced across-run standard deviation by 16× by preventing catastrophic invalid outputs.
  • Human vs. AI Calibration: On a representative GEOS task, SIGA achieved a deck quality in 5 minutes that took a human domain expert (who was new to the software) 3 hours to complete—a 36× wall-clock speedup.
  • OpenFOAM Transfer: SIGA achieved 100% required-file coverage across all 30 tasks. In contrast, two native, built-from-scratch OpenFOAM agents failed on 8 to 12 tasks due to missing required files.
  • LAMMPS Transfer: On DeepSeek-v4-flash, adding the informational SIGA adapter boosted the LLM-judge score from an unguided 4.56 to 7.78 out of 10.

Limitations and Future Work

  • Structural vs. Physical Validity: SIGA relies heavily on syntax and schema checkers (like xmllint). While this ensures a deck is structurally complete and parseable, it does not guarantee that the simulation is physically valid or won't numerically diverge at runtime.
  • The Attribute-Value Frontier: While SIGA successfully eliminates whole-block omissions, it struggles to fix fine-grained semantic mistakes (e.g., choosing the exact physically appropriate solver tolerance or permeability value). The authors note that incorporating attribute-level oracles will be the next frontier.
  • Context Cost: Because SIGA resends a growing context window during iterative tool turns, it runs roughly an order of magnitude more expensive in API token costs than lightweight, native agents that discard history.

Summary updated

BibTeX
@misc{ho2026auto,
  author = {Matthew Ho and Brian Liu and Jixuan Chen and Audrey Wang and Lianhui Qin},
  title = {{Auto-Configuring Scientific Simulators with Lightweight Coding-Agent Adapters}},
  year = {2026},
  eprint = {2606.09774},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.09774},
}
Figure