Control-Tutored Reinforcement Learning: Towards the Integration of Data-Driven and Model-Based Control

Francesco De Lellis, Marco Coraggio, Giovanni Russo, Mirco Musolesi, Mario di Bernardo

TL;DR

This paper introduces "Control-Tutored Reinforcement Learning" (CTQL), a novel approach that integrates a pre-existing, albeit imperfect, model-based controller (the "tutor") into a standard Q-learning framework. This allows reinforcement learning agents to learn control policies more efficiently, requiring fewer data samples and achieving better performance, particularly in challenging control tasks like stabilizing an inverted pendulum.

What Problem Does This Paper Address?

Reinforcement learning (RL) has shown great promise in enabling autonomous agents to learn control policies without explicit programming. However, two major hurdles hinder its widespread adoption in safety-critical applications: (1) RL often requires a vast amount of data and time to learn effectively, and (2) it typically lacks guarantees on performance or convergence during the learning process. While model-based RL can address these issues by learning a model of the environment, many real-world systems have some existing, albeit imperfect, analytical models. This paper bridges this gap by proposing a method to leverage these partial models to guide and accelerate the RL learning process.

Methods

The core contribution is the Control-Tutored Reinforcement Learning (CTQL) framework. This architecture embeds a "control tutor" – a feedback controller synthesized from an approximate model of the environment – into the RL loop. The decision of whether to use the RL policy or the tutor policy is governed by a "switching condition."

Two flavors of CTQL are presented:

  • Deterministic CTQL (CTQL): This version uses a Boolean switching condition. If the condition is met (e.g., based on the Q-table's confidence in its current action), the control tutor's action is used; otherwise, the RL policy's action is taken. The reward function is specifically designed to encourage reaching a goal state.
  • Probabilistic CTQL (pCTQL): To address limitations of the deterministic approach and allow for more standard reward functions, pCTQL introduces a probabilistic switching mechanism. The control tutor is invoked with a certain probability, allowing for more flexibility and potentially better convergence properties.

The RL policy itself is implemented using an ε-greedy Q-learning algorithm. The control tutor policy is designed to either directly provide an action or to sample randomly from the action space with a small probability (ε) to ensure exploration.

Datasets

The paper does not introduce new datasets. Instead, it uses the inverted pendulum stabilization problem from the OpenAI Gym framework as a benchmark. This problem is chosen because it represents a challenging, nonlinear control task with an unstable equilibrium point, making it a suitable testbed for evaluating new control strategies.

Key Insights and Ideas

  • Leveraging Imperfect Models: The paper demonstrates that even a simple, approximate model-based controller can significantly boost the data efficiency and performance of RL algorithms. This is a crucial insight for applying RL in domains where perfect models are unavailable but some analytical understanding exists.
  • "Coaching" RL: The control tutor acts as an "expert" or "coach," guiding the RL agent during its learning phase. This is analogous to human-assisted learning strategies but uses a model-based controller as the assistant.
  • Data Efficiency Gains: The primary benefit observed is a substantial reduction in the amount of data required for the RL agent to reach a satisfactory performance level.
  • Balancing Exploration and Exploitation: The probabilistic nature of pCTQL offers a more nuanced way to balance exploration (guided by the tutor) and exploitation (by the RL policy) compared to purely deterministic switching.

Key Results

  • Improved Learning Speed: Both CTQL and pCTQL demonstrated faster learning, as evidenced by a statistically significant smaller terminal episode ($E_t$) compared to standard Q-learning, indicating they reached the goal condition sooner.
  • Higher Rewards: The control-tutored approaches achieved higher average cumulative rewards ($J_{avg}$) and average rewards after the terminal episode ($J_{avg,t}$). For instance, with reward (14), pCTQL with $\omega = 0.05$ showed significant improvements over Q-learning.
  • Comparable or Lower Control Error: In terms of control performance (settling time and steady-state error), CTQL and pCTQL were either comparable to or outperformed Q-learning, especially when using specific reward functions. For reward (14), CTQL achieved the lowest steady-state error.
  • Reduced Tutor Usage Over Time: Figure 2(b) shows that the control tutor is used more frequently in the early stages of learning and its usage decreases as the RL policy becomes more competent.

Limitations and Future Work

  • Reward Function Sensitivity: The paper notes that the deterministic CTQL's performance can be sensitive to the reward function design. The probabilistic pCTQL was developed partly to mitigate this.
  • Convergence Proofs: The authors acknowledge the need for formal proofs of convergence for the proposed control-tutored algorithms.
  • Relationship between Tutor, Reward, and Dynamics: Future work will focus on formally characterizing the interplay between the reward function, the performance of the algorithms, and the accuracy of the approximate system dynamics used for the control tutor.
  • Generalizability to Other RL Algorithms: The authors suggest that embedding a control tutor could be beneficial for other RL algorithms beyond Q-learning, which will be a subject of future investigation.

Summary updated

BibTeX
@inproceedings{lellis2022control,
  author = {Francesco De Lellis and Marco Coraggio and Giovanni Russo and Mirco Musolesi and Mario di Bernardo},
  title = {{Control-Tutored Reinforcement Learning: Towards the Integration of Data-Driven and Model-Based Control}},
  booktitle = {L4DC},
  year = {2022},
  url = {https://openreview.net/forum?id=eOZdlCJB1ry},
}
Figure