When an agent controls a physical system in continuous time, the best possible cost-to-go (the value function) satisfies a partial differential equation called the Hamilton-Jacobi-Bellman (HJB) equation. If the agent is also rewarded for acting randomly, which is the maximum entropy formulation of reinforcement learning, the best policy no longer has to be learned at all. It can be computed in closed form from the slope of the value function. That makes a second network for the policy (an "actor") unnecessary, and it removes the sampling machinery that energy-based policies otherwise require. The catch is that the policy now inherits every error in the gradient of the learned value function. So a quantity PDE solvers usually ignore, gradient error rather than value error, becomes the thing that decides control quality.
We propose to treat the entropy temperature as a numerical smoothing parameter for the PDE, not only as an exploration bonus. With bounded actions, the ordinary HJB equation has a kinked Hamiltonian (the function that scores actions given the value gradient) and value functions with sharp switching surfaces, the setting where neural PDE solvers fail. The entropy term replaces the kink with a smooth soft-max whose width scales with the temperature. We will build an actor-free controller that enforces the soft HJB equation as a hard constraint with an augmented Lagrangian, which handles constraints through learned multipliers rather than fixed penalty weights. We will lower the temperature only as fast as the constraint residual allows, which makes entropy annealing a continuation method for the PDE solve. We will test whether this beats both a vanilla physics-informed solver at fixed temperature and standard soft actor-critic, on control cost and on compute.
Core Claim
Consider control-affine stochastic dynamics $dx = (f(x) + g(x)a)\,dt + \sigma\, dW$, with running cost $q(x) + \tfrac12 a^\top R a$, actions confined to a box $\mathcal{A}$, and temperature $\alpha$. The entropy-regularized optimal policy is a Boltzmann distribution over the box:
$$\pi_\alpha(a\mid x) \propto \exp\!\Big(-\tfrac{1}{\alpha}\big[\tfrac12 a^\top R a + \nabla V(x)^\top g(x)\, a\big]\Big)\,\mathbf{1}[a\in\mathcal{A}].$$
With diagonal $R$ this factorizes into one-dimensional truncated Gaussians. Their normalizers, and therefore the soft Hamiltonian $-\alpha \log \int_{\mathcal{A}} \exp(\cdot)\,da$, have closed forms in the error function, so the policy needs no sampling network and no actor parameters. This structure was derived in the continuous-time theory of Hamilton-Jacobi-Bellman Equations for Maximum Entropy Optimal Control. That paper solved the resulting equation only with Riccati equations and low-dimensional Hopf-Lax formulas, not neural networks. PINN-SPI used the same closed-form improvement step inside a policy iteration loop, with a vanilla physics-informed network (a network trained to make the PDE residual zero at sampled points), a fixed temperature, and exact known dynamics.
Our claim is that the control gap of the deployed policy $\hat\pi$ splits into two terms that move in opposite directions as $\alpha$ changes:
$$J(\hat\pi) - J^\star \;\lesssim\; \underbrace{\big[J(\pi_\alpha) - J^\star\big]}_{\text{entropy bias, grows with }\alpha} \;+\; L_\alpha\,\big\|\nabla \hat V - \nabla V_\alpha\big\|_{\mu}.$$
Here $J$ is expected cost, $V_\alpha$ is the exact soft value, $\hat V$ is the learned value, $\mu$ is the state distribution visited by the policy, and $L_\alpha$ is the sensitivity of the policy to its input gradient. The first term is the price of randomness. The second is PDE gradient error, which we hypothesize grows sharply as $\alpha \to 0$. The reason is that the soft value's gradient then develops near-discontinuities across switching surfaces, where the optimal control flips from one actuator limit to the other, and networks biased toward smooth functions cannot fit them. This trade-off is the testable content. It predicts an interior optimal temperature for any fixed solver, and it predicts that better PDE solvers shift that optimum toward smaller $\alpha$.
Research Program
The controller has three parts. The value network is the only large learned model.
The first part is a learned control-affine dynamics model $\hat f(x) + \hat g(x)a$, fit by regression on observed transitions. It replaces exact dynamics, which PINN-SPI requires, and it replaces the per-transition finite differences of HJBPPO, which its authors report break down in high dimensions. This is a modest step toward the model-free setting, and we treat its error as a separate, measured term.
The second part is the soft HJB residual, enforced as an equality constraint with augmented Lagrangian updates in the style of AL-PINNs. That paper reported relative $L^2$ errors up to 40 to 70 times smaller than penalty weighting and adaptive balancing schemes on forward PDE benchmarks. Here the "objective" is a temporal-difference fit to observed transitions, and the "constraint" is the soft HJB residual at collocation states, so the multipliers decide how much the PDE overrides noisy data. We add a residual term on $\nabla V$ along the state directions spanned by $\hat g$, since only those components enter the policy. The second-order diffusion term is estimated with random-projection trace estimates to keep the per-step cost bounded.
The third part is the temperature schedule. It is driven by the multiplier state: $\alpha$ is lowered by a fixed factor only after the augmented Lagrangian residual falls below a tolerance at the current $\alpha$. Each warm-started solve then begins near the solution of a slightly smoother problem.
Collocation states are drawn from the replay distribution, with extra points placed near estimated switching surfaces. These are the states where $|\nabla V^\top g|$ is close to the actuator saturation boundary, so they can be computed from the network itself. This choice is aimed at the term in our bound, and it follows the logic of PDE_xt resampling, which showed that targeting stiff regions mattered most when point budgets shrink.
On the analysis side, we will make the decomposition above precise for the box-constrained control-affine case. We will characterize how $L_\alpha$ and the gradient Lipschitz constant of $V_\alpha$ scale with $\alpha$, and we will measure both terms separately in experiments where references exist.
Baselines
The naive reference point is the same actor-free closed-form policy read off a value network trained by plain temporal-difference regression, with no PDE term at all. If PDE enforcement does not beat it, the physics-informed machinery adds nothing.
The strongest existing method on this exact question is PINN-SPI: soft policy iteration with a vanilla squared-residual network and analytical Boltzmann improvement. Its authors report beating SAC and PPO on stochastic cartpole and pendulum and converging on 20-dimensional constrained LQR, but no reported result found on Lacuna for PINN-SPI as a numerical cost or error value. We will therefore reimplement it and run it in two ways: with exact dynamics, as published, and with our learned dynamics model, so the comparison isolates the solver. It will get the same network width, collocation budget, and number of gradient steps as our method, and the same hyperparameter search budget (an equal number of configurations over learning rate and $\alpha$). Beating it means lower final control cost and lower $\nabla V$ error at matched steps, at the best tuned temperature for each method, across seeds.
Soft actor-critic is the strongest general model-free maximum entropy baseline. It will run with its standard twin critics, target networks and automatic temperature tuning, with the same environment interaction budget. No reported result found on Lacuna for SAC on these specific tasks. We will report its cost, its wall-clock time, and its peak accelerator memory, since dropping the actor is a computational claim.
HJBPPO serves as the penalty-weighted, non-entropic physics-informed critic. Its reported figure, HJB-residual convergence in 8 of 10 MuJoCo environments versus 4 of 10 for PPO, is a residual-convergence count rather than a cost number. On the MuJoCo extension we will use it as the reference for what fixed-weight penalties achieve.
Two ablations isolate the key ingredients. The first keeps the augmented Lagrangian but uses a fixed $\alpha$, at each of several values, which tests whether annealing matters. The second anneals $\alpha$ on a fixed geometric schedule with no coupling to the residual, which tests whether the residual coupling matters. A third ablation removes the collocation points near the switching surfaces.
Why not just…?
Why not just use soft actor-critic, which already optimizes entropy-regularized return without any PDE? SAC learns an actor by stochastic gradient and needs twin critics plus target copies in memory. PINN-SPI reports that SAC converged more slowly and with higher seed variance on its stochastic control tasks. That is evidence, not proof, because PINN-SPI used exact dynamics. Our learned-dynamics runs test whether the advantage survives without exact dynamics. If SAC matches our cost at lower wall-clock, our compute claim fails, and we will report that.
Why not just tune a penalty weight on the HJB residual, as HJBPPO does? AL-PINNs found that both penalty and adaptive-weighting schemes leave much larger errors than multiplier updates in forward problems, and HJBPPO failed to drive its residual down in 2 of 10 environments. Forward PDEs are not RL critics, so this remains an open question. We will settle it by running PINN-SPI with a grid-searched penalty weight at the same tuning budget as our multiplier method.
Why not just fix a small temperature and spend more collocation points? This is the real threat to the continuation idea. If gradient error at small $\alpha$ is only a capacity or sampling problem, more points and a larger network will close it. The fixed-$\alpha$ ablation at doubled and quadrupled point budgets tests this directly. Our hypothesis predicts the gap at small $\alpha$ persists with more points but narrows under annealing. If that prediction fails, we drop annealing and keep only the augmented Lagrangian and actor-free contributions.
Why not just anneal on a fixed schedule? It may work as well as the coupled schedule. If so, the residual coupling adds nothing, and the simpler fixed schedule becomes the recommended design. The second ablation decides this.
Proposed Experiments
We will use the benchmarks from the file: box-constrained LQR in 5, 10 and 20 dimensions, stochastic cartpole and pendulum, and the Van der Pol oscillator.
Unconstrained linear-quadratic problems give exact soft values through the modified Riccati equations of the Soft HJB paper. That paper reports its maximum entropy dynamic programming needing 155 data points and 9.30 seconds versus 431.5 points and 17.26 seconds on a 10-dimensional linear system. We will use these problems to verify gradient-error measurement and to compare sample counts against that reference.
For the two-dimensional nonlinear problems, pendulum and Van der Pol, we will compute reference values and gradients on fine grids. In the hard-constraint limit we will use the primal-dual hybrid gradient solver, which reports residuals below $10^{-6}$ with first-order accuracy, so the gradient error and the entropy bias can be measured separately. Box-constrained LQR in higher dimensions has no grid reference, so there we report cost and residual only. As a stretch, we will run on Reacher-v4 and Swimmer-v4 from the HJBPPO suite, where the control-affine model is only approximate.
The metrics are control cost; relative $L^2$ error of $V$ and of $\nabla V$ against references; soft HJB residual; environment samples to reach a cost threshold; wall-clock time; and peak memory.
The decisive check is the temperature sweep. For each solver, we plot final cost against $\alpha$ on the two-dimensional problems and decompose cost into measured entropy bias and measured gradient error. The proposal stands if three things hold. First, vanilla solvers show an interior optimum driven by gradient error rising at small $\alpha$. Second, the augmented Lagrangian moves that optimum to smaller $\alpha$ with lower total cost. Third, the coupled annealing reaches costs that no single fixed $\alpha$ reaches at equal compute. The proposal fails if gradient error is flat in $\alpha$, or if extra collocation points alone remove the trade-off.
References
- Hamilton-Jacobi-Bellman Equations for Maximum Entropy Optimal Control
- Physics-informed approach for exploratory Hamilton-Jacobi-Bellman equations via policy iterations
- Bridging Physics-Informed Neural Networks with Reinforcement Learning: Hamilton-Jacobi-Bellman Proximal Policy Optimization (HJBPPO)
- Enhanced physics-informed neural networks with Augmented Lagrangian relaxation method (AL-PINNs)
- Investigating Guiding Information for Adaptive Collocation Point Sampling in PINNs
- Primal–dual hybrid gradient algorithms for computing time-implicit Hamilton–Jacobi equations