A modified Thompson sampling-based learning algorithm for unknown linear systems

Mukul Gagrani, Sagar Sudhakara, Aditya Mahajan, Ashutosh Nayyar, Yi Ouyang

Introduction

In the field of Reinforcement Learning (RL) for control, the Linear Quadratic Regulator (LQR) serves as a fundamental benchmark. The core challenge involves controlling a linear system with unknown dynamics—specifically the $A$ and $B$ matrices—while minimizing "regret." Regret is defined as the cumulative difference between the cost incurred by the learning agent and the cost that would have been achieved by an omniscient controller with perfect knowledge of the system.

Industrial robotic arms represent complex systems where unknown dynamics must be controlled efficiently.

A prominent strategy for this problem is Thompson Sampling. In this Bayesian framework, the agent maintains a posterior belief about the system parameters, samples a hypothesis, and implements the optimal controller for that hypothesis for a set duration. A specific iteration of this approach, known as Thompson Sampling with Dynamic Episodes (TSDE), utilizes dynamic criteria to determine when to update its parameter estimates.

The Problem: Restrictive Stability Assumptions

While TSDE is theoretically sound, previous proofs of its effectiveness relied on a highly restrictive stability assumption. Specifically, they required that any controller sampled from the belief set must cause the system to contract immediately, a condition measured by a spectral norm of less than one.

Autonomous driving systems require robust control algorithms that can handle temporary instabilities during the learning process.

In practical engineering scenarios, such as autonomous vehicles or industrial robotics, systems are often stable in the long term but may exhibit transient "swings" or minor expansions in the short term. This paper addresses this gap by refining the TSDE algorithm to accommodate more realistic stability conditions.

Methodology: The m-TSDE Algorithm

The authors propose m-TSDE (Modified Thompson Sampling with Dynamic Episodes). This refined algorithm builds upon the standard TSDE foundation:

  1. Posterior Maintenance: The algorithm maintains a truncated Gaussian distribution representing the belief about the unknown parameters $\theta_*$.
  2. Sampling and Action: At the start of each episode, a parameter $\tilde{\theta}_k$ is sampled, and the optimal controller for that sample is deployed.
  3. Dynamic Termination: Episodes typically end when the time horizon doubles or when the "information gain" (the determinant of the covariance matrix) exceeds a threshold.

The critical modification introduced in m-TSDE is the inclusion of a minimum episode length, $T_{min}$. By mandating that an episode cannot terminate before $T_{min}$ steps have passed, the authors ensure the system has sufficient time to "settle" under the current policy.

Key Insights and Theoretical Results

The introduction of $T_{min}$ allows for a significant relaxation of the theoretical stability requirements. The authors move from requiring a small spectral norm (immediate contraction) to a small spectral radius (long-term asymptotic stability). This shift is a natural progression for control theorists, as it aligns the mathematical proofs with standard engineering definitions of stability.

The authors demonstrate that asymptotic stability implies exponential stability. By ensuring the episode is long enough, they can effectively bound the state of the system even if it doesn't contract immediately.

Regret Performance

The paper proves that m-TSDE achieves an optimal regret bound: $$R(T; \text{m-TSDE}) \leq C\sqrt{T} (\log T)^q$$ This result matches the performance of the original TSDE algorithm but holds under much more realistic and broader conditions.

Limitations and Future Outlook

Despite these advancements, the authors acknowledge that the current assumptions remain somewhat "strong." The model still requires that every parameter in the belief set produces a controller capable of stabilizing every other system within that same set.

A significant open question remains: how to handle the "stabilizability gap." Ideally, theoretical guarantees should only require the true system to be stabilizable. Currently, there is no guaranteed way to maintain stability if a non-stabilizing controller is accidentally sampled during the Bayesian learning process. Future research will likely focus on relaxing these assumptions further to handle temporary instabilities during the learning phase.

Summary updated

BibTeX
@inproceedings{gagrani2022modified,
  author = {Mukul Gagrani and Sagar Sudhakara and Aditya Mahajan and Ashutosh Nayyar and Yi Ouyang},
  title = {{A modified Thompson sampling-based learning algorithm for unknown linear systems}},
  booktitle = {CDC},
  year = {2022},
  doi = {10.1109/cdc51059.2022.9992683},
}
Figure