Safe Adaptive Learning-based Control for Constrained Linear Quadratic Regulators with Regret Guarantees

Yingying Li, Subhro Das, Jeff S. Shamma, Na LiarXiv 2021

Abstract

This paper presents a polynomial-time algorithm for the adaptive control of unknown linear systems subject to quadratic costs and strict state/action constraints. By integrating robust model estimation with a novel "SafeTransit" policy update mechanism, the authors provide the first single-trajectory learning algorithm that guarantees both safety (constraint satisfaction) and a sublinear regret bound of $\tilde{O}(T^{2/3})$.

Introduction

In control theory, the Linear Quadratic Regulator (LQR) is a foundational tool for minimizing costs in linear systems. While unconstrained LQR is well-understood even when the system model is unknown, real-world applications—such as drones avoiding obstacles or motors operating within voltage limits—impose strict constraints on states and actions.

The challenge intensifies when the system model is unknown. A controller must "explore" to learn the system dynamics, but exploration often involves taking actions that might violate safety constraints. Most existing "safe" learning methods either work offline or require system restarts to a known safe state. This paper addresses the "holy grail" of safe adaptive control: learning the model and optimizing performance on a single trajectory without ever violating constraints or requiring a reset.

Methodology

The proposed approach integrates four key components into a unified Safe Adaptive Control algorithm:

  1. Model Estimation: The algorithm employs a Least-Square-Estimator (LSE) with projection to refine the model estimate over time. The authors provide an estimation error bound that holds even for nonlinear policies, a significant technical contribution.
  2. Disturbance-Action Policies (DAP): Instead of standard state-feedback ($u = -Kx$), the control action is represented as a linear combination of past system disturbances. This shift transforms complex state/action constraints into a set of polytopic constraints on policy parameters, making the optimization problem solvable via Quadratic Programming (QP).
  3. Robust Certainty Equivalence (CE): The algorithm solves for a "near-optimal" policy based on the current model estimate while incorporating "constraint tightening." This buffer accounts for model uncertainty, ensuring the system remains safe even if the estimate is slightly inaccurate.
  4. SafeTransit Algorithm: A key innovation of this work is the SafeTransit mechanism. Abruptly switching from an old policy to a new one can lead to instability or constraint violations. SafeTransit uses a "slow-variation trick," moving the policy along a path through an intermediate "midpoint" policy to maintain safety during the transition.
Figure 1: Visualization of the SafeTransit policy update mechanism, ensuring safety during transitions between policies M and M' via an intermediate midpoint.

Key Insights

  • Tension of Safety vs. Exploration: To achieve a better regret bound ($\tilde{O}(T^{2/3})$), the authors implement a "pure exploitation" phase in each episode where exploration noise is removed. This allows the system to capitalize on learned dynamics without the "jitter" of exploration violating tight constraints.
  • Computational Bridge: By using DAP, the authors bypass the non-convexity usually associated with constrained LQR, ensuring the algorithm runs in polynomial time at every step.
  • Recursive Feasibility: The paper proves that if the algorithm starts with a "strictly feasible" initial set, it will remain feasible indefinitely, preventing the system from reaching a state where no safe action exists.

Results

The algorithm achieves a regret of $\tilde{O}(T^{2/3})$ relative to the optimal safe linear controller. While this is slower than the $\tilde{O}(\sqrt{T})$ typically seen in unconstrained LQR, it matches the best-known bounds for robust learning in similar constrained settings. Crucially, the algorithm guarantees that state and action constraints are satisfied with high probability ($1-p$) across the entire time horizon $T$. Furthermore, the authors demonstrate that their benchmark performs at least as well as standard tube-based Robust Model Predictive Control (RMPC) in terms of infinite-horizon averaged cost.

Limitations and Future Work

While providing strong guarantees, the algorithm requires a "strictly feasible" initial model uncertainty set—essentially a decent starting guess and a known safe controller. The current work is also limited to linear systems; extending these safety and regret guarantees to nonlinear dynamics remains a major open challenge. Additionally, there remains a theoretical gap between the $T^{2/3}$ bound found here and the $T^{1/2}$ bound of unconstrained systems, suggesting a potential area for future optimization.

Summary updated

BibTeX
@misc{li2021safe,
  author = {Yingying Li and Subhro Das and Jeff S. Shamma and Na Li},
  title = {{Safe Adaptive Learning-based Control for Constrained Linear Quadratic Regulators with Regret Guarantees}},
  year = {2021},
  eprint = {2111.00411},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.00411},
}
Figure