NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient Off-Policy Q-Learning for Data-Based Discrete-Time LQR Problems

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

Abstract

This article introduces and analyzes an improved Q-learning algorithm for discrete-time linear time-invariant (LTI) systems. The proposed method does not require any knowledge of the system dynamics and enjoys significant efficiency advantages over other data-based optimal control methods in the literature. This algorithm can be fully executed offline, as it does not require applying the current estimate of the optimal input to the system as in on-policy algorithms. It is shown that a Persistently Exciting (PE) input, defined from an easily tested matrix rank condition, guarantees the convergence of the algorithm. A data-based method is proposed to design the initial stabilizing feedback gain that the algorithm requires. Robustness of the algorithm in the presence of noisy measurements is analyzed. We compare the proposed algorithm in simulation to different direct and indirect data-based control design methods.

Introduction

In control theory, the Linear Quadratic Regulator (LQR) is a fundamental tool for designing optimal controllers. Traditionally, solving the LQR problem requires a precise mathematical model—specifically the state-space matrices $A$ and $B$. However, modeling real-world physical systems is often difficult, prone to errors, or impractical. This has led to the rise of Data-Based Control, which seeks to design controllers directly from input-output data.

Data-based methods generally fall into two categories: indirect methods, which identify a model from data first and then design the controller, and direct methods, which design the controller directly (e.g., Reinforcement Learning). This paper addresses a specific gap in direct methods: the need for computational efficiency and robustness in "off-policy" settings, where learning occurs from pre-collected data rather than active interaction with the system.

Methodology: Off-Policy Q-Learning

The researchers propose an improved off-policy Q-learning algorithm that leverages Willems’ Fundamental Lemma. This lemma provides a technical bridge, allowing a system's behavior to be represented entirely by a single, sufficiently complex (persistently exciting) data trajectory.

Key Components of the Approach

  • Off-Policy Learning: Unlike on-policy Reinforcement Learning (RL), which requires the system to run the "current best" (and potentially unstable) controller to collect data, this method uses data collected once using an arbitrary input. The algorithm then iterates offline to find the optimal controller.
  • Sylvester Equation Reformulation: The authors transform the Q-learning update step into a generalized Sylvester equation. This allows the use of standard, high-performance numerical solvers (such as MATLAB’s dlyap), making the algorithm significantly faster than previous RL methods that relied on more complex optimization routines.
  • Initial Stabilization: Q-learning requires an initial stabilizing controller to begin. The authors provide a secondary data-based algorithm to find a "deadbeat" controller from raw data to serve as this starting point.
  • Robustness Analysis: The paper provides mathematical bounds on the measurement noise the algorithm can tolerate while still guaranteeing a stable and convergent result.

Computational Efficiency and Insights

A major contribution of this work is the reduction of computational overhead through parameter efficiency. Previous off-policy RL algorithms required solving for $n^2 + m^2 + nm$ parameters (where $n$ is the state dimension and $m$ is the input dimension). This paper reduces that requirement to $\frac{1}{2}(n+m)(n+m+1)$ parameters.

Furthermore, the authors demonstrate that when a system exhibits slight nonlinearities, this "Direct" method is more accurate than "Indirect" methods. While indirect methods may struggle to fit a linear model to nonlinear data, the direct Q-learning approach optimizes for performance, effectively finding the best linear approximation for control purposes.

Experimental Results

The algorithm was tested using numerical simulations on random linear systems with state dimensions ranging from 3 to 50, as well as a nonlinear benchmark system to test robustness against bias error.

  • Speed: In a 50-state system ($n=50$), the proposed Q-learning (QL) algorithm completed in just 0.015 seconds. In comparison, an efficient Linear Matrix Inequality (LMI)-based method took 84.3 seconds, and a previous RL method took 40.0 seconds.
  • Accuracy: The QL algorithm consistently achieved lower error rates—often by several orders of magnitude—compared to LMI and other RL methods across all tested dimensions.
  • Convergence: The algorithm exhibits quadratic convergence, meaning the error drops extremely rapidly as it approaches the optimal solution, mirroring the efficiency of Newton’s method in optimization.

Conclusion

This research presents a highly efficient, model-free framework for solving the LQR problem. By combining the theoretical foundations of Willems’ Fundamental Lemma with efficient numerical solvers, the authors have created a method that is both faster and more accurate than existing benchmarks.

While the algorithm is designed for Linear Time-Invariant (LTI) systems, its performance on slightly nonlinear systems is promising. Future work will likely focus on reducing sample complexity—the amount of physical data required—and developing even more robust data-cleansing techniques to handle high-noise environments.

Summary updated

BibTeX
@misc{lopez2021efficient,
  author = {Victor G. Lopez and Mohammad Alsalti and Matthias A. Müller},
  title = {{Efficient Off-Policy Q-Learning for Data-Based Discrete-Time LQR Problems}},
  year = {2021},
  eprint = {2105.07761},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.07761},
}
Figure