HJB Optimal Feedback Control with Deep Differential Value Functions and Action Constraints

Michael Lutter, Boris Belousov, Kim Listmann, Debora Clever, Jan Peters

TL;DR

This paper introduces HJB control, a novel method for learning optimal feedback control policies for robotic systems with action constraints. By reformulating the problem using the Hamilton-Jacobi-Bellman (HJB) equation and employing deep differential networks, HJB control learns a globally optimal policy that doesn't require replanning, unlike traditional methods.

What Problem Does This Paper Address?

Programming complex robotic behaviors often involves specifying tasks through reward functions, and then having an agent discover a corresponding controller. Existing methods like reinforcement learning are sample-inefficient, while trajectory optimization only plans a single optimal path from a specific starting point. When applied to real-world systems, these planned trajectories often need hand-tuned controllers to compensate for modeling errors. A key challenge is learning a feedback policy that is not only optimal but also respects physical limitations, such as actuator constraints, without requiring constant replanning.

Methods

The core of this paper is the application of the Hamilton-Jacobi-Bellman (HJB) differential equation to learn an optimal feedback policy. The authors propose a method called "HJB control" that embeds a deep differential network within the HJB equation. This network learns the optimal value function, which then directly yields the optimal feedback policy.

Key methodological contributions include:

  • Principled Cost Functions: Deriving strictly convex cost functions that naturally incorporate action limits, making the resulting policies optimal and stable.
  • Deep Differential Networks: Utilizing a differentiable neural network architecture that can compute the value function and its Jacobian simultaneously. This allows for end-to-end learning by minimizing the residual of the HJB equation.
  • Curricular Learning Scheme: To overcome the issue of multiple solutions to the HJB equation, the authors propose a curriculum that gradually changes the discounting factor from short-sighted to far-sighted. This guides the learning process towards the desired unique optimal solution.
  • Transformation to Unconstrained Problem: By designing appropriate cost functions, the constrained optimization problem (with action limits) is transformed into an unconstrained one, simplifying the learning process.

Datasets

Not discussed in the paper. The experiments are conducted on simulated robotic systems (linear system, torque-limited pendulum, flexible Cartpole) with specified dynamics and cost functions.

Key Insights and Ideas

  • Action Constraints as a Feature, Not a Bug: Instead of treating actuator limits as a nuisance to be overcome, the paper shows how to elegantly incorporate them into the cost function using convex conjugacy. This leads to policies that inherently respect these limits.
  • HJB Equation as a Learning Target: The HJB equation, a cornerstone of optimal control theory, is repurposed as a differentiable objective for deep learning. This bridges the gap between classical control and modern neural network approaches.
  • Curriculum Learning for Stability: The HJB equation can have multiple solutions. The proposed curriculum learning, by adjusting the discounting factor, acts as a clever way to guide the network towards the correct, globally optimal solution, avoiding spurious local optima.
  • Global Optimality without Replanning: The learned feedback policy is globally optimal over the training domain and, crucially, does not require replanning for different initial states. This is a significant advantage over traditional trajectory optimization methods.

Key Results

The paper demonstrates the effectiveness of HJB control on several robotic systems:

  • Linear System: For both quadratic and log-cosine costs (with action limits), HJB control achieved optimal performance, matching or exceeding LQR and single-shooting methods, especially when action limits were active.
  • Torque-Limited Pendulum: HJB control successfully learned to swing up the pendulum from any starting configuration, even with discontinuous value functions arising from action constraints. LQR, in contrast, struggled with these constraints.
  • Flexible Cartpole: The method was extended to a six-dimensional problem, showing comparable performance to LQR and multiple shooting, indicating its scalability.

In essence, HJB control consistently achieved optimal or near-optimal performance, matching more computationally intensive methods like multiple shooting but without the need for replanning or hand-tuned gains.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that the boundary constraint method for ensuring a unique HJB solution is difficult to engineer and can be system-specific.
  • The current curriculum learning is heuristic, relying on error or epoch thresholds.
  • Future Work:
    • Extend the work to model-based reinforcement learning by combining HJB control with learned dynamics (e.g., Deep Lagrangian Networks).
  • Develop more principled methods for adapting the discounting factor, drawing from continuation methods.
  • Explore iterative sampling schemes to construct a domain limited to the surroundings of the current policy, enabling scalability to high-dimensional problems where global solutions are infeasible.

Summary updated

BibTeX
@inproceedings{lutter2019hjb,
  author = {Michael Lutter and Boris Belousov and Kim Listmann and Debora Clever and Jan Peters},
  title = {{HJB Optimal Feedback Control with Deep Differential Value Functions and Action Constraints}},
  booktitle = {Conference on Robot Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=Y_XE0XP-dqB},
}
Figure