Deep Q-learning: a robust control approach

Balázs Varga, Balázs Kulcsár, Morteza Haghir Chehreghani

TL;DR

This paper bridges reinforcement learning (RL) and robust control theory by modeling deep Q-learning (DQN) as an uncertain linear time-invariant (LTI) system. This allows for the design of stabilizing controllers that improve DQN's convergence and robustness, outperforming traditional methods in some environments.

What Problem Does This Paper Address?

Deep Q-learning (DQN) has shown remarkable success in complex control tasks, but its learning process is often opaque and lacks theoretical guarantees for stability and convergence. Traditional RL methods often rely on heuristics like target networks and experience replay, which can be difficult to tune and lack transparency. This paper aims to address this by applying the well-established mathematical tools of robust control theory to analyze and improve the learning dynamics of DQN.

Methods

The core of this work is reformulating DQN as a dynamical system. The authors leverage the Neural Tangent Kernel (NTK) to model the learning dynamics of the Q-function as an uncertain, continuous-time, linear time-invariant (LTI) system. This allows them to analyze the system's stability and convergence using control theory.

Based on this model, they propose three types of controllers to stabilize the learning process:

  • Gain-scheduling H₂ output-feedback controller: This controller aims to minimize the tracking error and is designed to be updated dynamically.
  • Dynamic H∞ controller: This controller is designed to handle uncertainties in the system and shape the frequency response of the learning agent.
  • Fixed-structure robust H∞ controller: This controller offers a balance between the simplicity of the H₂ controller and the robustness of the dynamic H∞ controller, using constant gains.

Crucially, these control-oriented approaches eliminate the need for heuristics like target networks and randomized experience replay, instead exploiting the temporal dependency of samples through the dynamical system formulation.

Datasets

The proposed algorithms are tested on three standard environments from the OpenAI Gym:

  • Cartpole
  • Acrobot
  • Mountain car

Key Insights and Ideas

  • DQN as an uncertain LTI system: By modeling DQN's learning dynamics using NTK, the authors successfully frame it as a system amenable to robust control analysis. This provides a novel perspective on understanding and improving RL agents.
  • Control-based stabilization: Applying robust control techniques directly to the learning process, rather than just the agent's policy, offers a principled way to guarantee convergence and improve performance.
  • Eliminating heuristics: The proposed control-oriented approach naturally removes the need for common RL heuristics like target networks and experience replay, leading to a more transparent and potentially more efficient learning process.
  • Low-frequency learning: The analysis reveals that RL signals are predominantly in the low-frequency domain, which is key for designing effective controllers, especially the fixed-structure ones.

Key Results

The paper demonstrates that the proposed control-augmented DQN methods can achieve competitive or superior performance compared to Double Deep Q-Learning (DDQN) in the tested environments.

  • Cartpole: The dynamic H∞ controller converged fastest, followed by the fixed-structure H∞ controller, and then DDQN. The H₂ controller got stuck in a local optimum.
  • Acrobot: The dynamical H∞ controller achieved a similar average score to DDQN, while the H₂ and fixed-structure H∞ controllers performed worse.
  • Mountain car: The dynamical H∞ controller outperformed DDQN, while the H₂ and fixed-structure H∞ controllers performed worse.

Overall, the controlled learning methods showed a smoothing effect on the Q-function and learning process, reducing oscillations observed in DDQN. Learning was also observed to be sped up significantly in some cases.

Limitations and Future Work

  • NTK assumption: The NTK-based modeling is primarily valid for shallow and wide neural networks with a low learning rate. This limits the applicability to more complex network architectures.
  • Computational intensity: Recomputing the NTK at every step for dynamic controllers can be computationally intensive.
  • Suboptimality of fixed-structure controllers: While simpler, the fixed-structure H∞ controller is suboptimal compared to the dynamic H∞ controller.
  • Future work: The authors suggest exploring input multiplicative uncertainty for exploration and investigating more advanced robust control techniques like μ-synthesis. They also highlight the potential for further transparency and procedural parameter tuning in RL.

Summary updated

BibTeX
@article{varga2022deep,
  author = {Balázs Varga and Balázs Kulcsár and Morteza Haghir Chehreghani},
  title = {{Deep Q-learning: a robust control approach}},
  journal = {International Journal of Robust and Nonlinear Control},
  year = {2022},
  doi = {10.1002/rnc.6457},
}
Figure