Provably Efficient Exploration in Policy Optimization
Qi Cai, Zhuoran Yang, Chi Jin, Zhaoran Wang
Introduction
Coupled with powerful function approximators such as neural networks, policy optimization plays a key role in the tremendous empirical successes of deep reinforcement learning (Silver et al., 2016, 2017; Duan et al., 2016; OpenAI, 2019; Wang et al., 2018). In sharp contrast, the theoretical understandings of policy optimization remain rather limited from both computational and statistical perspectives. More specifically, from the computational perspective, it remains unclear until recently whether policy optimization converges to the globally optimal policy in a finite number of iterations, even given infinite data. Meanwhile, from the statistical perspective, it still remains unclear how to attain the globally optimal policy with a finite regret or sample complexity.
A line of recent work (Fazel et al., 2018; Yang et al., 2019a; Abbasi-Yadkori et al., 2019a, b; Bhandari and Russo, 2019; Liu et al., 2019; Agarwal et al., 2019; Wang et al., 2019) answers the computational question affirmatively by proving that a wide variety of policy optimization algorithms, such as policy gradient (PG) (Williams, 1992; Baxter and Bartlett, 2000; Sutton et al., 2000), natural policy gradient (NPG) (Kakade, 2002), trust-region policy optimization (TRPO) (Schulman et al., 2015), proximal policy optimization (PPO) (Schulman et al., 2017), and actor-critic (AC) (Konda and Tsitsiklis, 2000), converge to the globally optimal policy at sublinear rates of convergence, even when they are coupled with neural networks (Liu et al., 2019; Wang et al., 2019). However, such computational efficiency guarantees rely on the regularity condition that the state space is already well explored. Such a condition is often implied by assuming either the access to a “simulator” (also known as the generative model) (Koenig and Simmons, 1993; Azar et al., 2011, 2012a, 2012b; Sidford et al., 2018a, b; Wainwright, 2019) or finite concentratability coefficients (Munos and Szepesvári, 2008; Antos et al., 2008; Farahmand et al., 2010; Tosatto et al., 2017; Yang et al., 2019b; Chen and Jiang, 2019), both of which are often unavailable in practice.
In a more practical setting, the agent sequentially explores the state space, and meanwhile, exploits the information at hand by taking the actions that lead to higher expected total rewards. Such an exploration-exploitation tradeoff is better captured by the aforementioned statistical question regarding the regret or sample complexity, which remains even more challenging to answer than the computational question. As a result, such a lack of statistical understanding hinders the development of more sample-efficient policy optimization algorithms beyond heuristics. In fact, empirically, vanilla policy gradient is known to exhibit a possibly worse sample complexity than random search (Mania et al., 2018), even in basic settings such as linear-quadratic regulators. Meanwhile, theoretically, vanilla policy gradient can be shown to suffer from exponentially large variance in the well-known “combination lock” setting (Kakade, 2003; Leffler et al., 2007; Azar et al., 2012a), which only has a finite state space.
In this paper, we aim to answer the following fundamental question:
Can we design a policy optimization algorithm that incorporates exploration and is provably sample-efficient?
To answer this question, we propose the first policy optimization algorithm that incorporates exploration in a principled manner. In detail, we develop an Optimistic variant of the PPO algorithm, namely OPPO. Our algorithm is also closely related to NPG and TRPO. At each update, OPPO solves a Kullback-Leibler (KL)-regularized policy optimization subproblem, where the linear component of the objective function is defined using the action-value function. As is shown subsequently, solving such a subproblem corresponds to one iteration of infinite-dimensional mirror descent (Nemirovsky and Yudin, 1983) or dual averaging (Xiao, 2010), where the action-value function plays the role of the gradient. To encourage exploration, we explicitly incorporate a bonus function into the action-value function, which quantifies the uncertainty that arises from only observing finite historical data. Through uncertainty quantification, such a bonus function ensures the (conservative) optimism of the updated policy. Based on NPG, TRPO, and PPO, OPPO only augments the action-value function with the bonus function in an additive manner, which makes it easily implementable in practice.
Theoretically, we establish the sample efficiency of OPPO in an episodic setting of Markov decision processes (MDPs) with full-information feedback, where the transition dynamics are linear in features (Yang and Wang, 2019b, a; Jin et al., 2019; Ayoub et al., 2020; Zhou et al., 2020). In particular, we allow the transition dynamics to be nonstationary within each episode. See also the work of Du et al. (2019a); Van Roy and Dong (2019); Lattimore and Szepesvari (2019) for a related discussion on the necessity of the linear representation. In detail, we prove that OPPO attains a -regret up to logarithmic factors, where is the feature dimension, is the episode horizon, and is the total number of steps taken by the agent. Note that such a regret does not depend on the numbers of states and actions, and therefore, allows them to be even infinite. In particular, OPPO attains such a regret without knowing the transition dynamics or accessing a “simulator”. Moreover, we prove that, even when the reward functions are adversarially chosen across the episodes, OPPO attains the same regret in terms of competing with the globally optimal policy in hindsight (Cesa-Bianchi and Lugosi, 2006; Bubeck and Cesa-Bianchi, 2012). In comparison, existing algorithms based on value iteration, e.g., optimistic least-squares value iteration (LSVI) (Jin et al., 2019), do not allow adversarially chosen reward functions. Such a notion of robustness partially justifies the empirical advantages of KL-regularized policy optimization (Neu et al., 2017; Geist et al., 2019). To the best of our knowledge, OPPO is the first provably sample-efficient policy optimization algorithm that incorporates exploration.
Our work is based on the aforementioned line of recent work (Fazel et al., 2018; Yang et al., 2019a; Abbasi-Yadkori et al., 2019a, b; Bhandari and Russo, 2019; Liu et al., 2019; Agarwal et al., 2019; Wang et al., 2019) on the computational efficiency of policy optimization, which covers PG, NPG, TRPO, PPO, and AC. In particular, OPPO is based on PPO (and similarly, NPG and TRPO), which is shown to converge to the globally optimal policy at sublinear rates in tabular and linear settings, as well as nonlinear settings involving neural networks (Liu et al., 2019; Wang et al., 2019). However, without assuming the access to a “simulator” or finite concentratability coefficients, both of which imply that the state space is already well explored, it remains unclear whether any of such algorithms is sample-efficient, that is, attains a finite regret or sample complexity. In comparison, by incorporating uncertainty quantification into the action-value function at each update, which explicitly encourages exploration, OPPO not only attains the same computational efficiency as NPG, TRPO, and PPO, but is also shown to be sample-efficient with a -regret up to logarithmic factors.
Our work is closely related to another line of work (Even-Dar et al., 2009; Yu et al., 2009; Neu et al., 2010a, b; Zimin and Neu, 2013; Neu et al., 2012; Rosenberg and Mansour, 2019a, b) on online MDPs with adversarially chosen reward functions, which mostly focuses on the tabular setting.
Assuming the transition dynamics are known and the full information of the reward functions is available, the work of Even-Dar et al. (2009) establishes a -regret, where is the action space, is its cardinality, and upper bounds the mixing time of the MDP. See also the work of Yu et al. (2009), which establishes a -regret in a similar setting.
Assuming the transition dynamics are known but only the bandit feedback of the received rewards is available, the work of Neu et al. (2010a, b); Zimin and Neu (2013) establishes an -regret (Neu et al., 2010b), a -regret (Neu et al., 2010a), and a -regret (Zimin and Neu, 2013), respectively, all up to logarithmic factors. Here is the state space and is its cardinality. In particular, it is assumed by Neu et al. (2010b) that, with probability at least , any state is reachable under any policy.
Assuming the full information of the reward functions is available but the transition dynamics are unknown, the work of Neu et al. (2012); Rosenberg and Mansour (2019a) establishes an -regret (Neu et al., 2012) and an -regret (Rosenberg and Mansour, 2019a), respectively, both up to logarithmic factors.
Assuming the transition dynamics are unknown and only the bandit feedback of the received rewards is available, the recent work of Rosenberg and Mansour (2019b) establishes an -regret up to logarithmic factors. In particular, it is assumed by Rosenberg and Mansour (2019b) that, with probability at least , any state is reachable under any policy. Without such an assumption, an -regret is established.
In the latter two settings with unknown transition dynamics, all the existing algorithms (Neu et al., 2012; Rosenberg and Mansour, 2019a, b) follow the gradient direction with respect to the visitation measure, and thus, differ from most practical policy optimization algorithms. In comparison, OPPO is not restricted to the tabular setting and indeed follows the gradient direction with respect to the policy. OPPO is simply an optimistic variant of NPG, TRPO, and PPO, which makes it also a practical policy optimization algorithm. In particular, when specialized to the tabular setting, our setting corresponds to the third setting with , where OPPO attains an -regret up to logarithmic factors.
Broadly speaking, our work is related to a vast body of work on value-based reinforcement learning in tabular (Jaksch et al., 2010; Osband et al., 2014; Osband and Van Roy, 2016; Azar et al., 2017; Dann et al., 2017; Strehl et al., 2006; Jin et al., 2018) and linear settings (Yang and Wang, 2019b, a; Jin et al., 2019; Ayoub et al., 2020; Zhou et al., 2020), as well as nonlinear settings involving general function approximators (Wen and Van Roy, 2017; Jiang et al., 2017; Du et al., 2019b; Dong et al., 2019). In particular, our setting is the same as the linear setting studied by Ayoub et al. (2020); Zhou et al. (2020), which generalizes the one proposed by Yang and Wang (2019a). We remark that our setting differs from the linear setting studied by Yang and Wang (2019b); Jin et al. (2019). It can be shown that the two settings are incomparable in the sense that one does not imply the other (Zhou et al., 2020). Also, our setting is related to the low-Bellman-rank setting studied by Jiang et al. (2017); Dong et al. (2019). In comparison, we focus on policy-based reinforcement learning, which is significantly less studied in theory. In particular, compared with the work of Yang and Wang (2019b, a); Jin et al. (2019); Ayoub et al. (2020); Zhou et al. (2020), which focuses on value-based reinforcement learning, OPPO attains the same -regret even in the presence of adversarially chosen reward functions. Compared with optimism-led iterative value-function elimination (OLIVE) (Jiang et al., 2017; Dong et al., 2019), which handles the more general low-Bellman-rank setting but is only sample-efficient, OPPO simultaneously attains computational efficiency and sample efficiency in the linear setting. Despite the differences between policy-based and value-based reinforcement learning, our work shows that the general principle of “optimism in the face of uncertainty” (Auer et al., 2002; Bubeck and Cesa-Bianchi, 2012) can be carried over from existing algorithms based on value iteration, e.g., optimistic LSVI, into policy optimization algorithms, e.g., NPG, TRPO, and PPO, to make them sample-efficient, which further leads to a new general principle of “conservative optimism in the face of uncertainty and adversary” that additionally allows adversarially chosen reward functions.
2 Notation
Throughout this paper, we denote by absolute constants whose values can vary from line by line.
Preliminaries
In this paper, we consider an episodic MDP , where and are the state and action spaces, respectively, is the length of each episode, is the transition kernel from a state-action pair to the next state at the -th step of each episode, and is the reward function at the -th step of the -th episode. We assume that the reward function is deterministic, which is without loss of generality, as our subsequent regret analysis readily generalizes to the setting where the reward function is stochastic.
At the beginning of the -th episode, the agent determines a policy . We assume that the initial state is fixed to across all the episodes, which is without loss of generality, as our subsequent regret analysis readily generalizes to the setting where is sampled from a fixed distribution across all the episodes. Then the agent iteratively interacts with the environment as follows. At the -th step, the agent receives a state and takes an action following . Subsequently, the agent receives a reward and the next state following . The -th episode ends after the agent receives the last reward .
We allow the reward function to be adversarially chosen by the environment at the beginning of the -th episode, which can depend on the historical trajectories. The reward function is revealed to the agent after it takes the action at the state , which together determine the received reward . We define the regret in terms of competing with the globally optimal policy in hindsight (Cesa-Bianchi and Lugosi, 2006; Bubeck and Cesa-Bianchi, 2012) as
By the definitions in (2.2) and (2.3), we have the following Bellman equation,
2 Linear Function Approximations
We consider the linear setting where the transition dynamics are linear in a feature map, which is formalized in the following assumption.
for any . Also, we assume that
for any and .
Algorithm and Theory
We present Optimistic PPO (OPPO) in Algorithm 1, which involves a policy improvement step and a policy evaluation step.
Policy Improvement Step. In the -th episode, OPPO updates based on (Lines 4-9 of Algorithm 1). In detail, we define the following linear function of the policy ,
which is a local linear approximation of at (Schulman et al., 2015, 2017). In particular, we have that . The policy improvement step is defined by
Here the KL-divergence regularizes to be close to so that well approximates , which further ensures that the updated policy improves the expected total reward (associated with the reward function ) upon . Also, is the stepsize, which is specified in Theorem 3.1. By executing the updated policy , the agent receives the state-action sequence and observes the reward function , which together determine the received rewards .
The policy improvement step defined in (3.2) corresponds to one iteration of NPG (Kakade, 2002), TRPO (Schulman et al., 2015), and PPO (Schulman et al., 2017). In particular, PPO solves the same KL-regularized policy optimization subproblem as in (3.2) at each iteration, while TRPO solves an equivalent KL-constrained subproblem. In the special case where the reward function is linear in the feature map defined subsequently, which implies that the Q-function is also linear in , the updated policy can be equivalently obtained by one iteration of NPG when the policy is parameterized by an energy-based distribution (Agarwal et al., 2019; Wang et al., 2019). Such a policy improvement step can also be cast as one iteration of infinite-dimensional mirror descent (Nemirovsky and Yudin, 1983) or dual averaging (Xiao, 2010), where the Q-function plays the role of the gradient (Liu et al., 2019; Wang et al., 2019).
The updated policy obtained in (3.2) takes the following closed form,
for any and . However, the Q-function remains to be estimated through the subsequent policy evaluation step. We denote by the estimated Q-function, which replaces the Q-function in (3.1)-(3.3) and is correspondingly used in Line 6 of Algorithm 1.
Policy Evaluation Step. At the end of the -th episode, OPPO evaluates the policy based on the historical trajectories (Lines 11-18 of Algorithm 1). In detail, for any , we define the empirical mean-squared Bellman error (MSBE) (Sutton and Barto, 2018) as
while we initialize as a zero function on . The policy evaluation step is defined by iteratively updating the estimated Q-function associated with the reward function by
Here scales with , , and , which is specified in Theorem 3.1.
The policy evaluation step defined in (3.1) corresponds to one iteration of least-squares temporal difference (LSTD) (Bradtke and Barto, 1996; Boyan, 2002). In particular, as we have
with high probability, which is subsequently characterized in Lemma 4.3. Here the inequality holds uniformly for any and . As the fact that for any implies that , we truncate to the range in (3.1), which is correspondingly used in Line 17 of Algorithm 1.
2 Regret Analysis
We establish an upper bound of the regret of OPPO (Algorithm 1) in the following theorem. Recall that the regret is defined in (2.1) and is the total number of steps taken by the agent, where is the length of each episode and is the total number of episodes. Also, is the cardinality of and is the dimension of the feature map .
Let in (3.2) and Line 6 of Algorithm 1, in (3.1) and Line 12 of Algorithm 1, and in (3.1) and Line 15 of Algorithm 1, where is an absolute constant and . Under Assumption 2.1 and the assumption that , the regret of OPPO satisfies
with probability at least , where is an absolute constant.
See Section 4 for a proof sketch and Appendix C for a detailed proof. ∎
Theorem 3.1 proves that OPPO attains a -regret up to logarithmic factors, where the dependency on the total number of steps is optimal. In the stationary setting where the reward function and initial state are fixed across all the episodes, such a regret translates to a -sample complexity (up to logarithmic factors) following the argument of Jin et al. (2018) (Section 3.1). Here measures the suboptimality of the obtained policy in the following sense,
Discussion of Mechanisms. In the sequel, we consider the ideal setting where the transition dynamics are known, which, by the Bellman equation defined in (2.4), allows us to access the Q-function for any policy and once given the reward function . The following lemma connects the difference between two policies to the difference between their expected total rewards through the Q-function.
For any policies and , it holds that
For notational simplicity, we omit the conditioning on , e.g., in (3.7) of Lemma 3.2 subsequently. The following lemma characterizes the policy improvement step defined in (3.2), where the updated policy takes the closed form in (3.3).
For any distributions , state , and function , it holds for with that
Corresponding to the definition of the regret in (2.1), we define the globally optimal policy in hindsight (Cesa-Bianchi and Lugosi, 2006; Bubeck and Cesa-Bianchi, 2012) as
which attains a zero-regret. In the ideal setting where the Q-function associated with the reward function is known and the updated policy takes the closed form in (3.3), Lemma 3.3 implies
for any and . Combining (3.2) with Lemma 3.2, we obtain
Here the first inequality follows from telescoping the right-hand side of (3.2) across all the episodes and the fact that the KL-divergence is nonnegative. Also, the second inequality follows from the initialization of the policy and Q-function in Line 1 of Algorithm 1. Setting in (3.2), we establish a -regret in the ideal setting.
Such an ideal setting demonstrates the key role of the KL-divergence in the policy improvement step defined in (3.2), where is the stepsize. Intuitively, without the KL-divergence, that is, setting , the upper bound of the regret on the right-hand side of (3.2) tends to infinity. In fact, for any , the updated policy in (3.3) is “conservatively” greedy with respect to the Q-function associated with the reward function . In particular, the regularization effect of both and in (3.3) ensures that is not “fully” committed to perform well only with respect to , just in case the subsequent adversarially chosen reward function significantly differs from . In comparison, the “fully” greedy policy improvement step, which is commonly adopted by the existing work on value-based reinforcement learning (Jaksch et al., 2010; Osband et al., 2014; Osband and Van Roy, 2016; Azar et al., 2017; Dann et al., 2017; Strehl et al., 2006; Jin et al., 2018, 2019; Yang and Wang, 2019b, a), lacks such a notion of robustness. On the other hand, an intriguing question is whether being “conservatively” greedy is less sample-efficient than being “fully” greedy in the stationary setting, where the reward function is fixed across all the episodes. In fact, in the ideal setting where the Q-function associated with the reward function in (3.3) is known, the “fully” greedy policy improvement step with corresponds to one step of policy iteration (Sutton and Barto, 2018), which converges to the globally optimal policy within episodes and hence equivalently induces an -regret. However, in the realistic setting, the Q-function in (3.1)-(3.3) is replaced by the estimated Q-function in Line 6 of Algorithm 1, which is obtained by the policy evaluation step defined in (3.1). As a result of the estimation uncertainty that arises from only observing finite historical data, it is indeed impossible to do better than the -regret even in the tabular setting (Jin et al., 2018), which is shown to be an information-theoretic lower bound. In the linear setting, OPPO attains such a lower bound in terms of the total number of steps . In other words, in the stationary setting, being “conservatively” greedy suffices to achieve sample-efficiency, which complements its advantages in terms of robustness in the more challenging setting with adversarially chosen reward functions.
Proof Sketch
For the simplicity of discussion, we define the model prediction error as
For any , we define as the -algebra generated by the following state-action sequence and reward functions,
and as the -algebra generated by
where, for the simplicity of discussion, we define as a null state for any . The -algebra sequence is a filtration with respect to the timestep index
In other words, for any , it holds that .
By the definition of the -algebra , for any , the estimated value function and Q-function are measurable to , as they are obtained based on the historical trajectories and the reward function adversarially chosen by the environment at the beginning of the -th episode, both of which are measurable to .
In the following lemma, we decompose the regret defined in (2.1) into three terms. Recall that the globally optimal policy in hindsight is defined in (3.8) and the model prediction error is defined in (4.1).
which is independent of the linear setting in Assumption 2.1. Here is a martingale adapted to the filtration , both with respect to the timestep index defined in (4.2) of Definition 4.1.
Lemma 4.2 allows us to characterize the regret by upper bounding terms (i), (ii), and (iii) in (4.2), respectively. In detail, term (i) corresponds to the right-hand side of (3.2) in Lemma 3.2 with the Q-function replaced by the estimated Q-function , which is obtained by the policy evaluation step defined in (3.1). In particular, as the updated policy is obtained by the policy improvement step in Line 6 of Algorithm 1 using and , term (i) can be upper bounded following a similar analysis to the discussion in Section 3.2, which is based on Lemmas 3.2 and 3.3 as well as (3.2). Also, by the Azuma-Hoeffding inequality, term (ii) is a martingale that scales as with high probability, where is the total number of timesteps and is an upper bound of the martingale differences. More specifically, we prove that and in Appendix C, which implies that term (ii) is with high probability. Meanwhile, term (iii) corresponds to the model prediction error, which is characterized subsequently in Section 4.2. Note that the regret decomposition in (4.2) of Lemma 4.2 is independent of the linear setting in Assumption 2.1, and therefore, applies to any forms of estimated Q-functions in more general settings. In particular, as long as we can upper bound term (iii) in (4.2), our regret analysis can be carried over even beyond the linear setting.
2 Model Prediction Error
To upper bound term (iii) in (4.2) of Lemma 4.2, we characterize the model prediction error defined in (4.1) in the following lemma. Recall that the bonus function is defined in (3.1).
Let in (3.1) and Line 12 of Algorithm 1, and in (3.1) and Line 15 of Algorithm 1, where is an absolute constant and . Under Assumption 2.1, it holds with probability at least that
for any and .
Lemma 4.3 demonstrates the key role of uncertainty quantification in achieving sample-efficiency. More specifically, due to the uncertainty that arises from only observing finite historical data, the model prediction error can be possibly large for the state-action pairs that are less visited or even unseen. However, as is shown in Lemma 4.3, explicitly incorporating the bonus function into the estimated Q-function ensures that with high probability for any and . In other words, the estimated Q-function is “optimistic in the face of uncertainty”, as or equivalently
To illustrate the intuition behind the model prediction error defined in (4.1), we define the implicitly estimated transition dynamics as
where is defined in (3.1). Correspondingly, the policy evaluation step defined in (3.1) takes the following equivalent form (ignoring the truncation step for the simplicity of discussion),
Conclusion
We study the sample efficiency of policy-based reinforcement learning in the episodic setting of linear MDPs with full-information feedback. We proposed an optimistic variant of the proximal policy optimization algorithm, dubbed as OPPO, which incorporates the principle of “optimism in the face of uncertainty” into policy optimization. When applied to the episodic MDP with unknown transition and adversarial reward, OPPO provably achieves a near-optimal -regret. To the best of our knowledge, OPPO is the first provably efficient policy optimization algorithm that explicitly incorporates exploration.
Acknowledgements
The authors would like to thank Lingxiao Wang, Wen Sun, and Sham Kakade for pointing out a technical issue in the first version regarding the covering number of value functions in the linear setting. This version has fixed the technical issue with a definition of the linear MDP different from the one in the first version. The authors would also like to thank Csaba Szepesvári, Lin F. Yang, Yining Wang, and Simon S. Du for helpful discussions.
References
Appendix A Proofs of Lemmas in Section 3
Meanwhile, by (A.2) we have that, on the right-hand side of (A.1),
where the last equality follows from (2.4). Combining (A.1), (A.1), (A.5), and the linearity of the Bellman evaluation operator defined in (A.1), we obtain
which concludes the proof of Lemma 3.2. ∎
A.2 Proof of Lemma 3.3
which implies that in (A.2) as . Moreover, by (A.2) we have
for any state . Meanwhile, by Pinsker’s inequality, it holds that
Combining (A.2), (A.8), and the fact that for any state , we obtain
which concludes the proof of Lemma 3.3. ∎
Appendix B Proofs of Lemmas in Section 4
for any and state .
We decompose the instantaneous regret at the -th episode into the following two terms,
for any . For any , recursively expanding (B.6) across yields
where . Therefore, we obtain
for any . By the definition of the model prediction error in (4.1), we have
where the last equality follows from (2.4). Plugging (B.1) into (B.8), we obtain
for any . For any , recursively expanding (B.11) across yields
where . Therefore, we obtain
By Definition 4.1 and the definitions of and in (B.11), we have
for any . Here we have that for any , as (4.2) of Definition 4.1 implies
Also, we define to be empty. Thus, (B.13) allows us to define the martingale
with respect to the timestep index defined in (4.2) of Definition 4.1. Such a martingale is adapted to the filtration . In particular, we have that, on the right-hand side of (B.12),
Combining (B.3), (B.7), (B.12), and (B.15), we obtain
which concludes the proof of Lemma 4.2. ∎
B.2 Proof of Lemma 4.3
Recall that defined in (3.4) takes the following form,
for any and . Also, recall that the estimated Q-function obtained by the policy evaluation step defined in (3.1) takes the following form,
for any and . Here and are defined in (3.1). Meanwhile, by Assumption 2.1 we have
for any and . Plugging the definition of in (3.1) into (B.2), we obtain
for any and . Here the second equality follows from (B.2) with replaced by for any . Combining (B.16) and (B.2), we obtain
for any and .
Term (i). As is defined in (3.1), is a positive-definite matrix. By the Cauchy-Schwarz inequality, the absolute value of term (i) is upper bounded as
for any and . Under the event defined in (D.1) of Lemma D.1, which happens with probability at least , it holds that
for any and . Here is an absolute constant and .
Term (ii). Similar to (B.20), the absolute value of term (ii) is upper bounded as
for any and . Here the first inequality follows from the Cauchy-Schwarz inequality, the second inequality follows from the fact that , and the last inequality follows from Assumption 2.1, which assumes that .
Combining (B.19), (B.21), (B.2), and the fact that , we obtain
for any and under the event defined in (D.1) of Lemma D.1. Here is an absolute constant. Setting
in the bonus function defined in (3.1), by (B.2) we obtain
for any and under . Hence, for the model prediction error defined in (4.1), by (B.16), (B.24), and (B.25) we have
for any and under . Thus, combining (B.2), (B.2), and Lemma D.1, which implies that happens with probability at least , we conclude the proof of Lemma 4.3. ∎
Appendix C Proof of Theorem 3.1
We upper bound terms (i)-(iii) in (4.2) of Lemma 4.2 respectively, that is,
Term (i). By Lemma 3.3 and the policy improvement step in Line 6 of Algorithm 1, we have
Here the second last inequality follows from the fact that the KL-divergence is nonnegative. Also, the last inequality follows from the initialization of the policy and Q-function in Line 1 of Algorithm 1, which implies that is a uniform distribution on and hence
Here the inequality follows from the fact that the entropy of is nonnegative. Thus, setting in Line 6 of Algorithm 1, by (C) we obtain
Term (ii). Recall that the martingale differences and defined in (B.11) take the following forms,
By the truncation of to the range in (3.1), we have
which implies that and for any . Therefore, applying the Azuma-Hoeffding inequality to the martingale defined in (B.1), we obtain
for any . Setting with , we obtain
with probability at least , where .
Term (iii). As is shown in Lemma 4.3, it holds with probability at least that
for any and . Meanwhile, by the definitions of and in (4.1) and (3.1), respectively, we have that , which together with (C.4) implies
for any and with probability at least . Hence, we obtain
with probability at least . By the definition of in (3.1), we have
with being an absolute constant, which implies that . Thus, (C.6) implies
By Lemma D.3 and the definition of in (3.1), we obtain
for any , where and by Definition 4.1. Moreover, Assumption 2.1 implies
for any and , which further implies
for any . As we set , it holds for any that
Combining (C.8)-(C.10) and the Cauchy-Schwarz inequality, we obtain
By (C.5), (C.7), and (C), it holds with probability at least that
where is an absolute constant, , and .
Plugging the upper bounds of terms (i)-(iii) in (C.2), (C.3), and (C), respectively, into (4.2) of Lemma 4.2, we obtain
with probability at least , where is an absolute constant. Here we use the fact that in (C.2) and (C). Therefore, we conclude the proof of Theorem 3.1. ∎
Appendix D Supporting Lemmas
In this section, we present the supporting lemmas.
Let in (3.1) and Line 12 of Algorithm 1. For any , the event that, for any ,
happens with probability at least , where is an absolute constant.
By the definition of the filtration in Definition 4.1 and the Markov property, we have
Conditioning on , the only randomness comes from , while is a deterministic function. To see this, note that is determined by and , which are further determined by the historical data in . We define
By (D.2), conditioning on , is a zero-mean random variable. Moreover, as , conditioning on , is an -sub-Gaussian random variable, which is defined in (D.5) of Lemma D.2. Also, is -measurable, as for any . Hence, for any fixed , by Lemma D.2, it holds with probability at least that
for any . To upper bound in (D), recall that is defined by
By the triangle inequality, the spectral norm of is upper bounded as
Here the last inequality follows from Assumption 2.1, which implies
for any . Hence, in (D) is upper bounded as
Moreover, setting , combining (D) and (D.4), and applying the union bound for any , we obtain that, with probability at least ,
for any , where is an absolute constant. Thus, we conclude the proof of Lemma D.1. ∎
For any , it holds with probability at least that
See Theorem 1 of Abbasi-Yadkori et al. (2011) for a detailed proof. ∎
See Lemma 11 of Abbasi-Yadkori et al. (2011) for a detailed proof. ∎