Least-Squares Temporal Difference Learning for the Linear Quadratic Regulator

Stephen Tu, Benjamin Recht

Introduction

Reinforcement Learning (RL) has seen massive success in continuous control, yet we still lack a rigorous understanding of its sample complexity—exactly how much data is required to learn a good policy.

This paper provides the first finite-time analysis of the sample complexity for Least-Squares Temporal Difference (LSTD) learning applied to the Linear Quadratic Regulator (LQR). The authors establish that roughly $n^2/\epsilon^2$ samples (where $n$ is the state dimension) are needed to estimate the value function to within an $\epsilon$-relative error. This reveals a significant efficiency gap, demonstrating that model-free methods can be substantially less data-efficient than model-based approaches for this classic control problem.

The Problem: Model-Free vs. Model-Based in LQR

In the world of control theory, the Linear Quadratic Regulator (LQR) is the gold standard benchmark. It is mathematically tractable yet captures the essence of continuous control. While "model-based" methods (which first estimate the physics and dynamics of the system) are known to be highly efficient, "model-free" methods (which learn value functions or policies directly from experience) are often preferred in practice for their flexibility and lack of assumptions about system dynamics.

The authors tackle a fundamental question: How well do model-free RL methods actually perform on the LQR problem? Specifically, they analyze the LSTD estimator, a core building block of many RL algorithms used to estimate the "value" of a specific policy.

Methodology

The researchers combine tools from statistical learning theory and robust control to analyze the LSTD estimator:

  1. LSTD Estimator: They analyze the standard Least-Squares Temporal Difference algorithm, which assumes the value function can be represented as a linear combination of features. In LQR, the value function is quadratic, so they use a "lifted" feature map $\phi(x) \approx xx^T$.
  2. $\beta$-Mixing Processes: Unlike standard statistics where data points are independent (i.i.d.), RL data comes from trajectories where each state depends on the previous one. The authors use the concept of "mixing" to quantify how quickly a system's state becomes decorrelated from its past.
  3. Small-Ball Probabilities: To prove the estimator works, they demonstrate that the "empirical covariance matrix" of the states doesn't become singular. They extended a technical result to handle dependent, fast-mixing data, providing a new bound on the minimum eigenvalue of this matrix.

Key Insights and Ideas

The theoretical analysis yields several critical insights into the behavior of LSTD:

  • The Dimensionality Gap: The analysis suggests a fundamental gap in scaling. Model-based methods typically need $O(n)$ samples to estimate dynamics, but LSTD needs $O(n^2)$ samples to estimate the value function. This is because the value function in LQR is a symmetric matrix with $n(n+1)/2$ unique entries.
  • Mixing Matters: The "speed" at which a controller stabilizes a system directly impacts learning. If a system mixes slowly (e.g., the spectral radius $\rho$ is close to 1), the samples remain highly correlated, and a much longer trajectory is needed to "see" the underlying structure of the value function.
Relative error of LSTD decreases as trajectory length increases, but slower mixing systems ($\rho=0.9$) require significantly more data.
  • Conditioning of the Gramian: The difficulty of learning is tied to the controllability gramian ($P_\infty$). If the system has "modes" that are very hard or very easy to excite (a high condition number), LSTD requires significantly more data to reach a target accuracy.
  • Theoretical Refinement: The authors improved upon previous general LSTD bounds by reducing the required trajectory length from $\Omega(d^2)$ to $\Omega(d)$, where $d$ is the feature dimension.

Key Results: The Sample Complexity Gap

The paper uses synthetic LQR instances for evaluation, including randomly generated stable LTI systems and a specific 3D LQR instance borrowed from prior work, to compare model-free Least-Squares Policy Iteration (LSPI) against model-based "nominal" controllers.

  • Sample Complexity: The main theorem establishes that $N \geq \text{poly}(n, 1/\epsilon, \text{system parameters})$ samples are sufficient for an $\epsilon$-accurate estimate. Simplified, this scales as $n^2/\epsilon^2$.
  • Model-Free vs. Model-Based: In head-to-head experiments, the model-free approach (LSPI) was consistently less robust and more sample-inefficient. For example, on a standard 3D problem, LSPI required over 10x more samples than a simple model-based "nominal" controller to achieve the same relative error.
Model-free LSPI requires substantially more timesteps to achieve the same relative error as a model-based nominal controller.
  • Stability Frequency: Model-free methods were much more likely to produce "unstable" controllers (controllers that let the system blow up) when data was scarce compared to model-based alternatives.

Limitations and Future Work

While this paper bridges a crucial gap in RL theory, several avenues remain open:

  • Policy Evaluation vs. Optimization: The core theoretical result focuses on evaluating a fixed policy (LSTD). While they show empirical results for finding a policy (LSPI), a full finite-time proof for the entire optimization loop remains an open challenge.
  • Linearity: The results are specific to LQR. While LQR is a vital baseline, real-world RL often deals with high-dimensional non-linearities (e.g., deep RL) where the "linear architecture" assumption might not hold perfectly.
  • Lower Bounds: The paper provides an upper bound on samples. Proving a formal lower bound to strictly separate model-free and model-based complexities is a logical next step.

Summary updated

BibTeX
@inproceedings{tu2018least,
  author = {Stephen Tu and Benjamin Recht},
  title = {{Least-Squares Temporal Difference Learning for the Linear Quadratic Regulator}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=HkZgCoZdWr},
}
Figure