Search arXiv⌕ Search

arXiv · 2611.12308

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.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Jiale Linghu, Yangshuai Wang. 2026-11-09. Unmasking shortcut solutions of coding agents on partial differential equations. https://searcharxiv.org/abs/2611.12308

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Finite-difference least square methods for solving Hamilton-Jacobi equations using neural networks

We present a simple algorithm to approximate the viscosity solution of Hamilton-Jacobi (HJ) equations by means of an artificial deep neural network. The algorithm uses a stochastic gradient descent-based method to minimize the least square principle defined by a monotone, consistent numerical scheme. We analyze the least square principle's critical points and derive conditions that guarantee that any critical point approximates the sought viscosity solution. The use of a deep artificial neural network on a finite difference scheme lifts the restriction of conventional finite difference methods that rely on computing functions on a fixed grid. This feature makes it possible to solve HJ equations posed in higher dimensions where conventional methods are infeasible. We demonstrate the efficacy of our algorithm through numerical studies on various canonical HJ equations across different dimensions, showcasing its potential and versatility.

math.NA↗

A nonsmooth extension of the Brezzi-Rappaz-Raviart approximation theorem via metric regularity techniques and applications to nonlinear PDEs

We generalize the Brezzi-Rappaz-Raviart approximation theorem, which allows to obtain existence and a priori error estimates for approximations of solutions to some nonlinear partial differential equations. Our contribution lies in the fact that we typically allow for nonlinearities having merely Lipschitz regularity, while previous results required some form of differentiability. This is achieved by making use of the theory of metrically regular mappings, developed in the context of variational analysis. We apply this generalization to derive quasi-optimal error estimates for finite element approximations to solutions of viscous Hamilton-Jacobi equations and second order mean field game systems.

math.NA↗

A hierarchical splitting approach for N-split differential equations

We propose a hierarchical splitting approach that constructs splitting methods for N-split differential equations by iteratively applying splitting methods for two-split systems along a splitting tree. Since assigning methods of order p to all nodes of the tree yields a hierarchical splitting method of order p, the order theory for two-split systems carries over to any number of partitions. We derive explicit formulas for the leading-order error terms, investigate self-adjointness, and show that state-of-the-art composition approaches are contained in the resulting class as special cases. Augmenting the approach with multiple time stepping yields a framework at the intersection of geometric numerical integration and multirate integration, for which we characterize the computational order of a multirate integrator and introduce a reweighting of the multirate factors that reduces computational overhead, but can lead to an order reduction when applied within composition techniques. We further discuss principles for designing splitting trees, with particular attention to separable Hamiltonian systems and port-Hamiltonian systems. Numerical experiments for both classes demonstrate that the hierarchical splitting approach yields efficient methods for N-split systems. We find that the approach is particularly efficient when commutator-based splitting methods become available and the partitions evolve on distinct time scales.

math.NA↗