Minimax Regret Bounds for Reinforcement Learning
Mohammad Gheshlaghi Azar, Ian Osband, Rémi Munos
Introduction
We consider the reinforcement learning (RL) problem of an agent interacting with an environment in order to maximize its cumulative rewards through time (Burnetas & Katehakis, 1997; Sutton & Barto, 1998). We model the environment as a Markov decision process (MDP) whose transition dynamics are unknown from the agent. As the agent interacts with the environment it observes the states, actions and rewards generated by the system dynamics. This leads to a fundamental trade off: should the agent explore poorly-understood states and actions to gain information and improve future performance, or exploit its knowledge to optimize short-run rewards.
The most common approach to this learning problem is to separate the process of estimation and optimization. In this paradigm, point estimates of the unknown quantities are used in place of the unknown parameters and a plan is made with respect to these estimates. Naive optimization with respect to these point estimates can lead to premature exploitation and so may never learn the optimal policy. Dithering approaches to exploration (e.g., -greedy) address this failing through random action selection. However, as this exploration is not directed the resultant algorithms may take exponentially long to learn (Kearns & Singh, 2002). In order to learn efficiently it is necessary that the agent prioritizes potentially informative states and actions. To do this, it is important that the agent maintains some notion of its own uncertainty. In some sense, given any prior belief, the optimal solution to this exploration/exploitation dilemma is given by the dynamic programming in the extended Bayesian belief state (Bertsekas, 2007). However, the computational demands of this method become intractable for even small problems (Guez et al., 2013) while finite approximations can be arbitrarily poor (Munos, 2014).
To combat these failings, the majority of provably efficient learning algorithms employ a heuristic principle known as optimism in the face of uncertainty (OFU). In these algorithms, each state and action is afforded some “optimism” such that its imagined value is as high as statistically plausible. The agent then chooses a policy under this optimistic view of the world. This allows for efficient exploration since poorly-understood states and actions are afforded higher optimistic bonus. As the agent resolves its uncertainty, the effects of optimism will reduce and the agent’s policy will approach optimality. Almost all reinforcement learning algorithms with polynomial bounds on sample complexity employ optimism to guide exploration (Kearns & Singh, 2002; Brafman & Tennenholtz, 2002; Strehl et al., 2006; Dann et al., 2017).
An alternative principle motivated by the Thompson sampling (Thompson, 1933) has emerged as a practical competitor to optimism. The algorithm posterior sampling reinforcement learning (PSRL) maintains a posterior distribution for MDPs and, at each episode of interaction, follows a policy which is optimal for a single random sample (Strens, 2000).
Previous works have argue for the potential benefits of such PSRL methods over existing optimistic approaches (Osband et al., 2013; Osband & Van Roy, 2016b) but they come with guarantees on the Bayesian regret only.
However a very recent work Agrawal & Jia (2017) have shown that an optimistic version of posterior sampling (using a max over several samples) achieves a frequentist regret bound (for large ) in the more general setting of weakly communicating MDPs.
In this paper we present a conceptually simple and computationally efficient approach to optimistic reinforcement learning in finite-horizon MDPs and report results for the frequentist regret. Our algorithm, upper confidence bound value iteration (UCBVI) is similar to model-based interval estimation (MBIE-EB) (Strehl & Littman, 2005) with a delicate alteration to the form of the “exploration bonus”. In particular UCBVI replaces the universal scalar of the bonus in MBIE-EB with the empirical variance of the next-state value function of each state-action pair. This alteration is essential to improve the regret bound from to .
Our key contribution is to establish a high probability regret bound where is the number of states, is the number of actions, is the episode length and is the total number of time-steps (and where ignores logarithmic factors). Importantly, for and this bound is , which matches the established lower bound for this problem, up to logarithmic factors (Osband & Van Roy, 2016a).In fact the lower bound of (Jaksch et al., 2010) is for the more general setting of the weakly communicating MDPs and it doesn’t directly apply to our setting. But a similar approach can be used to prove a lower bound of same order for the finite-horizon MDPs, as it is already used in (Osband & Van Roy, 2016a). This positive result is the first of its kind and helps to address an ongoing question about where the fundamental lower bounds lie for reinforcement learning in finite horizon MDPs (Bartlett & Tewari, 2009; Dann & Brunskill, 2015; Osband & Van Roy, 2016a). Our refined analysis contains two key ingredients:
We use careful application of Bernstein and Freedman inequalities (Bernstein, 1927; Freedman, 1975) to the concentration of the optimal value function directly, rather than building confidence sets for the transitions probabilities and rewards, like in UCRL2 (Jaksch et al., 2010) and UCFH (Dann & Brunskill, 2015).
We use empirical-variance exploration bonuses based on Bernstein’s inequality, which together with a recursive Bellman-type Law of Total Variance (LTV) provide tight bounds on the expected sum of the variances of the value estimates, in a similar spirit to the analysis from Azar et al. (2013); Lattimore & Hutter (2012).
At a high level, this work addresses the noted shortcomings of existing RL algorithms (Bartlett & Tewari, 2009; Jaksch et al., 2010; Osband & Van Roy, 2016b), in terms of dependency on and . We demonstrates that it is possible to design a simple and computationally efficient optimistic algorithm that simultaneously address both the loose scaling in and to obtain the first regret bounds that match the lower bounds as becomes large.
We should be careful to mention the current limitations of our work, each of which may provide fruitful ground for future research. First, we study the setting of episodic, finite horizon MDPs and not the more general setting of weakly communicating systems (Bartlett & Tewari, 2009; Jaksch et al., 2010). Also we assume that the horizon length is known to the learner. Further, our bounds only improve over previous scaling for .
We hope that this work will serve to elucidate several of the existing shortcomings of exploration in the tabular setting and help further the direction of research towards provably optimal exploration in reinforcement learning.
Problem formulation
In this section, we briefly review some notation, as well as some standard concepts and definitions from the theory of Markov decision processes (MDPs).
We assume and are finite sets with cardinalities , , respectively. We also assume that the immediate reward is deterministic and belongs to the interval $[R_{\min},R_{\max}]$ simply rescale these bounds.
In this paper we focus on the setting where the reward function is known, but extending our algorithm to unknown stochastic rewards poses no real difficulty.
where is the control policy followed by the learner at episode . Thus the regret measures the expected loss of following the policy produced by the learner instead of the optimal policy. So the goal of learner is to follow a sequence of policies such that is as small as possible.
Upper confidence bound value iteration
In this section we introduce two variants of the algorithm that we investigate in this paper. We call the algorithm upper confidence bound value iteration (UCBVI). UCBVI is an extension of value iteration which guarantees that the resultant value function is a (high-probability) upper confidence bound (UCB) on the optimal value function. This algorithm is related to the model based interval estimation (MBIE-EB) algorithm (Strehl & Littman, 2008). Our key contribution is the precise design of the upper confidence sets, and the analysis which lead to tight regret bounds.
UCBVI, described in Algorithm 1, calls UCB-Q-values (Algorithm 2) which returns UCBs on the Q-values computed by value iteration using an empirical Bellman operator to which is added a confidence bonus bonus. We consider two variants of UCBVI depending on the structure of bonus, which we present in Algorithms 3 and 4.
The first of these UCBVI-CH is based upon Chernoff-Hoeffding’s concentration inequality, considers with . is a very simple bound which only assumes that values are bounded in . We will see in Theorem 1 that this very simple algorithm can already achieve a regret bound of , thus improving the best previously known regret bounds from a to a dependence. The intuition for this improved -dependence is that our algorithm (as well as our analysis) does not consider confidence sets on the transition dynamics like UCRL2 and UCFH do, but instead directly maintains confidence intervals on the optimal value function. This is crucial as, for any given , the transition dynamics are -dimensional whereas the Q-value function is one-dimensional.
However, the loose form of UCB given by UCBVI-CH does not look at the value function of the next state, and just consider it as being bounded in . However, much better bounds can be obtained by looking at the variance of the next state values. Our main result relies upon with , which we refer to as UCBVI-BF as it relies on Bernstein-Freedman’s concentration inequalities to build the confidence set. UCBVI-BF builds upon the intuition for UCBVI-CH but also incorporates a variance-dependent exploration bonus. This leads to tighter exploration bonuses and an improved regret bound of .
Compared to UCBVI-BF here we use a bonus built from the empirical variance of the estimated next values. The idea is that if we had knowledge of the optimal value , we could build tight confidence bounds using the variance of the optimal value function at the next state in place of the loose bound of . Since however is unknown, here we use as a surrogate the empirical variance of the estimated values. As more data is gathered, this variance estimate will converge to the variance of . Now we need to make sure our estimates are optimistic (i.e., that they upper bound ) at all times. This is achieved by adding an additional bonus (last term in ), which guarantees that we upper bound the variance of . Now, using an iterative -Bellman-type- Law of Total Variance, we have (see proof) that the sum of the next-state variances of (over time steps) (which is related to the sum of the exploration bonuses over steps) is bounded by the variance of the -steps return. Thus the size of the bonuses built by UCBVI-BF are constrained over the steps. And we prove that the sum of those bonuses do not grow linearly in but in only. This is the key for our improved dependence from to .
Main results
In this section we present the main results of the paper, which are upper bounds on the regret of UCBVI-CH and UCBVI-BF algorithms. We assume Assumption 1 holds.
Consider a parameter . Then the regret of UCBVI-CH is bounded w.p. at least , by
For and this bound translates to a regret bound of , where is the total number of time-steps at the end of episode .
Theorem 1 is significant in that, for large , it improves the regret dependence from to , compared to the best known bound of Jaksch et al. (2010). The main intuition for this improved -dependence is that we bound the estimation error of the next-state value function directly, instead of the transition probabilities.
More precisely, instead of bounding the estimation error by (as is done in Jaksch et al. (2010) for example), we bound instead (for which a bound with no dependence on can be achieved since is deterministic) and handle carefully the correction term .
Our second result, Theorem 2, demonstrates that we can improve upon the -dependence by using a more refined, Bernstein-Friedman-type, exploration bonus.
Consider a parameter . Then the regret of UCBVI-BF is bounded w.p. , by
We note that for and this bound translates to a regret bound of . This result is particularly significant since, for large enough (i.e., ), our bound is which matches the established lower bound of (Jaksch et al., 2010; Osband & Van Roy, 2016a) up to logarithmic factors.
The key insight is to apply concentration inequalities to bound the estimation errors and the exploration bonuses in terms of the variance of at the next state. We then use the fact that the sum of these variances is bounded by the variance of the return (see e.g., Munos & Moore, 1999; Azar et al., 2013; Lattimore & Hutter, 2012), which shows that the estimation errors accumulate as instead of linearly in , thus implying the improved -dependence.
Weakly communicating MDPs
In this short paper we focus on the setting of finite horizon MDPs. By comparison, previous optimistic approaches to exploration, such as UCRL2, provide bounds for the more general setting of weakly communicating MDPs (Jaksch et al., 2010; Bartlett & Tewari, 2009).
However, we believe that much of the insight from the UCBVI algorithm (and its analysis) will carry over to this more general setting using existing techniques such as ‘the doubling trick‘ (Jaksch et al., 2010).
Proof sketch
Here we provide the sketch proof of our results. The full proof is deferred to the appendix.
Let be the event under which all computed values are upper bounds on the optimal value function. Using backward induction on (and standard concentration inequalities) one can prove that holds with high probability (see Lem. 18 in the appendix). To simplify notations in this sketch of proof we will not make the numerical constants explicit, and instead we will denote by a numerical constant which can vary from line to line. The exact values of these constants are provided in the full proof. We will also make use of simplified notations, such as using to represent the logarithmic term .
The cumulative regret at episode is . Define . Under we have , so we now bound . Define and . Thus
The difficulty in bounding is that both and are random variables and are not independent (the value function computed at may depend on the samples collected from state ), thus a straightforward application of Chernoff-Hoeffding (CH) inequality does not work here. In Jaksch et al. (2010), this issue is addressed by bounding it by at the price of an additional .
The main contribution of our bound (which removes a factor compared to the previous bound of Jaksch et al. (2010)) is to handle this term more properly. Instead of directly bounding , we bound , using straightforward application of CH (which removes the factor since is deterministic), and deal with the correction term . We have
where is the estimation error of the optimal value function at the next state. Defining , we have
where .
where . Now considering only the such that , and since , then is bounded by
where \bar{\epsilon}_{k,h}\stackrel{{\scriptstyle\rm def}}{{=}}\sqrt{\frac{\square L}{n_{k,h}}}\Big{(}\sum_{y}P^{\pi_{k}}(y|x_{k,h})\frac{\widetilde{\Delta}_{k,h+1}(y)}{\sqrt{P^{\pi_{k}}(y|x_{k,h})}}-\frac{\widetilde{\delta}_{k,h+1}}{\sqrt{P^{\pi_{k}}(x_{k,h+1}|x_{k,h})}}\Big{)}.
The sum over the neglected such that contributes to an additional term
Neglecting this term (and the smaller order term ) for now (by the pigeon-hole principle we can prove that these terms contribute to the final regret by a constant at most ), we have
We now bound those 4 terms. It is easy to check that and are sums of martingale differences, which are bounded using Azuma’s inequality, and lead to a regret of without dependence on the size of state and action space. The leading terms in the regret bound comes from the sum of the exploration bonuses and the estimation errors .
Using CH, w.h.p. we have . Thus this bound on the estimation errors are of the same order as the exploration bonuses (which is the reason we choose those bonuses…).
Plugging Eq. 2 and Eq. 3 into Eq. 1 (and adding the smaller order term) we deduce
2 Sketch Proof of Theorem 2
The proof of Theorem 1 relied on proving by a straightforward induction over that hold with high probability. In the case of exploration bonuses defined by:
the backward induction over is not straightforward. Indeed, if the are upper bounds on , it is not necessarily the case that the empirical variance of are upper bound on the empirical variance of . However we can prove by (backward) induction over that is sufficiently close to to guarantee that the variance of those terms are sufficiently close to each other so that the additional bonus (additional bonus in Eq. 4) will make sure that is still an upper-bound on . More precisely, define the set of indices:
and the event . Our induction is the following:
Assume that holds. Then we prove that .
So in order to prove that all values computed by the algorithm are upper bounding , we just need to prove that under , we have , which is obtained by deriving the following regret bound on
Indeed, since is a decreasing sequence in , we have
Once we have proven that w.h.p., all computed values are upper bounds on (i.e. event ), then we prove that under , the following regret bound holds:
The proof of Eq. 5 relies on the same derivations as those used for proving Eq. 6. The only two differences being that (i) is replaced by , the number of times a state was reached at time , up to episode , and (ii) the additional factor which comes from the fact that at any episode, can only tick once, whereas the total number of transitions from during any episode can be as large as . The full proof of Eq. 5 will be given in details in the appendix. We now give a proof sketch of Eq. 6 under .
Similar steps used for proving Theorem 1 apply. The main difference compared to Theorem 1 is the bound on the sum of the exploration bonuses and the estimation errors (which we consider in Steps 3’ and 4’ below). This is where we can remove the factor. The use of the Bernstein inequality makes it possible to bound both of those terms in terms of the expected sum of variances (under the current policy at any episode ) of the next-state values (for that policy), and then using recursively the Law of Total Variance to conclude that this quantity is nothing but the variance of the returns. This step is detailed now. For simplicity of the exposition of this sketch we neglect second order terms.
where holds since under , and holds due to Chernoff Hoeffding.
(where ). Thus from the pigeon-hole principle, .
where is defined as an upper-bound on the pseudo regret: (an upper bound on the r.h.s. of Eq. 1).
Thus, using Eq. 8, Eq. 7 and the bounds on and , we deduce that
We now use Bernstein inequality to bound the estimation errors
From Eq. 1 we see that thus . This implies Eq. 6.
So the reason we are able to remove the factor from the regret bound comes from the fact that the sum, over steps, of the variances of the next state values (which define the amplitude of the confidence intervals) is at most bounded by the variance of the return. Intuitively this means that the size of the confidence intervals do not add up linearly over steps but grows as only. Although the sequence of estimation errors are not independent over time, we are able to demonstrate a concentration of measure phenomenon that shows that those estimation errors concentrate as if they were independent.
Conclusion
In this paper we refine the familiar concept of optimism in the face of uncertainty. Our key contribution is the design and analysis of the algorithm UCBVI-BF , which addresses two key shortcomings in existing algorithms for optimistic exploration in finite MDPs. First we apply a concentration to the value as a whole, rather than the transition estimates, this leads to a reduction from to . Next we apply a recursive law of total variance to couple estimates across an episode, rather than at each time step individually, this leads to a reduction from to .
Theorem 2 provides the first regret bounds which, for sufficiently large , match the lower bounds for the problem up to logarithmic factors. It remains an open problem whether we can match the lower bound using this approach for small . We believe that the higher order term can be improved from to by a more careful analysis, i.e., a more extensive use of Freedman-Bernstein inequalities. The same applies to the term of order which can be improved to .
These results are particularly significant because they help to estabilish the information-theoretic lower bound of reinforcement learning at Osband & Van Roy (2016a), whereas it was suggested in some previous work that lower-bound should be of . Moving from this big-picture insight to an analytically rigorous bound is non-trivial. Although we push many of the technical details to the appendix, our paper also makes several contributions in terms of analytical tools that may be useful in subsequent work. In particular we believe that the way we construct the exploration bonus and confidence intervals in UCBVI-CH is novel to the literature of RL. Also the constructive approach in the proof of UCBVI-CH , which bootstraps the regret bounds to prove that s are ucbs, is another analytical contribution of this paper.
Acknowledgements
The authors would like to thank Marc Bellemare and all the other wonderful colleagues at DeepMind for many hours of discussion and insight leading to this research. We are also grateful for the anonymous reviewers for their helpful comments and for fixing several mistakes in an earlier version of this paper.
References
Appendix A Table of Notation
Appendix B Notation
In our analysis we split the episodes into 2 sets: the set of “typical” episodes in which the number of visits to the encountered state-actions are large and the rest of the episodes. We then prove a tight regret bound for the typical episodes. As the total count of other episodes is bounded this technique provides us with the desired result. The set of typical state-actions pairs for every episode is defined as follows
Based on the definition of we define the set of typical episodes and the set of typical state-dependent episodes as follow
Also for every the set of typical next states at every episode is defined as follows
Finally let denote for every and .
B.2 Surrogate regrets
We also define the corresponding per state-step regret and upper-bound regret for every state and step , respectively, as follows
B.3 Martingale difference sequences
In our analysis we rely heavily on the theory of martingale sequences to prove bound on the regret incurred due to encountering a random sequence of states. We now provide some definitions and notation in that regard.
We define the following martingale operator for every , and . Also let denote the time stamp at step of episode then
Let define as follows for every and and
B.4 High probability events
We now introduce the high probability events and under which the regret is small.
Let use the shorthand notation . Also for every , and let define the confidence intervals , and , respectively, as follow
Let be the set of all probability distributions on . Define the following confidence set for every , and
We now define the random event as follows
Let be a positive integer. Let be a set of real-value functions on , for some integer . We now define the following random events for every and and :
We also use the short-hand notation and for and , respectively.
Now let define the following sets of random variables for every and :
We now define the high probability event as follows
The following lemma shows that the event holds with high probability:
Let be a real scalar. Then the event holds w.p. at least .
To prove this result we need to show that a set of concentration inequalities with regard to the empirical model holds simultaneously. For every the Bernstein inequality combined with a union bound argument, to take into account that is a random number, leads to the following inequality w.p. (see, e.g., Cesa-Bianchi & Lugosi, 2006; Bubeck & Cesa-Bianchi, 2012, for the statement of the Bernstein inequality and the application of the union bound in similar cases, respectively.)
where we rely on the fact that is uniformly bounded by . Using the same argument but this time with the Empirical Bernstein inequality (see, e.g., Maurer & Pontil, 2009), for , leads to
The Bernstein inequality combined with a union bound argument on also implies the following bound w.p.
which implies the following bound w.p. :
We now focus on bounding the sequence of martingales. Let be an integer and be some real scalars. Let the sequence of random variables be a sequence of martingale differences w.r.t. to some filtration . Let this sequence be uniformly bounded from above and below by . Then the Azuma’s inequality (see, e.g., Cesa-Bianchi & Lugosi, 2006) implies that w.p.
When the sum of the variances for some then the following sharper bound due to Freedman (1975) holds w.p.
Let , and . Then the inequality of Eq. 13 immediately implies that the following events holds w.p. :
Also Eq. 13 combined with a union bound argument over all (see, e.g., Bubeck et al., 2011, for the full description of the application of union bound argument in the case of martigale process with random stopping time) implies that the following events hold w.p.
Similarly the inequality of Eq. 14 leads to the following events hold w.p.
where and are upper bounds on and , respectively, defined as
So to establish a value for and we need to prove bound on and . Here we only prove this bound for as the proof techniques to bound is identical to the way we bound .
Now let the sequence be the sequence of states encountered by following some policy throughout an episode . Then the recursive application of LTV leads to (see e.g., Munos & Moore, 1999; Lattimore & Hutter, 2012, for the proof.)
By combining Eq. 26 into Eq. 25 we deduce
Similarly the following bound holds on
Plugging the bounds of Eq. 27 and Eq. 28 in to the bounds of Eq. 21 and Eq. 22 and a union bound over all leads to the following events hold w.p. :
Combining the results of Eq. 9, Eq. 10, Eq. 11, Eq. 12, Eq. 15, Eq. 16 Eq. 17, Eq. 18, Eq. 19, Eq. 20, Eq. 29 and Eq. 30 and taking a union bound over these random events as well as all possible , and proves the result.
Let and . Denote the set of steps for which the value functions are obtained before as
Let be the event under which prior to computation are upper bounds on the optimal value functions. Using backward induction on (and standard concentration inequalities) we will prove that holds under the event (see Lem. 19).
B.5 Other useful notation
Here we define some other notation that we use throughout the proof. We denote the total count of steps up to episode by . We first define , for every and , as follow
for every , and we also introduce the following notation which we use later when we sum up the regret:
where is the shorthand-notation for . We also define the upper bound and for every , and as follows, respectively
Appendix C Proof of the Regret Bounds
Before we start the main analysis we state the following useful lemma that will be used frequently in the analysis:
The following sequence of inequalities hold
The result follows from the definition of variance. ∎
We proceed by proving the following key lemma which shows that proves bound on under the assumption that is UCB w.r.t. .
Let and . Let the events and hold. Then the following bound holds on and :
For the ease of exposition we abuse the notation and drop the dependencies on , e.g., we write , and for , and , respectively. We proceed by bounding under the event at every step :
where the last inequality follows from the fact that under the event we have that . We now bound :
where holds under the event . We proceed by bounding :
where in the last line we rely on the definition of . We now bound (d):
By combining Eq. 34 and Eq. 35 into Eq. 33 we deduce
By combining Eq. 36 and Eq. C into Eq. C we deduce
Let denote . The previous bound combined with an induction argument implies that
The inequality for every leads to for every . This combined with the assumption that under the event completes the proof. ∎
Let and . Let the events and hold. Then
The proof follows by summing up the bounds of Lem. 3 and taking into acoount the fact if holds then for all hold. ∎
To simplify the bound of Lem. 4 we prove bound on sum of the martingales and
Let and . Let the events and hold. Then the following bound holds
Also the following bounds holds for every and :
The fact that the event holds implies that the events , , and hold. Under these events the inequalities of the statement hold. This combined with the fact that completes the proof.
We now bound the sum of s in terms of the upper-bound :
Let and . Let the events and holds. Then the following bounds hold for every
The proof follows by incorporating the result of Lem. 5 into Lem. 4 and taking into account that for every the term () is a summation of non-negative terms which are also contained in (). ∎
Let and . Let the events and holds. Then the following bounds hold for every
The proof follows by summing up the bounds of Lem. 6. ∎
We now focus on bounding the terms () and () in Lem. 11 and Lem. 12, respectively. Before we proceed with the proof of Lem. 11 and Lem. 12. we prove the following key result which bounds sum of the variances of using an LTV argument:
Let and . Then under the events and the following hold for every
Eq. 41 and Eq. 42 combined with Eq. 43 and Eq. 44, respectively, complete the proof.
Let and . Then under the events and the following hold for every
We begin by the following sequence of inequalities:
where is obtained from the definition of the variance as well as the fact that . The last line also follows from the fact that .
Using an identical argument we can also prove the following bound for state-dependent difference:
To bound we use the fact that under the event the event also holds. This combined with the fact that under the event the inequality holds implies that
where in the last line we rely on the result of Lem. 7. Similarly we can prove the following bound for under the events and :
The result then follows by incorporating the results of Eq. 49 and Eq. 50 into Eq. 47 and Eq. 48, respectively.
Let and . Then under the events and the following hold for every
Here we only prove the bound on Eq. 51. The proof for the bound of Eq. 52 can be done in a very similar manner, as it is shown in the previous lemmas (the only difference is that and replace and , respectively). The following sequence of inequalities hold:
where holds due to the fact that under , and holds under the event .
where holds under the event and holds due to the pigeon-hole argument (see, e.g., Jaksch et al., 2010, for the proof).
Using an identical analysis to the one in Lem. 10 and taking into account that under the event and we can bound
where holds since under the event the event holds. Another application of pigeon-hole principle leads to a bound of on . We then combine this with the bounds on and to bound Eq. 53, which proves the result.
Let and . Then under the events and the following hold for every
Here we only prove the bound on Eq. 54. The proof for the bound of Eq. 55 can be done in a very similar manner, as it is shown in the previous lemmas (the only difference is that and replace and , respectively). The Cauchy–Schwarz inequality leads to the following sequence of inequalities:
We now prove bounds on and respectively
and can be bounded under the events and using the results of Lem. 8 and Lem.9. We then deduce
where the last line follows by the fact that for the typical episodes . Thus if the term trivially equals to otherwise the higher order terms are bounded by .
We now bound using a pigeon-hole argument
Plugging the bound on and into Eq. 56 and taking in to account that for the typical episodes we have that completes the proof.
Let and . Let the bonus is defined according to Algo. 4. Then under the events and the following hold for every ,
Here we only prove the bound on Eq. 58. The proof for the bound of Eq. 59 can be done in a very similar manner, as it is shown in the previous lemmas (the only difference is that and replace and , respectively). We first notice that the following holds:
The bound on is identical to the corresponding bound in Lem. 11. So we only focus on bounding :
and can be bounded in high probability using the results of Lem. 8 and Lem.10. This implies
where the last line follows by the fact that for the typical episodes . Thus if then trivially equals to otherwise the higher order terms are bounded by . Combining the bound on and leads to the following bound on :
To bound we make use of Cauchy-Schwarz inequality again.
The term bounded by using a pigeon-hole argument (see Lem. 11). We proceed by bounding :
Given that the event holds the term bounded by by using the pigeon-hole argument. Under the event the event holds. This implies that the term is also bounded by as it is sum of the martingale differences. The term is also bounded by using the pigeon-hole argument. Combining all these bounds together leads to the following bound on
Combining this with the bound on and taking into account the fact that we only bound the for the typical episodes, in which , completes the proof.
Let the bonus is defined according to Algo. 4. Then under the events and the following hold
We first notice that and are bounded by due to Lem.6. To bound we sum up the regret due to and from Lem. 11 and Lem. 12. We also bound the sum by using a pigeon hole argument. We also note that and only account for the regret of typical episodes in which . The regret of those episodes which do not belong to the typical set , can be bounded by , trivially. ∎
The following lemma establishes an explicit bound on the regret:
Let the bonus is defined according to Algo. 4. Then under the events and the following hold
The proof follows by solving the bound of Lem. 13 in terms of . which only contributes to the additional regret of . ∎
Let the bonus is defined according to Algo. 3. Then under the events and the following holds
The proof up to Lem. 11 is identical to the proof of Lem. 14. The main difference is to prove bound on and here we use a loose bound of for both exploration bonus and the confidence interval and then sum these terms using a pigeon-hole argument (The proof is provided in Jaksch et al., 2010) which leads to a bound of on both and . Plugging these results into the bound of Lem. 7 combined with the regret of non-typical episodes complete the proof
Let the bonus is defined according to Algo. 4. Let and . Then under the events and the following hold for every ,
The proof is similar to the proof of total regret. Here also we use Lem. 12, Lem. 11 and a pigeon-hole argument to bound the regrets due to , and . We then incorporate these terms into Lem.6 to bound the regret in terms of . The result follows by solving the bound w.r.t. the upper bound . ∎
Let the bonus is defined according to Algo. 4. Let and . Then under the events and the following hold for every
where the last inequality holds due to the fact that by definition is monotonically non-increasing in . The proof then follows by collecting terms.
Let the bonus is defined according to Algo. 3. Then under the event the set of events hold.
We prove this result by induction. First we notice that for by definition thus the inequality trivially holds. Thus to prove this result for we only need to show that if the inequality holds for it also holds for for every :
where the last line follows by the induction condition that . The fact that the event hols implies that , which completes the proof.
Let the bonus is defined according to Algo. 4. Then under the event the set of events hold.
We prove this result by induction. We first notice that in the case of the first episode .
To prove this result by induction in the case of we need to show that in the case of if holds then also holds.
If holds then for every . We can then invoke the result of Lem. 17 which implies
Using this result which guarantees that is close to we prove that , that is the event holds.
If the result holds trivially. Also if the result trivially holds. So we only need to consider the case that in that case we have w
where in we rely on the fact that is the greedy policy w.r.t. . Thus
Also follows from the induction assumption. Under the event we have
where is an application of Lem. 2. We now bound . Combining this result with the result of Eq. C leads to the following bound on
where the last inequality holds under the event . The proof is completed by plugging and into Eq. C which proves that thus the event .
The result is a direct consequence of Lem. 18 and Lem. 15 and the fact that the high probability event holds w.p. .
C.2 Proof of Thm. 2
The result is a direct consequence of Lem. 19 and Lem. 14 and the fact that the high probability event holds w.p. .