Finding the best feedback controller for a noisy nonlinear system means solving the Hamilton-Jacobi-Bellman (HJB) equation. This is a partial differential equation (PDE) for the "value function," the best achievable future cost from each state. Grids over the state space grow exponentially with dimension, so neural solvers have taken over. The strongest guarantees for neural PDE solvers, however, exist only for linear equations: dimension-independent error bounds for physics-informed networks, and unbiased Monte Carlo estimators that use a network's gradient to cancel noise. The HJB equation is nonlinear because of the minimization over controls.
This note starts from a simple observation. Policy iteration alternates between evaluating a fixed controller and improving it. When the controller is fixed, the equation for its cost is linear: it is a Kolmogorov PDE, the kind of equation that describes expected costs along a diffusion. The nonlinearity sits entirely in the improvement step, which is a pointwise minimization. That means the linear machinery can be moved, step by step, into nonlinear stochastic control. We propose to build this and test it. Each evaluation step estimates the current controller's cost by simulation, and the network's own gradient serves as a zero-mean correction that removes most of the Monte Carlo noise without adding bias. This gives low-variance regression targets for training and cost estimates with honest error bars. It needs no Hessian computation, and it does not rely on the special structure that path-integral methods require.
Core Claim
Consider stochastic dynamics $dx_t = f(x_t,u_t)\,dt + \sigma(x_t)\,dw_t$ on a finite horizon $[0,T]$, where $f$ is the drift, $\sigma$ the noise scale and $w_t$ Brownian motion. For a fixed feedback policy $u_k$, the policy's value $V^{u_k}$ solves a linear second-order PDE. By Itô's formula, any smooth candidate value $\phi$ gives an estimate of the policy's cost-to-go from $(t,x)$ that is unbiased for every $\phi$:
$$ \hat Y_\phi(t,x) = \int_t^T \mathcal L(x_s,u_k(x_s))\,ds + g(x_T) - \int_t^T \nabla_x \phi(s,x_s)^\top \sigma(x_s)\,dw_s . $$
Here $\mathcal L$ is the running cost and $g$ the terminal cost. The subtracted stochastic integral has mean zero whatever $\phi$ is, and its variance vanishes when $\phi = V^{u_k}$.
We call the method CV-PI (control-variate policy iteration). It regresses a value network onto $\hat Y_\phi$, using the previous iterate as $\phi$, and then updates the policy by the pointwise minimization $u_{k+1}(x) = \arg\min_{u \in U}\{\mathcal L(x,u) + \nabla V_k^\top f(x,u)\}$. The set $U$ may include actuator box limits.
The claim has three parts:
- Stable targets. The regression targets are unbiased at every iteration. Their variance shrinks as the value network improves, so policy iteration receives low-noise targets exactly where full-horizon Monte Carlo is noisiest.
- Upper bounds with error bars. Evaluating the final policy on fresh paths with the same correction gives an unbiased estimate of its cost, and that cost is an upper bound on the true optimum. The confidence interval is tighter than plain simulation at equal sample count.
- Broad scope. Nothing requires the Cole-Hopf "matching condition," which asks that control enter through the noise channels with quadratic cost. Nothing requires computing the Hessian trace of a network.
Relation to Prior Work
Two papers supply the method.
- Unbiased Deep Solvers for Linear Parametric PDEs builds martingale control variates from a network's gradient for linear Kolmogorov PDEs. It reports a variance reduction factor of 130.39 on a 100-asset exchange option. We reuse the estimator, but apply it inside every policy-evaluation step of a nonlinear control problem, where the governing equation is linear only conditionally on the policy.
- Error analysis for PINNs approximating Kolmogorov PDEs proves polynomial-in-dimension network size and sample complexity for linear Kolmogorov PDEs, and notes that the argument breaks for nonlinear equations. Our decomposition asks whether that per-step linear theory, chained across policy iterations, explains empirical scaling with dimension. We treat this as a hypothesis to test, not a proven result.
Three lines of work motivate the gap by solving nonlinear HJB equations with neural networks while giving up either noise or unbiasedness:
- Physics-Informed Neural Network Policy Iteration uses the same policy-iteration split, but only for deterministic systems, and fits a PDE residual. Adding noise would require a Hessian trace inside the loss.
- A Neural Network Approach for High-Dimensional Optimal Control Applied to Multiagent Path Finding scales to 150 dimensions, but only for deterministic dynamics.
- Deep FBSDE solvers (Learning Deep Stochastic Optimal Control Policies Using FBSDEs, Deep FBSDEs for Min-max Control) handle noise, but couple the control to the network gradient inside one nonlinear backward equation. Their cost estimates therefore inherit network bias. CV-PI instead freezes the policy during evaluation so that the estimator stays unbiased.
Two matching methods constrain the design:
- Path Integral Value Matching scales to 200 dimensions. It depends on the Cole-Hopf linearization, and so on the matching condition. We borrow its short-branch recursion idea but not its structural assumption.
- Stochastic Optimal Control Matching documents importance-weight variance explosion when the initial policy is poor. PI-VM reports that SOCM runs out of memory at 80 dimensions. CV-PI uses no importance weights across policies, because each evaluation is on-policy.
Value function estimators for Feynman-Kac FBSDEs warns that off-policy value fits extrapolate badly and destabilize policy iteration. This is a real threat to CV-PI's improvement step, and we measure it directly rather than assume it away.
Research Program
Estimator. We implement the estimator with an Euler or higher-order simulator of the controlled system. To keep variance manageable over long horizons, each evaluation step uses short path branches of length $h$ started from states in a replay buffer. The target is the corrected cost over the branch plus the previous value network at the branch end, as in PI-VM's recursion. The branch-end bootstrap introduces bias bounded by the previous network's error. We therefore also run full-horizon targets as the unbiased reference, and report how bias and variance change with $h$.
Policy improvement. Improvement is a closed-form pointwise minimization when the cost is quadratic in control and the dynamics are affine in control. With box constraints this becomes saturation. For non-affine dynamics we use a few projected gradient steps. A small policy network is distilled from the result, so deployment needs no automatic differentiation of the value network, which PI-VM identifies as a latency cost. The horizon is finite, so any initial policy is admissible, and the stabilizing-initialization requirement of deterministic infinite-horizon policy iteration does not apply. We initialize from zero control and from LQR (the linear quadratic regulator) to measure sensitivity.
Analysis. On analytically solvable problems we derive how per-iteration evaluation error propagates through policy improvement. We then check empirically whether total error grows polynomially in dimension $d$, as the per-step Kolmogorov theory would suggest.
Baselines
Naive references.
- LQR from linearizing the dynamics at the goal, which fixes a floor any method must beat on nonlinear tasks.
- Plain Monte Carlo policy iteration: identical to CV-PI but with the control-variate term removed. This is the key ablation, because it isolates the one new ingredient. Beating it means lower final control $L^2$ error and lower policy cost at matched simulation budget, and a narrower confidence interval on final cost at equal paths.
Strongest existing methods on Cole-Hopf-compatible problems. These are SOCM and PI-VM, run from their papers' formulations on the Linear and Quadratic Ornstein-Uhlenbeck (OU) benchmarks. The two papers report the following:
- SOCM reports roughly 10x lower $L^2$ error than the adjoint and cross-entropy baselines in 3 of 4 tasks.
- PI-VM reports being 10–20x faster than SOCM and Adjoint Matching, and scaling to 200 dimensions where SOCM runs out of memory at 80.
- No absolute $L^2$ error values were found on Lacuna for either method on Quadratic OU, so we will rerun both ourselves.
On these problems PI-VM's assumption holds, so matching it is enough.
Strongest existing methods on problems that break the matching condition. On problems such as actuator-saturated dynamics or control outside the noise channels, PI-VM does not apply, and the strongest competitors are:
- The LSTM deep FBSDE solver of Wang et al.. No absolute cost numbers were found on Lacuna for its 12-state quadcopter; it reports at least 20% faster training than fully connected networks.
- MPPI (model predictive path integral control) as an online sampling controller.
On these problems CV-PI must beat both in closed-loop cost.
Fairness. All methods get the same simulator, time step, wall-clock and simulation budget, network width, and a fixed hyperparameter search of equal size. Final policies are evaluated with the same corrected estimator on held-out initial states.
Why not just…?
Why not just train with SOCM or a deep FBSDE solver and then evaluate the final policy by plain simulation? This gives an unbiased upper bound too, and it is the most serious alternative. If direct methods reach equal policy cost, CV-PI's contribution shrinks to cheaper error bars. The matched-budget comparison settles it. CV-PI wins only if its training targets measurably improve the policy in the regimes where SOCM's importance weights blow up: large terminal cost, poor initialization, and high dimension. We report both outcomes.
Why not just a physics-informed network on the stochastic HJB residual, estimating the Hessian trace with random probes? This extends Meng et al. to noise in the most obvious way. Residual losses carry no unbiasedness guarantee, and the trace probes add variance that grows with $d$. We include it as a baseline and compare error-versus-dimension curves up to 200 dimensions.
Why not just MPPI? MPPI needs no offline training. Its authors, however, note hand-tuned exploration variance and sample inefficiency as the control dimension grows. It also produces no global value function or cost certificate. We compare closed-loop cost and per-step latency on the quadcopter and cart-pole.
Proposed Experiments
Scaling in dimension. On Quadratic and Linear OU for $d$ from 10 to 200, where the optimal control is known, we measure control $L^2$ error, final cost gap, and target variance per iteration.
Multimodal costs. On the 1024-mode double-well and the 50-dimensional many-well we test multimodal costs, looking for mode coverage and the value surface.
Beyond the matching condition. We add two variants that PI-VM cannot handle: OU with box-bounded controls, and OU with control entering channels without noise. We then move to the inverted pendulum, cart-pole, and 12-state quadcopter under torque limits.
Decisive checks.
- The control-variate ablation must show target variance falling across iterations and a lower final cost at equal budget. If it does not, the central claim fails.
- On OU, CV-PI's confidence interval must contain the analytic optimal cost and be narrower than plain Monte Carlo at equal paths.
- On off-distribution initial states, we measure whether improvement steps extrapolate stably, testing the warning in Hawkins et al..
References
- Unbiased Deep Solvers for Linear Parametric PDEs
- Error analysis for physics-informed neural networks (PINNs) approximating Kolmogorov PDEs
- Physics-Informed Neural Network Policy Iteration: Algorithms, Convergence, and Verification
- A Neural Network Approach for High-Dimensional Optimal Control Applied to Multiagent Path Finding
- Learning Deep Stochastic Optimal Control Policies Using Forward-Backward SDEs
- Deep Forward-Backward SDEs for Min-max Control
- Path Integral Value Matching for Linear Quadratic Stochastic Optimal Control
- Stochastic Optimal Control Matching
- Value Function Estimators for Feynman-Kac Forward-Backward SDEs in Stochastic Optimal Control
- Model Predictive Path Integral Control: From Theory to Parallel Computation