Unmasking shortcut solutions of coding agents on partial differential equations
Abstract
Coding agents now write simulation programs, but benchmarks usually judge only whether their output matches a reference. In manufactured-solution tasks the data determine the exact solution, so a matching output need not come from a solver. We introduce PDEViBench, a benchmark of 290 tasks in six equation families that traces each passing program to the computation behind its output and reruns unclear programs on changed data. A Codex agent (GPT-5.2) passed 80% of 1,450 runs, yet about one pass in ten returned the exact solution without solving the equation. Counting only solved passes changed which task features made problems seem hard and reversed the ranking of two prompts. Once the prompt forbade the shortcut, every pass was a numerical solve, and on tasks without a closed-form solution passing programs stayed correct on changed data. Scientific coding benchmarks should check how each answer was computed as well as whether it matches.
Create a lesson
Metadata
- Categories
- math.NA, cs.NA
Related papers
Variationally correct physics-informed operator learning for nonlinear partial differential equations
Shared title terminologymath.NAYuan Qiu, Wolfgang Dahmen, Peng Chen
Higher order schemes for the numerical solution of integro-differential equation-based age-of-infection models with time-dependent contact rates
Shared title terminologymath.NAAnna Wendler, Jan Hasenauer, Martin J. Kühn
A posteriori error estimates for higher-order BDF methods for parabolic partial differential equations
Shared title terminologymath.NAStefan Karch
Hierarchical randomized neural networks for efficiently and accurately finding multiple solutions of semilinear elliptic equations
Shared title terminologymath.NAJingying Hu, Jiao Li, Yufeng Xu et al.
Accurate rank-controlled step-truncation methods for matrix differential equations
Shared title terminologymath.NAMatthieu Dolbeault, Polina Sachsenmaier, Fabio Zoccolan
Verified parameter estimation for differential-equation models: NIST reference problems and the theophylline flip-flop
Shared title terminologymath.NAHamid Semiyari