Physics-Informed Optimal Control by Control-Only Supervision with Error Guarantees on Value and Policy

Zihua Wang, Xiaopei Jiao, Yunfeng CaiNeurIPS 2026

TL;DR

Controlling complex, high-dimensional nonlinear systems in real time usually forces an uncomfortable choice between slow mathematical solvers and fast neural networks that lack theoretical guarantees. This paper bridges that gap with a Physics-Informed Neural Network (PINN) that learns to steer 40- and 50-dimensional systems using only precomputed control actions—no ground-truth cost-to-go data required. The result is a controller with rigorous mathematical error bounds that runs 20 to 30 times faster than traditional solvers while actually estimating future costs more accurately than its teacher.

What Problem Does This Paper Address?

At the heart of optimal control—whether you are coordinating a drone swarm or stabilizing a chemical reaction—sits the Hamilton-Jacobi-Bellman (HJB) equation. Solve it, and you get the "value function" (the minimum future cost from any state), whose gradient tells you the exact best action to take right now. Unfortunately, for nonlinear, high-dimensional systems, solving the HJB equation directly is notoriously intractable due to the curse of dimensionality.

Engineers often work around this using the State-Dependent Riccati Equation (SDRE), a clever method that locally linearizes the system and solves a matrix equation at every single time step. SDRE works well, but solving heavy matrix equations on the fly is far too slow for fast, high-dimensional real-time control. Furthermore, SDRE's internal estimate of the total cost-to-go drops certain derivative terms, meaning it can be systematically biased. If you try to speed things up by training a neural network on SDRE's flawed value estimates, your network inherits that bias. And if you try to train a pure PINN on the HJB equation alone without data, optimization often fails completely.

Methods

The authors propose an SDRE-guided PINN that learns a scalar value function $V_\theta(x)$ without ever seeing a value label.

Here is how the pieces fit together:

  • Control-Only Supervision: Using automatic differentiation, the network computes its own spatial gradient $\nabla V_\theta(x)$ to output a control action. During training, a control policy loss nudges this output to match reference control actions precomputed offline by an SDRE solver.
  • Physics-Informed Regularization: Simultaneously, an HJB residual loss forces $V_\theta(x)$ to obey the underlying differential equation of optimal control. The network is trained on a weighted sum of these two losses.
  • Built-in Physical Constraints: Rather than hoping the network learns basic physics, the authors hardcode them into the architecture. By subtracting the origin's output and applying a ReLU safeguard with a stop-gradient trick, the network strictly guarantees zero cost at the target state ($V_\theta(0) = 0$) and positive costs everywhere else ($V_\theta(x) \ge 0$), without breaking gradient flow during backpropagation.
  • Rigorous Error Guarantees: Because exact HJB solutions can have sharp corners (non-smooth), the authors analyze a slightly smoothed "viscous" HJB equation (which corresponds to adding tiny random noise to the dynamics). Using PDE energy estimates, they prove mathematical upper bounds on both the value error and the policy error—including a local, unweighted bound that holds even for underactuated systems (where you have fewer thrusters than degrees of freedom).

Datasets

Rather than static benchmark datasets, the authors generate trajectory datasets offline by simulating two classic high-dimensional nonlinear control benchmarks under an SDRE controller:

  1. 40D Cucker–Smale Flocking Model: A multi-agent system of 20 interacting agents (tracking 20 positions and 20 velocities), generating 20,000 state–control pairs across 400 trajectories.
  2. 51D Allen–Cahn PDE: A nonlinear reaction-diffusion partial differential equation discretized onto a 51-point spatial grid controlled by a single scalar input, yielding 10,000 state–control pairs across 50 trajectories.

Key Insights and Ideas

  • Dodging the Teacher's Bias: This is the biggest "aha" moment of the paper. In the Allen–Cahn system, the traditional SDRE value approximation noticeably deviates from the true accumulated cost of the trajectory. Because the authors' network ignores SDRE's value function and instead combines SDRE's actions with the exact HJB physics, the neural network recovers the true cost-to-go far more faithfully than the SDRE solver that taught it!
  • Scalar Fields Beat Vector Fields: Instead of training a network to map states directly to multi-dimensional control vectors, learning a single scalar value function $V_\theta(x)$ and taking its gradient aligns naturally with dynamic programming and improves sample efficiency in high dimensions.
  • Synergy of Data and Physics: Ablation studies note that training with HJB physics alone fails to converge in these tests, while control-only supervision misses out on value–cost consistency. Combining them stabilizes training and anchors the value landscape to reality.

Key Results

Qualitatively, the learned neural controllers smoothly stabilize both the 40D multi-agent swarm and the 51D PDE to the origin, producing trajectories and control signals that are virtually indistinguishable from the baseline SDRE solver.

Position and velocity trajectories of the 40D Cucker-Smale multi-agent system under the learned NN controller (left) and reference SDRE controller (right).
Evolution of the 51D Allen-Cahn PDE under the NN controller (left) and SDRE controller (right), showing nearly identical stabilization.

Quantitatively, the inference speedup is substantial because online matrix Riccati solvers are replaced by a lightweight forward/backward pass through a 3-layer network:

  • Cucker–Smale (40D): Evaluation drops from 0.0063s (SDRE) to 0.0003s (NN)—a ~21× speedup.
  • Allen–Cahn (51D): Evaluation drops from 0.0115s (SDRE) to 0.0004s (NN)—a ~29× speedup.

Additional experiments in the appendix confirm the controller remains robust against noisy control labels, out-of-distribution initial states, and moderate perturbations to the system dynamics.

Limitations and Future Work

The authors candidly note a few caveats:

  • Full System Knowledge Required: Computing the HJB residual requires knowing the exact mathematical equations governing the system's drift and control dynamics.
  • Offline Bottleneck: While online execution is blazingly fast, you still have to pay the computational cost of running the SDRE solver offline to build the training dataset.
  • Hyperparameter & Conditional Bounds: Balancing the HJB loss against the control loss requires tuning a weight parameter ($\gamma$), and the theoretical error bounds rely on conditional regularity assumptions that cannot be directly verified from finite samples alone.

Looking ahead, the authors aim to explore adaptive residual-based sampling, automatic loss weighting, handling partially unknown system dynamics, and blending this framework with inverse optimal control.

Summary updated

Abstract

We propose a physics-informed method for solving high-dimensional optimal control problems that requires only control labels, not value function labels. A neural network parameterizes the value function, and the control policy is derived from its gradient. The network is trained by minimizing a weighted sum of the standard Hamilton-Jacobi-Bellman (HJB) residual and the mismatch between the network’s control output and control labels, which are precomputed by a state-dependent Riccati equation (SDRE) solver. Theoretically, we establish error bounds for the value function and control policy through the viscous HJB approach, full gradient estimate, and local projected gradient estimate. Numerical experiments show that the learned controller closely reproduces the SDRE reference policy while achieving substantial inference speedup and favorable closed-loop performance. Additional experiments demonstrate robustness to label noise, distribution shifts, and moderate dynamics perturbations.
BibTeX
@inproceedings{wang2026physics,
  author = {Zihua Wang and Xiaopei Jiao and Yunfeng Cai},
  title = {{Physics-Informed Optimal Control by Control-Only Supervision with Error Guarantees on Value and Policy}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=BWHQemN2Xs},
}
Figure