Learning the model-free linear quadratic regulator via random search

Hesameddin Mohammadi, Mihailo R. Jovanovic, Mahdi SoltanolkotabiL4DC 2020

Abstract

This paper provides the first rigorous theoretical guarantees for solving the continuous-time Linear Quadratic Regulator (LQR) problem using a model-free random search method. By leveraging the geometric properties of the LQR cost landscape, specifically smoothness and the Polyak-Łojasiewicz (PL) condition, the authors demonstrate that achieving $\epsilon$-accuracy requires only logarithmic sample complexity and simulation time. This represents a significant improvement over previous discrete-time results, which suggested polynomial scaling, and highlights the practical power of continuous-time formulations in reinforcement learning for control.

Introduction: The Challenge of Model-Free Control

The Linear Quadratic Regulator (LQR) is a cornerstone of control theory, providing an optimal strategy for steering linear systems while minimizing a quadratic cost function. Traditionally, solving the LQR problem requires precise knowledge of the system's internal dynamics, typically represented by the $A$ and $B$ matrices in state-space models. This knowledge allows for the direct solution of the Riccati equation.

However, in many modern applications—ranging from complex robotics to industrial process control—an accurate mathematical model of the system is often unavailable or too complex to derive. This has spurred interest in Model-Free Reinforcement Learning (RL), where the goal is to learn the optimal controller through direct interaction with the system. In this "black-box" setting, the controller is updated based on observed costs rather than an analytical gradient.

While model-free methods are flexible, they face significant theoretical hurdles. The LQR optimization landscape is non-convex, and without a model, gradients must be estimated from noisy cost samples. Previous research on discrete-time LQR suggested that model-free methods were inefficient, requiring sample complexities scaling as $1/\epsilon$ or even $1/\epsilon^4$. This paper investigates whether a continuous-time approach can overcome these limitations.

Methodology: Random Search and Gradient Estimation

The authors analyze a Random Search (RS) algorithm, a zero-order optimization technique that does not require explicit gradient information. The algorithm proceeds iteratively:

  1. Perturbation: At each step, the current controller $K$ is perturbed by a random matrix $U$ scaled by a small radius $r$.
  2. Evaluation: The system is simulated using the perturbed controllers $(K + rU)$ and $(K - rU)$.
  3. Estimation: A two-point gradient estimate is constructed from the difference in observed costs. This symmetric sampling significantly reduces the variance of the estimate compared to one-point methods.
  4. Update: The controller is updated in the direction of the estimated gradient.

To prove that this simple local search converges to the global optimum, the authors exploit two critical properties of the LQR cost function:

  • Smoothness: Ensures the cost doesn't change too abruptly, allowing for stable updates.
  • Polyak-Łojasiewicz (PL) Condition: A geometric property that, despite non-convexity, ensures that the gradient's magnitude relates to the distance from the global minimum. This allows the algorithm to avoid getting stuck in local minima and converge at a linear rate.

Key Insights: The Continuous-Time Advantage

The most striking finding is the efficiency gain provided by the continuous-time formulation. Unlike discrete-time models, the continuous-time LQR problem allows for much tighter theoretical bounds.

Logarithmic Efficiency

The paper proves that both the number of function evaluations (sample complexity) and the required simulation time per step scale as $O(\log(1/\epsilon))$. In optimization theory, moving from polynomial ($1/\epsilon$) to logarithmic ($\log 1/\epsilon$) complexity is a transformative leap, making the difference between a purely theoretical method and one that is practically viable for real-time systems.

Managing Simulation Bias

In practice, the LQR cost is defined over an infinite time horizon. Since real-world simulations must eventually terminate, this introduces a bias into the gradient estimate. The authors show that this bias decays exponentially with the simulation time $\tau$. Consequently, one only needs to simulate for a duration proportional to $\log(1/\epsilon)$ to obtain a sufficiently accurate gradient estimate.

Figure 3: (a) Exponential decay of the relative gradient error with simulation time $\tau$. (b) Linear convergence of the relative cost error over iterations $k$ on a semi-log scale.

Key Results and Numerical Validation

The theoretical findings were validated using a synthetic benchmark: a 10-mass spring-damper system. This multi-variable system is a standard testbed in control theory for evaluating algorithmic performance on complex dynamics.

  • Linear Convergence: The random search method converges to the optimal controller at a linear rate with high probability, as shown in the numerical results (Figure 3b).
  • Sample Complexity: The total number of samples required to reach accuracy $\epsilon$ is proportional to $\log(1/\epsilon)$, confirming the theoretical leap over earlier discrete-time research.
  • Simulation Time: The simulation duration required for each iteration also scales logarithmically, minimizing the computational overhead of the learning process.

Limitations and Future Directions

While this work provides a rigorous foundation for model-free LQR, several challenges remain:

  • Structural Constraints: The current analysis assumes a full feedback matrix. Many real-world systems require sparse controllers (where a controller only accesses local sensor data). Such constraints can lead to disjoint search spaces, which are not covered by the current PL-based analysis.
  • Stochastic Dynamics: The study assumes deterministic system dynamics with random initial conditions. Extending these logarithmic bounds to systems with persistent stochastic noise (e.g., Brownian motion) is a key area for future research.
  • High-Dimensional Scaling: Although the complexity is logarithmic in terms of error $\epsilon$, it still depends on the number of states $n$. Scaling these methods to systems with thousands of states remains an open engineering challenge.

Summary updated

BibTeX
@inproceedings{mohammadi2020learning,
  author = {Hesameddin Mohammadi and Mihailo R. Jovanovic and Mahdi Soltanolkotabi},
  title = {{Learning the model-free linear quadratic regulator via random search}},
  booktitle = {L4DC},
  year = {2020},
}
Figure