TL;DR
Applying standard Q-learning to continuous-time systems typically causes the Q-function to collapse into the state-value function $V(x)$. By constraining controls to be Lipschitz continuous, this paper derives a novel Hamilton–Jacobi–Bellman (HJB) equation for Q-functions whose optimal control can be calculated analytically via an ODE. The resulting algorithm, Hamilton–Jacobi DQN (HJ DQN), provides a value-based continuous-action RL method that eliminates the need for actor networks or numerical optimization.
What Problem Does This Paper Address?
In standard reinforcement learning (RL), algorithms like Deep Q-Networks (DQN) work well for discrete actions, but handling continuous control often requires actor-critic frameworks (e.g., DDPG, TD3, SAC) or expensive numerical optimization to compute $\max_a Q(s, a)$. Furthermore, real-world physical systems operate in continuous time.
If you directly define a continuous-time Q-function without constraints on the control trajectory, an action chosen at a single instant has zero duration, meaning it cannot influence the trajectory or total return. As a result, $Q(x, a)$ degenerates to $V(x)$.
The authors address this core theoretical issue by asking: How can we formulate a well-defined continuous-time Q-function and develop a true value-based deep Q-learning algorithm that handles continuous action spaces without needing an actor network?
Methods
The authors establish their approach through both theoretical derivation and algorithmic design:
- Lipschitz Continuous Control Constraint: The control trajectory is restricted so that $|\dot{a}(t)| \le L$. Because the control cannot jump instantaneously, the choice of current action directly constrains future control and retains state-action value semantics.
-
HJB Equation for Q-Functions: Applying dynamic programming yields a new HJB equation: $$\gamma Q(x, a) - \nabla_x Q \cdot f(x, a) - L |\nabla_a Q| - r(x, a) = 0$$ Crucially, the optimal control derivative has an exact closed-form solution: $\dot{a}^*(t) = L \frac{\nabla_a Q}{|\nabla_a Q|}$.
-
Semi-Discrete Formulation & Convergence Proof: To bridge continuous dynamics with discrete sampling intervals $h$, the authors define a semi-discrete HJB equation that does not approximate system dynamics with discrete-step integrators. They prove that synchronous semi-discrete Q-learning converges in $L^\infty$ to the continuous-time optimal Q-function as $h \to 0$.
- Hamilton–Jacobi DQN (HJ DQN): Combining this formulation with deep Q-learning components (target networks, experience replay, and double Q-learning), greedy target actions are approximated via the ODE step: $$a_{j+1} \approx a_j + h L \frac{\nabla_a Q_\theta(x_j, a_j)}{|\nabla_a Q_\theta(x_j, a_j)|}$$
- Action Smoothing: To prevent "bang-bang" chattering caused by the constant-magnitude update norm $hL$, a scalar smoothing function $\phi(\|\nabla_a Q\|)$ (e.g., $\tanh$) modulates the update magnitude.
Datasets
The authors evaluate their method on two domains:
- OpenAI Gym / MuJoCo Benchmarks: Continuous control environments including
Hopper-v2,Swimmer-v2,Walker2d-v2, andHalfCheetah-v2. - High-Dimensional Linear-Quadratic (LQ) Control: Synthetic continuous-time systems of dimensions $d \in \{20, 30, 50\}$ with randomly generated, unstable system matrices ($A, B$).
Key Insights and Ideas
- Why Lipschitz Constraints Matter: Enforcing $|\dot{a}(t)| \le L$ turns the rate of action change ($\dot{a}$) into the decision variable. This preserves the distinction between $Q(x, a)$ and $V(x)$ in continuous time.
- Actor-Free Continuous Control: Because the continuous-time HJB equation gives $\dot{a}^*$ strictly in terms of the gradient $\nabla_a Q(x, a)$, the greedy action update is an analytic step along the Q-gradient. There is no need for a separate actor network or gradient ascent loops over action space.
- Elimination of ODE Approximation Errors: Unlike typical discrete-time conversions that discretize dynamics via Euler steps, the semi-discrete HJB uses the continuous system flow over the sampling duration $h$, avoiding discretization bias.
Key Results
- Robustness and Stability: On
Hopper-v2, HJ DQN achieved a 60.22% success rate (preventing the hopper from falling over 5,000 episodes of length $T=8$), whereas DDPG achieved only 12.10%, benefiting directly from the regularizing effect of the Lipschitz constraint. - Benchmarking vs. Actor-Critic: HJ DQN matched or outperformed DDPG on
Walker2d-v2andSwimmer-v2. OnHalfCheetah-v2, DDPG performed better, likely because HalfCheetah rewards abrupt action swings that the Lipschitz bound intentionally limits. - High-Dimensional Scaling: In unstable LQ regulator tasks up to 50 dimensions ($d=50$), DDPG failed to reduce cost, whereas HJ DQN consistently converged near optimal cost with minimal variance across seeds.
- Smoother Trajectories: Action trajectory analysis showed that HJ DQN with action smoothing effectively suppressed rapid control oscillations without hindering state stabilization.
Limitations and Future Work
- Tasks Requiring Discontinuous Actions: The Lipschitz constraint limits performance on tasks where extreme, discontinuous control switches (e.g., bang-bang maneuvers) are optimal or necessary.
- Hyperparameter Sensitivity of $L$ and $h$: Performance depends on selecting an appropriate sampling interval $h$ and Lipschitz bound $L$ (often chosen near $D/h$, where $D$ is action space diameter).
- Stochastic Systems: Although the authors derive the stochastic HJB formulation in Appendix C, empirical validation is limited to deterministic systems. Extending the method to stochastic diffusion processes and maximum-entropy RL remains open for future research.
Summary updated