An efficient data-based off-policy Q-learning algorithm for optimal output feedback control of linear systems

Mohammad Alsalti, Victor G. Lopez, Matthias Albrecht Müller

Introduction

In the field of control engineering, the Linear Quadratic Regulator (LQR) remains a cornerstone for achieving optimal system behavior. However, the practical application of LQR often encounters two significant barriers: the requirement for a precise mathematical model of the system (the $A, B$, and $C$ matrices) and the necessity of full access to the system's internal state ($x_k$). In many real-world scenarios, neither is available. Engineers typically work with "output" data from sensors and a history of "input" commands.

This paper, presented at the Proceedings of Machine Learning Research (2024), introduces a novel off-policy Q-learning algorithm designed to solve the optimal output feedback problem using only offline, past input-output data. By bridging classical control theory with modern Reinforcement Learning (RL), the authors provide a solution that is both computationally lean and highly scalable.

The Challenge of Model-Free Output Feedback

Traditional model-free Reinforcement Learning approaches to control often struggle with several issues. First, on-policy bias occurs when algorithms learn while the system is active; the probing signals used for exploration can inadvertently bias the final control policy. Second, computational complexity often limits these methods. Many off-policy techniques rely on Batch Least Squares to solve the Bellman equation, a process that becomes prohibitively expensive as system dimensionality increases. Finally, many existing methods rely on the restrictive assumption that the system can be stabilized by a simple static controller, which is not universally applicable.

Methodology: History as a Proxy for State

The authors' primary innovation lies in the use of a non-minimal state representation. Since the internal state $x_k$ is hidden, the algorithm constructs a surrogate state $z_k$ using a finite window of past inputs and outputs. For linear systems, this history contains sufficient information to reconstruct the optimal control law without ever needing to identify the underlying physical parameters.

Off-Policy Learning and the Lyapunov Reformulation

The algorithm operates in an off-policy manner, meaning it utilizes a fixed dataset collected once. This dataset must be "persistently exciting"—rich enough to capture the system's dynamics—but once acquired, the system does not need to remain active during the learning process.

The computational breakthrough comes from the "Lyapunov Trick." The authors demonstrate that the Bellman equation for this specific problem can be reformulated as a generalized discrete-time Lyapunov equation. This transformation allows the use of highly optimized numerical solvers (such as dlyap) rather than general-purpose optimization toolboxes. This shift from generic optimization to structured matrix equations enables quadratic convergence, where the precision of the solution improves exponentially with each iteration.

Experimental Results and Scalability

The researchers evaluated the proposed Q-learning (QL) algorithm against a state-of-the-art Semi-Definite Programming (SDP) approach using synthetic datasets from random Linear Time-Invariant (LTI) systems. The tests spanned various state dimensions ($n = 3$ to $n = 50$).

The results demonstrate a significant advantage for the QL approach in both speed and scalability:

  • Efficiency: For a system with dimension $n=10$, the QL algorithm reached a solution in 0.005 seconds, compared to 14.13 seconds for the SDP method.
  • Scalability: As the system size increased to $n=30$ and $n=50$, the SDP method failed to converge, likely due to memory constraints or numerical instability. In contrast, the QL algorithm solved the $n=50$ case in just 0.116 seconds.
  • Precision: The QL method consistently achieved error rates near machine precision ($10^{-13}$), significantly outperforming the $10^{-6}$ error rates of the SDP approach.

Conclusion and Future Directions

By recognizing the algebraic structure of the Q-function, the authors have developed a method that moves model-free control from a computationally intensive task to a highly efficient one. While the algorithm currently requires an initial stabilizing policy and is limited to linear systems, its ability to handle high-dimensional systems with such speed marks a significant advancement. Future research will likely focus on rigorous noise sensitivity analysis and the potential extension of these structured matrix techniques to nonlinear system dynamics.

Summary updated

BibTeX
@inproceedings{alsalti2024efficient,
  author = {Mohammad Alsalti and Victor G. Lopez and Matthias Albrecht Müller},
  title = {{An efficient data-based off-policy Q-learning algorithm for optimal output feedback control of linear systems}},
  booktitle = {L4dc},
  year = {2024},
}
Figure