arXiv:2610.30292cs.LGOct 2026

Manuscript Offprint

arXiv:2610.30292

GAV: A scientific experimentation environment for PDE agents

Muheng Li, Wenlong Mou

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Reliable feedback is essential for coding agents to develop programs for partial differential equations (PDEs). Yet evaluating these programs on new PDE problems often requires expensive reference computations, while fixed datasets restrict the range of experiments. We introduce Generator–Agent–Verifier (GAV), a scientific experimentation environment that makes new PDE problems verifiable by construction. The Generator learns a distribution of continuous reference solutions using data from numerical simulations or experimental measurements to represent a target physical regime. Using the method of manufactured solutions, it works backward from the generated reference solutions to construct matching PDE problems without a separate numerical solve. The Agent designs experiments, investigates failures, and iteratively improves its program. The Verifier evaluates candidate programs against the reference solutions and provides numerical feedback on accuracy and computational cost. This feedback can also guide the generation of new problems that probe the current program's weaknesses. We provide a theoretical analysis of evaluation reliability and guided development. Experiments on Navier–Stokes and Vlasov–Poisson-type equations across different data sources and regimes demonstrate the effectiveness of GAV. In particular, on the numerical Navier–Stokes task, GAV reduces the mean test error of three existing PDE agents by more than an order of magnitude relative to their original setups. Code is available at https://github.com/PotatoJnny/PDE-GAV.

1 Introduction

Large language model agents increasingly contribute to scientific research by writing, executing, and revising programs. Recent progress spans mathematical discovery and algorithm design (Romera-Paredes et al., 2024; Novikov et al., 2025), as well as machine-learning experimentation and scientific software development (Yamada et al., 2025; Aygün et al., 2026). Yet reliably completing multi-step scientific tasks remains challenging (Bragg et al., 2026). By testing candidate programs, an agent can identify failures, compare alternatives, and assess whether a revision improves accuracy or efficiency (Aygün et al., 2026; Li et al., 2025). Repeated cycles of proposing, evaluating, and revising programs also offer a way to turn additional test-time computation into better programs (Novikov et al., 2025; Ye et al., 2026). Realizing this potential requires a scientific experimentation environment in which agents can design and run informative experiments and obtain reliable feedback to guide their next steps.

We focus on developing programs for partial differential equation (PDE) tasks, including numerical solution and reduced models for predicting specified macroscopic quantities. In these tasks, an agent not only needs to produce a program that executes successfully, but also to ensure that the program produces accurate results. Reliable numerical feedback is therefore needed to measure progress (Dong et al., 2026). For large-scale computational problems arising from real-world applications, an effective experimentation environment for PDE agents must address the following needs:

• Asymmetric computational cost: Reference-based evaluation compares a candidate program’s output with a reference solution, often computed by a high-resolution numerical solver (Li et al., 2021). Computing these reference solutions can be prohibitively expensive when an agent evaluates many new problems. The environment must therefore provide reliable feedback without expensive reference computations for every new problem.

GAV: Scientific experimentation environment

Figure

Figure 1: GAV: a scientific experimentation environment for PDE agents. The Generator constructs PDE problems and reference solutions from scientific data. The Agent requests problems and input information, tests programs, and uses the Verifier's feedback on error and runtime to guide further experiments and revisions. The diagram illustrates a numerical solution task.

• Data-driven physical regimes: The effectiveness of a numerical method or a reduced model depends on its operating regime. Different regimes may favor different methods. In real-world applications, the precise physical regime is often unknown a priori, and can be characterized as the distribution of plausible solutions. Therefore, the environment must provide a way to learn and represent the physical regime from simulation or measurement data, and use this knowledge to guide the agent's experimentation and program development.

• Interactive feedback: In experimentation environments, agents can iteratively propose experiments, receive feedback, and refine their programs. This interactive loop allows agents to explore the problem space, identify failure modes, and improve their methods. A fixed dataset alone is insufficient; the environment must provide new problems and reliable numerical feedback as experiments require.

Recent work has developed PDE agents that generate and refine solvers using numerical feedback (Li et al., 2025; Fazliani and Udell, 2025; Dong et al., 2026). However, their experimental environments do not yet meet all three needs above. We introduce the Generator–Agent–Verifier (GAV) environment (Figure 1) to address this gap. The Generator learns a distribution of reference solutions from simulation or measurement data, then constructs matching PDE problems using the method of manufactured solutions (Salari and Knupp, 2000). Each problem comes with an exact reference solution without a separate numerical solve. The Agent can request new problems and obtain problem inputs for existing problems as its experiments require. The Verifier evaluates the Agent's program outputs using the corresponding reference solutions under the task's performance objective and returns numerical feedback. This feedback can also guide the Generator toward new problems that probe the current program's weaknesses. The Agent uses this feedback to revise its program and choose its next experiment. Our work enhances existing PDE agents by providing the experimentation environment in which they develop their programs.

Specifically, our contributions are as follows:

  • We construct an experimentation environment from scientific data that supports problem generation, continuous input queries, and evaluation against exact reference solutions, enabling existing PDE agents to conduct experiments throughout program development.

  • We establish theoretical guarantees for evaluation reliability and guided development. Under stated assumptions, we bound the error in evaluating a fixed program and prove convergence of idealized guided development in a convex setting.

• We evaluate GAV on Navier–Stokes and Vlasov–Poisson-type equations using numerical and experimental data. On the numerical Navier–Stokes task, GAV reduces the mean test error of CodePDE, AutoNumerics, and PDE-SHARP by more than an order of magnitude relative to their original experimental setups. Ablations and development case studies examine how the environment’s components affect program quality and the Agent’s experimental decisions.

References (100)

Couldn't load all references. Reload the page to try again.