Continuous Deep Q-Learning in Optimal Control Problems: Normalized Advantage Functions Analysis

Anton Plaksin, Stepan MartyanovNeurIPS 2022

This paper provides a rigorous theoretical foundation and practical improvements for Normalized Advantage Functions (NAF), a popular algorithm for continuous deep reinforcement learning. The authors prove that for a broad class of optimal control problems, the Q-function can be accurately approximated by a quadratic function—provided the "peak" of that quadratic is allowed to fall outside the valid action range. Based on this, they introduce Bounded NAF (BNAF) and its variants, which significantly outperform standard NAF and DDPG in stability and performance across classic control tasks.

The Challenge of Continuous Action Spaces

In Reinforcement Learning (RL), "Q-learning" involves finding an action-value function ($Q$) that tells us how good a specific action is in a given state. For discrete actions (like "move left" or "move right"), finding the best action is straightforward: evaluate every option. However, in continuous spaces (like "apply 12.45 Newtons of force"), finding the maximum of the Q-function at every step becomes a slow, complex optimization problem.

The NAF algorithm solves this by forcing the Q-function to be a downward-opening parabola (quadratic) with respect to the action. This makes finding the maximum trivial—it is simply the vertex of the parabola. But there is a catch: is it actually realistic to assume the world is quadratic? Until now, this was mostly a heuristic. This paper investigates the mathematical "why" and "when" behind this assumption.

Bridging Optimal Control and Reinforcement Learning

The authors bridge the gap between Optimal Control Theory and Reinforcement Learning by focusing on a specific class of problems: systems with "affine" dynamics (where control inputs enter the equations linearly) and quadratic cost functionals. They show that when you discretize these continuous-time problems into steps (as RL does), the resulting Q-function is indeed approximately quadratic.

The "Clipping" Innovation

Standard NAF assumes the optimal action is exactly at the vertex of the parabola. The authors argue that in many real-world problems, the "ideal" action might be physically impossible (e.g., requiring more torque than a motor can provide). They propose a new family of functions where the vertex can sit outside the allowed action bounds, and the optimal action is found by "clipping" to the boundary.

New Algorithmic Variants

Based on this theoretical framework, the authors introduce three new algorithms:

  • BNAF (Bounded NAF): Implements the "clipping" logic to handle bounded action spaces realistically.
  • RB-BNAF (Reward-based BNAF): If the reward structure is known, it uses that mathematical structure directly instead of forcing a neural network to learn it from scratch.
  • GB-BNAF (Gradient-based BNAF): If the system's physics (dynamics) are known, it uses the gradient of the Value function to further simplify the learning process.

Experimental Setup and Key Insights

The authors evaluated their methods on four classic optimal control benchmarks: the Van der Pol oscillator (a non-conservative oscillator with non-linear damping), the Inverted Pendulum, the Dubins car (a vehicle moving at constant speed with a constrained turning radius), and a 6D Target Problem (a complex mass-spring system).

A critical insight from the study is that the vertex doesn't have to be the winner. Forcing the vertex of the Q-function to be the optimal action is too restrictive. By allowing the vertex to exist outside the action bounds, the model can represent "saturated" controls much more accurately. Furthermore, they mathematically proved that as the time step ($\Delta t$) gets smaller, the quadratic approximation becomes increasingly accurate for this class of control problems.

The paper also demonstrates that "Model-Based" RL doesn't have to be all-or-nothing. By baking in known knowledge—like the reward structure (RB-BNAF) or dynamics (GB-BNAF)—you can "hard-code" those parts into the NAF architecture, drastically reducing the number of parameters the neural network needs to learn.

Key Results

The experimental results highlight the superiority of the proposed methods over existing baselines.

Learning curves across four optimal control benchmarks comparing NAF, BNAF variants, and DDPG.
  • Superior Stability: BNAF and its variants were significantly more stable than standard NAF, which failed to solve most problems except the Pendulum.
  • Performance vs. DDPG: While DDPG (Deep Deterministic Policy Gradient) is a heavy hitter in continuous RL, the BNAF variants (especially RB-BNAF) reached higher rewards more consistently across all four tasks.
  • Efficiency: By using the known reward structure (RB-BNAF), the researchers reduced the learning burden on the neural networks, leading to faster convergence in the tested environments.

Limitations and Future Work

While promising, the theoretical proofs rely on the system being "affine in control." While many mechanical systems fit this description, highly complex or "black-box" systems might not. Additionally, the theory requires the action space to be bounded (compact), which is true for physical robots but might not apply to all abstract RL problems.

For future directions, the authors suggest extending this analysis to stochastic systems (where there is randomness in the environment) and exploring how these quadratic approximations hold up in even higher-dimensional spaces.

Summary updated

BibTeX
@inproceedings{plaksin2022continuous,
  author = {Anton Plaksin and Stepan Martyanov},
  title = {{Continuous Deep Q-Learning in Optimal Control Problems: Normalized Advantage Functions Analysis}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=ttC9p-CtYT},
}
Figure