Abstract
This paper introduces TSDE (Thompson Sampling with Dynamic Episodes), the first learning algorithm for Linear Quadratic (LQ) control to achieve a near-optimal expected regret bound of $\tilde{O}(\sqrt{T})$. By utilizing a novel dynamic episode scheduling and a re-initialization strategy, the authors demonstrate that Thompson Sampling is not only computationally efficient but also robust enough to handle both stationary and time-varying unknown system parameters.
Introduction
In classical control theory, the Linear Quadratic (LQ) control problem assumes perfect knowledge of system dynamics, typically represented by matrices $A$ and $B$. In practice, these parameters are often unknown, requiring the controller to learn them online while maintaining performance. This creates a fundamental exploration-exploitation trade-off: exploiting current estimates too early can lead to sub-optimal control or even system instability, while excessive exploration increases cumulative costs.
While "Optimism in the Face of Uncertainty" (OFU) algorithms have achieved strong theoretical regret bounds, they are computationally intensive, requiring the solution of complex non-convex optimization problems at each step. Thompson Sampling (TS) offers a simpler, more practical alternative. This work provides the first proof that a TS-based algorithm can achieve the optimal $\tilde{O}(\sqrt{T})$ regret bound in the continuous state-and-action space of LQ control.
The TSDE Algorithm
The proposed Thompson Sampling with Dynamic Episodes (TSDE) algorithm operates in episodes rather than updating at every time step. At the start of each episode, the algorithm samples system parameters from the current Gaussian posterior distribution. It then solves the algebraic Riccati equation for these sampled parameters to find the optimal control gain, which is applied throughout the episode.
Dynamic Stopping Criteria
The core innovation of TSDE is its dynamic episode scheduling. An episode terminates only when:
- The current episode length exceeds that of the previous episode (controlling the growth rate).
- The determinant of the sample covariance matrix drops below half of its value at the start of the episode, indicating a significant gain in information about the system.
For non-stationary systems, the TSDE-TV variant introduces a re-initialization schedule that periodically resets the algorithm to adapt to discrete jumps in system parameters.
Theoretical Guarantees
The authors prove that TSDE achieves an expected (Bayesian) regret of $\tilde{O}(\sqrt{T})$. This matches the performance of state-of-the-art OFU algorithms while being significantly more computationally efficient. Expected regret is a critical metric in this context, as it accounts for the risk of rare but catastrophic instabilities that can occur with poor parameter estimates. For time-varying systems, TSDE-TV maintains sub-linear regret provided the number of parameter jumps is also sub-linear.
Experimental Validation
Numerical simulations validate the theoretical bounds across various scenarios, including scalar and multi-dimensional systems.
In scalar systems ($n=1, m=1$), TSDE successfully controls both stable ($A=0.9$) and unstable ($A=1.5$) configurations. As shown in the figure above, the regret curves exhibit the predicted $\sqrt{T}$ growth rate. Notably, the algorithm remains robust even when the prior distribution is not perfectly accurate, successfully stabilizing systems that would otherwise diverge under poor control.
The algorithm's scalability is demonstrated in higher-dimensional vector systems ($n=3, m=3$). The results indicate that TSDE effectively manages the increased complexity while maintaining sub-linear regret growth, confirming its utility for more complex engineering applications.
Conclusion
TSDE bridges the gap between the computational simplicity of Thompson Sampling and the rigorous theoretical requirements of LQ control. By achieving optimal regret bounds and demonstrating robustness in unstable and time-varying systems, it provides a practical framework for real-time control of unknown dynamics. Future research will explore extensions to non-Gaussian noise distributions and continuous parameter drift.
Summary updated