Learning Linear-Quadratic Regulators Efficiently with only $\sqrt{T}$ Regret
Alon Cohen, Tomer Koren, Yishay Mansour
Introduction
Optimal control theory dates back to the 1950s, and has been applied successfully to numerous real-world engineering problems (e.g., Bermúdez and Martinez, 1994; Chen and Islam, 2005; Lenhart and Workman, 2007; Geering, 2007). Classical results in control theory pertain to asymptotic convergence and stability of dynamical systems, and recently, there has been a renewed interest in such problems from a learning-theoretic perspective with a focus on finite-time convergence guarantees and computational tractability.
Perhaps the most well-studied model in optimal control is Linear-Quadratic (LQ) control. In this model, both the state and the action are real-valued vectors. The dynamics of the environment are linear in both the state and action, and are perturbed by Gaussian noise; the cost is quadratic in the state and action vectors. When the costs and dynamics are known, the optimal control policy, which minimizes the steady-state cost, selects its actions as a linear function of the state vector, and can be derived by solving the algebraic Ricatti equations (e.g., Bertsekas et al., 2005).
Among the most challenging problems in LQ control is that of adaptive control: regulating a system with parameters which are initially unknown and have to be learned while incurring the associated costs. This problem is exceptionally challenging since the system might become unstable. Specifically, the controller must control the magnitude of the state vectors; otherwise, its cost might grow arbitrarily large.
Abbasi-Yadkori and Szepesvári (2011) were the first to address the adaptive control problem from a learning-theoretic perspective. In their setting, there is a learning agent who knows the quadratic costs, yet has no knowledge regarding the dynamics of the system. The agent acts for rounds; at each round she observes the current state then chooses an action. Her goal is to minimize her regret, defined as the difference between her total cost and times the steady-state cost of the optimal policy—one that is computed using complete knowledge of the dynamics.
Abbasi-Yadkori and Szepesvári (2011) gave -type regret bounds for LQ control where the dependency on the dimensionality is exponential, which was later improved by Ibrahimi et al. (2012) to a polynomial dependence. However, the algorithms given in these works are not computationally efficient and require solving a complex non-convex optimization problem at each step. Developing an efficient algorithm with regret has been a long standing open problem. Recently, Dean et al. (2018) proposed a computationally-efficient algorithm attaining an regret bound, and stated as an open problem providing an regret efficient algorithm.
In this paper, we give the first computationally-efficient algorithm that attains regret for learning LQ systems, thus resolving the open problem of Abbasi-Yadkori and Szepesvári (2011) and Dean et al. (2018). The key to the efficiency of our algorithm is in reformulating the LQ control problem as a convex semi-definite program. Our algorithm solves a sequence of semi-definite relaxations of the infinite horizon LQ problem, the solutions of which are used to compute “optimistic” policies for the underlying unknown LQ system. As time progresses and the algorithm receives more samples from the system, these relaxations become tighter and serve as a better approximation of the actual LQ system. In this context, an optimistic policy is one that balances between exploration and exploitation; that is, between myopically utilizing its current information about the system parameters versus collecting new samples in order to obtain better estimates for subsequent predictions.
The techniques used in Abbasi-Yadkori and Szepesvári (2011); Ibrahimi et al. (2012) as well as those in this paper, draw inspiration from the UCRL algorithm (Jaksch et al., 2010) for learning in unknown Markov Decision Processes (MDPs). The main methodology is that of “optimism in the face of uncertainty” that has been highly influential in the reinforcement learning literature (Lai and Robbins, 1985; Brafman and Tennenholtz, 2002).
Over the years, techniques from reinforcement learning have been applied extensively in control theory. In particular, many recent works were published on the topic of learning LQ systems; these are Abbasi-Yadkori and Szepesvári (2011); Ibrahimi et al. (2012); Faradonbeh et al. (2017); Abbasi-Yadkori et al. (2018); Arora et al. (2018); Fazel et al. (2018); Malik et al. (2018) to name a few.
It is also worth noting an orthogonal line of works that attempts to adaptively control LQ systems using Thompson sampling, most notably Abeille and Lazaric (2017); Ouyang et al. (2017); Abeille and Lazaric (2018). Unfortunately, these works are also concerned with the statistical aspects of the problem, and none of them present computationally-efficient algorithms.
Preliminaries
The following notation will be used throughout the paper. We use to denote the operator norm, that is, is the maximum singular value of a matrix , and to denote the trace norm, . The notation refers to the spectral radius of a matrix , i.e., is the largest absolute value of its eigenvalues.Note that for a non-symmetric matrix (as would often be the case in the sequel), the spectral radius can be very different from the operator norm of . In particular, it could be the case that yet . Finally, we use the to denote the entry-wise dot product between matrices, namely .
1 Problem Setting and Background
Furthermore, the optimal steady-state cost equals .
Problem definition.
We henceforth consider a learning setting in which the learner is uninformed about the dynamics of the system. Namely, the matrices and in Eq. 1 are fixed but unknown to the learner. For simplicity, we assume that the cost matrices and are fixed and known; a straightforward yet technical adaptation of our approach can handle uncertainties in these matrices as well.
A learning algorithm is a mapping from the current state and previous observations to an action at time . An algorithm is measured by its -round regret, defined as the difference between its total cost over rounds and times the steady-state cost of the optimal policy which knows both and . That is,
where are the actions chosen by the algorithm and are the resulting states.
Our assumptions.
We make the following assumptions about the LQ system (1):
there are known positive constants such that
Assumption (i) is rather mild and only requires having upper and lower bounds on the unknown system parameters. We remark that the assumption is made only for simplicity, and in fact, our analysis only requires upper and lower bounds on the eigenvalues of . Assumption (ii), which has already appeared in the context of learning in LQRs (Dean et al., 2018), is also not very restrictive. In realistic systems, it is reasonable that one knows how to “reset” the dynamics and prevent them from reaching unbounded states. Further, in many cases a stabilizing policy can be found efficiently (Dean et al., 2017).
2 SDP Formulation of LQR
A key step in our approach towards the design of an efficient learning algorithm is in reformulating the planning problem in LQRs as a convex optimization problem. To this end, we make use of a semidefinite formulation introduced in Cohen et al. (2018) that would allow us to find the optimal cost of the LQ system (1):
Here, is an PSD matrix, with , that has the following block structure:
Let be any feasible solution to the SDP (4), and let . Then the policy is stable for the LQR (1), and it holds that . In particular, is also feasible for the SDP and its cost is at most that of .
3 Strong Stability
The quadratic cost function is unbounded. Indeed, it might be that the norms of the state vectors grow exponentially fast resulting in poor regret for the learner.
To alleviate this issue we rely on the notion of a strongly-stable policy, introduced by Cohen et al. (2018). Intuitively, strongly-stable policies are ones in which the norms of the state vectors remain controlled.
A matrix is -strongly stable (for and ) if there exists matrices and such that , with and .
A policy for the linear system (1) is -strongly stable (for and ) if and the matrix is -strongly stable.
We note that, in particular, any stable policy is in fact -strongly stable for some (see Cohen et al., 2018 for a proof). Our analysis requires a stronger notion that pertains to the stability of a sequence of policies, also borrowed from Cohen et al. (2018).
A sequence of policies for the linear dynamics in Eq. 1 is -strongly stable (for and ) if there exist matrices and such that for all , with the following properties:
and ;
and with ;
For a sequentially strongly stable sequence of policies one can show that the expected magnitude of the state vectors remains controlled; for completeness, we include a proof in Section A.3.
Let be a sequence of states starting from a deterministic state , and generated by the dynamics in Eq. 1 following a -strongly stable sequence of policies . Then, for all we have
Efficient Algorithm for Learning in LQRs
In this section we describe our efficient online algorithm for learning in LQRs; see pseudo-code in Algorithm 1. The algorithm receives as input the parameters , , and , further requires an initial estimate that approximates the true parameters within an error . As we later show, this estimate only needs to be accurate to within of the true parameters, and we can make sure this is satisfied by employing a known stabilizing policy for exploration over rounds.
We next describe in detail the main steps of the algorithm. The algorithm maintains estimates of the true parameters that improve from round to round, as well as a PD matrix that represents a confidence ellipsoid around the current estimates . The algorithm proceeds in epochs, each starting whenever the volume of the ellipsoid is halved and consists of the following steps.
The first step of each epoch is standard: we employ a least-squares estimator (in 7) to construct a new approximation of the parameters based on the observations collected so far. The confidence bounds of this estimator are given in terms of the covariance matrix of the vectors .
2 Computing a policy via an SDP
The main step of the algorithm takes place in line 8 of Algorithm 1, where we form a “relaxed” SDP program based on the current estimates and the corresponding confidence matrix , and solve it in order to compute a stable policy for the underlying LQR system. The idea here is to adapt the SDP formulation (4) of the LQR system, whose description needs the true underlying parameters, to an SDP program that only relies on estimates of the true parameters and accounts for the uncertainty associated with them. Once the relaxed SDP is solved, extracting a (deterministic) policy from the solution is done in the same way as in the case of the exact SDP (4).
The relaxed SDP incorporates a relaxed form of the inequality constraint in (4); as we show in the analysis, this program is a relaxation of the “exact” SDP (4) provided that the estimates are sufficiently accurate (this is one place where having fairly accurate initial estimates as input to the algorithm is useful). In other words, the relaxed SDP always underestimates the steady-state cost of the optimal policy of the LQR (1). In this sense, Algorithm 1 is “optimistic in the face of uncertainty” (e.g., Brafman and Tennenholtz, 2002; Jaksch et al., 2010).
3 Exploring, exploiting, and updating confidence
After retrieving a policy , the algorithm takes action: it computes , which is the action recommended by policy at state , and then plays and updates the confidence matrix with the new observations at step . The policy therefore serves and balances two goals—exploitation and exploration—as it is used both as a “best guess” to the optimal policy (based on past observations), as well as means to collect new samples and obtain better estimates of the system parameters in subsequent steps of the algorithm.
Overview of Analysis
We now formally state our main result: a high-probability regret bound for the efficient algorithm given in Algorithm 1.
Suppose that Algorithm 1 is initialized so that the initial estimation error satisfies
Furthermore, the run-time per round of the procedure is polynomial in these factors.
At first glance it may appear that the regret bound of Theorem 4 becomes worse as the noise variance becomes smaller. This seems highly counter-intuitive and, indeed, is not true in general. This is because when is small we also expect the bound on the optimal loss to be small. In particular, suppose that is -strongly stable; then, one can show that . Plugging this as into the bound of Theorem 4 reveals a linear dependence in .
In Section 6 we show how to set up the initial conditions of Theorem 4; we utilize a stable (but otherwise arbitrary) policy given as input and show the following.
rounds; thereafter, we run Algorithm 1. Then, the initial conditions of Theorem 4 hold by the end of the warm-up phase, and with probability at least the regret of the overall procedure is bounded as
Furthermore, the runtime per round of the procedure is polynomial in these factors and in .
In the remainder of the section, we give an overview of the main steps in the analysis, delegating the technical proofs to later sections and appendices.
Algorithm 1 repeatedly computes least-square estimates of . The next theorem, similar to one shown in Abbasi-Yadkori and Szepesvári (2011), yields a high-probability bound on the error of this least-squares estimate.
Let . For any , with probability at least ,
In particular, when and , one has .
We see that the boundness of the states (specifically, the fact that they do not grow exponentially with ) is crucial for the estimation. Below, we will show how the policies computed by the algorithm ensure this condition.
The proof of Lemma 6 is based on a self-normalized martingale concentration inequality due to Abbasi-Yadkori et al. (2011); for completeness, we include a proof in Section B.3.
2 Policy computation via a relaxed SDP
Next, assume that the estimates of computed in the previous step are indeed such that the error has for the confidence matrix .
Consider the relaxed SDP program solved by the algorithm in 8. The following lemma follows from the optimality conditions of the SDP and will be used to extract a stable policy from the SDP solution, and to relate the cost of actions taken by this policy to properties of the SDP solutions. This lemma, together with Lemma 9 below, summarize the key consequences of the relaxed SDP formulation that central to our approach; we elaborate more on the relaxed SDP and its properties in Section 5 below.
Assume the conditions of Theorem 4, and further that . Then the SDP solved in 8 of the algorithm is a relaxation of the exact SDP (4), and we have:
the value of the optimal solution is at most which implies ;
is invertible and so the policy is well defined;
there exists a positive semi-definite matrix with such that
The positive definite matrix in the above lemma is in fact the dual variable corresponding to the optimal solution of the (primal) SDP, and the equality involving follows from the complementary slackness conditions of the SDP. This equality can be viewed as an approximate version of the Ricatti equation that applies to policies computed based on estimates of the system parameters (as opposed to the “exact” Ricatti equation, which is relevant only for optimal policies of the actual LQR, that can only be computed based on the true parameters).
3 Boundness of states
Next, we show that the policies computed by the algorithm keep the underlying system stable, and that state vectors visited by the algorithm are uniformly bounded with high probability. To this end, consider the following sequence of “good events” , where for each ,
That is, is the event on which everything worked as planned up to round : our estimations were sufficiently accurate and the norms of were properly bounded. We show that the events hold with high probability; this would ensure that is appropriately bounded.
Under the conditions of Theorem 4, the event occurs with probability .
4 Sequential strong stability
Crucially, Lemma 8 above holds true since the sequence of policies extracted by Algorithm 1 from repeated solutions to the relaxed SDP is sequentially strongly stable.
Assume the conditions of Theorem 4, and further that for any , for all . Then the sequence of policies is -strongly stable for and .
This follows from a stability property of solutions to the relaxed SDP: we show that as the relaxed constraint becomes tighter, the optimal solutions of the SDP do not change by much (see Section 5). This, in turn, can be used to show that the policies extracted from these solutions are not drastically different from each other, and so the sequence of policies generated by the algorithm keeps the system stable. Lemma 8 is then implied via a simple inductive argument: suppose that the state-vector norms are bounded up until round ; then the sequence of policies generated until time is strongly-stable thus keeping the norms of future states bounded with high probability.
We remark that stability of the individual policies does not suffice, and the stronger sequential strong stability condition is in fact required for our analysis. Indeed, even if we guarantee the (non-sequential) strong stability of each individual policy, the system’s state might blow up exponentially in the number of times the algorithm switches between policies: after switching to a new policy there is an initial burn-in period in which the norm of the state can increase by a constant factor (and thereafter stabilize). Thus, even if we ensure that there are as few as policy switches, the states might become polynomially large in and deteriorate our regret guarantee. Sequential strong stability wards off against such a blow up in the magnitude of states.
5 Regret analysis
To bound the random variable , we appeal to Lemma 7 that can be used to relate the instantaneous regret of the algorithm to properties of the SDP solutions it computes. Conditioned on the good event , the boundness of the visited states ensures that the confidence matrix is bounded as the lemma requires. The lemma then implies that
On the other hand, as and (which is also a consequence of Lemma 7), we have
Combining the inequalities and summing over , gives via some algebraic manipulations the following bound:
We now proceed to bounding each of the sums in the above. The first sum above telescopes over consecutive rounds in which Algorithm 1 uses the same policy and thus the matrix remains unchanged. Therefore, the number of remaining terms, each of which is bounded by a constant, is exactly the number of times that Algorithm 1 computes a new policy. We show that when the good events occur, the number of policy switches is at most , which gives rise to the following.
The next two terms in the bound above are sums of martingale difference sequences, as the noise terms are i.i.d., and each is independent of , and . Using standard concentration arguments, we show that both are bounded by with high probability.
With probability at least , it holds that
With probability at least , it holds that
Finally, using the elementary identity for and any vector such that , we show that the final sum in the bound telescopes and can be bounded in terms of ; in turn, the latter quantity can be bounded by using the fact that the are uniformly bounded on the event . This argument results with:
Our main theorem now follows by plugging-in the bounds into Eq. 5, using a union bound to bound the failure probability, and applying some algebraic simplification.
The relaxed SDP program
In this section we present useful properties of the relaxed SDP program repeatedly solved by Algorithm 1, which are used to prove Lemmas 7 and 9 discussed above and are central to our development.
The relaxed SDP program takes the following form. Let be a fixed parameter, and assume , and are matrices such that the error matrix satisfies .
For this section, the dual program to (6) will be useful:
We now aim at proving Lemma 7 which states that SDP (6) is a relaxation of the original exact SDP (4). It follows directly from Lemmas 15 and 16 given below; see Section B.4. First, we present a matrix-perturbation lemma also proven in Section C.1.
Let and be matrices of matching sizes and assume for some matrix . Then for any and ,
Assume . Then the optimal value of SDP (6) is at most . Consequently, for a primal-dual optimal solution , we have and .
It suffices to show that , the solution to the original SDP (4), is feasible for the relaxed SDP. Indeed, , and combining Eqs. 4 and 14 (note that implies that ) yields Eq. 6 due to
The next lemma shows how to extract a policy from the relaxed SDP. Somewhat surprisingly, this policy is deterministic and has the linear form , as is the case in the original SDP.
Assume that and Let and be primal and dual optimal solutions to the relaxed SDP. Then is invertible, and for we have
Recall the complementary-slackness conditions of the SDP, that read . We now show that and as this would entail that
Thus the span of is the span of whence as required.
To that end, we begin by stating the following basic fact about matrices: For any two -dimensional symmetric matrices, , that satisfy , it must be that . Then it suffices to show and . Indeed, using Lemma 15,
as and . Plugging Eq. 8 into Eq. 6 and using , shows that . Moreover, is the difference of
which is of rank in light of Eq. 9 and since , and which is of rank at most . Therefore, as required. ∎
We continue with proving the main result of this section that would imply Lemma 9 (see Section B.6). We show that the sequence of policies generated by solving a certain series of relaxed SDPs is strongly-stable.
Let be optimal solutions to the relaxed dual SDP; each associated with and respectively. Let , , and suppose that and for all . Moreover, let be the policy associated with (as in Lemma 16). Then the sequence is -strongly stable.
The proof is given by combining the following two lemmas. Indeed, in Section C.2 we show that each policy is strongly stable.
is -strongly stable for where and . Moreover, .
Furthermore, having established strong stability, the next lemma shows that is “close” to (see Section C.3 for a proof).
for all .
We show that the conditions for sequential strong-stability hold. Notice that not only does Lemma 18 show that for all , is -strongly stable, it also gives us uniform upper and lower bounds on as (Lemma 15), and . Together with , the lemma implies
Thus which provides sequential strong-stability. ∎
Warm-up Using a Stable Policy
In this section we give a simple warm-up scheme that can be used in an initial exploration phase, after which the conditions of our main algorithm are met. Here we assume that we are given a policy which is known to be -strongly stable for the LQR (1).
Starting from and over rounds, the warm-up procedure samples actions independently; this is summarized in Algorithm 2.
Let be the empirical covariance matrix corresponding to the samples collected during warm-up, where for all . The main result of this section gives upper and lower bounds on the matrix .
and for and initial estimates \mathopen{}\big{(}A_{0}\,B_{0}\big{)}=\sum_{t=1}^{T_{0}-1}x_{t+1}z_{t}^{\mkern-1.5mu\scriptstyle\mathsf{T}}V^{-1} we have
With Theorem 20 in hand, the proof of Corollary 5 readily follows; see details in Section B.2. The proof of Theorem 20 itself is based on adaptations of techniques developed in Simchowitz et al. (2018) in the context of identification of Linear Dynamical Systems, and is given in Section D.1.
We thank Yoram Singer and Kunal Talwar for many helpful discussions. YM was supported in part by a grant from the Israel Science Foundation (ISF). AC thanks Lotem Peled for her assistance and support.
References
Appendix A Preliminaries
First, we state a variant of the Hanson-Wright inequality (Hanson and Wright, 1971; Wright, 1973), which can be found in Hsu et al. (2012).
The following is Azuma’s inequality for concentration of martingales with bounded differences.
Let be a martingale difference sequence such that for all . Then,
The following is is a self-normalized concentration inequality for vector-valued martingales useful for guaranteeing generalization in linear regression.
Let be a filtration and let be a real-valued martingale difference sequence adapted to such that is -sub-Gaussian conditioned on , that is,
Then, for any we have with probability at least that
A.2 Technical Lemmas
Let and be matrices of matching sizes and assume for some matrix . Then for any and ,
Note that . Let . We have
this can be seen by expanding the inequality Setting and using our assumption that yields
This, together with , proves one direction of the inequality. For the other direction, a similar argument shows
Let be symmetric matrices of equal sizes and a -strongly stable matrix such that . Then .
The inequality implies there exists a matrix such that , and . As is stable, the equation has a unique solution that satisfies:
Let us proceed in bounding the norm of the right-hand side of this inequality. As is -strongly stable, with and . Therefore,
For and a vector such that ,
Observe that by the determinant lemma, and so
The proof is finished using the concavity of and the fact that :
If , then for any vector one has
Note that the claimed inequality is equivalent to , which in turn is equivalent to . The latter is true because , and so the product of the eigenvalues of (all of which are ) is no smaller than the maximal eigenvalue of . ∎
A.3 Proof of Lemma 3
Following the sequence induces updates . Thus
Since the sequence is sequential strong stable, there exist matrices and such that with the properties specified in Definition 2. Thus, we have for all that
As , the same holds for .
Appendix B Proofs of Section 4
For the proofs in this section, we require the following two simple lemmas.
Assume , and . Let . Then
Assume that for , and , . Also suppose that . Then .
To bound the random variable , we appeal to Lemma 7. The lemma requires that, at round , the confidence matrix is well-conditioned. Indeed, assuming holds, then on the one hand for , and on the other hand, thanks to Lemma 29. Now, for any time , let denote the last time before round in which Algorithm 1 updated its policy, so that , , and for all . Lemma 7 then implies
On the other hand, as and , we have
Thus, given that holds,
and since Algorithm 1 maintains that , we have as a result of Lemma 27. This, along with the fact that on (recall Lemma 7), yields
The theorem now follows by plugging in the bounds of Lemmas 10, 11, 12 and 13, using a union bound to bound the failure probability, and applying some algebraic simplifications. ∎
B.2 Proof of Corollary 5
First, let us show that if Theorem 20 holds then the initial conditions of Theorem 4 are satisfied. Indeed, using gives
which, by our choice of , is at most . This means that the conditions of Theorem 4 hold. Now, by a union bound, with probability at least Theorems 20, 4 and 6 hold, each with probability at least . Then the regret of this procedure is
and regret on the remaining rounds is bounded by virtue of Theorem 4. ∎
B.3 Proof of Lemma 6
Denote and . Note that the solution to the least-square estimate is given as:
Plugging into Eq. 10 and denoting , we have
To get the result we need to bound the first term. Denote for all . For each , applying Theorem 23 yields that, with probability at least ,
By additionally applying a union bound, the above holds with probability at least for all simultaneously, and then
Plugging this to the inequality above, and using , gives the main statement of the lemma.
To show under the conditions of Algorithm 1, note that by assumption. Thus it remains to prove \log\mathopen{}\big{(}\smash{\tfrac{d}{\delta}}\smash{\tfrac{\det(V_{t})}{\det(V_{1})}}\big{)}\leq\smash{\tfrac{\beta}{8\sigma^{2}d}}. Indeed, in view of Lemma 28 and the definition of :
B.4 Proof of Lemma 7
To prove the lemma, we aim to apply Lemmas 15 and 16.
First, we show that . Indeed, assuming and implies that
Consequently, Lemma 15 gives item (i) as well as that the dual solution of the SDP, , is bounded as .
Next, note that as well as where we have used the fact that . This gives . Thus we apply Lemma 16 that shows item (ii).
To show item (iii), we have that is positive semi-definite immediately from the dual formulation of the SDP (7). Moreover, notice that Lemma 16 also gives
which we link with the true parameters by combining the equation with Lemma 24. ∎
B.5 Proof of Lemma 8
With probability at least , Lemma 6 holds. Also, for any with probability at least , by the Hanson-Wright concentration inequality (Theorem 21),
as . Thus, via a union bound, both statements hold simultaneously with probability .
Next, we show by induction on that and . This will particularly ensure that the policies generated by Algorithm 1 are sequentially strongly-stable which will give us for all .
For the base case, , we have by assumption
Now, assume that for all , and . We show that and .
To that end we first show that for all . Indeed, by , Lemma 9 implies that policies generated by Algorithm 1 up to round form a -strongly stable sequence for and . Consequently, Lemma 3 yields for all
In particular, in view of Lemma 29. This, along with assuming , immediately gives
Finally, as we’ve shown , Lemma 6 additionally provides . ∎
B.6 Proof of Lemma 9
The proof follows by applying Theorem 17 over the sequence of policies generated by Algorithm 1. To that end, define as the last round before in which Algorithm 1 updates its policy. Note that each policy is associated with and .
Thus, to apply Theorem 17 it suffice to show that and for all rounds . Indeed, as we assume and , we have
Furthermore, using , we have where as required. ∎
B.7 Proof of Lemma 10
Let the last round such that holds. Let be the time instances in which Algorithm 1 changes policy up to round , and let , . By Lemma 28, as holds,
Since and on , we can bound
B.8 Proof of Lemma 11
The lemma would follow directly from the following.
Let . Let be a filtration. Let be i.i.d Gaussian random variables. Let be a sequence of vectors such that is -measurable and almost surely for each . Then with probability ,
Denote . Note that, conditioned on the randomness before round , each is a zero-mean Gaussian random variable. Thus we can write , where is the variance of given , and .
Let . Using the observation above, we apply Theorem 23 with to obtain that with probability
We now proceed by upper bounding . The variance of given is:
Set . Plugging the bound above into Eq. 11 and rearranging gets us this lemma’s statement. ∎
B.9 Proof of Lemma 12
The lemma is an immediate consequence of the following.
Let be a filtration, and let be a sequence of symmetric positive semi-definite matrices such that is -measurable and almost surely for each . Further, let be a sequence of i.i.d. Gaussian random variables. Then for and for any , it holds with probability at least that
Define the random variables for all . Observe that
with probability at least . Since , this implies that for all with probability at least , which in turn means that for all with the same probability.
B.10 Proof of Lemma 13
Note that for any we have on that
using as , and . Let the last round such that holds, then
Appendix C Proofs of Section 5
C.2 Proof of Lemma 18
Now, recall that, by assumption, . Therefore, by Lemma 14,
Hence, as and ,
In particular, this shows that . Further, using again the fact that (Lemma 15) to bound and rearranging yields
Letting and L_{t}=P_{t}^{-1/2}\mathopen{}\big{(}A_{\star}+B_{\star}K_{t}\big{)}P_{t}^{1/2}, we have established that , as well as and . To bound the norm of , observe that Eq. 13 implies hence
As , this shows that is -strongly stable. ∎
C.3 Proof of Lemma 19
It suffices to show that for all .
For , let denote the optimal policy corresponding to . As is the solution to the Riccati equation:
On the other hand, applying Lemma 24 over Eq. 7 gives
and, as is a (strongly) stable policy, Lemma 25 implies .
For the converse inequality, Eq. 2 implies
On the other hand, combining Lemmas 16 and 24 yields
Subtracting the two matrix inequalities gets us
Moreover, provides , thus . Finally, by Lemma 15 and the lower bound on ,
where we have used and . ∎
Appendix D Proofs of Section 6
Assume . Let . With probability at least , for all it holds that
We begin by upper bounding the norm of using the strong stability of . Let where . We have,
and, as is independent of , we can think about the state transitions as if they are done according the another LQR system that is exactly the same as the original one except that the noise term is now instead of . Thus, applying Lemma 3:
Next, is a Gaussian random variable with zero mean and covariance . Using the Hanson-Wright inequality (Theorem 21) and a union bound, with probability , for all ,
For the lower bound, we also require the next lemma.
The proof relies on a couple of technical results. In what follows, we let be the filtration with respect to which is adapted.
The lemma now follows by taking expectations. ∎
Now, by definition of , . Therefore, with probability at least ,
We are now ready to prove the main theorem of this section.
We first prove the upper bound. Let where . Then,
and, as and :
Now, using a union bound, with probability we have for all by Lemma 32
and by the Hanson-Wright inequality for all . Therefore,
Using the definition of , this entails that for all
Next, let be the eigenvector corresponding to the minimum eigenvalue of , and let be such that . Then,
Rearranging gets us as required. Note that , and by standard bounds on the size of -nets, . That is, for to be larger that it suffices to have .
To show that a bound on the estimation error of \mathopen{}\big{(}A_{0}\,B_{0}\big{)}, set , and
Applying Lemma 6 with these parameters and \mathopen{}\big{(}A_{0}\;B_{0}\big{)}=0, shows that with probability