Model-Free Design of Stochastic LQR Controller from Reinforcement Learning and Primal-Dual Optimization Perspective

Man Li, Jiahu Qin, Wei Xing Zheng, Yaonan Wang, Yu KangarXiv 2021

TL;DR

This paper bridges the gap between Reinforcement Learning (RL) and classical optimization by providing a model-free approach to the stochastic Linear-Quadratic Regulator (LQR) problem. The authors develop two novel algorithms—one from an RL perspective and one from a primal-dual optimization perspective—and prove that these seemingly different approaches are theoretically equivalent, offering a deeper understanding of how RL "optimizes" control policies.

What Problem Does This Paper Address?

The Linear-Quadratic Regulator (LQR) is a cornerstone of control theory, aimed at finding a feedback controller that minimizes a quadratic cost for a linear system. Traditionally, solving LQR requires exact knowledge of the system's dynamics (the $A$ and $B$ matrices). However, in many real-world applications, these matrices are unknown.

While Reinforcement Learning (RL) provides "model-free" tools to learn these controllers from data, many existing RL methods are "data-hungry" (requiring massive amounts of interaction) or lack a clear connection to standard optimization theory. This paper seeks to provide a rigorous optimization-based foundation for model-free LQR design, specifically for systems subject to Gaussian noise, while improving data efficiency.

Methods

The authors tackle the problem from two distinct angles:

  1. Reinforcement Learning Perspective: They introduce a Model-Free Off-Policy Policy Iteration (MF-OPPI) algorithm. Unlike "on-policy" methods that require new data for every update, this "off-policy" approach allows the agent to reuse data generated by a different "behavior policy." This significantly alleviates the data-hungry nature of standard RL.
  2. Optimization Perspective: They reformulate the stochastic LQR problem as a constrained non-convex optimization problem. They prove that despite being non-convex, this specific formulation possesses strong duality (the "dual gap" is zero). They then propose a Model-Based Primal-Dual (MB-PD) algorithm and, crucially, a model-free implementation of it that doesn't require knowing the system matrices.

Datasets

As is standard in theoretical control research, the paper does not use a static external dataset. Instead, it evaluates the algorithms using simulated trajectories from discrete-time linear systems.

  • System 1: A simple scalar system used to demonstrate the equivalence between PI and MB-PD.
  • System 2: A two-dimensional system with Gaussian noise $N(0_2, I_2)$ used to test the performance and noise-robustness of the MF-OPPI and MB-PD algorithms.

Key Insights and Ideas

  • The Theoretical Bridge: The most significant "aha moment" is the proof that the dual and primal update steps in the optimization algorithm are mathematically equivalent to the policy evaluation and policy improvement steps in classical Policy Iteration (PI). This provides a solid optimization-theoretic justification for why PI works.
  • Strong Duality in Non-Convexity: Generally, non-convex problems are difficult because they have a "duality gap." The authors show that for the LQR problem, the gap is zero, meaning we can solve the easier "dual" problem to find the global optimum of the "primal" problem.
  • Data Reuse: By using an off-policy approach, the MF-OPPI algorithm can repeatedly use the same batch of sampled data to update the controller, making it much more practical for systems where data collection is expensive or slow.
  • Averting Excitation Requirements: The proposed primal-dual method has a distinct advantage: it can converge without requiring a "probing noise" (persistent excitation) during the iteration phase, which helps avoid undesirable oscillations in the physical system during learning.

Key Results

  • Convergence: Both the MF-OPPI and the model-free MB-PD algorithms are proven to converge to the optimal LQR gain $F^*$.
  • Efficiency: In simulations, the algorithms reached the optimal control gain in approximately 6 to 7 iterations.
  • Robustness: The algorithms remained effective even as the variance of the system noise ($\sigma_w^2$) increased, though higher noise naturally led to slightly higher approximation errors.
  • Numerical Validation: The paper provides a numerical example where the learned model-free gain $F^6 = [-0.2464, -0.4960]$ almost perfectly matches the theoretical optimal gain $F^* = [-0.2446, -0.4892]$.

Limitations and Future Work

  • Data Requirements for Primal-Dual: While the primal-dual approach avoids the need for continuous probing noise, the authors acknowledge that it requires more initial data compared to the RL-based approach.
  • Linearity Constraint: The current work is strictly limited to linear systems. Extending these primal-dual perspectives to nonlinear systems remains a significant challenge, as the elegant Lyapunov-based proofs used here do not directly translate to nonlinear dynamics.
  • Sample Complexity: While the paper proves convergence, it does not provide a formal "sample complexity" analysis (i.e., exactly how many data points are needed to reach a specific error bound), which is a common area of interest in modern machine learning.

Summary updated

BibTeX
@misc{li2021model,
  author = {Man Li and Jiahu Qin and Wei Xing Zheng and Yaonan Wang and Yu Kang},
  title = {{Model-Free Design of Stochastic LQR Controller from Reinforcement Learning and Primal-Dual Optimization Perspective}},
  year = {2021},
  eprint = {2103.09407},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.09407},
}
Figure