Reinforcement Learning with Partial Parametric Model Knowledge

Shuyuan Wang, Philip D. Loewen, Nathan P. Lawrence, Michael G. Forbes, R. Bhushan GopaluniIFAC-PapersOnLine 2023 · DOI

TL;DR

This paper introduces Partial Knowledge Least Squares Policy Iteration (PLSPI), a novel reinforcement learning (RL) algorithm designed for continuous control tasks. PLSPI effectively bridges the gap between purely model-free RL and model-based control by leveraging partial knowledge of the system's dynamics, significantly improving sample efficiency and learning accuracy.

What Problem Does This Paper Address?

Reinforcement learning (RL) has achieved remarkable success in complex domains, but its primary drawback is its notorious data hunger. This "poor sample efficiency" is a critical limitation for real-world applications like robotics and industrial processes, where collecting data is costly and time-consuming. While model-based RL (MBRL) aims to improve sample efficiency, it often does so by trading off performance. This paper addresses the challenge of improving sample efficiency in RL without sacrificing performance, particularly in scenarios where some prior knowledge about the system's dynamics is available. The authors highlight that in many practical problems, we possess partial information about the system (e.g., its structure or some model parameters), which is often ignored by traditional RL approaches. The goal is to create a method that can effectively utilize this partial knowledge, bridging the gap between theoretical optimal control (which assumes perfect knowledge) and purely data-driven RL (which assumes complete ignorance).

Methods

The core contribution of this paper is the development of Partial Knowledge Least Squares Policy Iteration (PLSPI). This algorithm builds upon the foundation of Least Squares Policy Iteration (LSPI), a model-free RL method known for its efficiency in learning value functions. PLSPI's novelty lies in its ability to incorporate partial parametric model information.

Here's how it works:

  • Decomposition of System Dynamics: The system's dynamics matrices (A and B) are decomposed into two parts: $A = A_1 + A_2$ and $B = B_1 + B_2$. $A_1$ and $B_1$ represent the known parts of the system dynamics, while $A_2$ and $B_2$ represent the unknown parts.
  • Sub-model Construction: Using the known parts ($A_1$, $B_1$) and an initial controller ($K_1$), a "sub-model" is constructed. This sub-model allows for the calculation of a partial value function ($H_{K_1}$) offline, without requiring any real-world data.
  • Integration into Policy Evaluation: The key innovation is how this partial knowledge is integrated into the policy evaluation step of LSPI. Instead of learning the entire value function ($H_K$) from scratch using data, PLSPI learns the difference between the true value function and the one derived from the partial model ($H_{K_2} = H_K - H_{K_1}$). This is achieved by modifying the standard LSPI policy evaluation equation.
  • Improved Policy Evaluation Equation: The paper derives a new policy evaluation equation that incorporates both online sampled data and the pre-computed partial model information. This equation aims to reduce the amount of data needed to accurately estimate the value function.
  • Algorithm Structure: PLSPI follows a two-loop structure similar to LSPI: an inner loop for policy evaluation and improvement using a fixed dataset, and an outer loop for interacting with the environment and updating the dataset.

The method is presented as a way to leverage optimal control techniques (like solving the Discrete Algebraic Riccati Equation for the sub-model) within an RL framework, thereby enhancing sample efficiency.

Datasets

The paper does not introduce new datasets. Instead, it uses simulated environments for evaluation. The experiments involve:

  • A deterministic double integrator system.
  • A simplified 3-level cooling system, described as a popular test scenario for RL applications.
  • A completely known system model to test an extreme case.

The data for training and evaluation is generated through simulations (rollouts) of these systems using the current controller and exploration noise.

Key Insights and Ideas

  • Bridging the Gap: The most significant insight is the successful demonstration of a method that effectively bridges the gap between model-based control and model-free RL. By incorporating partial model knowledge, PLSPI offers a more practical approach for real-world applications where complete ignorance is rarely the case.
  • Sample Efficiency Gains: The core idea that learning the difference from a known baseline (the sub-model) requires less data than learning from scratch is a powerful concept. This is intuitively appealing and empirically validated in the paper.
  • Leveraging Optimal Control Theory: The paper elegantly shows how established optimal control theory (specifically, solving the DARE for the sub-model) can be directly integrated into an RL algorithm to provide a strong starting point for learning, significantly boosting efficiency.
  • Reduced Variance: The experiments suggest that PLSPI not only converges faster but also exhibits lower variance in its learning process, indicating more stable and reliable learning, especially with limited data.

Key Results

The paper presents numerical experiments demonstrating the effectiveness of PLSPI.

  • Example 1 (Deterministic Double Integrator): Both LSPI and PLSPI converged to the optimal controller within 1-2 iterations. This simple case shows that PLSPI performs comparably to LSPI when the problem is straightforward.
  • Example 2 (3-Level Cooling System): This more complex and unstable system showed significant advantages for PLSPI.
  • PLSPI converged faster than both tested versions of LSPI (LSPI-v1 and LSPI-v2).
  • The shaded regions in the plots (representing variance) were smaller for PLSPI, indicating better accuracy and stability.
  • The learned controller was able to regulate states effectively even in a stochastic environment.
  • Extreme Case (Completely Known System): When provided with complete system knowledge, PLSPI achieved the optimal solution in just one iteration with no variance, highlighting its ability to leverage perfect information when available.

Limitations and Future Work

The authors acknowledge several limitations and suggest promising avenues for future research:

  • Theoretical Guarantees: While empirical results are strong, the paper calls for theoretical guarantees on when partial information is truly beneficial and how to quantify these benefits.
  • Stochastic Settings: Further theoretical work is needed for the exact learning of value functions in stochastic settings, especially concerning the constant terms that arise.
  • Nonlinear Systems: The current work focuses on Linear Quadratic Regulator (LQR) problems. Extending PLSPI to handle nonlinear systems is a significant and promising direction.
  • Generalization: Investigating how PLSPI's benefits generalize to a wider range of complex, real-world control problems is crucial.
  • Choice of $K_1$: While the paper discusses strategies for choosing the initial controller $K_1$ for the sub-model, further exploration into optimal selection methods could be beneficial.

Summary updated

BibTeX
@inproceedings{wang2023reinforcement,
  author = {Shuyuan Wang and Philip D. Loewen and Nathan P. Lawrence and Michael G. Forbes and R. Bhushan Gopaluni},
  title = {{Reinforcement Learning with Partial Parametric Model Knowledge}},
  booktitle = {IFAC-PapersOnLine},
  year = {2023},
  doi = {10.1016/j.ifacol.2023.10.924},
}
Figure