Thompson-Sampling Based Reinforcement Learning for Networked Control of Unknown Linear Systems

Borna Sayedana, Mohammad Afshari, Peter E. Caines, Aditya Mahajan

Abstract

In modern engineering, Networked Control Systems (NCS) are ubiquitous, yet they face significant challenges due to unknown system dynamics and unreliable communication channels. This paper presents a reinforcement learning framework using Thompson Sampling with Dynamic Episodes (TSDE) to control unknown linear systems over lossy networks. We prove that the proposed algorithm achieves a Bayesian regret bound of $\tilde{\mathcal{O}}(\sqrt{T})$, demonstrating that the rate of learning is not fundamentally degraded by network unreliability.

Introduction

Networked Control Systems (NCS) facilitate the coordination of distributed agents, such as autonomous vehicle fleets or smart grids, through wireless communication. However, these channels are often imperfect, leading to packet drops that disrupt the control loop. Traditional control theories often assume a known mathematical model of the system, which is rarely available in practice. This research addresses the dual challenge of learning the system model while maintaining stable control under random packet loss.

Problem Formulation

The system is modeled as a discrete-time linear system where the control signal $u_t$ is transmitted over an unreliable channel.

Block diagram of a networked control system (NCS) with an unreliable communication channel between the controller and the plant.

The dynamics are governed by: $$x_{t+1} = Ax_t + \nu_t Bu_t + w_t$$ where $x_t$ is the state, $u_t$ is the control input, and $w_t$ is Gaussian noise. The term $\nu_t \in \{0, 1\}$ is a Bernoulli random variable representing packet success (1) or loss (0) with probability $q$. The goal is to minimize the cumulative cost (Bayesian regret) relative to an optimal controller that knows the matrices $A$ and $B$.

Methodology

The proposed approach utilizes Thompson Sampling with Dynamic Episodes (TSDE). Thompson Sampling balances exploration and exploitation by sampling a model from a posterior distribution and acting optimally according to that sample.

Key features of the algorithm include:

  • Bayesian Updates: The controller maintains a belief distribution over the unknown parameters $(A, B)$, updated as new state-action pairs are observed.
  • Dynamic Episodes: To ensure stability and computational efficiency, new control policies are only computed at the start of an episode. Episodes are triggered by time duration or when the "information gain" (measured by the determinant of the covariance matrix) exceeds a threshold.
  • Modified Riccati Equations: The optimal control law for a sampled model is derived by solving a modified Riccati equation that explicitly incorporates the packet success probability $q$.

Theoretical Results

The primary contribution is the derivation of a rigorous upper bound on the Bayesian regret. The analysis shows: $$\mathcal{R}(T; \text{TSDE}) \leq \tilde{\mathcal{O}}(\sigma_w^2(n + m)\sqrt{nT})$$ where $n$ and $m$ are the dimensions of the state and control input, respectively, and $T$ is the time horizon. This $\sqrt{T}$ growth rate is optimal for online learning, indicating that the learner efficiently converges to the true system dynamics.

A crucial insight is the stability condition $\delta^q \sigma^{1-q} < 1$, which ensures the system remains stable on average during the learning process despite intermittent control failures.

Conclusion

This work demonstrates that Thompson Sampling is a robust strategy for networked control of unknown systems. Remarkably, the presence of packet loss does not worsen the asymptotic learning rate compared to perfectly connected systems. Future research will focus on scenarios with unknown network statistics, non-linear dynamics, and unknown cost functions.

Summary updated

BibTeX
@inproceedings{sayedana2022thompson,
  author = {Borna Sayedana and Mohammad Afshari and Peter E. Caines and Aditya Mahajan},
  title = {{Thompson-Sampling Based Reinforcement Learning for Networked Control of Unknown Linear Systems}},
  booktitle = {CDC},
  year = {2022},
  doi = {10.1109/cdc51059.2022.9992565},
}
Figure