Manuscript Offprint

arXiv:2610.27193

Low Residuals, Wrong Value: Learning the Viscosity Solution of Hamilton-Jacobi-Isaacs Equations with PINNs

Raul Jimenez, Pablo Tejerina-Pérez, Leonid Sarieddine, Pedro Tarancón-Álvarez, Marisol Traforetti, Pau Solé-Vilaró, Oleksii Ignatenko, Nazar Tkach, Pavlos Protopapas

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

Abstract

Physics-informed neural networks (PINNs) and other residual-trained solvers judge a candidate solution by the size of its sampled PDE residual. For first-order Hamilton-Jacobi equations this is not sufficient: the same equation and boundary data admit Lipschitz almost-everywhere solutions that differ from the viscosity solution by O(1)O(1) while violating the equation only on sets of measure zero. We study whether residual minimization selects such solutions in a fixed-horizon pursuit-evasion game whose Hamilton-Jacobi-Isaacs value function is known in closed form on the circle S1S^{1} and on the flat tori T2T^{2} and T4T^{4}. We train four neural parameterizations with ten seeds on each geometry, 120 runs in total. A standard network with periodic Fourier features converges to folded almost-everywhere solutions in all 30 runs: small residuals and the expected capture-layer gradient, yet values that are wrong over most of the domain. A network with periodicity imposed through the loss recovers the viscosity solution in one and two dimensions but becomes

∗^{*}Corresponding author.

Email address: pablo.tejerina@icc.ub.edu (Pablo Tejerina-Pérez) unreliable in four. Two parameterizations that receive the geodesic distance do substantially better: a single network fed the wrapped displacement and its distance recovers the viscosity solution in all 30 runs, while a minimum over periodic image charts succeeds in 27 of 30 and introduces a wrong-image failure mode. Finally, for the convex Hamiltonian considered here, we use the semiconcavity of the viscosity solution to build a mesh-free finite-difference test that needs only forward network evaluations; it detects the folded solutions and the harmful min-of-charts failures without access to the exact value function. A small sampled residual thus does not by itself validate a learned Hamilton-Jacobi solution; the parameterization and independent structural diagnostics can be essential for selecting the viscosity solution.

Keywords: Hamilton–Jacobi–Isaacs equations, physics-informed neural networks, viscosity solutions, semiconcavity, pursuit-evasion games

1. Introduction

The standard argument for trusting a physics-informed neural network (PINN) solver [1–3] is that, given a partial differential equation (PDE) with a unique solution, if the network’s solution yields a PDE residual that is small on a dense set of collocation points, the network’s solution should approach the true solution as the residual vanishes. For first-order Hamilton–Jacobi (HJ) equations this reasoning breaks down. The solution of interest is the so-called viscosity solution [4, 5]; for the Hamilton–Jacobi–Isaacs (HJI) equation of a differential game it is the value function [6, 7], the minimax solution of Krasovskii and Subbotin [8, 9]. The same equation, however, also admits infinitely many almost-everywhere solutions 1^{1} [4, 10]: Lipschitz functions that match the boundary data and satisfy the equation outside a set of measure zero, on which their gradient jumps, but that differ from the value function, often by O(1)O(1). These classical zigzag constructions can make a sampled L2L^{2} residual small. Whether a residual-trained network actually finds them is an empirical question that matters for neural HJ solvers in control and reachability [11–13], where HJI equations describe the reachable sets of dynamic games [14, 15] and whose interesting regimes offer no ground truth against which a wrong answer could be noticed.

1^{1}Concrete definitions for viscosity and almost-everywhere solutions are given below in Section 3.

To study whether this ambiguity matters in practice, we consider a fixed-horizon pursuit-evasion game for which the viscosity solution is known in closed form. We study the same game on three translation-invariant geometries: the circle S1S^{1}, the two-dimensional torus T2T^{2}, and the four-dimensional torus T4T^{4}. This allows us to compare the learned function directly with the true value function, while following the same problem from one to four spatial dimensions. For each geometry, we train four parameterizations of the value with the same optimizer, batch sizes, and number of iterations with ten seeds each.

We compare four different neural parameterizations of the value function. A standard network based on periodic Fourier features consistently reaches a small residual but converges to the wrong almost-everywhere solution on every geometry and every seed. By contrast, parameterizations that incorporate more of the geometry perform much better. Enforcing periodicity through the loss is sufficient in one and two dimensions but becomes unreliable in four, while the two parameterizations that receive the geodesic distance recover the viscosity solution accurately in almost all runs.

These experiments show that a small sampled residual is not, by itself, enough to determine which solution of a first-order HJ equation has been learned. They also show that the choice of parameterization can strongly affect solution selection. In the present problem, giving the network the geodesic-distance structure is enough to recover the correct value function.

This leaves a practical question: how can one detect a wrong solution when the exact value function is unavailable? For the convex Hamiltonian considered here, the viscosity solution satisfies a one-sided semiconcavity bound. We use this property to construct a finite-difference test that requires only forward evaluations of the trained network. In our experiments, the test clearly distinguishes the folded solutions from the correct ones, and identifies a new type of failure mode particular to one of the parameterizations whose residual alone failed to highlight.

The paper is organized as follows. Section 2 reviews previous work. Section 3 introduces the differential game, its HJI equation and the closed-form value function (the viscosity solution), and shows that the equation has infinitely many almost-everywhere solutions besides it. Section 4 presents the PINN loss, explains why it cannot distinguish the value function from a folded solution, and describes the four network configurations. Section 5 compares the trained PINNs with the closed-form solution and analyzes the different ways in which the parametrizations succeed or fail, and Section 6 offers some conclusions and discussions. The training details are given in Appendix A, while the semiconcavity test is presented in Appendix B.

References (42)