                                          Settling the Sample Complexity of Online Reinforcement Learning
                                                     Zihan Zhang∗              Yuxin Chen†              Jason D. Lee∗             Simon S. Du‡
                                                      Princeton                  UPenn                   Princeton               U. Washington

                                                                               July 2023; Revised: April 2025
arXiv:2307.13586v4 [cs.LG] 29 Apr 2025




                                                                                                Abstract
                                                  A central issue lying at the heart of online reinforcement learning (RL) is data efficiency. While a
                                               number of recent works achieved asymptotically minimal regret in online RL, the optimality of these
                                               results is only guaranteed in a “large-sample” regime, imposing enormous burn-in cost in order for their
                                               algorithms to operate optimally. How to achieve minimax-optimal regret without incurring any burn-in
                                               cost has been an open problem in RL theory.
                                                  We settle this problem for finite-horizon inhomogeneous Markov decision processes. Specifically, we
                                               prove that a modified version of MVP (Monotonic Value Propagation), an optimistic model-based algorithm
                                               proposed by Zhang et al. (2021a), achieves a regret on the order of (modulo log factors)
                                                                                            √
                                                                                        min     SAH 3 K, HK ,

                                              where S is the number of states, A is the number of actions, H is the horizon length, and K is the total
                                              number of episodes. This regret matches the minimax lower bound for the entire range of sample size
                                              K ≥ 1, essentially eliminating any burn-in requirement. It also translates to a PAC sample complexity
                                                                                                                 3
                                              (i.e., the number of episodes needed to yield ε-accuracy) of SAHε2
                                                                                                                    up to log factor, which is minimax-
                                              optimal for the full ε-range. Further, we extend our theory to unveil the influences of problem-dependent
                                              quantities like the optimal value/cost and certain variances. The key technical innovation lies in a
                                              novel analysis paradigm (based on a new concept called “profiles”) to decouple complicated statistical
                                              dependency across the sample trajectories — a long-standing challenge facing the analysis of online RL
                                              in the sample-starved regime.


                                         Contents
                                         1 Introduction                                                                                                           2
                                           1.1 Inadequacy of prior art: enormous burn-in cost . . . . . . . . . . . . . . . . . . . . . . . . . .                 3
                                           1.2 A peek at our main contributions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .               5
                                           1.3 Related works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .            6
                                           1.4 Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .           7

                                         2 Problem formulation                                                                                                    8

                                         3 A model-based algorithm: Monotonic Value Propagation                                                                   9

                                         4 Key technical innovations                                                                                  11
                                           4.1 Technical barriers in prior theory for UCBVI . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
                                           4.2 Our approach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
                                           ∗ Department of Electrical and Computer Engineering, Princeton University; email: {zz5478,jasonlee}@princeton.edu.
                                           † Department of Statistics and Data Science, University of Pennsylvania; email: yuxinc@wharton.upenn.edu.
                                           ‡ Paul G. Allen School of Computer Science and Engineering, University of Washington; email: ssdu@cs.washington.edu.




                                                                                                    1
5 Proof of Theorem 1                                                                                        16

6 Extensions                                                                                                20
  6.1 Value-based regret bounds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
  6.2 Cost-based regret bounds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
  6.3 Variance-dependent regret bound . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

7 Discussion                                                                                                22

A Preliminary facts                                                                                         23

B Proofs of key lemmas in Section 4                                                                        25
  B.1 Proof of Lemma 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
  B.2 Proof of Lemma 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
  B.3 Proof of Lemma 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

C Proofs of auxiliary lemmas in Section 5                                                                   29
  C.1 Proof of Lemma 8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
  C.2 Proof of Lemma 10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
  C.3 Proof of Lemma 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

D Proof of the value-based regret bound (proof of Theorem 2)                                                34

E Proof of the cost-based regret bound (proof of Theorem 3)                                                 37

F Proof of the variance-dependent regret bounds (proof of Theorem 4)                                        40
  F.1 Proof of Lemma 24 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
  F.2 Proof of Lemma 25 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49

G Minimax lower bounds                                                                                      53
  G.1 Proof of Theorem 12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
  G.2 Proof of Theorem 13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
  G.3 Proof of Theorem 14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55


1    Introduction
In reinforcement learning (RL), an agent is often asked to learn optimal decisions (i.e., the ones that maximize
cumulative reward) through real-time “trial-and-error” interactions with an unknown environment. This
task is commonly dubbed as online RL, underscoring the critical role of adaptive online data collection and
differentiating it from other RL settings that rely upon pre-collected data. A central challenge in achieving
sample-efficient online RL boils down to how to optimally balance exploration and exploitation during data
collection, namely, how to trade off the potential revenue of exploring unknown terrain/dynamics against
the benefit of exploiting past experience. While decades-long effort has been invested towards unlocking
the capability of online RL, how to fully characterize — and more importantly, attain — its fundamental
performance limit remains largely unsettled.
    In this paper, we take an important step towards settling the sample complexity limit of online RL,
focusing on tabular Markov Decision Processes (MDPs) with finite horizon and finite state-action space.
More concretely, imagine that one seeks to learn a near-optimal policy of a time-inhomogeneous MDP with
S states, A actions, and horizon length H, and is allowed to execute the MDP of interest K times to collect
K sample episodes each of length H. This canonical problem is among the most extensively studied in the


                                                       2
RL literature, with formal theoretical pursuit dating back to more than 25 years ago (e.g., Kearns and Singh
(1998b)). Numerous works have since been devoted to improving the sample efficiency and/or refining the
analysis framework (Azar et al., 2017; Bai et al., 2019; Brafman and Tennenholtz, 2003; Dann et al., 2017;
Domingues et al., 2021; Jaksch et al., 2010; Jin et al., 2018; Kakade, 2003; Li et al., 2021a; Ménard et al.,
2021; Zanette and Brunskill, 2019; Zhang et al., 2021a, 2020). As we shall elucidate momentarily, however,
information-theoretic optimality has only been achieved in the “large-sample” regime. When it comes to the
most challenging sample-hungry regime, there remains a substantial gap between the state-of-the-art regret
upper bound and the best-known minimax lower bound, which motivates the research of this paper.

1.1     Inadequacy of prior art: enormous burn-in cost
While past research has obtained asymptotically optimal (i.e., optimal when K approaches infinity) regret
bounds in the aforementioned setting, all of these results incur an enormous burn-in cost — that is, the
minimum sample size needed for an algorithm to operate sample-optimally — which we explain in the
sequel. For simplicity of presentation, we assume that each immediate reward lies within the normalized
range [0, 1] when discussing the prior art.

Minimax lower bound. To provide a theoretical benchmark, we first make note of the best-known
minimax regret lower bound developed by Domingues et al. (2021); Jin et al. (2018):1
                                                         √                  
                        (minimax lower bound)   Ω min       SAH 3 K, HK ,                  (1)

assuming that the immediate reward at each step falls within [0, 1] and imposing no restriction on K. Given
that a regret of O(HK) can be trivially achieved (as the sum of rewards in any K episodes cannot exceed
HK), we shall sometimes drop the HK term and simply write
                                                      √           
                      (minimax lower bound)        Ω SAH 3 K           if K ≥ SAH.                       (2)

Prior upper bounds and burn-in cost. We now turn to the upper bounds developed in prior literature.
For ease of presentation, we shall assume
                                                        K ≥ SAH                                                            (3)
in the rest of this subsection unless otherwise noted. Log factors are also ignored in the discussion below.
                                                                    √ et al. (2017), which
    The first paper that achieves asymptotically optimal regret is Azar                        came up with a
                                                                                         
                                                                  e         3       3 2
model-based algorithm called UCBVI that enjoys a regret bound O SAH K + H S A . A close inspection
reveals that this regret matches the minimax lower bound (2) if and only if
                                                                
                              burn-in cost of Azar et al. (2017)     K & S 3 AH 3 ,                        (4)
due to the presence of the lower-order term H 3 S 2 A in the regret bound. This burn-in cost is clearly
undesirable, since the sample size available in many practical scenarios might be far below this requirement.
     In light of its fundamental importance in contemporary RL applications (which often have very large
dimensionality and relatively limited data collection capability), reducing the burn-in cost without compro-
mising sample efficiency has emerged as a central problem in recent pursuit of RL theory (Agarwal et al., 2020;
Dann et al., 2019; Li et al., 2022, 2021a,c; Ménard et al., 2021; Sidford et al., 2018b; Zanette and Brunskill,
2019; Zhang et al., 2021a; Zhou et al., 2023). The state-of-the-art regret upper bounds for finite-horizon
inhomogeneous MDPs can be summarized below (depending on the size of K):
                                                                               √                     
                                            (Ménard et al., 2021)          Oe SAH 3 K + SAH 4 ,                           (5a)
                                                                                                                         
   1 Let X = {S, A, H, K, 1 }, where 1 − δ is the target success rate (to be seen shortly). The notation f (X ) = O g(X ) (or
                           δ                                                                                             
f (X ) . g(X )) indicates the existence of some universal constant c1 > 0 such that f (X ) ≤ c1 g(X ); f (X ) = Ω g(X ) (or
                                                                                                                         
f (X ) & g(X )) means that there exists some universal constant c2 > 0 such that f (X ) ≥ c2 g(X ); and f (X ) = Θ g(X )   (or
                                                                                                   e (·) and Θ
                                                                                            e (·), Ω
f (X ) ≍ g(X )) means that f (X ) . g(X ) and f (X ) & g(X ) hold simultaneously. Moreover, O                e (·) are defined
analogously, except that all logarithmic dependency on the quantities of X are hidden.


                                                              3
                                                                                       Range of K that        Sample complexity
         Algorithm                             Regret upper bound
                                                                                     attains optimal regret    (or PAC bound)
               MVP                                   √                                                               SAH 3
                                               min        SAH 3 K, HK                        [1, ∞)
  (this work, Theorem 1)                                                                                               ε2

              UCBVI                            √                                                                 SAH 3    2   3
                                         min     SAH 3 K + S 2 AH 3 , HK                  [S 3 AH 3 , ∞)           ε2   + S AH
                                                                                                                             ε
       (Azar et al., 2017)
               ORLC                            √                                                                 SAH 3      2   4
                                         min     SAH 3 K + S 2 AH 4 , HK                  [S 3 AH 5 , ∞)            ε2   + S AHε
      (Dann et al., 2019)
              EULER                    √                      √   √                  2      √   √          SAH 3
                                                                                                                        2   3
                                                                                                                               √   √
                                 min     SAH 3 K + S 3/2 AH 3 ( S + H), HK            S AH 3 ( S + H), ∞       ε2   + S AH ( ε S+ H)
 (Zanette and Brunskill, 2019)
             UCB-Adv                    √                                                                      SAH 3    8/3 2 11
                                  min     SAH 3 K + S 2 A3/2 H 33/4 K 1/4 , HK           [S 6 A4 H 27 , ∞)       ε2   + S εA   H
      (Zhang et al., 2020)                                                                                                  4/3


               MVP                             √                                                                 SAH 3    2   2
                                         min     SAH 3 K + S 2 AH 2 , HK                   [S 3 AH, ∞)             ε2   + S AH
                                                                                                                             ε
     (Zhang et al., 2021a)
              UCBMQ                            √                                                                 SAH 3       4
                                         min     SAH 3 K + SAH 4 , HK                      [SAH 5 , ∞)             ε2   + SAH
                                                                                                                            ε
     (Ménard et al., 2021)
     Q-Earlysettled-Adv                        √                                                                 SAH 3       6
                                         min     SAH 3 K + SAH 6 , HK                      [SAH 9 , ∞)             ε2   + SAH
                                                                                                                            ε
        (Li et al., 2021a)
          Lower bound                                √                                                               SAH 3
                                               min        SAH 3 K, HK                          n/a                     ε2
   (Domingues et al., 2021)

Table 1: Comparisons between our result and prior works that achieve asymptotically optimal regret for
finite-horizon inhomogeneous MDPs (with all log factors omitted), where S (resp. A) is the number of states
(resp. actions), H is the planning horizon, and K is the number of episodes. The third column reflects the
burn-in cost, and the sample complexity (or PAC bound) refers to the number of episodes needed to yield ε
accuracy. The results provided here account for all K ≥ 1 or all ε ∈ (0, H]. Our paper is the only one that
gives regret (resp. PAC) bound matching the minimax lower bound for the entire range of K (resp. ε).

                                                                                     √                  
                      (Zhang et al., 2021a; Zhou et al., 2023)                   e
                                                                                 O    SAH 3 K + S 2 AH 2 ,                         (5b)

meaning that even the most advanced prior results fall short of sample optimality unless
                                                                   
                     best burn-in cost in past works       K & min SAH 5 , S 3 AH .                                                 (6)

The interested reader is referred to Table 1 for more details about existing regret upper bounds and their
associated sample complexities.
   In summary, no prior theory was able to achieve optimal sample complexity in the data-hungry regime
                                                      
                                     SAH ≤ K . min SAH 5 , S 3 AH ,                                    (7)

suffering from a significant barrier of either long horizon (as in the term SAH 5 ) or large state space (as in
the term S 3 AH). In fact, the information-theoretic limit is yet to be determined within this regime (i.e.,
neither the achievability results nor the lower bounds had been shown to be tight), although it has been
conjectured by Ménard et al. (2021) that the lower bound (1) reflects the correct scaling for any sample size
K.2

Comparisons with other RL settings and key challenges. In truth, the incentives to minimize the
burn-in cost and improve data efficiency arise in multiple other settings beyond online RL. For instance, in
an idealistic setting that assumes access to a simulator (or a generative model) — a model that allows the
learner to query arbitrary state-action pairs to draw samples — a recent work Li et al. (2024c) developed
a perturbed model-based approach that is provably optimal without incurring any burn-in cost. Analogous
results have been obtained in Li et al. (2021c) for offline RL — a setting that requires policy learning to
be performed based on historical data — unveiling the full-range optimality of a pessimistic model-based
algorithm.
     Unfortunately, the algorithmic and analysis frameworks developed in the above two works fail to accom-
modate the online counterpart. The main hurdle stems from the complicated statistical dependency intrinsic
                                                                     √              
                                                                   e SAH 3 K + SAH 2 . Combining it with the trivial upper
   2 Note that the original conjecture in Ménard et al. (2021) was Θ

bound HK allows one to remove the term SAH 2 (with a little algebra).


                                                                        4
to episodic online RL; for instance, in online RL, the empirical transition probabilities and the running esti-
mates of the value function are oftentimes statistically dependent in an intertwined manner (unless we waste
data). How to decouple the intricate statistical dependency without compromising data efficiency constitutes
the key innovation of this work. More precise, in-depth technical discussions will be provided in Section 4.


1.2     A peek at our main contributions
We are now positioned to summarize the main findings of this paper. Focusing on time-inhomogeneous
finite-horizon MDPs, our main contributions can be divided into two parts: the first part fully settles the
minimax-optimal regret and sample complexity of online RL, whereas the second part further extends and
augments our theory to make apparent the impacts of certain problem-dependent quantities. Throughout
this subsection, the regret metric Regret(K) captures the cumulative sub-optimality gap (i.e., the gap between
the performance of the policy iterates and that of the optimal policy) over all K episodes, to be formally
defined in (17).

1.2.1   Settling the optimal sample complexity with no burn-in cost

Our first result fully determines the sample complexity limit of online RL in a minimax sense, allowing one
to attain the optimal regret regardless of the number K of episodes that can be collected.
Theorem 1. For any K ≥ 1 and any 0 < δ < 1, there exists an algorithm (see Algorithm 1) obeying
                                        r                              
                                                  3      5 SAHK
                        Regret(K) . min      SAH K log             , HK                                    (8)
                                                              δ
with probability at least 1 − δ.

    The optimality of our regret bound (8) can be readily seen given that it matches the minimax lower
bound (1) (modulo some logarithmic factor). One can also easily translate the above regret bound into
sample complexity or probably approximately correct (PAC) bounds: the proposed algorithm is able to
return an ε-suboptimal policy with high probability using at most
                                                                   3
                                                                      
                               (sample complexity)       e SAH
                                                         O               episodes                           (9)
                                                                ε2
                          4
                  e SAH
(or equivalently, O          sample transitions as each episode has length H). Remarkably, this result holds
                       ε2
true for the entire ε range (i.e., any ε ∈ (0, H]), essentially eliminating the need of any burn-in cost. It
is noteworthy that even in the presence of an idealistic generative model, this order of sample size is un-
improvable (Azar et al., 2013; Li et al., 2024c).
    The algorithm proposed herein is a modified version of MVP: Monotonic Value Propagation. Originally
proposed by Zhang et al. (2021a), the MVP method falls under the category of model-based approaches,
a family of algorithms that construct explicit estimates of the probability transition kernel before value
estimation and policy learning. Notably, a technical obstacle that obstructs the progress in understanding
model-based algorithms arises from the exceedingly large model dimensionality: given that the dimension
of the transition kernel scales proportionally with S 2 , all existing analyses for model-based online RL fell
short of effectiveness unless the sample size already far exceeds S 2 (Azar et al., 2017; Zhang et al., 2021a).
To overcome this undesirable source of burn-in cost, a crucial step is to empower the analysis framework in
order to accommodate the highly sub-sampled regime (i.e., a regime where the sample size scales linearly
with S), which we shall elaborate on in Section 4. The full proof of Theorem 1 will be provided in Section 5.

1.2.2   Extension: optimal problem-dependent regret bounds

In practice, RL algorithms often perform far more appealingly than what their worst-case performance guar-
antees would suggest. This motivates a recent line of works that investigate optimal performance in a more
problem-dependent fashion (Dann et al., 2021; Fruit et al., 2018; Jin et al., 2020; Simchowitz and Jamieson,

                                                      5
2019; Talebi and Maillard, 2018; Tirinzoni et al., 2021; Wagenmaker et al., 2022; Xu et al., 2021; Yang et al.,
2021; Zanette and Brunskill, 2019; Zhao et al., 2023; Zhou et al., 2023). Encouragingly, the proposed algo-
rithm automatically achieves optimality on a more refined problem-dependent level, without requiring prior
knowledge of additional problem-specific knowledge. This results in several extended theorems that take
into account different problem-dependent quantities.
    The first extension below investigates how the optimal value influences the regret bound.
Theorem 2 (Optimal value-dependent regret). For any K ≥ 1, Algorithm 1 satisfies
                                        √
                      E Regret(K) . min      SAH 2 Kv ⋆ , Kv ⋆ log5 (SAHK),                                    (10)
where v ⋆ is the value of the optimal policy averaged over the initial state distribution (to be formally defined
in (43)).
   Moreover, there is also no shortage of applications where the use of a cost function is preferred over a
value function (Agarwal et al., 2017; Allen-Zhu et al., 2018; Lee et al., 2020; Wang et al., 2023). For this
purpose, we provide another variation based upon the optimal cost.
Theorem 3 (Optimal cost-dependent regret). For any K ≥ 1 and any 0 < δ < 1, Algorithm 1 achieves
                                       √                                 
                    Regret(K) ≤ Oe min      SAH 2 Kc⋆ + SAH 2 , K(H − c⋆ )                      (11)
with probability exceeding 1 − δ, where c⋆ denotes the cost of the optimal policy averaged over the initial state
distribution (to be formally defined in (45)).
It is worth noting that: despite the apparent similarity between the statements of Theorem 2 and Theorem 3,
they do not imply each other, although their proofs are very similar to each other.
     Finally, we establish another regret bound that reflects the effect of certain variance quantities of interest.
Theorem 4 (Optimal variance-dependent regret). For any K ≥ 1 and any 0 < δ < 1, Algorithm 1 obeys
                                          √                          
                                    e min
                        Regret(K) ≤ O          SAHKvar + SAH 2 , KH                            (12)

with probability at least 1 − δ, where var is a certain variance-type metric (to be formally defined in (49)).
   Two remarks concerning the above extensions are in order:
   • In the worst-case scenarios, the quantities v ⋆ , c⋆ and var can all be as large as the order of H, in
     which case Theorems 2-4 readily recover Theorem 1. In contrast, the advantages of Theorems 2-4 over
     Theorem 1 become more evident in those favorable cases (e.g., the situation where v ⋆ ≪ H or c⋆ ≪ H,
     or the case when the environment is nearly deterministic (so that var ≈ 0)).
   • Interestingly, the regret bounds in Theorems 2-4 all contain a lower-order term SAH 2 , and one might
     naturally wonder whether this term is essential. To demonstrate the unavoidable nature of this term
     and hence the optimality of Theorems 2-4, we will provide matching lower bounds, to be detailed in
     Section 6.

1.3    Related works
Let us take a moment to discuss several related theoretical works on tabular RL. Note that there has also
been an active line of research that exploits low-dimensional function approximation to further reduce sample
complexity, which is beyond the scope of this paper.
    Our discussion below focuses on two mainstream approaches that have received widespread adoption: the
model-based approach and the model-free approach. In a nutshell, model-based algorithms decouple model
estimation and policy learning, and often use the learned transition kernel to compute the value function
and find a desired policy. In stark contrast, the model-free approach attempts to estimate the optimal
value function and optimal policy directly without explicit estimation of the model. In general, model-free
algorithms only require O(SAH) memory — needed when storing the running estimates for Q-functions and
value functions — while the model-based counterpart might require Ω(S 2 AH) space in order to store the
estimated transition kernel.

                                                         6
Sample complexity for RL with a simulator. As an idealistic setting that separates the consideration
of exploration from that of estimation, RL with a simulator (or generative model) has been studied by numer-
ous works, allowing the learner to draw independent samples for any state-action pairs (Agarwal et al., 2020;
Azar et al., 2013; Beck and Srikant, 2012; Chen et al., 2020; Cui and Yang, 2021; Even-Dar and Mansour,
2003; Kakade, 2003; Kearns and Singh, 1998a; Li et al., 2024a, 2022, 2024c; Pananjady and Wainwright,
2020; Shi et al., 2023; Sidford et al., 2018a,b; Wainwright, 2019a,b). While both model-based and model-
free approaches are capable of achieving asymptotic sample optimality (Agarwal et al., 2020; Azar et al.,
2013; Sidford et al., 2018b; Wainwright, 2019b), all model-free algorithms that enjoy asymptotically optimal
sample complexity suffer from dramatic burn-in cost. Thus far, only the model-based approach has been
shown to fully eliminate the burn-in cost for both discounted infinite-horizon MDPs and inhomogeneous
finite-horizon MDPs (Li et al., 2024c). The full-range optimal sample complexity for time-homogeneous
finite-horizon MDPs in the presence of a simulator remains open.

Sample complexity for offline RL. The subfield of offline RL is concerned with learning based purely on
a pre-collected dataset (Levine et al., 2020). A frequently used mathematical model assumes that historical
data are collected (often independently) using some behavior policy, and the key challenges (compared with
RL with a simulator) come from distribution shift and incomplete data coverage. The sample complexity
of offline RL has been the focus of a large strand of recent works, with asymptotically optimal sample
complexity achieved by multiple algorithms (Jin et al., 2021; Li et al., 2024b, 2021b; Qu and Wierman, 2020;
Rashidinejad et al., 2021; Ren et al., 2021; Shi et al., 2022; Wang et al., 2022; Xie et al., 2021; Yan et al.,
2023; Yin et al., 2022). Akin to the simulator setting, the fully optimal sample complexity (without burn-in
cost) has only been achieved via the model-based approach when it comes to discounted infinite-horizon
and inhomogeneous finite-horizon settings (Li et al., 2024b). All asymptotically optimal model-free methods
incur substantial burn-in cost. The case with time-homogeneous finite-horizon MDPs also remains unsettled.

Sample complexity for online RL. Obtaining optimal sample complexity (or regret bound) in online
RL without incurring any burn-in cost has been one of the most fundamental open problems in RL theory. In
fact, the past decades have witnessed a flurry of activity towards improving the sample efficiency of online RL,
partial examples including Agrawal and Jia (2017); Bartlett and Tewari (2009); Brafman and Tennenholtz
(2003); Cai et al. (2019); Dann and Brunskill (2015); Dann et al. (2017); Domingues et al. (2021); Dong et al.
(2019); Efroni et al. (2019); Fruit et al. (2018); Jaksch et al. (2010); Ji and Li (2023); Jin et al. (2018); Kakade
(2003); Kearns and Singh (1998b); Kolter and Ng (2009); Lattimore and Hutter (2012); Li et al. (2021a,
2024d,e, 2021c); Ménard et al. (2021); Neu and Pike-Burke (2020); Osband et al. (2013); Pacchiano et al.
(2020); Russo (2019); Strehl et al. (2006); Strehl and Littman (2008); Szita and Szepesvári (2010); Tarbouriech et al.
(2021); Wang et al. (2020); Xiong et al. (2022); Zanette and Brunskill (2019); Zhang et al. (2021a, 2022,
2020). Unfortunately, no work has been able to conquer this problem completely: the state-of-the-art
result for model-based algorithms still incurs a burn-in that scales at least quadratically in S (Zhang et al.,
2021a), while the burn-in cost of the best model-free algorithms (particularly with the aid of variance reduc-
tion introduced in Zhang et al. (2020)) still suffers from highly sub-optimal horizon dependency (Li et al.,
2021a).

1.4    Notation
Before proceeding, let us introduce a set of notation to be used throughout. Let 1 and 0 indicate respectively
the all-one vector and the all-zero vector. Let es denote the s-th standard basis vector (which has 1 at the
s-th coordinate and 0 otherwise). For any set X , ∆(X ) represents the set of probability distributions over
the set X . For any positive integer N , we denote [N ] = {1, . . . , N }. For any two vectors x, y with the
same dimension, we use hx, yi (or x⊤ y) to denote the inner product of x and y. For any integer S > 0, any
probability vector p ∈ ∆([S]) and another vector v = [vi ]1≤i≤S , we denote by
                                                                                 2
                               V(p, v) := hp, v 2 i − (hp, vi)2 = p, v − hp, vi1                          (13)
the associated variance, where v 2 = [vi2 ]1≤i≤S represents element-wise square of v. For any two vectors
a = [ai ]1≤i≤n and b = [bi ]1≤i≤n , the notation a ≥ b (resp. a ≤ b) means ai ≥ bi (resp. ai ≤ bi ) holds

                                                      7
simultaneously for all i. Without loss of generality, we assume throughout that K is a power of 2 to
streamline presentation.


2     Problem formulation
In this section, we introduce the basics of tabular online RL, as well as some basic assumptions to be imposed
throughout.

Basics of finite-horizon MDPs. This paper concentrates on time-inhomogeneous (or nonstationary)
finite-horizon MDPs. Throughout the paper, we employ S = {1, . . . , S} to denote the state space, A =
{1, . . . , A} the action space, and H the planning horizon. The notation P = Ph : S × A → ∆(S) 1≤h≤H
denotes the probability transition kernel of the MDP; for any current state s at any step h, if action a is
taken, then the state at the nextstep h + 1 of the environment is randomly drawn from Ps,a,h := Ph (· | s, a) ∈
∆(S). Also, the notation R = Rs,a,h ∈ ∆([0, H]) 1≤h≤H,s∈S,a∈A indicates the reward distribution; that
is, while executing action a in state s at step h, the agent receives an immediate reward — which is
non-negative
                and possibly stochastic — drawn from the distribution Rs,a,h . We shall also denote by r =
  rh (s, a) 1≤h≤H,s∈S,a∈A the mean reward function, so that rh (s, a) := Er′ ∼Rs,a,h [r′ ] ∈ [0, H] for any (s, a, h)-
tuple. Additionally, a deterministic policy π = {πh : S → A}1≤h≤H stands for an action selection rule, so
that the action selected in state s at step h is given by πh (s). The readers can consult standard textbooks
(e.g., Bertsekas (2019)) for more extensive descriptions.
                                                                           ′
    In each episode, a trajectory (s1 , a1 , r1′ , s2 , . . . , sH , aH , rH ) is rolled out as follows: the learner starts
from an initial state s1 independently drawn from some fixed (but unknown) distribution µ ∈ ∆(S); for
each step 1 ≤ h ≤ H, the learner takes action ah , gains an immediate reward rh′ ∼ Rsh ,ah ,h , and the
environment transits to the state sh+1 at step h + 1 according to Psh ,ah ,h . Note that both the reward and
the state transition are independently drawn from their respective distributions, depending solely on the
current state-action-step triple but not any previous outcomes. All of our results in this paper operate under
the following assumption on the total reward.
                                                                                                           PH
Assumption 1. For any possible trajectory (s1 , a1 , r1′ , . . . , sH , aH , rH    ′
                                                                                      ), one always has 0 ≤ h=1 rh′ ≤ H.

As can be easily seen, Assumption 1 is less stringent than another common choice that assumes rh′ ∈ [0, 1]
for any h in any episode. In particular, Assumption 1 allows for sparse and spiky rewards along an episode;
more discussions can be found in (Jiang and Agarwal, 2018; Wang et al., 2020).

Value function and Q-function. For any given policy π, one can define the value function V π = {Vhπ :
S → R} and the Q-function Qπ = {Qπh : S × A → R} such that
                                       
                            H
                            X
            Vhπ (s) := Eπ    rj′ sh = s ,                    ∀(s, h) ∈ S × [H],              (14a)
                                j=h
                                                            
                                   H
                                   X
              Qπh (s, a) := Eπ        rj′ (sh , ah ) = (s, a) ,               ∀(s, a, h) ∈ S × A × [H],           (14b)
                                j=h
                                                                        
where the expectation Eπ [·] is taken over the randomness of an episode (sh , ah , rh′ ) 1≤h≤H generated under
policy π, that is, aj = πj (sj ) for every h ≤ j ≤ H (resp. h < j ≤ H) is chosen in the definition of Vhπ
(resp. Qπh ). Accordingly, we define the optimal value function and the optimal Q-function respectively as:
                       Vh⋆ (s) := max Vhπ (s),                            ∀(s, h) ∈ S × [H],                        (15a)
                                   π
                    Q⋆h (s, a) := max Qπh (s, a)                          ∀(s, a, h) ∈ S × A × [H].                 (15b)
                                   π

Throughout this paper, we shall often abuse the notation by letting both Vhπ and Vh⋆ (resp. Qπh and Q⋆h )
represent S-dimensional (resp. SA-dimensional) vectors containing all elements of the corresponding value

                                                                 8
functions (resp. Q-functions). Two important properties are worth mentioning: (a) the optimal value and
the optimal Q-function are linked by the Bellman equation:
                                            ⋆
         Q⋆h (s, a) = rh (s, a) + Ph,s,a , Vh+1 ,       Vh⋆ (s) = max Q⋆h (s, a′ ),    ∀(s, a, h) ∈ S × A × [H];    (16)
                                                                   a
                                                                   ′



(b) there exists a deterministic policy, denoted by π ⋆ , that achieves optimal value functions and Q-functions
for all state-action-step tuples simultaneously, that is,
                    ⋆                               ⋆
                 Vhπ (s) = Vh⋆ (s)      and     Qπh (s, a) = Q⋆h (s, a),        ∀(s, a, h) ∈ S × A × [H].

Data collection protocol and performance metrics. During the learning process, the learner is allowed
to collect K episodes of samples (using arbitrary policies it selects). More precisely, in the k-th episode, the
learner is given an independently generated initial state sk1 ∼ µ, and                        k
                                                                       executes policy π (chosen based on
data collected in previous episodes) to obtain a sample trajectory (skh , akh , rhk ) 1≤h≤H , with skh , akh and rhk
denoting the state, action and immediate reward at step h of this episode.
    To evaluate the learning performance, a widely used metric is the (cumulative) regret over all K episodes:
                                                        K 
                                                        X                         
                                                                           k
                                        Regret(K) :=       V1⋆ (sk1 ) − V1π (sk1 ) ,                                (17)
                                                        k=1

and our goal is to design an online RL algorithm that minimizes Regret(K) regardless of the allowable sample
size K. It is also well-known (see, e.g., Jin et al. (2018)) that a regret bound can often be readily translated
into a PAC sample complexity result, the latter of which counts the number of episodes needed to find an
                                                                   
ε-optimal policy π b in the sense that Es1 ∼µ V1⋆ (s1 ) − V1bπ
                                                               (s1 ) ≤ ε. For instance, the reduction argument
in Jin et al. (2018) reveals that: if an algorithm achieves Regret(K) ≤ f (S, A, H)K 1−α for some function
f and some parameter α ∈ (0, 1), then by randomly selecting a policy from {π k }1≤k≤K as π       b one achieves
       ⋆           b                                                                                    1/α
Es1 ∼µ V (s ) − V (s ) . f (S, A, H)K , thus resulting in a sample complexity bound of f (S,A,H)
         1   1
                    π
                    1   1
                                           −α
                                                                                                            ε  .


3     A model-based algorithm: Monotonic Value Propagation
In this section, we formally describe our algorithm: a simple variation of the model-based algorithm called
Monotonic Value Propagation proposed by Zhang et al. (2021a). We present the full procedure in Algo-
rithm 1, and point out several key ingredients.

    • Optimistic updates using upper confidence bounds (UCB). The algorithm implements the optimism
      principle in the face of uncertainty by adopting the frequently used UCB-based framework (see, e.g.,
      UCBVI by Azar et al. (2017)). More specifically, the learner calculates the optimistic Bellman equation
      backward (from h = H, . . . , 1): it first computes an empirical estimate Pb = {Pbh ∈ RSA×S }1≤h≤H of
      the transition probability kernel as well as an empirical estimate rb = {b     rh ∈ RSA }1≤h≤H of the mean
      reward function, and then maintains upper estimates for the associated value function and Q-function
      using
                                                 
                              Qh (s, a) ← min rbh (s, a) + hPbs,a,h , Vh+1 i + bh (s, a), H ,               (18a)
                                     Vh (s) ← maxa Qh (s, a)                                                       (18b)

      for all state-action pairs. Here, Qh (resp. Vh ) indicates the running estimate for the Q-function
      (resp. value function), whereas bh (s, a) ≥ 0 is some suitably chosen bonus term that compensates
      for the uncertainty. The above opportunistic Q-estimate in turn allows one to obtain a policy estimate
      (via a simple greedy rule), which will then be executed to collect new data. The fact that we first
      estimate the model (i.e., the transition kernel and mean rewards) makes it a model-based approach.
      Noteworthily, the empirical model (Pb, rb) shall be updated multiple times as new samples continue to
      arrive, and hence the updating rule (18) will be invoked multiple times as well.


                                                              9
 Algorithm 1: Monotonic Value Propagation (MVP) (Zhang et al., 2021a)
1  input: state space S, action space A, horizon H, total number of episodes K, confidence parameter
                             √
    δ, c1 = 4609 , c2 = 2 2, c3 = 9 .
                                            544
                               ′               δ                   ′
 2 initialization: set δ ← 200SAH 2 K 2 , and for all (s, a, s , h) ∈ S × A × S × [H], set θh (s, a) ← 0,
                         all        ′                       ′
    κh (s, a) ← 0, Nh (s, a, s ) ← 0, Nh (s, a, s ) ← 0, Nh (s, a) ← 0, Qh (s, a) ← H, Vh (s) ← H.
 3 for k = 1, 2, . . . , K do
 4     Set π k such that πhk (s) = arg maxa Qh (s, a) for all s ∈ S and h ∈ [H]. /* policy update.                    */
 5     for h = 1, 2, ..., H do
 6         Observe skh , take action akh = arg maxa Qh (skh , a), receive rhk , observe skh+1 . /* sampling.
                */
 7         (s, a, s′ ) ← (skh , akh , skh+1 ).
 8         Update Nhall (s, a) ← Nhall (s, a) + 1, Nh (s, a, s′ ) ← Nh (s, a, s′ ) + 1, θh (s, a) ← θh (s, a) + rhk ,
             κh (s, a) ← κh (s, a) + (rhk )2 .
           /* perform updates using data of this epoch.                                                               */
                                                 log2 K
 9         if Nhall (s, a) ∈ {1,
                               P   2,  . . . , 2        } then
10              Nh (s, a) ← e      s h
                                      N (s, a, se). // number of visits to (s, a, h) in this epoch.
                               θh (s,a)
11              rbh (s, a) ← Nh (s,a) . // empirical rewards of this epoch.
                            κh (s,a)
12              bh (s, a) ← N
                σ             h (s,a)
                                      . // empirical squared rewards of this epoch.
13              Pb
                 s,a,h  s) ← Nh (s,a,e
                       (e              s)
                                Nh (s,a)  for all se ∈ S. // empirical transition for this epoch.
14              Set TRIGGERED = TRUE, and θh (s, a) ← 0, κh (s, a) ← 0, Nh (s, a, se) ← 0 for all se ∈ S.
         /* optimistic Q-estimation using empirical model of this epoch.                                                */
15       if TRIGGERED= TRUE then
16           Set TRIGGERED = FALSE, and VH+1 (s) ← 0 for all s ∈ S.
17           for h = H, H − 1, ..., 1 do
18              for (s, a) ∈ S × A do
19

                                           s                                     s                           
                                               V(Pbs,a,h , Vh+1 ) log δ1′            σ            rh (s, a))2 log δ1′
                                                                                     bh (s, a) − (b
                         bh (s, a) ← c1                                   + c2
                                                max{Nh (s, a), 1}                         max{Nh (s, a), 1}
                                                           H log δ1′
                                                      + c3                 ,                                     (19)
                                                     max{Nh (s, a), 1}
                                        
20                       Qh (s, a) ← min rbh (s, a) + hPbs,a,h , Vh+1 i + bh (s, a), H , Vh (s) ← max Qh (s, a). (20)
                                                                                                              a




     • An epoch-based procedure and a doubling trick. Compared to the original UCBVI (Azar et al., 2017),
       one distinguishing feature of MVP is to update the empirical transition kernel and empirical rewards in
       an epoch-based fashion, as motivated by a doubling update framework adopted in Jaksch et al. (2010).
       More concretely, the whole learning process is divided into consecutive epochs via a simple doubling
       rule; namely, whenever there exits a (s, a, h)-tuple whose visitation count reaches a power of 2, we
       end the current epoch, reconstruct the empirical model (cf. lines 11 and 13 of Algorithm 1), compute
       the Q-function and value function using the newly updated transition kernel and rewards (cf. (20)),
       and then start a new epoch with an updated sampling policy. This stands in stark contrast with the
       original UCBVI, which computes new estimates for the transition model, Q-function and value function
       in every episode. With this doubling rule in place, the estimated transition probability vector for each
       (s, a, h)-tuple will be updated by no more than log2 K times, a feature that plays a pivotal role in
       significantly reducing some sort of covering number needed in our covering-based analysis (as we shall
       elaborate on shortly in Section 4). In each epoch, the learned policy is induced by the optimistic Q-
       function estimate — computed based on the empirical transition kernel of the current epoch — which


                                                                  10
       will then be employed to collect samples in all episodes of the next epoch. More technical explanations
       of the doubling update rule will be provided in Section 4.2.
    • Monotonic bonus functions. Another crucial step in order to ensure near-optimal regret lies in careful
      designs of the data-driven bonus terms {bh (s, a)} in (18a). Here, we adopt the monotonic Bernstein-
      style bonus function for MVP originally proposed in Zhang et al. (2021a), to be made precise in (19).
      Compared to the bonus function in Euler (Zanette and Brunskill, 2019) and UCBVI (Azar et al., 2017),
      the monotonic bonus form has a cleaner structure that effectively avoids large lower-order terms. Note
      that in order to enable variance-aware regret, we also need to keep track of the empirical variance of
      the (stochastic) immediate rewards.

Remark 1. We note that a doubling update rule has also been used in the original MVP (Zhang et al., 2021a).
A subtle difference between our modified version and the original one lies in that: when the visitation count
for some (s, a, h) reaches 2i for some integer i ≥ 1, we only use the second half of the samples (i.e., the
          2i−1
{2i−1 + l}l=1  -th samples) to compute the empirical model, whereas the original MVP makes use of all the 2i
samples. This modified step turns out to be helpful in our analysis, while still preserving sample efficiency
in an orderwise sense (since the latest batch always contains at least half of the samples).


4     Key technical innovations
In this section, we point out the key technical hurdles the previous approach encounters when mitigating
the burn-in cost, and put forward a new strategy to overcome such hurdles. For ease of presentation, let us
introduce a set of augmented notation to indicate several running iterates in Algorithm 1, which makes clear
the dependency on the episode number k and will be used throughout all of our analysis.

    • Pbs,a,h
        k
              ∈ RS : the latest update of the empirical transition probability vector Pbs,a,h before the k-th
      episode.
    • rbhk (s, a) ∈ [0, H]: the latest update of the empirical reward rbh (s, a) before the k-th episode.
      bhk (s, a) ∈ [0, H 2 ]: the latest update of the empirical squared reward σ
    • σ                                                                         bh (s, a) before the k-th episode.
    • bkh (s, a) ≥ 0: the latest update of the bonus term bh (s, a) before the k-th episode.

    • Nhk,all (s, a): the total visitation count of the (s, a, h)-tuple before the beginning of the k-th episode.
    • Nhk (s, a): the visitation count Nh (s, a) of the (s, a, h)-tuple of the latest doubling batch used to compute
      Pbs,a,h before the k-th episode. When Nhk,all (s, a) = 0, we define Nhk (s, a) = 1 for ease of presentation.
    • Vhk ∈ RS : the value function estimate Vh before the beginning of the k-th episode.
    • Qkh ∈ RSA : the Q-function estimate Qh before the beginning of the k-th episode.

Another notation for the empirical transition probability vector is also introduced below:
                                               (j)
    • For any j ≥ 2 (resp. j = 1), let Pbs,a,h be the empirical transition probability vector for (s, a, h)
                                                                        j−2
      computed using the j-th batch of data, i.e., the {2j−2 + i}i=12
                                                                        -th samples (resp. the 1st sample) for
                                           b (0)    1
      (s, a, h). For completeness, we take Ps,a,h = S 1 for the 0-th batch.
                       (j)              (j)
                                       bh (s, a)) denote the empirical reward (resp. empirical squared reward)
    • Similarly, let rbh (s, a) (resp. σ
      w.r.t. (s, a, h) based on the j-th batch of data.




                                                         11
4.1    Technical barriers in prior theory for UCBVI
Let us take a close inspection on prior regret analysis for UCB-based model-based algorithms, in order to illu-
minate the part that calls for novel analysis. To simplify presentation, this subsection assumes deterministic
rewards so that each empirical reward is replaced by its mean.
   Let us look at the original UCBVI algorithm proposed by Azar et al. (2017). Standard decomposition
arguments employed in the literature (e.g., Azar et al. (2017); Jaksch et al. (2010); Zhang et al. (2021a))
decompose the regret as follows:
                                       X  k,all                           X               
                          Regret(K) ≤       Pbsk ,ak ,h − Psk ,ak ,h Vh+1
                                                                      k
                                                                          +   bkh skh , akh
                                                                h   h            h   h
                                                        k,h                                             k,h
                                                          X                                           
                                                                                              k      πk
                                                    +           Psk ,ak ,h − esk             Vh+1 − Vh+1  ;           (21)
                                                                    h   h            h+1
                                                          k,h

                                                                                   k
see also the derivation in Section 5. Here, we abuse the notation by letting Vh+1     (resp. bkh ) be the value
                                                                                                           k,all
function estimate (resp. bonus term) of UCBVI before the k-th episode, and in the meantime, we let Pbs,a,h
represent the empirical transition probability for the (s, a, h)-tuple computed using all samples before the
k-th episode (note that we add the superscript all to differentiate it from its counterpart in our algorithm).
In order to achieve full-range optimal regret, one needs to bound the three terms on the right-hand side of
(21) carefully, among which two are easy to handle.

   • It is known that the second term (i.e., the aggregate bonus) on the right-hand side of (21) can be con-
     trolled in a rate-optimal manner if we adopt suitably chosen Bernstein-style bonus; see, e.g., Zhang et al.
     (2021a), which will also be made clear shortly in Section 5.
   • In the meantime, the third term on the right-hand side of (21) can be easily coped with by means of
     standard martingale concentration bounds (e.g., the Freedman inequality).

    It then comes down to controlling the first term on the right-hand side of (21). This turns out to be
the most challenging part, owing to the complicated statistical dependency between Pbsk,all              k
                                                                                           k ,ak ,h and Vh+1 . To
                                                                                           h h

see this, note that Pbk,all is constructed based on all previous samples of (s, a, h), which has non-negligible
                     s,a,h
                  k       k
influences upon Vh+1 as Vh+1   is computed based on previous samples. At least two strategies have been
proposed to circumvent this technical difficulty, which we take a moment to discuss.
                                 k            ⋆
   • Strategy 1: replacing Vh+1       with Vh+1   for large k. Most prior analysis for model-based algorithms
     (Azar et al., 2017; Dann et al., 2017; Zanette and Brunskill, 2019; Zhang et al., 2021a) decomposes
              X  k,all                     
                    Pbsk ,ak ,h − Psk ,ak ,h Vh+1
                                              k
                       h     h          h       h
               k,h
                                 X                                    X  k,all                             
                           =           Pbsk,all
                                           k ,ak ,h − P k  k
                                                       s ,a ,h   V ⋆
                                                                  h+1 +    b
                                                                           Psk ,ak ,h
                                                                                      − P k  k
                                                                                         s ,a ,h
                                                                                                    k
                                                                                                   Vh+1    ⋆
                                                                                                        − Vh+1  .     (22)
                                            h       h           h   h                           h   h         h   h
                                 k,h                                                     k,h

      The rationale behind this decomposition is as follows:
                        ⋆
       (i) given that Vh+1 is fixed and independent from the data, the first term on the right-hand side of
           (22) can be bounded easily using Freedman’s inequality;
                                                                            k        ⋆
       (ii) the second term on the right-hand side of (22) would vanish as Vh+1 and Vh+1 become exceedingly
            close (which would happen as k becomes large enough).
      Such arguments, however, fall short of tightness when analyzing the initial stage of the learning process:
                  k       ⋆
      given that Vh+1 − Vh+1  cannot be sufficiently small at the beginning, this approach necessarily results
      in a huge burn-in cost.
   • Strategy 2: a covering-based argument. Let us discuss informally another potential strategy that
                                                                                       k,all
     motivates our analysis. We first take a closer look at the relationship between Pbs,a,h      k
                                                                                             and Vh+1 . Abusing

                                                                            12
        notation by letting Nhk,all (s, a) be the total number of visits to a (s, a, h)-tuple before the k-th episode
                                                        k,all
        in UCBVI, we can easily observe that Pbs,a,h                 k
                                                              and Vh+1   are statistically independent conditioned on
                 k,all
        the set Nh (s, a) (s,a,k)∈S×A×[K] . Consequently, if we “pretend” that {Nhk,all (s, a)} are pre-fixed
                                 k,all
        and independent of {Pbs,a,h     }, then one can invoke standard concentration inequalities to obtain a
                                       P                              k
        high-probability bound on k,h Pbsk,all  k ,ak ,h − Psk ,ak ,h Vh+1 in a desired manner. The next step would
                                                    h   h           h    h

        then be to invoke a union bound over all possible configurations of {Nhk,all (s, a)}, so as to eliminate
        the above independence assumption. The main drawback of this approach, however, is that there are
        exponentially many (e.g., in K) possible choices of {Nhk,all (s, a)}, inevitably loosening the regret bound.


4.2      Our approach
In light of the covering-based argument in Section 4.1, one can only hope this analysis strategy to work if
substantial compression (i.e., a significantly reduced covering number) of the visitation counts is plausible.
This motivates our introduction of the doubling batches as described in Section 3, so that for each (s, a, h)-
tuple, the empirical model Pbs,a,h and its associated visitation count Nh (s, a) (for the associated batch) are
updated at most log2 K times (see line 9 of Algorithm 1). Compared to the original UCBVI that recomputes
the transition model in every episode, our algorithm allows for significant reduction of the covering number
of the visitation counts, thanks to its much less frequent updates.
    Similar to (21), we are in need of bounding the following term when analyzing Algorithm 1:
                                         X                            
                                              Pbskk ,ak ,h − Psk ,ak ,h Vh+1
                                                                         k
                                                                             .                             (23)
                                                            h   h            h   h
                                              k,h

In what follows, we present our key ideas that enable tight analysis of this quantity, which constitute our
main technical innovations. The complete regret analysis for Algorithm 1 is postponed to Section 5.

4.2.1     Key concept: profiles

One of the most important concepts underlying our analysis for Algorithm 1 is the so-called “profile”, defined
below.
Definition 1 (Profile). Consider any combination {Nhk,all (s, a)}(s,a,h,k)∈S×A×[H]×[K] . For any k ∈ [K],
define
                                           (    
                                  k          max j ∈ N : 2j−1 ≤ Nhk,all (s, a) , if Nhk,all (s, a) > 0;
      ∀(s, a, h) ∈ S × A × [H] : Is,a,h :=                                                              (24a)
                                             0,                                  if Nhk,all (s, a) = 0.

The profile for the k-th episode (1 ≤ k ≤ K) and the total profile are then defined respectively as
                                                  k
                                           I k := Is,a,h (s,a,h)∈S×A×[H]
                                                                                                               (24b)
                                         and            I := {I k }K
                                                                   k=1 .                                       (24c)

   Clearly, once a total profile I w.r.t. {Nhk,all (s, a)} is given, one can write
                                             k
                                         (Is,a,h )
                             Pbs,a,h
                               k
                                     = Pbs,a,h     ,            ∀(s, a, h, k) ∈ S × A × [H] × [K].              (25)

In other words, a total profile specifies all the time instances and locations when the empirical model is
updated. Given that each Nhk (s, a) is recomputed only when the associated empirical model is updated (see
line 10 of Algorithm 1), the total profile also provides a succinct representation of the set {Nhk (s, a)}.
    In order to quantify the degree of compression Definition 1 offers when representing the update times
and locations, we provide an upper bound on the number of possible total profiles in the lemma below.


                                                                    13
Lemma 5. Suppose that K ≥ SAH log2 K. Then the number of all possible total profiles w.r.t. Algorithm 1
is at most
                                    (4SAHK)SAH log2 K+1 .

Proof. Define the following set (which will be useful in subsequent analysis as well)
         n                                                                                                 o
                                                                                       SAH
    C := I = {I 1 , . . . , I K } I 1 ≤ I 2 ≤ · · · ≤ I K , I k ∈ 0, 1, · · · , log2 K     for all 1 ≤ k ≤ K .   (26)

Due to the monotonicity constraints, it is easily seen that the total profile of any set {Nhk (s, a)} must lie
within C. It then boils down to proving that |C| ≤ (4SAHK)SAH log2 K+1 , which can be accomplished via
elementary combinatorial calculations. The complete proof is deferred to Appendix B.1.

   In comparison to using {Nhk,all (s, a)} to encode all update times and locations — which might have
exponentially many (in K) possibilities — the use of doubling batches in Algorithm 1 allows for remarkable
compression (as the exponent of the number of possibilities only scales logarithmically in K).

4.2.2   Decoupling the statistical dependency

An expanded view of randomness w.r.t. state transitions. To facilitate analysis, we find it helpful
to look at a different yet closely related way to generate independent samples from a generative model.
Definition 2 (An expanded sample set from a generative model). Let Dexpand be a set of SAHK independent
samples generated as follows: for each (s, a, h) ∈ S × A × [H], draw K independent samples (s, a, h, s′,(i) )
               ind.
obeying s′,(i) ∼ Ps,a,h (1 ≤ i ≤ K).

    Crucially, Dexpand can be viewed as an expansion of the original dataset — denoted by Doriginal — collected
in online learning, as we can couple the data collection processes of Doriginal and Dexpand as follows:

  (i) generate Dexpand before the beginning of the online process;
 (ii) during the online learning process, whenever a sample needs to be drawn from (s, a, h), one can take
      an unused sample of (s, a, h) from Dexpand without replacement.

This allows one to conduct analysis alternatively based on the expanded sample set Dexpand , which is some-
times more convenient (as we shall detail momentarily). Unless otherwise noted, all analyses in our proof
assume that Doriginal and Dexpand are coupled through the above simulation process.
                            (j)
   In the sequel, we let Pb     (cf. the beginning of Section 4) denote the empirical probability vector based
                                  s,a,h
on the j-th batch of data from Doriginal and Dexpand interchangeably, as long as it is clear from the context.

A starting point: a basic decomposition. We now describe our approach to tackling the complicated
statistical dependency between Pbs,a,h
                                 k          k
                                       and Vh+1 . To begin with, from relation (25) we can write

               X H D
               K X                                   E X  H D (I
                                                        K X                 )   k,true
                                                                                               E
                                                                  sk ,ak ,h
                    Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                                 k
                                                      =      Pbsk ,ahk ,hh − Psk ,ak ,h , Vh+1
                                                                                           k
                              h     h        h   h                          h     h       h   h
               k=1 h=1                                           k=1 h=1

                    X X
                   log2 K
                                      (l)
                                                         K
                                                         X  n
                                                                                   k,true
                                                                                            o     
               =                    Pbs,a,h − Ps,a,h ,         k    k                         k
                                                           1 (sh , ah ) = (s, a), Is,a,h = l Vh+1
                    l=0 s,a,h                            k=1

                    X X
                   log2 K
                                      (l)
                                                         K
                                                         X  n
                                                                                     k,true
                                                                                               o     
               ≤                    Pbs,a,h − Ps,a,h ,     1 (skh , akh ) = (s, a), Is,a,h       k
                                                                                            = l Vh+1   + SAH 2
                    l=1 s,a,h                            k=1

                  X X  X D (l)                          E
                 log2 K 2   l−1

                           b                  kl,j,s,a,h
               =           Ps,a,h − Ps,a,h , Vh+1           + SAH 2 ,                                            (27)
                    l=1     j=1     s,a,h



                                                                  14
                                                                  k,true
where I true = {I 1,true , · · · , I K,true } with I k,true = {Is,a,h    } denotes the total profile w.r.t. the true visitation
counts in the online learning process, kl,j,s,a,h denotes the episode index of the sample that visits (s, a, h) for
the (2l−1 + j)-th time in the online learning process, and we take Vh+1              k
                                                                                         = 0 for any k > K. Here, the third
                                                k
line makes use of the fact that 0 ≤ Vh+1 (s) ≤ H for all s ∈ S. The decomposition (27) motivates us to first
                  P                (l)               k
control the term       s,a,h    Pb
                               s,a,h     − Ps,a,h , V l,j,s,a,h , leading to the following 3-step analysis strategy.
                                                      h+1

   1) For any given total profile I ∈ C and any fixed 1 ≤ l ≤ log2 K, develop a high-probability bound on a
      weighted sum taking the following form
                                          X  (l)              
                                               Pbs,a,h − Ps,a,h Xh+1,s,a ,                             (28)
                                                      s,a,h

      where each vector Xh+1,s,a is any deterministic function of I and the samples collected for steps
                                                                 (l)
      h′ ≥ h + 1. Given the statistical independence between Pbs,a,h and those samples for steps h′ ≥ h + 1
      (in the view of Dexpand ), we can bound (28) using standard martingale concentration inequalities.
   2) Take the union bound over all possible I ∈ C — with the aid of Lemma 5 — to obtain a uniform control
      of the term (28), simultaneously accounting for all I ∈ C and all associated sequences {Xh+1,s,a }.
   3) We then demonstrate that the above uniform bounds can be applied to the decomposition (27) to
      obtain a desired bound.

Main steps. We now carry out the above three steps.
Steps 1) and 2). Let us first specify the types of vectors {Xh,s,a } mentioned above in (28). For each total
                                          
profile I ∈ C (cf. (26)), consider any set Xh,I 1≤h≤H obeying: for each 1 ≤ h ≤ H,

   • Xh+1,I is given by a deterministic function of I and
                               n        k
                                     (Is,a,h        (I k              (I k
                                                                                   o
                                             ′)            ′)               ′)
                                   Pbs,a,h ′    , rbh′s,a,h (s, a), σ
                                                                    bh′s,a,h (s, a)                              ;
                                                                                       h<h′ ≤H,(s,a,k)∈S×A×[K]


   • kXk∞ ≤ H for each vector X ∈ Xh,I ;
   • Xh,I is a set of no more than K + 1 non-negative vectors in RS , and contains the all-zero vector 0.
                               
Given such a construction of Xh,I , we can readily conduct Steps 1) and 2), with a uniform concentration
bound stated below.
                                                               
Lemma 6. Suppose that K ≥ SAH log2 K, and construct a set Xh,I 1≤h≤H for each I ∈ C satisfying the
above properties. Then with probability at least 1 − δ ′ ,
             X                                             X       n                               o
                         (l)                                            (l)
                       Pbs,a,h − Ps,a,h , Xh+1,s,a ≤           max Pbs,a,h − Ps,a,h , Xh+1,s,a , 0
         s,a,h∈S×A×[H]                                           s,a,h∈S×A×[H]
                    v                                                   
                    u
                    u 8 X                                             1
                  ≤ t l−2       V Ps,a,h , Xh+1,s,a 6SAH log22 K + log ′
                      2                                               δ
                          s,a,h
                                                         
                                4H                      1
                            + l−2 6SAH log22 K + log ′                                                                    (29)
                                2                      δ
holds simultaneously for all I ∈ C, all 2 ≤ l ≤ log2 K + 1, and all sequences {Xh,s,a }(s,a,h)∈S×A×[H] obeying
                                                                            δ
Xh,s,a ∈ Xh+1,I , ∀(s, a, h) ∈ S × A × [H]. Here, we recall that δ ′ = 200SAH 2K2 .



Proof. We first invoke the Freedman inequality to bound the target quantity for any fixed I ∈ C, any fixed
integer l, and any fixed feasible sequence {Xh,s,a }, before applying the union bound to establish uniform
control. See Appendix B.2 for details.

                                                                    15
Step 3). Next, we turn to Step 3), which is accomplished via the following lemma. Note that we also provide
                                                 P                                         P
upper bounds for two additional quantities: k,h max Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                                                                 k
                                                                                     , 0 and k,h Pbskk ,ak ,h −
                                                                       h h
              k
                  2                                           h h                                   h h

Psk ,ak ,h , Vh+1    , which will be useful in subsequent analysis.
    h    h


Lemma 7. Suppose that K ≥ SAH log2 K. With probability exceeding 1 − δ ′ , we have

                 X H D
                 K X                                E XK X
                                                         H    nD                                E o
                       b k                       k
                      Psk ,ak ,h − Psk ,ak ,h , Vh+1 ≤     max Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                                                                            k
                                                                                                 ,0
                             h   h              h   h                               h    h     h   h
                 k=1 h=1                                            k=1 h=1
                        v
                        u             H
                                    K X                                            
                        u           X                                            1
                      ≤ t16(log2 K)                     k
                                        V Psk ,ak ,h , Vh+1    6SAH log22 K + log ′
                                            h h                                  δ
                                               k=1 h=1
                                                                                    1
                                          + 49SAH 2 log32 K + 8H(log2 K) log
                                                                                    δ′
and
                        H D
                      K X
                      X                                           2 E
                                 Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                                              k
                                     h    h             h    h
                      k=1 h=1
                                v
                                u           H
                                          K X                                            
                                u         X                                            1
                           ≤ 8H t(log2 K)                     k
                                              V Psk ,ak ,h , Vh+1    6SAH log22 K + log ′
                                                  h h                                  δ
                                                        k=1 h=1
                                                                                        1
                                          + 49SAH 3 log32 K + 8H 2 (log2 K) log            .
                                                                                        δ′
Proof. This result is proved by combining the uniform bound in Lemma 6 with the decomposition (27). See
Appendix B.3.

   Thus far, we have obtained high-probability bounds on the most challenging terms. The complete proof
of Theorem 1 will be presented next in Section 5.


5         Proof of Theorem 1
This section is devoted to proving Theorem 1. For notational convenience, let B be a logarithmic term
                                                                                        1
                                                B = 4000(log2 K)3 log(3SAH) log            ,               (30)
                                                                                        δ′
                                                                                 δ
where we recall that δ is the confidence parameter in Algorithm 1 and δ ′ = 200SAH 2 K 2 . When K ≤ BSAH,

the claimed result in Theorem 1 holds trivially since
                                         K 
                                         X                                        n√             o
                                                                k
                     Regret(K) =                V1⋆ (sk1 ) − V1π (sk1 ) ≤ HK = min    BSAH 3 K, HK .
                                         k=1

As a result, it suffices to focus on the scenario with
                                                                                                   1
                            K ≥ BSAH                        with B = 4000(log2 K)3 log(3SAH) log      .    (31)
                                                                                                   δ′

        Our regret analysis for Algorithm 1 consists of several steps described below.




                                                                      16
Step 1: the optimism principle. To begin with, we justify that the running estimates of Q-function
and value function in Algorithm 1 are always upper bounds on the optimal Q-function and the optimal value
function, respectively, thereby guaranteeing optimism in the face of uncertainty.
Lemma 8 (Optimism). With probability exceeding 1 − 4SAHKδ ′ , one has

                                                  Qkh (s, a) ≥ Q⋆h (s, a)             and           Vhk (s) ≥ Vh⋆ (s)                                             (32)

for all (s, a, h, k).

Proof. See Appendix C.1.

Step 2: regret decomposition. In view of the optimism shown in Lemma 8, the regret can be upper
bounded by
                                                       K
                                                       X                                  K
                                                                                k       X                  k      
                               Regret(K) =                      V1⋆ (sk1 ) − V1π (sk1 ) ≤   V1k (sk1 ) − V1π (sk1 )                                               (33)
                                                       k=1                                          k=1

with probability at least 1 − 4SAHKδ ′ . In order to control the right-hand side of (33), we first make note
of the following upper bound on V1k (sk1 ).
Lemma 9. For every 1 ≤ k ≤ K, one has
                       H 
                       X                                                                                                                                  
        V1k (sk1 ) ≤           Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                                            k                                                                k
                                                                + bkh (skh , akh ) + rbhk (skh , akh ) + Psk ,ak ,h − esk , Vh+1                              .
                                  h       h            h    h                                                                h     h        h+1
                       h=1

Proof of Lemma 9. From the construction of Vhk and Qkh , it is seen that, for each 1 ≤ h ≤ H,

   Vhk (skh ) = Qkh (skh , akh ) ≤ rbhk (skh , akh ) + Pbskk ,ak ,h Vh+1
                                                                     k
                                                                         + bkh (skh , akh )
                                                                    h    h

              = Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                             k                                                                k
                                                 + bkh (skh , akh ) + rbhk (skh , akh ) + Psk ,ak ,h − esk , Vh+1    k
                                                                                                                  + Vh+1 (skh+1 ).
                       h   h          h       h                                                               h     h             h+1


Applying this relation recursively over 1 ≤ h ≤ H gives

  V1k (sk1 )
      XH                                                                                                      
  ≤          Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                          k                                                                k
                                              + bkh (skh , akh ) + rbhk (skh , akh ) + Psk ,ak ,h − esk , Vh+1      k
                                                                                                                 + VH+1 (skH+1 ),
                   h   h          h   h                                                                   h    h            h+1
      h=1

                     k
which combined with VH+1 = 0 concludes the proof.

    Combine Lemma 9 with (33) to show that, with probability at least 1 − 4SAHKδ ′ ,
                                        H
                                      K X
                                      X                                                               H
                                                                                                    K X
                                                                                                    X
                  Regret(K) ≤                          Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                                                                    k
                                                                                        +                      bkh (skh , akh )
                                                           h    h            h   h
                                      k=1 h=1                                                       k=1 h=1
                                      |                                 {z                  }       |          {z            }
                                                                    =: T1                                     =: T2
                                          K X
                                            H                                                       K H
                                                                                                                                                  !
                                          X                                                         X X                                   k
                                                                               k
                                      +                    Psk ,ak ,h − esk , Vh+1              +                  rbhk (skh , akh ) − V1π (sk1 )     ,           (34)
                                                             h h          h+1
                                          k=1 h=1                                                   k=1   h=1
                                          |                             {z                  }       |                      {z                       }
                                                                    =: T3                                                =: T4

leaving us with four terms to control. In particular, T1 has already been upper bounded in Section 4.2, and
hence we shall describe how to bound T2 , . . . , T4 in the sequel.




                                                                                     17
Step 3.1: bounding the terms T2 , T3 and T4 . In this section, we seek to bound the terms T2 , T3 and
T4 defined in the regret decomposition (34). To do so, we find it helpful to first introduce the following
quantities that capture some sort of aggregate variances:
                                                 H
                                               K X
                                               X                                  
                                       T5 :=                V Pbskk ,ak ,h , Vh+1
                                                                              k
                                                                                   ,                  (35a)
                                                                    h     h
                                               k=1 h=1
                                                 H
                                               K X
                                               X
                                                                            k
                                                                                
                                       T6 :=                V Psk ,ak ,h , Vh+1  ,                    (35b)
                                                                    h     h
                                               k=1 h=1

with T5 denoting certain empirical variance and T6 the true variance. With these quantities in place, we
claim that the following bounds hold true.
Lemma 10. With probability exceeding 1 − 15SAH 2 K 2 δ ′ , one has
             r                           r
                                  1                               1               1
    T2 ≤ 61 2SAH(log2 K) log ′ T5 + 8 SAH 3 K(log2 K) log ′ + 151SAH 2(log2 K) log ′ ,                (36a)
                                  δ                                δ              δ
           r
                   1           1
   |T3 | ≤ 8T6 log ′ + 3H log ′ ,                                                                     (36b)
                  δ           δ
            r
                                   1                          1
   |T4 | ≤ 6 2SAH 3 K(log2 K) log ′ + 55SAH 2 (log2 K) log ′ .                                         (36c)
                                   δ                         δ
Proof. See Appendix C.2.

Step 3.2: bounding the aggregate variances T5 and T6 . The previous bounds on T2 and T3 stated in
Lemma 10 depend respectively on the aggregate variance T5 and T6 (cf. (35a) and (35b)), which we would
like to control now. By introducing the following quantities:
                                      H D
                                    K X
                                    X                                          2 E
                            T7 :=             Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                                                           k
                                                                                    ,                 (37a)
                                                 h    h             h     h
                                    k=1 h=1
                                      H D
                                    K X
                                    X
                                                                  k
                                                                                  2 E
                            T8 :=             Psk ,ak ,h − esk , Vh+1                 ,               (37b)
                                                 h    h             h+1
                                    k=1 h=1
                                    K X
                                    X H              nD                                    E o
                            T9 :=             max         Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                                                                       k
                                                                                            ,0 ,       (37c)
                                                            h   h             h   h
                                    k=1 h=1

we can upper bound T5 and T6 through the following lemma.
Lemma 11. With probability at least 1 − 4SAHKδ ′ ,

                       T5 ≤ T7 + T8 + 2HT2 + 6KH 2,                                                   (38a)
                                            r
                                                            1        1
                       T6 ≤ 2HT2 + 6KH 2 + 32H 2 T6 log ′ + 3H 2 log ′ + 2HT9 ,                       (38b)
                                                            δ       δ
                             r
                                           1            1
                      |T8 | ≤ 32H 2 T6 log ′ + 3H 2 log ′ .                                            (38c)
                                          δ            δ
Proof. See Appendix C.3.

Step 3.3: bounding the terms T1 , T7 and T9 . Taking a look at the above bounds on T2 , . . . , T6 , we
see that one still needs to deal with the terms T1 , T7 and T9 (see (34), (37a) and (37c), respectively). As




                                                              18
it turns out, these quantities have already been bounded in Section 4. Specifically, Lemma 7 tells us that:
with probability at least 1 − δ ′ ,
                      v
                      u               H
                                    K X
                      u            X                                   p
                      t
          T1 ≤ T9 ≤ BSAH                                k ) + BSAH 2 =
                                        V(Psk ,ak ,h , Vh+1             BSAHT6 + BSAH 2 ,            (39a)
                                             h   h
                               k=1 h=1
                      v
                      u       H
                            K X
                      u     X                                    p
                      t
                T7 ≤ H BSAH                     k ) + BSAH 3 = H
                                V(Psk ,ak ,h , Vh+1               BSAHT6 + BSAH 3 ,                     (39b)
                                                 h   h
                                   k=1 h=1


where we recall that B = 4000(log2 K)3 log(3SAH) log δ1′ .

Step 4: putting all pieces together. The previous bounds (36), (38) and (39) indicate that: with
probability at least 1 − 100SAH 2 K 2 δ ′ , one has
                                  p                 √
                             T2 ≤ BSAHT5 + BSAH 3 K + BSAH 2 ,                              (40a)
                                  p
                             T3 ≤ BT6 + HB,                                                 (40b)
                                  √
                                               3      2
                             T4 ≤ BSAH K + BSAH ,                                           (40c)
                             T5 ≤ T7 + T8 + 2HT2 + 6KH 2 ,                                              (40d)
                                  p
                             T6 ≤ BH 2 T6 + 2HT2 + 2HT9 + BH 2 + 6KH 2 ,                                 (40e)
                                  p
                             T8 ≤ BH 2 T6 + BH 2 ,                                                       (40f)
                                  p
                             T1 ≤ BSAHT6 + BSAH 2 ,                                                     (40g)
                                    p
                             T7 ≤ H BSAHT6 + BSAH 3 ,                                                   (40h)
                                  p
                             T9 ≤ BSAHT6 + BSAH 2 ,                                                      (40i)

where we again use B = 4000(log2 K)3 log(3SAH) log δ1′ .
                                                                                             √
     To solve the inequalities (40), we resort to the elementary AM-GM inequality: if a ≤ bc + d for some
                                         1
b, c ≥ 0, then it follows that a ≤ ǫb + 2ǫ c + d for any ǫ > 0. This basic inequality combined with (40) gives
                                                   
                                             1                   3            1
                            HT2 ≤ ǫT5 +         + 1 BSAH 3 + BSAH 3 + KH 2 ,
                                             2ǫ                  2            2
                                                                    
                                                                   1
                              T6 ≤ ǫT6 + 2HT2 + 2HT9 + 1 +             BH 2 + 6KH 2 ,
                                                                  2ǫ
                                                   
                                             1
                            HT9 ≤ ǫT6 +         + 1 BSAH 3 ,
                                             2ǫ
                                                   
                                             1
                              T8 ≤ ǫT6 +        + 1 BH 2 ,
                                             2ǫ
                                                   
                                             1
                              T7 ≤ ǫT6 +        + 1 BSAH 3 ,
                                             2ǫ
which in turn result in
                                                       
                                                   1
     T5 ≤ T7 + T8 + 2HT2 + 6KH 2 ≤ 2ǫT5 + 2ǫT6 +     + 2 BSAH 3 + 6KH 2 ;
                                                   ǫ
                                                                          
                                    1                                   3
     T6 ≤ ǫT6 + 2HT2 + 2HT9 + 1 +        BH 2 + 6KH 2 ≤ 3ǫT6 + 2ǫT5 +     + 8 BSAH 3 + 7KH 2 .
                                    2ǫ                                  ǫ

By taking ǫ = 1/20, we arrive at

                                     T5 + T6 . BSAH 3 + KH 2 ≍ KH 2 ,                                     (41)

                                                         19
where the last relation holds due to our assumption K ≥ SAHB (cf. (31)). Substituting this into (40) yields
                   √                    √                 √                     √
            T1 . BSAH 3 K, T2 . BSAH 3 K, T3 . BKH 2 and T4 . BSAH 3 K,                                (42)

provided that K ≥ SAHB. These bounds taken collectively with (34) readily give
                                                √
                                   Regret(K) . BSAH 3 K.

   Combining the two scenarios (i.e., K ≥ BSAH and K ≤ BSAH) reveals that with probability at least
1 − 100SAH 2K 2 δ ′ ,
                                                     r                          
                             √                                    5 SAHK
            Regret(K) . min             3
                                 BSAH K, HK . min           3
                                                        BSAH K log           , HK .
                                                                        δ′
                                                                      δ
The proof of Theorem 1 is thus completed by recalling that δ ′ = 200SAH 2 K2 .




6     Extensions
In this section, we develop more refined regret bounds for Algorithm 1 in order to reflect the role of several
problem-dependent quantities. Detailed proofs are postponed to Appendix D and Appendix F.


6.1    Value-based regret bounds
Thus far, we have not yet introduced the crucial quantity v ⋆ in Theorem 2, which we define now. When the
initial states are drawn from µ, we define v ⋆ to be the weighted optimal value:
                                                                
                                              v ⋆ := Es∼µ V1⋆ (s) .                                  (43)

Encouragingly, the value-dependent regret bound we develop in Theorem 2 is still minimax-optimal, as
asserted by the following lower bound.
Theorem 12. Consider any p ∈ [0, 1] and K ≥ 1. For any learning algorithm, there exists an MDP with S
states, A actions and horizon H obeying v ⋆ ≤ Hp and
                                                 p
                               E Regret(K) & min     SAH 3 Kp, KHp .                              (44)

   In fact, the construction of the hard instance (as in the proof of Theorem 12) is quite simple. Design a
new branch with 0 reward and set the probability of reaching thispbranch to be 1 − p. Also, with probability
p, we direct the learner to a hard instance with regret Ω(min{ SAH 3 Kp, KpH}) and optimal value H.
This guarantees that the optimal value obeys v ⋆ ≤ Hp and that the expected regret is at least
                                p                          √
                         Ω min      SAH 3 Kp, KHp & min          SAH 2 Kv ⋆ , Kv ⋆ .

See Appendix G for more details.


6.2    Cost-based regret bounds
Next, we turn to the cost-aware regret bound as in Theorem 3. Note that all other results except for
Theorem 3 (and a lower bound in this subsection) are about rewards as opposed to cost. In order to
facilitate discussion, let us first formally formulate the cost-based scenarios.
    Suppose that the reward distributions {Rh,s,a }(s,a,h) are replaced with the cost distributions {Ch,s,a }(s,a,h) ,
where each distribution Ch,s,a ∈ ∆([0, H]) has mean ch (s, a). In the h-th step of an episode, the learner
pays an immediate cost ch ∼ Ch,sh ,ah instead of receiving an immediate reward rh , and the objective of the


                                                         20
                                                   PH
learner is instead to minimize the total cost         h=1 ch (in an expected sense).            The optimal cost quantity c⋆
is then defined as
                                                                      X
                                                                       H       
                                               ⋆
                                              c := min Eπ,s1 ∼µ              ch .                                       (45)
                                                      π
                                                                       h=1

   In this cost-based setting, we find it convenient to re-define the Q-function and value function as follows:
                                  " H                        #
              π,cost
                                   X
            Qh       (s, a) := Eπ     ch′ (sh , ah ) = (s, a) ,          ∀(s, a, h) ∈ S × A × [H],
                                   h′ =h
                                   " H                #
                                    X
              Vhπ,cost (s) := Eπ           ch ′ sh = s ,                              ∀(s, h) ∈ S × ×[H],
                                   h′ =h

where we adopt different fonts to differentiate them from the original Q-function and value function. The
optimal cost function is then define by
                  Q⋆,cost
                   h      (s, a) = min Qπ,cost
                                        h      (s, a)           and         Vh⋆,cost (s) = min Vhπ,cost (s).
                                      π                                                     π

Given the definitions above, we overload the notation Regret(K) to denote the regret for the cost-based
scenario as
                                           K 
                                           X                                     
                                                  k
                              Regret(K) :=     V1π ,cost (sk1 ) − V1⋆,cost (sk1 ) .
                                                   k=1
One can also simply regard the cost minimization problem as reward maximization with negative rewards
by choosing rh = −ch . This way allows us to apply Algorithm 1 directly, except that (20) is replaced by
                                    n     n                                    o    o
                   Qh (s, a) ← max min rbh (s, a) + Pbs,a,h Vh+1 + bh (s, a), 0 , −H .                 (46)

Note that the proof of Theorem 3 closely resembles that of Theorem 2, which can be found in Appendix E.
    To confirm the tightness of Theorem 3, we develop the following matching lower bound, which resorts to
a similar hard instance as in the proof of Theorem 12.
Theorem 13. Consider any p ∈ [0, 1/4] and any K ≥ 1. For any algorithm, one can construct an MDP
with S states, A actions and horizon H obeying c⋆ ≍ Hp and
                         p                                    √
      E Regret(K) & min       SAH 3 Kp + SAH 2 , KH(1 − p) ≍ min   SAH 2 Kc⋆ + SAH 2 , KH .

The proof of this lower bound can be found in Appendix G.2.

6.3    Variance-dependent regret bound
The final regret bound presented in Theorem 4 depends on some sort of variance metrics. Towards this end,
let us first make precise the variance metrics of interest:
  (i) The first variance metric is defined as
                                          " H                       H
                                                                                        #
                                            X                     X                   
                                                              ⋆
                          var1 := max Eπ      V Psh ,ah ,h , Vh+1 +   Var Rh (sh , ah ) ,                               (47)
                                      π
                                                h=1                             h=1

      where {(sh , ah )}1≤h≤H represents a sample trajectory under policy π. This captures the maximal
      possible expected sum of variance with respect to the optimal value function {Vh⋆ }H
                                                                                         h=1 .

 (ii) Another useful variance metric is defined as
                                                                    X
                                                                     H                 
                                             var2 := max Varπ               rh s1 = s ,                                 (48)
                                                         π,s
                                                                      h=1

      where {rh }1≤h≤H denotes a sample sequence of immediate rewards under policy π. This indicates the
      maximal possible variance of the accumulative reward.

                                                               21
The interested reader is referred to Zhou et al. (2023) for further discussion about these two metrics. Our
final variance metric is then defined as
                                                     
                                          var := min var1 , var2 .                                      (49)

   With the above variance metrics in mind, we can then revisit Theorem 4. As a special case, when the
transition model is fully deterministic, the regret bound in Theorem 4 simplifies to
                                                                      
                                    Regret(K) ≤ O  e min SAH 2 , HK

for any K ≥ 1, which is roughly the cost of visiting each state-action pair. The full proof of Theorem 4 is
postponed to Appenndix F.
    To finish up, let us develop a matching lower bound to corroborate the tightness and optimality of
Theorem 4.
Theorem 14. Consider any p ∈ [0, 1] and any K ≥ 1. For any algorithm, one can find an MDP instance
with S states, A actions, and horizon H satisfying max{var1 , var2 } ≤ H 2 p and
                                               p
                            E Regret(K) & min       SAH 3 Kp + SAH 2 , KH .

    The proof of Theorem 14 resembles that of Theorem 12, except that we need to construct a hard instance
when K ≤ SAH/p. For this purpose, we construct a fully deterministic MDP (i.e., all of its transitions are
deterministic and all rewards are fixed), and show that the learner has to visit about half of the state-action-
layer tuples in order to learn a near-optimal policy. The proof details are deferred to Appendix G.


7    Discussion
Focusing on tabular online RL in time-inhomogeneous finite-horizon MDPs, this paper has established the
minimax-optimal regret (resp. sample complexity) — up to log factors — for the entire range of sample
size K ≥ 1 (resp. target accuracy level ε ∈ (0, H]), thereby fully settling an open problem at the core of
recent RL theory. The MVP algorithm studied herein is model-based in nature. Remarkably, the model-based
approach remains the only family of algorithms that is capable of obtaining minimax optimality without
burn-ins, regardless of the data collection mechanism in use (e.g., online RL, offline RL, and the simulator
setting). We have further unlocked the optimality of this algorithm in a more refined manner, making
apparent the effect of several problem-dependent quantities (e.g., optimal value/cost, variance statistics)
upon the fundamental performance limits. The new analysis and algorithmic techniques put forward herein
might shed important light on how to conquer other RL settings as well.
     Moving forward, there are multiple directions that anticipate further theoretical pursuit. To begin with,
is it possible to develop a model-free algorithm — which often exhibits more favorable memory complexity
compared to the model-based counterpart — that achieves full-range minimax optimality? As alluded to
previously, existing paradigms that rely on reference-advantage decomposition (or variance reduction) seem
to incur a high burn-in cost (Li et al., 2021a; Zhang et al., 2020), thus calling for new ideas to overcome
this barrier. Additionally, multiple other tabular settings (e.g., time-homogeneous finite-horizon MDPs,
discounted infinite-horizon MDPs) have also suffered from similar issues regarding the burn-in requirements
(Ji and Li, 2023; Zhang et al., 2021a). Take time-homogeneous finite-horizon MDPs for example: in order
to achieve optimal sample efficiency, one needs to carefully deal with the statistical dependency incurred
by aggregating data from across different time steps to estimate the same transition matrix (due to the
homogeneous nature of P ), which results in more intricate issues than the time-homogeneous counterpart.
We believe that resolving these two open problems will greatly enhance our theoretical understanding about
online RL and beyond.


Acknowledgement
We thank for Qiwen Cui for helpful discussions. Y. Chen is supported in part by the Alfred P. Sloan
Research Fellowship, the Google Research Scholar Award, the AFOSR grant FA9550-22-1-0198, the ONR

                                                      22
grant N00014-22-1-2354, and the NSF grants CCF-2221009 and CCF-1907661. JDL acknowledges support of
Open Philanthropy, NSF IIS 2107304, NSF CCF 2212262, ONR Young Investigator Award, NSF CAREER
Award 2144994, and NSF CCF 2019844. SSD acknowledges the support of NSF IIS 2110170, NSF DMS
2134106, NSF CCF 2212261, NSF IIS 2143493, NSF CCF 2019844, NSF IIS 2229881, and the Sloan Research
Fellowship.


A     Preliminary facts
In this section, we gather several useful results that prove useful in our analysis. We use 1{E} to denote
the indicator of the event E. The first result below is a user-friendly version of the celebrated Freedman
inequality (Freedman, 1975), a martingale counterpart to the Bernstein inequality. See Zhang et al. (2021b,
Lemma 11) for the proof.
Lemma 15 (Freedman’s inequality). Let (Mn )n≥0 be a martingale
                                                            P         such that M0 = 0 and |Mn − Mn−1 | ≤ c
(∀n ≥ 1) hold for some quantity c > 0. Define Varn := nk=1 E (Mk − Mk−1 )2 | Fk−1 for every n ≥ 0,
where Fk is the σ-algebra generated by (M1 , ..., Mk ). Then for any integer n ≥ 1 and any ǫ, δ > 0, one has
                 "            r                 r                   #            2      
                           √            1               1         1               nc
               P |Mn | ≥ 2 2 Varn log + 2 ǫ log + 2c log              ≤ 2 log2         + 1 δ.
                                        δ               δ         δ                ǫ

   Next, letting Var(X) represent the variance of X, we record a basic inequality connecting Var(X 2 ) with
Var(X) for any bounded random variable X.
Lemma 16 (Lemma 30 in (Chen et al., 2021)). Let X be a random variable, and denote by Cmax the largest
                                                2
possible value of X. Then we have Var(X 2 ) ≤ 4Cmax Var(X).
   Now, we turn to an intimate connection between the sum of a sequence of bounded non-negative ran-
dom variables and the sum of their associated conditional random variables (with each random variable
conditioned on the past), which is a consequence of basic properties about supermartingales.
Lemma 17 (Lemma 10 in (Zhang et al., 2022)). Let X1 , X2 , . . . be a sequence of random variables taking
value in [0, l]. For any k ≥ 1, let Fk be the σ-algebra generated by (X1 , X2 , . . . , Xk ), and define Yk :=
E[Xk | Fk−1 ]. Then for any δ > 0, we have
                                    "    n          n
                                                                    #
                                        X          X              1
                                  P ∃n,     Xk ≥ 3     Yk + l log     ≤δ
                                                                  δ
                                        k=1        k=1
                                    "    n          n
                                                                    #
                                        X          X              1
                                  P ∃n,     Yk ≥ 3    Xk + l log      ≤ δ.
                                                                  δ
                                          k=1        k=1

    The next two lemmas are concerned with concentration inequalities for the sum of i.i.d. bounded random
variables: the first one is a version of the Bennet inequality, and the second one is an empirical Bernstein
inequality (which replaces the variance in the standard Bernstein inequality with the empirical variance).
Lemma 18 (Bennet’sinequality). Let Z, Z1 , ..., Zn be i.i.d. random variables with values in [0, 1] and let
δ > 0. Define VZ = E (Z − EZ)2 . Then one has
                        "            n
                                                 r                          #
                                  1X               2VZ log(2/δ) log(2/δ)
                      P E [Z] −         Zi >                      +           ≤ δ.
                                  n i=1                   n            n

Lemma 19 (Theorem 4 in Maurer and Pontil (2009)). Consider any δ > 0 and any integer n ≥ 2. Let
Z, Z1 , ..., Zn be a collection of i.i.d. random variables falling within [0, 1]. Define the empirical mean Z :=
1
  Pn                                    b      1
                                                 Pn              2
n   i=1 Zi and empirical variance Vn := n          i=1 (Zi − Z) . Then we have
                                                      s                           
                                            Xn              bn log(2/δ) 7 log(2/δ)
                                          1               2 V
                             P  E [Z] −         Zi >                  +            ≤ δ.
                                          n i=1               n−1        3(n − 1)


                                                      23
   Moreover, we record a simple fact concerning the visitation counts {Nhk (skh , akh )}.
Lemma 20. Recall the definition of Nhk (skh , akh ) in Algorithm 1. It holds that
                                                   H
                                                 K X
                                                 X                        1
                                                                                             ≤ 2SAH log2 K                                  (50)
                                                 k=1 h=1
                                                         max{Nhk (skh , akh ), 1}

Proof. In view of the doubling batch update rule, it is easily seen that: for any given (s, a, h),
                                     K
                                     X            1                 n                   o
                                                                                k     k
                                                                  1  (s, a) = s h , a h    ≤ 2 log2 K,                                      (51)
                                     k=1
                                         max{Nhk (skh , akh ), 1}

since each (s, a, h) is associated with at most log2 K epochs. Summing over (s, a, h) completes the proof.

   As it turns out, Lemma 20 together with the Freedman inequality allows one to control the difference
between the empirical rewards and the true mean rewards, as stated below.
Lemma 21. With probability exceeding 1 − 2SAHKδ ′ , it holds that
                                                             v
   H
 K X                                    r                    uK H
 X                                                         1 uX X                                        1
      rbh (sh , ah ) − rh (sh , ah ) ≤ 4 2SAH (log2 K) log ′ t
        k k      k          k    k           2                    rh (skh , akh ) + 52SAH 2 (log2 K) log ′ ;
                                                          δ                                             δ
 k=1 h=1                                                                                         k=1 h=1
                     H
                   K X
                   X                                     H
                                                       K X
                                                       X                                                             1
                               rbhk (skh , akh ) ≤ 2              rh (skh , akh ) + 60SAH 2 (log2 K) log                .
                                                                                                                     δ′
                   k=1 h=1                             k=1 h=1

                                                                                                      P            k    k
   As an immediate consequence of Lemma 21 and the basic fact                                             k,h rh (sh , ah ) ≤ KH, we have

                               H
                             K X
                             X                                     H
                                                                 K X
                                                                 X                                                            1
                                         rbhk (skh , akh ) ≤ 2                rh (skh , akh ) + 60SAH 2 (log2 K) log
                                                                                                                              δ′
                             k=1 h=1                             k=1 h=1
                                                                                                            1
                                                         ≤ 2KH + 60SAH 2 (log2 K) log                          ≤ 3KH                        (52)
                                                                                                            δ′
with probability exceeding 1 − 2SAHKδ ′ , where the last inequality holds true under the assumption 31.

Proof of Lemma 21. In view of Lemma 19 and the union bound, with probability 1 − 2SAHKδ ′ we have
                                          v
                                          u k k k                             2 
                                          u σbh (sh , ah ) − rbhk (skh , akh )     log δ1′
                k
                                        √ t                                                  28H log δ1′
              rbh (s, a) − rh (s, a) ≤ 2 2                                                 +
                                                            Nhk (s, a)                       3Nhk (s, a)
                                          s
                                        √    rhk (s, a) log δ1′
                                            Hb                     28H log δ1′
                                     ≤2 2                       +
                                               Nhk (s, a)          3Nhk (s, a)

                                                                                                      bhk (skh , akh ) ≤
simultaneously for all (s, a, h, k) obeying Nhk (s, a) > 2, where we take advantage of the basic fact σ
   k
Hbrh (s, a) (since each immediate reward is upper bounded by H). Solve the inequality above to obtain
                                                        s
                               k                          Hrh (s, a) log δ1′     H log 1′
                             rbh (s, a) − rh (s, a) ≤ 4        k
                                                                             + 24 k δ .                             (53)
                                                             Nh (s, a)           Nh (s, a)

It is then seen that
                                                                                  s                                                     !
     X                                                             X                   Hrh (skh , akh ) log δ1′       H log δ1′
           rbhk (skh , akh ) − rh (skh , akh )    ≤ 4SAH +  2
                                                                              4                                 + 24
     k,h                                                            k,h
                                                                                         Nhk (skh , akh )            Nhk (skh , akh )


                                                                                  24
                                                                 v
                                                                 uX                    sX                        X H log 1′
                                                                 u  2   H log δ1′                                               δ
                                                       ≤ 4SAH + 4t      k   k    k
                                                                                     ·      rh (skh , akh ) + 24                      .
                                                                   k,h
                                                                       Nh (sh , ah )    k,h                      k,h
                                                                                                                     Nhk (skh , akh )

Here, the second inequality arises from Cauchy-Schwarz, whereas the term 4SAH 2 accounts for those
state-action pairs with Nhk (s, a) ≤ 2 (since there are at most 2SAH such occurances and it holds that
 rbhk (skh , akh ) − rh (skh , akh ) ≤ 2H). This together with Lemma 20 then leads to
                                                                    r                                     sX
X                                                                                                    1                                                    1
      rbhk (skh , akh ) − rh (skh , akh )     ≤ 4SAH + 4    2
                                                                        2SAH 2 (log2 K) log                      rh (skh , akh ) + 48SAH 2 (log2 K) log
                                                                                                     δ′                                                   δ′
k,h                                                                                                        k,h
                                                   r                                     s
                                                                                        1 X                                                 1
                                              ≤4        2SAH 2 (log2 K) log                        rh (skh , akh ) + 52SAH 2 (log2 K) log      .
                                                                                        δ′                                                  δ′
                                                                                             k,h


Moreover, the AM-GM inequality implies that

      X                           X                           H
                                                            K X
                                                            X                                                        1                         1
            rbhk (skh , akh ) −         rh (skh , akh ) ≤               rh (skh , akh ) + 8SAH 2 (log2 K) log           + 52SAH 2 (log2 K) log ′
                                                                                                                     δ′                       δ
      k,h                         k,h                       k=1 h=1

                                                 X                             X                                               1
                                  =⇒                   rbhk (skh , akh ) ≤ 2         rh (skh , akh ) + 60SAH 2 (log2 K) log       ,
                                                                                                                               δ′
                                                 k,h                           k,h

thus concluding the proof.


B       Proofs of key lemmas in Section 4
B.1         Proof of Lemma 5
It suffices to develop an upper bound on the cardinality of C (cf. (26)). Setting

                                                  M = log2 K                          and              N = SAH,                                      (54)

we find it helpful to introduce the following useful sets:
                        n                                                                                               o
      C distinct (l) := I = {I 1 , . . . , I l } | I 1 ≤ · · · ≤ I l , I τ ∈ {0, 1, · · · , M }N and I τ 6= I τ +1 (∀τ ) ;                          (55a)
                        [
          C distinct :=   C distinct (l).                                                                                                           (55b)
                              l≥1


In words, C distinct (l) can be viewed as the set of non-decreasing length-l paths in {0, 1, · · · , M }N , with all
points on a path being distinct; C distinct thus consists of all such paths regardless of the length.
    We first establish a connection between |C| and C distinct . Define the operator Proj : C → C distinct that
maps each I ∈ C to I distinct ∈ C distinct , where I distinct is composed of all distinct elements in I (in other words,
this operator simply removes redundancy in I). Let us looking at the following set
                                                       
                                      B(I distinct ) := I ∈ C | Proj(I) = I distinct

for each I distinct ∈ C distinct . Since I distinct is a non-decreasing path with all its points being distinct, there are
at most M N + 1 elements in each I distinct . Hence, the size of B(I distinct ) is at most the number of solutions
to the following equations

                                          X+1
                                         MN
                                                  xi = K             and             xi ∈ N for all 1 ≤ i ≤ M N + 1.
                                           i=1



                                                                                      25
Elementary combinatorial arguments then reveal that
                                                
                                          K + MN
                       B(I distinct
                                    ) ≤             ≤ (K + M N )MN ≤ (2K)MN
                                            MN

for each I distinct , provided that K ≥ M N = SAH log2 K. We then arrive at

                                               |C| ≤ C distinct · (2K)MN .                                             (56)

     Everything then boils down to bounding |C distinct |. To do so, let us first look at the set C distinct (M N + 1),
as each path in C distinct cannot have length more than M N + 1. For each I distinct = {Ie1 , Ie2 , . . . , IeMN +1 } ∈
C distinct (M N + 1), it is easily seen that

   • Ie1 = [0, 0, . . . , 0]⊤ and IeMN +1 = [M, M, . . . , M ]⊤ .

   • For each 1 ≤ τ ≤ M N , Ieτ and Ieτ +1 differ only in one element (i.e., their Hamming distance is 1).

In other words, we can view I distinct as an M N -step path from [0, 0, . . . , 0]⊤ to [M, M, . . . , M ]⊤ , with each
step moving in one dimension. Clearly, each step has at most N directions to choose from, meaning that
there are at most N MN such paths. This implies that

                                               C distinct (M N + 1) ≤ N MN .

To finish up, we further observe that for each I distinct ∈ C distinct , there exists some Iedistinct ∈ C distinct (M N + 1)
such that I distinct ⊆ Iedistinct . This observation together with basic combinatorial arguments indicates that

                                  C distinct ≤ 2MN +1 C distinct (M N + 1) ≤ (2N )MN +1 ,

which taken collectively with (56) leads to the advertised bound

                               |C| ≤ (2K)MN C distinct ≤ (4KN )MN +1 ≤ (4KN )MN +1 .


B.2        Proof of Lemma 6
Let us begin by considering any fixed total profile I ∈ C, any fixed integer l obeying 2 ≤ l ≤ log2 K + 1,
                                                                             (l)
and any given feasible sequence {Xh,s,a }(s,a,h)∈S×A×[H] . Recall that (i) Pbs,a,h is computed based on the l-th
batch of data comprising 2l−2 independent samples from Dexpand (see Definition 2); and (ii) each Xh+1,s,a
is given by a deterministic function of I and the empirical models for steps h′ ∈ [h + 1, H]. Consequently,
Lemma 15 together with Definition 2 tells us that: with probability at least 1 − δ ′ , one has
             X      (l)
                  Pbs,a,h − Ps,a,h , Xh+1,s,a
               s,a,h
                         v
                         u
                         u 8 X                        3 log2 (SAHK)   4H      3 log2 (SAHK)
                       ≤ t l−2 V Ps,a,h , Xh+1,s,a log               + l−2 log               ,                         (57)
                           2                                   δ′     2                δ′
                                s,a,h


where we view the left-hand side of (57) as a martingale sequence from h = H back to h = 1.
    Moreover, given that each Xh,s,a has at most K+1 different choices (since we assume |Xh,I | ≤ K+1), there
are no more than (K + 1)SAH ≤ (2K)SAH possible choices of the feasible sequence {Xh,s,a }(s,a,h)∈S×A×[H] .
In addition, it has been shown in Lemma 5 that there are no more than (4SAHK)2SAH log2 K possibili-
ties of the total profile I. Taking the union
                                               bound over all these choices and replacing δ ′ in (57) with
 ′             2SAH log2 K     SAH
δ / (4SAHK)                (2K)     log2 K , we can demonstrate that with probability at least 1 − δ ′ ,
   X         (l)
           Pbs,a,h − Ps,a,h , Xh+1,s,a
   s,a,h


                                                             26
     v
     u                                                                                  
     u 8 X                                                               3 log22 (SAHK)
   ≤ t l−2 V Ps,a,h , Xh+1,s,a 2SAH log2 K log(4SAHK) + SAH log(2K) + log
       2                                                                           δ′
                 s,a,h
                                                                        
         4H                                               3 log22 (SAHK)
      + l−2 2SAH log2 K log(4SAHK) + SAH log(2K) + log
         2                                                         δ′
     v                                                                       
     u
     u 8 X                               2         1   4H              2     1
   ≤ t        V Ps,a,h , Xh+1,s,a 6SAH log2 K + log ′ + l−2 6SAH log2 K + log ′                                    (58)
       2l−2                                        δ    2                    δ
                 s,a,h


holds simultaneously for all I ∈ C, all 2 ≤ l ≤ log2 K + 1, and all feasible sequences {Xh,s,a }(s,a,h)∈S×A×[H] .
    Finally, recalling our assumption 0 ∈ Xh+1,I , we see that for every total profile I and its associated
feasible sequence {Xh,s,a },
  X        n                             o X                                                                  
                (l)                                    (l)
      max Pbs,a,h − Ps,a,h , Xh+1,s,a , 0 ∈                             eh+1,s,a X
                                                     Pbs,a,h − Ps,a,h , X        eh+1,s,a ∈ Xh+1,I , ∀(s, a, h)
 s,a,h                                             s,a,h

holds true. Consequently, the uniform upper bound on the right-hand side of (58) continues to be a valid
                P            (l)
upper bound on s,a,h max Pbs,a,h − Ps,a,h , Xh+1,s,a , 0 . This concludes the proof.


B.3         Proof of Lemma 7
We begin by making the following claim, which we shall establish towards the end of this subsection.
Claim 22. With probability exceeding 1 − δ ′ ,
   X D (l)                 kl,j,s,a,h
                                      E
       Pbs,a,h − Ps,a,h , Vh+1
    s,a,h
              v                                                                            
              u
              u 8 X             kl,j,s,a,h                      1   4H                     1
            ≤ t l−2 V Ps,a,h , Vh+1           6SAH log22 K + log ′ + l−2 6SAH log22 K + log ′                      (59)
                2                                               δ    2                     δ
                           s,a,h


holds simultaneously for all l = 1, . . . , log2 K and all j = 1, . . . , 2l−1 , where kl,j,s,a,h stands for the episode
index of the sample that visits (s, a, h) for the (2l−1 + j)-th time in the online learning process.

   Assuming the validity of Claim 22 for the moment, we can combine this claim with the decomposition (27)
and applying the Cauchy-Schwarz inequality to reach
                                                  l−1
 K X
 X H D                                 E log
                                          X 2K 2
                                               X X D (l)                           E
                                                                        kl,j,s,a,h
      Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                   k
                                        ≤           Pbs,a,h − Ps,a,h , Vh+1          + SAH 2
                 h    h            h   h
 k=1 h=1                                    l=1   j=1 s,a,h
         v                                                   
    log2 K 2l−1 u
   X Xu 8 X                kl,j,s,a,h                      1
 ≤       t l−2 V Ps,a,h , Vh+1           6SAH log22 K + log ′
     j=1
           2                                               δ
      l=1                     s,a,h

             X X 4H 
                 log2 K 2l−1
                                                  1
                                                    
                                        2
          +            l−2
                           6SAH log2 K + log ′ + SAH 2
                     2                            δ
             l=1 j=1
          v
   log2 K u    l−1                                                
    X u 2X         X             kl,j,s,a,h                     1
 ≤        t16        V Ps,a,h , Vh+1                   2
                                               6SAH log2 K + log ′
              j=1
                                                                δ
      l=1                  s,a,h
                 log2 K
                     X                            
                                                 1
             +             8H 6SAH log22 K + log ′ + SAH 2
                                                δ
                     l=1




                                                              27
  v
  u           log2 K 2l−1                                                    
  u            X XX                         kl,j,s,a,h                     1
  t
 ≤ 16(log2 K)                 V Ps,a,h , Vh+1                     2
                                                          6SAH log2 K + log ′
                                                                           δ
                l=1 j=1 s,a,h
                                                       
                                                     1
       + 48SAH 2 log32 K + 8H(log2 K) log ′ + SAH 2
                                                     δ
  v
  u            K X  H                                                
  u           X                                                    1                             1
  t
 ≤ 16(log2 K)                                              2
                       V Psk ,ak ,h , Vh+1 6SAH log2 K + log ′ + 49SAH 2 log32 K + 8H(log2 K) log ′ .
                                       k
                            h h                                     δ                            δ
                      k=1 h=1

                                                          k
Here, the last inequality is valid due to our assumption Vh+1 = 0 (∀k > K) and the identity
                H
              K X
              X
                                        k
                                                    
                        V Psk ,ak ,h , Vh+1
                                h       h
              k=1 h=1
                  log2 K            l−1
                   X X 2X                                              K X
                                                                       X H  n                        o
                                                        kl,j,s,a,h                                                       
              =                             V Ps,a,h , Vh+1          +     1 Nhk,all (skh , akh ) = 0 V Psk ,ak ,h , Vh+1
                                                                                                                      k
                                                                                                                           .
                                                                                                            h   h
                   l=1 s,a,h j=1                                      k=1 h=1

                                                            P
This establishes our advertised bound on               Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                                                k,h
                                                                                    k
                                                                                        , provided that Claim 22 is valid.
                                                           h h          h h
                                                                                                    P        
    Before proceeding to the proof of Claim 22, we note that the other two quantities k,h max Pbskk ,ak ,h −
                         P                                         2                                             h h
              k
Psk ,ak ,h , Vh+1 , 0 and k,h Pbskk ,ak ,h − Psk ,ak ,h , Vh+1 k
                                                                       can be upper bounded using exactly the same
  h h                             h h          h h
arguments, which we omit for the sake of brevity. In particular, the latter quantity further satisfies
  H D
K X
X                                            2 E
            Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                         k
              h   h         h       h
k=1 h=1
  v
  u           K X H                                               
  u          X                           2                     1                                       1
  t
≤ 16(log2 K)                           k
                     V Psk ,ak ,h , Vh+1       6SAH log2 K + log ′ + 49SAH 3 log32 K + 8H 2 (log2 K) log ′
                                                       2
                         h h                                     δ                                       δ
             k=1 h=1
    v
    u          K X H                                            
    u         X                                               1                                       1
    t
≤ 8H (log2 K)         V Psk ,ak ,h , Vh+1 6SAH log2 K + log ′ + 49SAH 3 log32 K + 8H 2 (log2 K) log ′ ,
                                      k              2
                          h h                                  δ                                       δ
                      k=1 h=1

                                                                       k
where the last inequality follows from Lemma 16 and the fact that 0 ≤ Vh+1 (s) ≤ H for all s ∈ S.

Proof of Claim 22. To invoke Lemma 7 to prove this claim, we need to choose the set {Xh,I } properly to
include the true value function estimates {Vhk }. To do so, we find it helpful to first introduce an auxiliary
algorithm tailored to each total profile. Specifically, for each I ∈ C (cf. (26)), consider the following updates
operating upon the expanded sample set Dexpand .
    If we construct
                                 n                    o
                        Xh,I := Vhk,I | 1 ≤ k ≤ K ∪ {0},            ∀h ∈ [H] and I ∈ C,                      (60)

then it can be easily seen that {Xh,I } satisfies the properties stated right before Lemma 6. As a consequence,
applying Lemma 6 yields
    X D (l)                           E
          Pbs,a,h − Ps,a,h , Xh+1,s,a
    s,a,h
              v                                                                    
              u
              u 8 X                            2         1   4H          2         1
            ≤ t l−2 V Ps,a,h , Xh+1,s,a 6SAH log2 K + log ′ + l−2 6SAH log2 K + log ′                                          (61)
                2                                        δ    2                    δ
                        s,a,h


simultaneously for all l = 1, . . . , log2 K, all I ∈ C, and all sequences {Xh,s,a } obeying Xh,s,a ∈ Xh,I , ∀(s, a, h).

                                                                        28
 Algorithm 2: Monotoinic Value Propagation for a given total profile I ∈ C (MVP(I))
                              k,I
 1 initialization: set VH+1       (s) ← H for all s ∈ S and 1 ≤ k ≤ K.
 2 for k = 1, 2, . . . , K do
 3     for h = H, H − 1, ..., 1 do
 4        for (s, a) ∈ S × A do
 5

                              k
                         j ← Is,a,h , n ← 2j−2 ,
                                s                                   s
                                          (j)   k,I                                            
                                   V Pbs,a,h , Vh+1   log δ1′          σ
                                                                         (j)
                                                                       bh (s, a) − (b
                                                                                      (j)
                                                                                     rh (s, a))2 log δ1′       H log δ1′
                 bh (s, a) ← c1                               + c2                                       + c3            ,
                                           max{n, 1}                              max{n, 1}                   max{n, 1}
                                  n                                               o
                                      (j)            (j)
               Qk,I
                h (s, a) ← min r
                                                              k,I
                                     bh (s, a) + hPbs,a,h , Vh+1  i + bh (s, a), H ,

 6                Vhk,I (s) ← max Qk,I
                                   h (s, a).
                                    a




   To finish up, denote by I true the true total profile resulting from the online learning process. Given the
way we couple Dexpand and Doriginal (see the beginning of Section 4.2.2), we can easily see that the true value
function estimate {Vhk } obeys
                                                           true
                                             Vhk = Vhk,I          ∈ Xh,I true ,     1 ≤ k ≤ K.                                (62)

The claimed result then follows immediately from (62) and the uniform bound (61).


C     Proofs of auxiliary lemmas in Section 5
C.1     Proof of Lemma 8
To begin with, we find it helpful to define the following function
                                                    ( s                               )
                                                     20 V(p, v) log δ1′ 400 H log δ1′
                        f (p, v, n) := hp, vi + max                    ,
                                                      3        n         9     n

for any vector p ∈ ∆S , any non-negative vector v ∈ RS obeying kvk∞ ≤ H, and any positive integer n. We
claim that
                               f (p, v, n) is non-decreasing in each entry of v.                    (63)
To justify this claim, consider any 1 ≤ s ≤ S, and let us freeze p, n and all but the s-th entries of v. It then
suffices to observe
              q     that (i) f is a continuous function, and (ii) except for at most two possible choices of v(s)
                V(p,v) log δ1′           H log δ1′
that obey 20
           3         n           = 400
                                    9       n      , one can use the properties of p and v to calculate
                                         (     s                                             )                     q
       ∂f (p, v, n)         20  20                 V(p, v) log δ1′           400 H log δ1′       p(s) v(s) − hp, vi log δ1′
                    = p(s) + 1                                          ≥                                p
         ∂v(s)              3    3                         n                  9     n                      nV(p, v)
                             (r                                                    )                                      
                                                                                         20       1
                                               1      20        1                         3 H log δ ′   p(s) v(s) − hp, vi
                    = p(s) + 1    nV(p, v) log ′ ≥        H log ′                     q               ·
                                              δ       3         δ                      nV(p, v) log 1           H
                                                                                                         δ′
                                                            
                                       v(s) − hp, vi
                    ≥ min p(s) + p(s)                   , p(s)
                                             H
                                                     
                                 H + v(s) − hp, vi
                    ≥ p(s) min                     , 1 ≥ 0,
                                       H

                                                                        29
thus establishing the claim (63).
   We now proceed to the proof of Lemma 8. Consider any (h, k, s, a), and we divide into two cases.

Case 1: Nhk (s, a) ≤ 2. In this case, the following trivial bounds arise directly from the update rule (19):
                              Qkh (s, a) = H ≥ Q⋆h (s, a)          and        Vhk (s) = H ≥ Vh⋆ (s).

Case 2: Nhk (s, a) > 2. Suppose now that Qkh+1 ≥ Q⋆h+1 , which also implies that Vh+1     k       ⋆
                                                                                              ≥ Vh+1 . If
 k                      k           ⋆
Qh (s, a) = H, then Qh (s, a) ≥ Qh (s, a) holds trivially, and hence it suffices to look at the case with
Qkh (s, a) < H. According to the update rule in (19), it holds that
          Qkh (s, a)
           = rbhk (s, a) + Pbs,a,h
                             k         k
                                   , Vh+1
                            v                                    v
                            u                                    u k                           
                                                                                      k (s, a) 2 log 1
                            u V(Pb k , V k ) log 1′              u σ b    (s, a) −  r
                                                                                    b
                                                                 t h                  h                         H log δ1′
                       + c1 t
                                    s,a,h   h+1        δ                                              δ′
                                                          +  c 2                                          + c 3
                                       Nhk (s, a)                                 Nhk (s, a)                    Nhk (s, a)
                               v
                               u k                          2 
                               u σ   bh (s, a) − rbhk (s, a)      log δ1′
                            √  t                                               48H log δ1′                                  
           ≥ rbhk (s, a) + 2 2                    k
                                                                           +      k
                                                                                            + f Pbs,a,h
                                                                                                  k        k
                                                                                                        , Vh+1  , Nhk (s, a)
                                                Nh (s, a)                      3Nh (s, a)
                               v                               
                               u k                          2
                            √ ut σ   bh (s, a) − rbhk (s, a)      log δ1′      48H log δ1′                                  
                k
           ≥ rbh (s, a) + 2 2                     k
                                                                           +      k
                                                                                            + f Pbs,a,h
                                                                                                  k        ⋆
                                                                                                        , Vh+1  , Nhk (s, a)     (64)
                                                Nh (s, a)                      3Nh (s, a)
                                                                                                   k     ⋆
for any (s, a), where the last inequality results from the claim (63) and the property Vh+1           ≥ Vh+1 . Moreover,
                                                          k
applying Lemma 19 and recalling the definition of σ     bh (s, a), we have
                                               v                                           
                                               u                                          
                                               u V Pb k , V ⋆            1
                                                                               14H log δ′ 
                                                                                         1
                  b k                 ⋆         t     s,a,h    h+1 log δ ′
            P     Ps,a,h − Ps,a,h , Vh+1 > 2                                 +
              
                                                        Nhk (s, a)            3Nhk (s, a) 
                                                  v                                                  
                                                  u                                                 
                                                  u 2V Pb   k         ⋆       1
                                                                                        7H log δ′ 
                                                                                                  1
                                                             s,a,h , Vh+1 log δ ′
                ≤P      Pbs,a,h
                          k                 ⋆
                                − Ps,a,h , Vh+1  >t             k (s, a) − 1
                                                                                  +      k (s, a) − 1 
                                                                                                        ≤ 2δ ′    (65a)
                   
                                                           N  h                     3N  h            

and
                                            v                                                
                                            u k                       
                                            u σ              k (s, a) 2 log 1               1 
                                             t hb (s, a) −  r
                                                            b h              δ ′   28H log δ′ 
               P rbhk (s, a) − rh (s, a) > 2                                     +               ≤ 2δ ′ .                       (65b)
                
                                                         Nhk (s, a)               3Nhk (s, a) 
                                                                                               

These two inequalities imply that with probability exceeding 1 − 4δ ′ ,
                                                            v
                                                            u k                           
                                                                                k (s, a) 2 log 1
                                                            u  σ
                                                               b   (s, a)  −  r
                                                                              b
                                                         √ t h                  h              δ′     28H log δ1′
                              rh (s, a) ≤ rbhk (s, a) + 2 2                                       +               ;
                                                                            Nhk (s, a)                3Nhk (s, a)
                                      
         f Pbs,a,h
             k        ⋆
                   , Vh+1 , Nhk (s, a) = Ps,a,h , Vh+1 ⋆
                                                            + Pbs,a,h
                                                                 k                   ⋆
                                                                       − Ps,a,h , Vh+1
                                                            v
                                                       ( u                                              )
                                                         20 u
                                                            t V(Pbs,a,h
                                                                   k        ⋆ ) log 1
                                                                        , Vh+1                       1
                                                                                      δ ′ 400 H log δ ′
                                              + max                                      ,
                                                         3           Nhk (s, a)            9 Nhk (s, a)
                                                       ⋆
                                           ≥ Ps,a,h , Vh+1 .
Substitution into (64) gives: with probability at least 1 − 4δ ′ ,
                                                                        ⋆
                                     Qkh (s, a) ≥ rh (s, a) + Ps,a,h , Vh+1 = Q⋆h (s, a).

                                                                  30
Putting all this together. With the above two cases in place, one can invoke standard induction
arguments to deduce that: with probability at least 1 − 4SAHKδ ′ , one has Qkh (s, a) ≥ Q⋆h (s, a) and
Vhk = maxa Qkh (s, a) ≥ maxa Q⋆h (s, a) = Vh⋆ (s) for every (s, a, h, k). The proof is thus completed.

C.2      Proof of Lemma 10
C.2.1     Bounding T2

We first establish the bound (36a) on T2 . To begin with, T2 can be decomposed using the definition (19) of
the bonus term:
                     H
                   K X
                   X
            T2 =             bkh (skh , akh )
                   k=1 h=1
                         v                                         v
                         u bk                                     u k k k                             2 
                                                               Xu
                                                      1
                 460 X t
                         u V Psk ,ak ,h , V k
                                           h+1    log δ ′   √      t σbh (sh , ah ) − rbhk (skh , akh )     log δ1′
                               h h
               =                                          +2 2
                  9
                     k,h
                                 Nhk (skh , akh )              k,h
                                                                                    Nhk (skh , akh )

                                                                                      544 X H log δ1′
                                                                                  +                         .                (66)
                                                                                       9   Nhk (skh , akh )
                                                                                           k,h

Applying the Cauchy-Schwarz inequality and invoking Lemma 20, we obtain
             v
             u                    sX
         460 uX log δ1′                                           
   T2 ≤      t
                     k (sk , ak )
                                          V Pbskk ,ak ,h , Vh+1
                                                             k
          9        N h h h                      h h
               k,h                  k,h
                 v
                 u                      sX 
              √ uX log δ1′                                                             544H log δ1′ X
                                                                       k (sk , ak ) 2 +                           1
           +2 2  t                               σ
                                                 b  k (sk , ak ) − r
                                                    h    h    h       bh     h    h
                        N  k (sk , ak )                                                         9          N  k (sk , ak )
                   k,h     h h h           k,h                                                         k,h    h h h
             s                   
         460                             1 X                              
      ≤       2SAH(log2 K) log ′                   V Pbskk ,ak ,h , Vh+1
                                                                      k
          9                              δ                 h h
                                             k,h
              r                           sX 
                                        1                                               2  1088                       1
           + 4 SAH(log2 K) log ′                    bhk (skh , akh ) − rbhk (skh , akh )
                                                    σ                                       +     SAH 2 (log2 K) log ′ .     (67)
                                       δ                                                      9                        δ
                                                k,h

Using the basic fact σ                    rhk (s, a) (since each immediate reward is at most H) and the definition
                      bhk (skh , akh ) ≤ Hb
(35a) of T5 , we can continue the bound in (67) to derive
                           r                     
                     460                                1
                T2 ≤          2SAH(log2 K) log ′ T5
                       9                               δ
                             r                           s
                                                        1 X k k k               1088                    1
                        + 4 SAH 2 (log2 K) log ′               rbh (sh , ah ) +      SAH 2 (log2 K) log ′ .   (68)
                                                       δ                         9                     δ
                                                              k,h
                               P                                         P
Applying Lemma 21 to bound k,h rbhk (skh , akh ) and using the basic fact k,h rh (skh , akh ) ≤ KH, we can employ
a little algebra to deduce that
                 r                                r
                                     1                                   1                             1
         T2 ≤ 61 2SAH(log2 K) log ′ T5 + 8 SAH 3 K(log2 K) log ′ + 155SAH 2(log2 K) log ′
                                    δ                                     δ                             δ
with probability exceeding 1 − 2SAHKδ ′ .

C.2.2     Bounding T3
                                                          k
Next, let us prove the bound (36b) on |T3 |. Recall that Vh+1 (s) denotes the value function estimate of state
s before the k-th episode, which corresponds to the value estimate computed at the end of the previous

                                                                31
epoch. This important fact implies that conditional on (skh , akh ), the vector esk                     is statistically independent
                                                                                                  h+1
     k
of Vh+1 and has conditional mean Psk ,ak ,h , allowing us to invoke the Freedman inequality for martingales
                                   h h
                                                            k
(see Lemma 15) to control the sum of Psk ,ak ,h − esk , Vh+1    . Recalling the definition of T6 in (35b), we
                                                            h   h         h+1
can see from Lemma 15 that
                            r                                   r
                        √           1       1          1    √           1          1
               |T3 | ≤ 2 2 · T6 log ′ + log ′ + 2H log ′ ≤ 2 2 · T6 log ′ + 3H log ′                                            (69)
                                   δ       δ          δ                δ          δ

with probability at least 1 − 10SAH 2 K 2 δ ′ .

C.2.3    Bounding T4

We now turn attention to the bound (36c) on |T4 |. Recall that
                           K X
                             H                                                 K H
                                                                                                               !
                           X                                                  X X                      k
                   T4 =                  rbhk (skh , akh ) − rh (skh , akh ) +     rh (skh , akh ) − V1π (sk1 ) ,               (70)
                           k=1 h=1                                              k=1     h=1

and we shall bound the two terms above separately.

     Regarding the first term on the right-hand side of (70), we can apply Lemma 21 and the fact
   • P
                k    k
       k,h rh (sh , ah ) ≤ KH to show that

            K X
              H                                                      r
            X                                                                                1                        1
                      rbhk (skh , akh ) − rh (skh , akh )       ≤4   2SAH 3 K(log2 K) log        + 52SAH 2(log2 K) log ′        (71)
                                                                                              δ′                      δ
            k=1 h=1

      holds with probability at least 1 − 2SAHKδ ′ .
   • With regards to the second term on the right-hand side of (70), we note that conditional on π k , Ek :=
     PH         k    k       πk k
       h=1 rh (sh , ah ) − V1 (s1 ) is a zero-mean random variable bounded in magnitude by H. According to
     Lemma 15,
                                                    v
                                    K               uK
                                   X           √ uX                    1            1
                                        Ek ≤ 2 2 · t      Var(Ek ) log ′ + 3H 2 log ′
                                                                      δ            δ
                                   k=1                k=1
                                               r
                                                            1            1
                                            ≤ 2 2KH 2 log ′ + 3H 2 log ′                                (72)
                                                           δ             δ
      holds with probability exceeding 1 − 4δ ′ log2 (KH), where Var(Ek ) denotes the variance of Ek condi-
      tioned on what happens before the k-th episode, and the last inequality follows since |Ek | ≤ H always
      holds.

   Substituting (71) and (72) into (70) reveals that with probability at least 1 − 3SAHKδ ′ ,
                                r
                                                        1                          1
                       |T4 | ≤ 6 2SAH 3 K(log2 K) log ′ + 55SAH 2 (log2 K) log ′ .                                              (73)
                                                        δ                         δ

C.3     Proof of Lemma 11
Regarding the term T5 , direct calculation gives
                                                        H D
                   K X
                   X H
                                                    XK X
                                                                                2 E                                     2 
            T5 =             V Pbskk ,ak ,h , Vh+1
                                               k
                                                    =       Pbskk ,ak ,h , Vh+1
                                                                            k
                                                                                     −             Pbskk ,ak ,h , Vh+1
                                                                                                                   k
                                     h   h                                      h   h                   h   h
                   k=1 h=1                                      k=1 h=1




                                                                          32
                        H D
                      K X
                      X                                                       2 E X  H D
                                                                                    K X
                                                                                                                  2 E
                  =                          Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                                                          k
                                                                                  +                           k
                                                                                          Psk ,ak ,h − esk , Vh+1
                                               h    h          h     h                                           h   h             h+1
                      k=1 h=1                                                               k=1 h=1
                      |                                  {z                            }    |                             {z                        }
                                                        = T7                                                             = T8
                                                                           H
                                                                         K X
                                                                         X                                         H
                                                                                                                 K X
                                                                                                                 X
                                                                                                   2                                                    2
                                                                     +                 k
                                                                                      Vh+1 (skh+1 ) −                              Pbskk ,ak ,h , Vh+1
                                                                                                                                                   k
                                                                                                                                       h   h
                                                                         k=1 h=1                                 k=1 h=1
                                              K X
                                              X H                        H
                                                                       K X
                                                                    2 X                                                 2
                  = T7 + T8 +                             Vhk (skh ) −                      Pbskk ,ak ,h , Vh+1
                                                                                                            k
                                                                                                 h   h
                                              k=1 h=2                          k=1 h=1
                                                    X H
                                                    K X           n                                    o
                  ≤ T7 + T8 + 2H                               max Vhk (skh ) − Pbskk ,ak ,h , Vh+1
                                                                                                k
                                                                                                    ,0
                                                                                             h   h
                                                    k=1 h=1
                                                      H
                                                    K X
                                                    X                                     H
                                                                                        K X
                                                                                        X
                  ≤ T7 + T8 + 2H                               bkh (skh , akh ) + 2H                 rbhk (skh , akh )                                        (74)
                                                    k=1 h=1                             k=1 h=1
                  ≤ T7 + T8 + 2HT2 + 6KH 2                                                                                                                    (75)

with probability at least 1 − 3δ ′ log(KH 3 ). Here, the third line utilizes the fact that VH+1        k
                                                                                                              = 0, the first
inequality holds since
                   2                     2  k k                                                             
         Vhk (skh ) − Pbskk ,ak ,h , Vh+1
                                      k
                                            = Vh (sh ) + Pbskk ,ak ,h , Vh+1
                                                                          k
                                                                                Vhk (skh ) − Pbskk ,ak ,h , Vh+1
                                                                                                             k
                          h h                                h h
                                                      n                                    o h h
                                                         k k            b k       k
                                            ≤ 2H max Vh (sh ) − Psk ,ak ,h , Vh+1 , 0 ,
                                                                                                             h   h


the penultimate line makes use of the property Vhk (skh ) = Qkh (skh , akh ) and the update rule (20), whereas the
last line applies property (52) and the definition (36a) of T2 .
    Akin to the above bound on T5 , we can show that with probability at least 1 − 3SAHKδ ′ ,
                                          H D
         H
       K X
       X
                                 k
                                      XK X
                                                            k
                                                                2 E X  H 
                                                                      K X
                                                                                          k
                                                                                              2
T6 =             V Psk ,ak ,h , Vh+1  =       Psk ,ak ,h , Vh+1     −       Psk ,ak ,h , Vh+1
                          h       h                                       h    h                                              h    h
       k=1 h=1                                          k=1 h=1                                          k=1 h=1
         H D
       K X
       X
                                      k
                                                              2 E         H
                                                                         K X
                                                                         X                          H 
                                                                                                  K X
                                                                                               2 X                       2
   =              Psk ,ak ,h − esk , Vh+1                            +               Vhk (skh ) −                     k
                                                                                                        Psk ,ak ,h , Vh+1
                      h       h               h+1                                                                              h   h
       k=1 h=1                                                           k=1 h=2                         k=1 h=1
                  K X
                  X H                    n                                  o
   ≤ T8 + 2H                                                         k
                                      max Vhk (skh ) − Psk ,ak ,h , Vh+1 ,0
                                                                     h   h
                  k=1 h=1
                  K X
                  X H                    n                                   o     K X
                                                                                   X H    n                                    o
   ≤ T8 + 2H                          max Vhk (skh ) − Pbsk ,ak ,h , Vh+1
                                                                      k
                                                                          , 0 + 2H     max Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                                                                                                        k
                                                                                                                            ,0
                                                                     h   h                                                             h   h         h    h
                  k=1 h=1                                                                                k=1 h=1
                    H
                  K X
                  X                                              H
                                                               K X
                                                               X
   ≤ T8 + 2H                          bkh (skh , akh ) + 2H                  rbhk (skh , akh ) + 2HT9                                                         (76)
                  k=1 h=1                                      k=1 h=1
   ≤ T8 + 2HT2 + 6KH 2 + 2HT9 .                                                                                                                               (77)

    Finally, note that the above bounds on T5 and T6 both depend on the term T8 (cf. (37b)), which we would
like to cope with now. Using Freedman’s inequality (cf. Lemma 15) and the fact that Var(X 2 ) ≤ 4H 2 Var(X)
for any random variable X with support on [−H, H] (cf. Lemma 16), we reach
                      s                                                r
                   √    X                      2      1          1                1            1
          |T8 | ≤ 2 2          b k          k
                            V Psk ,ak ,h , Vh+1                2
                                                     log ′ + 3H log ′ ≤ 32H 2 T6 log ′ + 3H 2 log ′     (78)
                                  h h                   δ          δ                δ            δ
                                       k,h


with probability at least 1 − 3δ ′ log(KH 3 ). Substitution into (75) and (77) establishes (38).


                                                                                      33
D      Proof of the value-based regret bound (proof of Theorem 2)
Recall that
                                                                             1                            δ
                          B = 4000(log2 K)3 log(3SAH) log                               with δ ′ =                .                  (79)
                                                                             δ′                      200SAH 2 K 2
                                                            2
Consider first the scenario where K ≤ BSAH
                                        v⋆ : the regret bound can be upper bounded by
                              "K                       #  "K         #
                             X                         X                            
                                    ⋆ k        πk k
              E Regret(K) = E     V1 (s1 ) − V1 (s1 ) ≤ E    V1 (s1 ) = KEs1 ∼µ V1⋆ (s1 )
                                                               ⋆ k

                                          k=1                                            k=1
                                              n√                  o
                                          ⋆
                                   = Kv = min   BSAH 2 Kv ⋆ , Kv ⋆ .                                                                 (80)

As a result, the remainder of the proof is dedicated to the the case with

                                                                     BSAH 2
                                                                K≥          .                                                        (81)
                                                                       v⋆
     To begin with, recall that the proof of Theorem 1 in Section 5 consists of bounding the quantities
                                                                     δ
T1 , . . . , T9 (see (34), (35) and (37)) and recall that δ ′ = 200SAH 2 K 2 . In order to establish Theorem 2, we

need to develop tighter bounds on some of these quantities (i.e., T2 , T4 , T5 and T6 ) to reflect their dependency
on v ⋆ (cf. (43)).

Bounding T2 . Recall that we have shown in (68) that
                      r               
                  460                      1
             T2 ≤       2SAH(log2 K) log ′ T5
                   9                       δ
                     r                     sX
                                         1                           1088                    1
                  + 4 SAH 2 (log2 K) log ′       rbhk (skh , akh ) +      SAH 2 (log2 K) log ′ .
                                        δ                             9                     δ
                                                                  k,h

                                                                                         PK       ⋆ k         ⋆        1
In view of the definition of T4 (cf. (34)) as well as the fact that                         k=1 V1 (s1 ) ≤ 3Kv + H log δ ′     holds with
probability at least 1 − δ ′ (see Lemma 17), we arrive at
                X                                 X                           X                                         1
                       rbhk (skh , akh ) ≤ T4 +         V1πk (sk1 ) ≤ T4 +            V1⋆ (sk1 ) ≤ T4 + 3Kv ⋆ + H log      ,         (82)
                                                                                                                        δ′
                 k,h                               k                              k

which in turn gives
                               r              
                        460                        1
                T2 ≤             2SAH(log2 K) log ′ T5
                         9                        δ
                                    r
                                                        1p                                  1
                                 + 4 SAH 2 (log2 K) log ′ T4 + 3Kv ⋆ + 130SAH 2(log2 K) log ′ .                                      (83)
                                                       δ                                   δ

Bounding T4 . When it comes to the quantity T4 (cf. (34)), we make the observation that
                   K    H
                                                        !  K H
                                                                                       !
                   X   X                                   X X
                            k k      k          k    k              k    k       πk k
              T4 =        rbh (sh , ah ) − rh (sh , ah ) +     rh (sh , ah ) − V1 (s1 ) .                                            (84)
                           k=1      h=1                                           k=1    h=1
                           |                       {z                    }        |                   {z              }
                                                  =: Tq1                                             =: Tq2

Repeating the arguments for (82) yields
                 X                                X                           X                                        1
                       rh (skh , akh ) ≤ Tq2 +          V1πk (sk1 ) ≤ Tq2 +           V1⋆ (sk1 ) ≤ Tq2 + 3Kv ⋆ + H log ′             (85)
                                                                                                                      δ
                 k,h                               k                              k



                                                                        34
with probability at least 1 − δ ′ . Combining this with Lemma 21, we see that
                                                v
                        r                       uK H
                                              1u   XX                                             1
                 T1 ≤ 4 2SAH log2 K log ′ t
                 q                  2                      rh (skh , akh ) + 52SAH 2 (log2 K) log ′
                                              δ                                                  δ
                                                   k=1 h=1
                        r                       q
                                              1                                            1
                    ≤ 4 2SAH 2 log2 K log ′ Tq2 + 3Kv ⋆ + 60SAH 2 (log2 K) log ′                           (86)
                                              δ                                            δ
with probability exceeding 1 − 3SAHKδ ′ . In addition, Lemma 15 tells us that
                             v                
                             u
                             u X K              H
                                                                !2 
                             u                  X                      1            1
                      Tq2 ≤ 2t2    Eπk ,s1 ∼µ     rh (sh , ah )  log ′ + 3H 2 log ′
                                                                      δ            δ
                                     k=1              h=1
                              v                    "H                #
                              u      K
                              u     X               X                     1          1
                              t
                           ≤ 2 2H       Eπk ,s1 ∼µ      rh (sh , ah ) log ′ + 3H log ′
                                                                         δ          δ
                                    k=1             h=1
                              r
                                             1             1
                           ≤ 2 2KHv ⋆ log ′ + 3H log ′                                                     (87)
                                             δ            δ
                                              1
                           ≤ 2Kv ⋆ + 5H log ′                                                              (88)
                                              δ
with probability at least 1 − 2SAHKδ ′ , where the expectation operator Eπk ,s1 ∼µ [·] is taken over the random-
ness of a trajectory {(sh , ah )} generated under policy π k and initial state s1 ∼ µ, the last line arises from
the AM-GM inequality, and the penultimate line makes use of Assumption 1 and the fact that
                                "H                #
                                 X                         h k       i
                     Eπk ,s1 ∼µ      rh (sh , ah ) = Es1 ∼µ V1π (s1 ) ≤ Es1 ∼µ [V1⋆ (s1 )] = v ⋆ .
                                  h=1

Taking (86), (87) and (88) together, we can demonstrate that with probability exceeding 1 − 5SAHKδ ′ ,
                               r
                                                        1                        1
                       Tq1 ≤ 13 SAH 2 Kv ⋆ (log2 K) log ′ + 80SAH 2 (log2 K) log ′ ,             (89a)
                                                       δ                        δ
                              r
                                           1           1
                       Tq2 ≤ 2 2KHv ⋆ log ′ + 3H log ′ .                                         (89b)
                                           δ           δ
Substitution into (84) reveals that: with probability exceeding 1 − 5SAHKδ ′ ,
                                r
                                                         1                       1
                        T4 ≤ 15 SAH 2 Kv ⋆ (log2 K) log ′ + 83SAH 2 (log2 K) log ′ .                       (90)
                                                         δ                      δ

Bounding T5 . Recall that we have proven in (74) that
                                                                   H
                                                                 K X
                                                                 X
                                   T5 ≤ T7 + T8 + 2HT2 + 2H                rbhk (skh , akh ).              (91)
                                                                 k=1 h=1

With (85) and (88) in place, we can deduce that, with probability at least 1 − 3SAHKδ ′ ,
                          X                                           1                  1
                                rh (skh , akh ) ≤ Tq2 + 3Kv ⋆ + H log ′ ≤ 5Kv ⋆ + 6H log ′ .               (92)
                                                                     δ                  δ
                          k,h

Moreover, under the assumption (81), we can further bound (89a) as
                                     √
                                Tq1 ≤ BSAH 2 Kv ⋆ + BSAH 2 ≤ 2Kv ⋆

                                                            35
with probability exceeding 1 − 3SAHKδ ′ , which combined with (92) and the assumption (81) results in
                     X                       X                                        1
                         rbhk (skh , akh ) =   rh (skh , akh ) + Tq1 ≤ 7Kv ⋆ + 6H log ′ ≤ 8Kv ⋆ .    (93)
                                                                                     δ
                       k,h                 k,h

Substitution into (91) indicates that: with probability exceeding 1 − 6SAHKδ ′ ,
                                          T5 ≤ T7 + T8 + 2HT2 + 16HKv ⋆.                                   (94)

Bounding T6 . Making use of our bounds (76), (38c) and (93), we can readily derive
                                                               H
                                                             K X
                                                             X
                          T6 ≤ T8 + 2HT2 + 2HT9 + 2H                   rbh (skh , akh )
                                                             k=1 h=1
                                     r
                                                1                              1
                                 ≤   32T6 log      + 2HT9 + 16HKv ⋆ + 3H 2 log ′ + 2HT2                    (95)
                                                δ′                            δ
with probability at least 1 − 16SAH 2 K 2 δ ′ .

Putting all pieces together. Recalling our choice of B (cf. (79)), we can see from (83), (36b), (90), (94),
(95), (38c), (39a) and (39b) that
                                  p           p
                              T2 ≤ BSAHT5 + BSAH 2 (T4 + 3Kv ⋆ ) + BSAH 2 ,                          (96a)
                                  p
                              T3 ≤ BT6 + BH,                                                         (96b)
                                  √
                                                       2
                              T4 ≤ BSAH 2 Kv ⋆ + BSAH ,                                              (96c)
                              T5 ≤ T7 + T8 + 2HT2 + 16HKv ⋆ ,                                            (96d)
                                   p
                              T6 ≤ BT6 + 2HT9 + 16HKv ⋆ + BH 2 + 2HT2 ,                                    (96e)
                                   p
                              T8 ≤ BH 2 T6 + BH 2 ,                                                        (96f)
                                   p
                         T1 ≤ T9 ≤ BSAHT6 + BSAH 2 ,                                                     (96g)
                                     p
                              T7 ≤ H BSAHT6 + BSAH 3 .                                                   (96h)
                                                     2
Solving (96) under the assumption K ≥ BSAH
                                        v⋆ allows us to demonstrate that
                                                     T6 . BHKv ⋆                                         (97a)
                                                          √
                                                T1 ≤ T9 . B 2 SAH 2 Kv ⋆                                 (97b)
                                                          √
                                                T7 + T8 . B 2 SAH 4 Kv ⋆                                 (97c)
                                                     T5 . BHKv ⋆                                         (97d)
                                                          √
                                                     T2 . B 2 SAH 2 Kv ⋆                                   (97e)
                                                          √
                                                     T3 . B 2 HKv ⋆                                        (97f)
                                                          √
                                                     T4 . BSAH 2 Kv ⋆                                    (97g)
with probability exceeding 1 − 200SAH 2K 2 δ ′ . Putting these bounds together with (34), we arrive at
                                                                  √
                             Regret(K) ≤ T1 + T2 + T3 + T4 . B SAH 2 Kv ⋆
                                                                         δ                       1
with probability exceeding 1 − 200SAH 2K 2 δ ′ . Replacing δ ′ with 200SAH 2 K 2 and taking δ = 2KH give

                                √                            √                      √
         E Regret(K) . (1 − δ)B SAH 2 Kv ⋆ + δKv ⋆ . B SAH 2 Kv ⋆ + 1 ≍ B SAH 2 Kv ⋆
                                √                               √
                        ≍ min B SAH 2 Kv ⋆ , BKv ⋆ ≍ min            SAH 2 Kv ⋆ , Kv ⋆ log5 (SAHK),
                             2
provided that K ≥ BSAH
                    v⋆ . Taking this collectively with (80) concludes the proof.

                                                           36
E      Proof of the cost-based regret bound (proof of Theorem 3)
We now turn to the proof of Theorem 3. For notational convenience, we shall use r to denote the negative
cost (namely, rh = −ch , rbh = −b  ch , and so on) throughout this section. We shall also use the following
notation (and similar quantities like Qkh , Vhk , . . .)
                                        n     n                                  o    o
                     Qh (s, a) ← max min rbh (s, a) + Pbs,a,h Vh+1 + bh (s, a), 0 , −H ,
                           Vh (s) ← max Qh (s, a),
                                       a

in order to be consistent with the reward-based setting.
    Akin to the proof of Theorem 2, we need to bound the quantities T1 , . . . , T9 introduced previously (see
(34), (35) and (37)). We note that the analysis for T1 , T3 , T7 , T8 and T9 in Appendix D readily applies to
the negative reward case herein. Thus, it suffices to develop bounds on T2 , T4 , T5 and T6 to capture their
dependency on c⋆ , which forms the main content of the remainder of this section.

Bounding T2 . Recall from (66) that
                           v                       
                           u bk
                   460 X   u V P k k , Vh+1
                           t     sh ,ah ,h
                                                k     log δ1′
              T2 =                                             +
                    9
                       k,h
                                    Nhk (skh , akh )
                             v
                             u k k k                                
                                                       k (sk , ak ) 2 log 1
                      √ Xu   t  σ
                                bh (s h , a h ) −    r
                                                     bh    h     h        δ′   544 X H log δ1′
                    2 2                                                      +                          .            (98)
                         k,h
                                                Nhk (skh , akh )                9
                                                                                   k,h
                                                                                       Nhk (skh , akh )

In what follows, let us bound the three terms on the right-hand side of (98) separately.

    • For the first and the third terms on the right-hand side of (98), invoking the Cauchy-Schwarz inequality
      and Lemma 20 gives
                      v                        
                      u bk                        1    s
                  Xu                       k
                      t V Pskh ,akh ,h , Vh+1 log δ′
                                                                           1 X                         
                                   k     k   k
                                                     ≤  2SAH(log2 K) log ′         V Pbskk ,ak ,h , Vh+1
                                                                                                     k
                               Nh (sh , ah )                                δ            h h
                  k,h                                                          k,h
                                                       r                   1
                                                     = 2SAH(log2 K) log ′ T5                               (99)
                                                                            δ
      with T5 defined in (35a), and in addition,
                                           X H log 1′                               1
                                                         δ
                                                 k (sk , ak )
                                                              ≤ 2SAH 2 (log2 K) log ′ .                             (100)
                                               N h h h                             δ
                                           k,h


    • Let us turn to the second term on the right-hand side of (98). Observing the basic fact that
                                                                       2
                                                                            rhk (skh , akh ),
                                   bhk (skh , akh ) − rbhk (skh , akh ) ≤ −Hb
                                   σ

      we can combine it with Lemma 20 to derive
        v
        u k k k                             
                              k (sk , ak ) 2 log 1    r                      s X
        u σ b (s , a  ) −   r
                            b
        t h h h              h h h               δ′                       1
                                                    ≤  2SAH(log 2 K) log      H         rhk (skh , akh )
                                                                                       −b
                        Nhk (skh , akh )                                  δ′
                                                                                   k,h
                                           v
           r                               u             K                            X  K                        
                                         1 u             X
         ≤ 2SAH (log2 K) log ′ t−T4 + 3Kc⋆ +
                                                                   k
                    2                                        − V1π (sk1 ) + V1⋆ (sk1 ) +           − V1⋆ (sk1 ) − 3c⋆ ,
                                         δ
                                                            k=1                               k=1
                                                                                                                    (101)

                                                            37
     where the last inequality invokes the definition of T4 (see (34)). By virtue of Lemma 17 and the
     definition (45) of c⋆ , one can show that
                                                      K
                                                      X                                    1
                                                              −V1⋆ (sk1 ) ≤ 3Kc⋆ + H log
                                                                                           δ′
                                                      k=1

     with probability exceeding 1 − δ ′ . In addition, we note that
                              K 
                              X                                 
                                            k
                                       − V1π (sk1 ) + V1⋆ (sk1 ) = Regret(K) = T1 + T2 + T3 + T4 .                   (102)
                              k=1

     Taking these properties together with (101) yields
                   v
                   u k k k                          
                                       k (sk , ak ) 2 log 1
                   u σb  (s  , a ) − r
                                     b
                   t h h h            h h h               δ′

                                           Nhk (skh , akh )
                                 r                                   r
                                                                 1                                              1
                             ≤      2SAH 2 (log         2 K) log ′       T1 + T2 + T3 + 2|T4 | + 3Kc⋆ + H log
                                                                δ                                               δ′

Putting the above results together, we can deduce that, with probability exceeding 1 − δ ′ ,
          r                   1
  T2 ≤ 90 SAH(log2 K) log ′ T5
                               δ
        r                      r
                             1                                         1                     1
     + 4 SAH (log2 K) log ′ T1 + T2 + T3 + 2|T4 | + 3Kc⋆ + H log ′ + 130SAH 2 (log2 K) log ′ . (103)
               2
                             δ                                        δ                      δ

Bounding T4 . When it comes to the quantity T4 , we recall that
                   K    H
                                                        !  K H
                                                                                        !
                   X   X                                   X X
                            k k      k          k    k               k    k       πk k
              T4 =        rbh (sh , ah ) − rh (sh , ah ) +      rh (sh , ah ) − V1 (s1 ) .                           (104)
                        k=1      h=1                                         k=1   h=1
                        |                        {z                      }   |                   {z        }
                                               =: Tq1                                           =: Tq2

To control T4 , we first make note of the following result that bounds the empirical reward (for the case with
negative rewards), which assists in bounding the term Tq1 .
Lemma 23. With probability at least 1 − 2SAHKδ ′ , it holds that
                H
              K X
              X
                        rbhk (skh , akh ) − rh (skh , akh )
              k=1 h=1
                                          v
                  r                       uK H
                                      1   uX X                                         1
              ≤ 4 2SAH 2 (log2 K) log ′ · t    − rh (skh , akh ) + 52SAH 2 (log2 K) log ′ .
                                     δ                                                 δ
                                                               k=1 h=1

Proof. The proof basically follows the same arguments as in the proof of Lemma 21, except that r is now
replaced with −r.

Lemma 23 tells us that with probability at least 1 − 3SAHKδ ′ ,
                                        v
              r                         uK H
                                     1  uX X                                                1
     |T1 | ≤ 4 2SAH (log2 K) log ′ · t
      q                2                            − rh (skh , akh ) + 52SAH 2 (log2 K) log ′
                                    δ                                                       δ
                                           k=1 h=1
                                 v
                                 u                   K
              p                  u                  X                                              1
           ≤ 4 2SAH (log2 K) · t−Tq2 + 3Kc⋆ +
                       2                                  − V1⋆ (sk1 ) − 3c⋆ + 52SAH 2 (log2 K) log ′
                                                                                                   δ
                                                                      k=1


                                                                      38
                 p                   q
                                                                         1
            ≤4     2SAH 2 (log2 K) · Tq2 + 3Kc⋆ + 60SAH 2 (log2 K) log ′ .                                              (105)
                                                                        δ
Here, the last line uses the fact (see Lemma 17) that, with probability exceeding 1 − δ ′ ,
                                            K
                                            X                                    1
                                                      − V1⋆ (sk1 ) ≤ 3Kc⋆ + H log ′ .                                   (106)
                                                                                 δ
                                            k=1

    In addition, the Freedman inequality in Lemma 15 combined with (106) implies that, with probability at
least 1 − 3SAHKδ,
                 v                                       
                 u                            !2
                 u XK        H
                             X
                 u                                             1         1
       |Tq2 | ≤ 2t2   Eπk       rh (sh , ah )   s1 = sk1  log + 3H log
                                                               δ         δ
                  k=1             h=1
             v           "H                          #
             u    K
             u   X        X                               1              1
          ≤ 2t2H     Eπk      −rh (sh , ah ) s1 = sk1 log + 3H log
                                                          δ              δ
                 k=1      h=1
             v                                                                 !
             u      K                             K
             u     X                             X                               1         1
          = 2t2H
                            k
                       −V1π (sk1 ) + V1⋆ (sk1 ) +      −V1⋆ (sk1 ) − 3c⋆ + 3Kc⋆ log + 3H log                            (107)
                                                                                   δ         δ
                        k=1                                       k=1
                                                1
        ≤ 3Kc⋆ + T1 + T2 + T3 + T4 + 9H log .                                                                           (108)
                                                δ
Combining (105), (107) with (108) reveals that, with probability at least 1 − 4SAHKδ,
                     r
            q                                                       1                    1
          |T1 | ≤ 16 SAH 2 (Kc⋆ + T1 + T2 + T3 + T4 )(log2 K) log + 200SAH 2(log2 K) log
                                                                    δ                    δ
                    r
                                                        1           1
          |Tq2 | ≤ 2 2H(3Kc⋆ + T1 + T2 + T3 + T4 ) log + 9H log .
                                                        δ           δ
As a result, substitution into (104) leads to
                     r
                                                                                        1                        1
           |T4 | ≤ 22 SAH 2 (Kc⋆ + T1 + T2 + T3 + T4 )(log2 K) log                        + 209SAH 2 (log2 K) log .     (109)
                                                                                        δ                        δ

Bounding T5 . Invoking the arguments in (38a) and recalling the update rule (46), we obtain
                       H D
                     K X
                     X                                          2 E X  H D
                                                                      K X
                                                                                                   2 E
             T5 ≤              Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                                            k
                                                                    +                          k
                                                                           Psk ,ak ,h − esk , Vh+1                      (110)
                                  h     h         h    h                                  h   h         h+1
                     k=1 h=1                                                  k=1 h=1
                                 H
                               K X
                               X                            
                      + 2H                  − rh (skh , akh ) .
                               k=1 h=1

Moreover, we recall that
                          H
                        K X
                        X                                     K
                                                              X                    K
                                                                                   X
                                                                 k
                                   − rh (skh , akh ) = −Tq2 −   V1π (s1 ) ≤ −Tq2 +   V1⋆ (sk1 ).                        (111)
                        k=1 h=1                                         k=1                       k=1

By virtue of (106), one sees that with probability at least 1 − 5SAHKδ,
           K X H                       r
          X                                                            1                1
                    − rh (sh , ah ) ≤ 2 2H(3Kc⋆ + T1 + T2 + T3 + T4 ) log + 3Kc⋆ + 10H log .
                           k    k
                                                                                                                        (112)
                                                                         δ                δ
           k=1 h=1

Consequently, we arrive at
                                            r
                                                                                              1                     1
         T5 ≤ T7 + T8 + 2HT2 + 4 2H 3 (3Kc⋆ + T1 + T2 + T3 + T4 ) log                           + 6HKc⋆ + 20H 2 log     (113)
                                                                                              δ                     δ
with probability exceeding 1 − 5SAHKδ.

                                                                    39
Bounding T6 . Invoking the arguments in (38a), (106) and (111), and recalling the update rule (46), we
can demonstrate that
                r                          K X H
                       1          1       X            
         T6 ≤ 2 8T6 log + 3H 2 log + 2H           max Psk ,ak ,h , Vh+1 k
                                                                               − Vhk (skh ), 0
                       δ          δ                          h h
                                          k=1 h=1
                r                                   K X H
                       1          1                X                        
            ≤ 2 8T6 log + 3H 2 log + 2HT9 + 2H               −rh (skh , akh )
                       δ          δ
                                                   k=1 h=1
                r
                       1          1
            ≤ 2 8T6 log + 3H 2 log + 2HT9
                       δ          δ
                               r                                                                 !
                                                                         1                     1
                       + 2H 2 2H(3Kc⋆ + T1 + T2 + T3 + T4 ) log + 3Kc⋆ + 10H log                   (114)
                                                                         δ                     δ

with probability at least 1 − 3SAHKδ.

Putting all this together. Armed with the preceding bounds, we are ready to establish the claimed regret
bound. By solving (103),(36b),(109),(113),(114),(38c),(39a) and (39b), we can show that, with probability
exceeding 1 − 100SAH 2Kδ,

                                       T6 . HKc⋆ + BSAH 3 ,
                                            √
                                       T1 . BSAH 2 Kc⋆ + BSAH 2 ,
                                            √
                                  T7 + T8 . BSAH 4 Kc⋆ + BSAH 3 ,
                                        T5 . HKc⋆ + BSAH 2 ,
                                             √
                                        T2 . BSAH 2 Kc⋆ + BSAH 2 ,
                                             √
                                        T3 . BHKc⋆ + BSAH 2 .

We then readily conclude that the total regret is bounded by
                                         √                   
                                      O BSAH 2 Kc⋆ + BSAH 2 .
                                                                        
In addition, the regret bound is trivially upper bounded by O K(H − c⋆ ) . The proof is thus completed by
                                                             δ
combining these two regret bounds and replacing δ ′ with 100SAH 2K .




F    Proof of the variance-dependent regret bounds (proof of Theo-
     rem 4)
In this section, we turn to establishing Theorem 4. The proof primarily contains two parts, as summarized
in the following lemmas.
Lemma 24. With probability exceeding 1 − δ/2, Algorithm 1 obeys
                                           p                        
                      Regret(K) ≤ O  e min      SAHKvar1 + SAH 2 , KH .

Lemma 25. With probability at least 1 − δ/2, Algorithm 1 satisfies
                                            p                        
                      Regret(K) ≤ O   e min      SAHKvar2 + SAH 2 , KH .

   Putting these two regret bounds together and rescaling δ to δ/2, we immediately conclude the proof of
Theorem 4. The remainder of this section is thus devoted to establishing Lemma 24 and Lemma 25.


                                                   40
F.1     Proof of Lemma 24
Before proceeding, we recall that
                                               K H
                                                                                         !
                                               X X                                k
                                        T4 =                 rbhk (skh , akh ) − V1π (sk1 ) ,
                                               k=1     h=1
                                                 H
                                               K X
                                               X                              
                                        T5 =             V Pbsk ,ak ,h , Vh+1
                                                                          k
                                                                               ,
                                                                 h    h
                                               k=1 h=1
                                                 H
                                               K X
                                               X
                                                                         k
                                                                             
                                        T6 =             V Psk ,ak ,h , Vh+1  ,
                                                                 h    h
                                               k=1 h=1

and that
                                                                     1                               δ
                      B = 4000(log2 K)3 log(3SAH) log                       and        δ′ =                  .
                                                                     δ′                         200SAH 2 K 2

F.1.1    Bounding T2

Recall that when proving (36a), we have demonstrated that (see (67))
             r              
         460                       1
   T2 ≤       2SAH(log2 K) log ′ T5
          9                        δ
              r                      s
                                 1 X k k k                                2  1088                    1
           + 4 SAH(log2 K) log ′          bh (sh , ah ) − rbhk (skh , akh )
                                          σ                                    +     SAH 2 (log2 K) log ′ .              (115)
                                 δ                                                9                    δ
                                              k,h

                                          P                                            2 
This motivates us to bound the sum            k,h   bhk (skh , akh )− rbhk (skh , akh ) , which we accomplish via the following
                                                    σ
lemma.
Lemma 26. With probability at least 1 − 4SAHKδ ′ , one has
              X                                       2                                   1
                   bhk (skh , akh ) − rbhk (skh , akh )
                   σ                                        ≤ 6Kvar1 + 242SAH 3 (log2 K) log ′ .                         (116)
                                                                                            δ
                     k,h


   Combining Lemma 26 with (115), we can readily derive
                       r                               r
                   460                      1                     1p
              T2 ≤      2SAH(log2 K) log ′ T5 + 12 SAH(log2 K) log ′ 2Kvar1
                    9                       δ                     δ
                                   2             1
                         + 157SAH (log2 K) log ′                                                                         (117)
                                                 δ
with probability at least 1 − 4SAHKδ ′ .

Proof of Lemma 26. For notational convenience, let us define the variance of Rh (s, a) as vh (s, a).
   Firstly, we control each σ bhk (skh , akh ) − (b rhk (skh , akh ))2 with vh (s, a). Fix (s, a, h, k). Applying Lemma 17
shows that, with probability at least 1 − 2δ ′ ,
                                                                      2                             1
                     Nhk (s, a) σ  bhk (skh , akh ) − rbhk (skh , akh )     ≤ 3Nhk vh (s, a) + H 2 log ′ .            (118)
                                                                                                      δ
This allows us to deduce that, with probability exceeding 1 − 2SAHKδ ′ ,
                  X                                      2     X                     X H 2 log 1′
                      bhk (skh , akh ) − rbhk (skh , akh )
                      σ                                        ≤3     vh (skh , akh ) +               δ
                                                                                              k (sk , ak )
                  k,h                                             k,h                   k,h
                                                                                            N h h h
                                                                  X                                         1
                                                               ≤3     vh (skh , akh ) + 2SAH 3 (log2 K) log ′ .          (119)
                                                                                                           δ
                                                                 k,h


                                                                 41
                                                        P            k    k
   It then suffices to bound the sum                        k,h vh (sh , ah ). Towards this end, let
                                                                        " H                                     #
                                                                         X
                                                  Vehk (s) := Eπk                   vh′ (sh′ , ah′ ) sh = s
                                                                            h′ =h

be the value function with rewards taken to be {vh (s, a)} and the policy selected as π k . It is clearly seen
that
                                             Vehk (s, a) ≤ H 2 .
In view of Lemma 15, we can obtain
              K X
                H                                K                     K H
                                                                                                                       !
              X                                  X                     X X
                        vh (skh , akh ) −              Ve1k (sk1 ) =                    esk     − Psk ,ak ,h , Veh+1
                                                                                                                 k
                                                                                          h+1          h   h
              k=1 h=1                            k=1                   k=1      h=1
                                                                    v
                                                                    u K H
                                                                    u XX                            1            1
                                                                 ≤ 2t2    V Psk ,ak ,h , Veh+1
                                                                                           k     log ′ + 3H 2 log ′                                (120)
                                                                              h h                   δ            δ
                                                                               k=1 h=1

with probability at least 1 − 2SAHKδ ′ . Moreover, invoking Lemma 15 once again reveals that
            H
          K X
          X                                      
                    V Psk ,ak ,h , Veh+1
                                     k
                          h       h
          k=1 h=1
                H
              K X
              X
          =             Psk ,ak ,h − esk , (Veh+1
                                              k
                                                  )2
                              h       h          h+1
              k=1 h=1
                      H 
                    H X
                    X                               2            2  X  H 
                                                                        K X
                                                                                         2                                                 2 
                +                     Veh+1
                                        k
                                            (skh+1 ) − Vehk (skh )    +       Vehk (skh ) −                            Psk ,ak ,h , Veh+1
                                                                                                                                      k
                                                                                                                           h   h
                    k=1 h=1                                                             k=1 h=1
             v
             u       H
                   K X                                       H
                                                           K X
             u     X                             1        X                              1
          ≤ 2t8H 4     V Psk ,ak ,h , Veh+1
                                        k     log ′ + 2H 2     vh (skh , akh ) + 3H 4 log ′
                           h h                   δ                                       δ
                        k=1 h=1                                                           k=1 h=1
                      H
                    K X
                    X                                                  1
          ≤ 4H 2                  vh (skh , akh ) + 42H 4 log                                                                                      (121)
                                                                       δ′
                    k=1 h=1

with probability at least 1 − 2SAHKδ ′ . Combine (120) and (121) to yield
                                             v
       K X K                   K             u       H
                                                   K X
       X                       X             u     X                       1              1            1
                    k    k
               vh (sh , ah ) ≤   e k k       t
                                 V1 (s1 ) + 2 8H 2     vh (skh , akh ) log ′ + 84H 4 log2 ′ + 3H 2 log ′
                                                                          δ              δ            δ
        k=1 h=1                           k=1                                k=1 h=1
                                           K
                                           X                             1
                                  ≤2             Ve1k (sk1 ) + 80H 2 log ′
                                                                        δ
                                           k=1
                                                                        1
                                  ≤ 2Kvar1 + 80H 2 log                                                                                             (122)
                                                                        δ′
with probability exceeding 1 − 4SAHKδ ′ .

F.1.2    Bounding T4

We now move on to the term T4 , which can be written as T4 = Tq1 + Tq2 with
                                                               H
                                                             K X
                                                             X                                                  
                                                     Tq1 =                   rbhk (skh , akh ) − rh (skh , akh )
                                                             k=1 h=1



                                                                                 42
                                                               K H
                                                                                                               !
                                                               X X                                  k
                                                       Tq2 =                   rh (skh , akh ) − V1π (sk1 )        .
                                                               k=1       h=1

This leaves us with two quantities to control.
   To begin with, let us look at Tq1 . In view of Lemma 18 and the union bound over (s, a, h, k), we see that,
with probability at least 1 − 2SAHKδ ′ ,
                                                       s
                                k                        2vh (s, a) log δ1′   H log δ1′
                              rbh (s, a) − rh (s, a) ≤                      +            .              (123)
                                                            Nhk (s, a)        Nhk (s, a)

As a result, we obtain
                                                  s                             !
                                   K X
                                   X H         k , ak ) log 1             1
                                        2vh (s                    H  log
                       |Tq1 | ≤                h    h       δ
                                                                + k k δk
                                                              ′            ′

                                           N  k (sk , ak )       Nh (sh , ah )
                                k=1 h=1      h     h     h
                                                           v
                                r                          uK H
                                                     1 u    XX                                           1
                              ≤ 4SAH(log2 K) log ′ · t             vh (skh , akh ) + 2SAH 2 (log2 K) log ′ .              (124)
                                                    δ                                                   δ
                                                                               k=1 h=1

In view of (122), with probability exceeding 1 − 4SAHKδ ′ we have
                                                    H
                                                  K X
                                                  X                                                                1
                                                               vh (skh , akh ) ≤ 2Kvar1 + 80H 2 log                   .   (125)
                                                                                                                   δ′
                                                  k=1 h=1

Consequently, we arrive at
                                              r
                                                                                          1                         1
                                   |Tq1 | ≤       8SAHKvar1 (log2 K) log                     + 20SAH 2 (log2 K) log ′ .   (126)
                                                                                          δ′                       δ

    Next, we proceed to bound Tq2 . Towards this, we make the observation that
                                                                 H
                                                               K X
                                                               X                                           k
                                                       Tq2 =                   esk                     π
                                                                                       − Psk ,ak ,h , Vh+1 .              (127)
                                                                                 h+1        h   h
                                                               k=1 h=1

Applying Lemma 15 shows that, with probability at least 1 − 2SAHKδ ′ ,
                    v
                    u K H
                    u XX
          |Tq2 | ≤ 2t2                          π k ) log 1 + 3H log 1
                               V(Psk ,ak ,h , Vh+1
                                   h h                    δ′           δ′
                       k=1 h=1
                    v
                    u K H
                    u XX                                                               1          1
                 ≤ 2t4                           ⋆ ) + V(P k k , V ⋆
                                V(Psk ,ak ,h , Vh+1          sh ,ah ,h
                                                                              πk
                                                                       h+1 − Vh+1 ) log ′ + 3H log ′ .                    (128)
                                     h h                                               δ          δ
                                   k=1 h=1

Continue the calculation to derive
  H
K X
X                                             k
                          ⋆      π
          V(Psk ,ak ,h , Vh+1 − Vh+1 )
               h       h
k=1 h=1
      H 
    K X
    X
                              ⋆      π             k                                                k   2 
=              Psk ,ak ,h , (Vh+1 − Vh+1 )2 −                                    ⋆
                                                                   Psk ,ak ,h , Vh+1    π
                                                                                     − Vh+1
                       h       h                                     h     h
    k=1 h=1
    X H D
    K X                                                              E
                                                               k
                                   ⋆      π
≤             Psk ,ak ,h − esk , (Vh+1 − Vh+1 )2
                   h       h         h+1
    k=1 h=1



                                                                                     43
          K X
          X H             n                                                             k                                                o
                                                                                                                                       πk
   + 2H             max                                                     ⋆
                               Vh⋆ (skh ) − rh (skh , akh ) − Psk ,ak ,h , Vh+1         − Vhπ (skh ) − rh (skh , akh ) − Psk ,ak ,h , Vh+1  ,0
                                                                  h       h                                                    h   h
          k=1 h=1
   v
   u       H
         K X
   u     X
≤ 2t8H 2                     ⋆
             V(Psk ,ak ,h , Vh+1    π k ) log 1
                                 − Vh+1
                 h h                          δ′
              k=1 h=1

                  X H 
                  K X                                                                                 1
          + 2H                                                              ⋆
                               Vh⋆ (skh ) − rh (skh , akh ) − Psk ,ak ,h , Vh+1           + 3H 2 log      .                             (129)
                                                                   h      h                            δ′
                  k=1 h=1

Here, (129) holds with probability at least 1 − 2SAHKδ ′ , a consequence of Lemma 15 and Lemma 16.
   To further bound the right-hand side of (129), we develop the following upper bound:

    X H 
    K X                                                   
                                                      ⋆
         Vh⋆ (skh ) − rh (skh , akh ) − Psk ,ak ,h , Vh+1
                                                    h   h
    k=1 h=1
        K 
        X                          XK              H
                                                    X                     H
                                                                        K X
                           k              k                           X
    =      V1⋆ (sk1 ) − V1π (sk1 ) +   V1π (sk1 ) −   rh (skh , akh ) +     esk                                                 ⋆
                                                                                                                − Psk ,ak ,h , Vh+1 .   (130)
                                                                                                          h+1        h   h
        k=1                                   k=1                 h=1                       k=1 h=1

Note that the first term on the right-hand side (130) is exactly Regret(K) = T1 + T2 + T3 + T4 , the second
term on the right-hand side (130) corresponds to −T4 , whereas the third term on the right-hand side (130)
can be bounded by
                                                 v
             K X  H                              u K H
            X                                    u XX
                      esk − Psk ,ak ,h , Vh+1 ≤ 2t2
                                          ⋆                                 ⋆ ) log 1 + 3H log 1
                                                            V(Psk ,ak ,h , Vh+1                        (131)
                        h+1     h h                              h h                δ′         δ′
               k=1 h=1                                                    k=1 h=1

with probability at least 1 − 2SAHKδ ′ . It then implies the validity of the following bound with probability
exceeding 1 − 8SAHKδ ′ :

                    X H 
                    K X                                                                 
                                                                                ⋆
                                   Vh⋆ (skh ) − rh (skh , akh ) − Psk ,ak ,h , Vh+1
                                                                      h       h
                    k=1 h=1
                                               v
                                               u K H
                                               u XX
                    ≤ T1 + T2 + T3 + 2|T4 | + 2t2                    ⋆ ) log 1 + 55H log 1 .
                                                     V(Psk ,ak ,h , Vh+1                                                                (132)
                                                         h h                 δ′          δ′
                                                               k=1 h=1

Combining these bounds with (129), we can use a little algebra to further obtain
                H
              K X
              X                                         k
                                        ⋆      π
                        V(Psk ,ak ,h , Vh+1 − Vh+1 )
                               h     h
              k=1 h=1
                                            v                                 
                                             u K H
                                             u XX                          1
              ≤ 4H T1 + T2 + T3 + 2|T4 | + 2t2                    ⋆ ) log
                                                   V(Psk ,ak ,h , Vh+1          + 262H 2 log 1                                         (133)
                                                       h h                 δ ′                δ′
                                                                 k=1 h=1

                                                           P      PH
with probability at least 1 − 8SAHKδ ′ . If we define T10 = K k=1   h=1 V(Psk
                                                                                          ⋆
                                                                              ,ak ,h , Vh+1 ), then substituting
                                                                            h h
(133) into (128) yields: with probability exceeding 1 − 10SAHKδ ′ ,
                                   v                                           !
                  r                u                              r
                              1    u                                        1           1              1
                                   t
        |Tq2 | ≤ 2 8Kvar1 log ′ + 8 H T1 + T2 + T3 + 2|T4 | + 2 2T10 log ′ log ′ + 107H log ′
                              δ                                            δ            δ             δ
                   r              r
                            1                                   1             1
               ≤ 11 T10 log ′ + 16 H(T1 + T2 + T3 + 2|T4 |) log ′ + 115H log ′ .                           (134)
                           δ                                   δ             δ


                                                                          44
   Combining the above bound on |Tq2 | with (126), with probability exceeding 1 − 10SAHKδ ′

    |T4 | ≤ |Tq1 | + |Tq2 |
               r                           r
                                     1                                   1                        1
            ≤ 18 SAHT10 (log2 K) log ′ + 16 H(T1 + T2 + T3 + 2|T4 |) log ′ + 135SAH 2(log2 K) log ′ ,
                                    δ                                   δ                        δ
which together with a little algebra yields
               r                            r
                                       1                        1                         1
     |T4 | ≤ 36 SAHT10 (log2 K) log ′ + 32 H(T1 + T2 + T3 ) log ′ + 306SAH 2 (log2 K) log ′ .                                                                        (135)
                                       δ                       δ                         δ

F.1.3       Bounding T5 and T6

We now turn attention to the terms T5 and T6 . Towards this, we start with the following lemma.
Lemma 27. With probability at least 1 − 2SAHKδ ′ , one has

                                                                              T5 ≤ 5T6 + 8BSAH 3 .                                                                   (136)

Proof of Lemma 27. Direct computation gives
      X
          V(Pbskk ,ak ,h , Vh+1
                            k
                                )
                      h   h
        k,h
            X                                                                            2 
        =             Pbskk ,ak ,h , (Vh+1
                                        k
                                           )2 −                 Pbsk ,ak ,h , Vh+1
                                                                               k
                          h     h                                  h       h
              k,h
            X                                                                            2        X
        ≤             Pskk ,ak ,h , (Vh+1
                                       k
                                          )2 −                                k
                                                                Psk ,ak ,h , Vh+1                +         Pbsk ,ak ,h − Psk ,ak ,h , (Vh+1
                                                                                                                                        k
                                                                                                                                            )2                       (137)
                          h     h                                  h       h                                    h   h              h   h
              k,h                                                                                    k,h
                                    X
                       + 2H                   Pbsk ,ak ,h − Psk ,ak ,h , Vh+1
                                                                          k
                                                h   h             h       h
                                    k,h
            X                                           X                                                                   X
        ≤           V(Pskk ,ak ,h , Vh+1
                                     k
                                         )+                    Pbsk ,ak ,h − Psk ,ak ,h , (Vh+1
                                                                                             k
                                                                                                )2 + 2H                            Pbsk ,ak ,h − Psk ,ak ,h , Vh+1
                                                                                                                                                               k
                          h     h                                 h        h          h   h                                            h   h       h   h
              k,h                                       k,h                                                                  k,h

        = T5 + T7 + 2HT1 .                                                                                                                                           (138)

Invoking Lemma 7 to bound T7 and T1 , we obtain
         X                                           X                                           sX
                  V(Pbskk ,ak ,h , Vh+1
                                    k
                                        )≤                                     k
                                                              V(Pskk ,ak ,h , Vh+1 )+6                                     k )BSAH 3 + 3BSAH 3
                                                                                                           V(Psk ,ak ,h , Vh+1
                          h   h                                       h       h                                     h   h
            k,h                                         k,h                                          k,h
                                                         X
                                                   ≤5                           k
                                                               V(Pskk ,ak ,h , Vh+1 ) + 8BSAH 3                                                                      (139)
                                                                          h       h
                                                         k,h

with probability exceeding 1 − 2SAHKδ ′ .
                                                         P                       k
   In view of Lemma 27, it suffices to bound T6 =            k,h V(Psk ,ak ,h , Vh+1 ). Given that Var(X + Y ) ≤
                                                                     h h
2(Var(X) + Var(Y )) holds for any two random variables X, Y , we have
               X                           X                          X                                
                                   k                           ⋆                              k      ⋆
          T6 =     V Psk ,ak ,h , Vh+1   ≤2   V Psk ,ak ,h , Vh+1   +2        V Psk ,ak ,h , Vh+1 − Vh+1
                                          h    h                                      h    h                                       h   h
                          k,h                                              k,h                                      k,h
                                              K H
                                                                                                           !
                                              X X                                                                  X                                  
                                                                              ⋆                                                             k      ⋆
                     ≤ 3Kvar1 +                               V Psk ,ak ,h , Vh+1   − 3var1                    +2           V Psk ,ak ,h , Vh+1 − Vh+1  .            (140)
                                                                       h       h                                                   h   h
                                              k=1       h=1                                                         k,h

To further upper bound the right-hand side of (140), we make note of the following lemmas.



                                                                                          45
Lemma 28. With probability at least 1 − 4SAHKδ ′ , it holds that
                                               K H
                                                                                                            !
                                               X X                                                                            1
                                                                                  ⋆
                           T10 − 2Kvar1 =                         V Psk ,ak ,h , Vh+1 − 2var1                    ≤ 80H 2 log      .   (141)
                                                                          h   h                                                δ′
                                               k=1        h=1

Lemma 29. With probability at least 1 − 2δ ′ , it holds that
    X                                  s        X                            X
                       k      ⋆
                                  
       V Psk ,ak ,h , Vh+1 − Vh+1   ≤ 4 BH 2                        k ) + 4H
                                                    V(Psk ,ak ,h , Vh+1        bkh (skh , akh ) + 3BSAH 3 .
                   h   h                                                            h    h
       k,h                                                          k,h                                              k,h


   Combining Lemma 28 and Lemma 29 with (140), we see that with probability at least 1 − 6SAHKδ ′ ,
                             X
                                               k
                        T6 =   V(Psk ,ak ,h , Vh+1 )
                                                          h   h
                                             k,h
                                                       p
                                           ≤ 4Kvar1 + 8 BSAH 3 T6 + 8HT2 + 7BSAH 3 ,

and as a result,

                                              T6 ≤ 8Kvar1 + 16HT2 + 78BSAH 3 .                                                        (142)

This taken collectively with Lemma 27 yields, with probability at least 1 − 8SAHKδ ′ ,
                             X
                       T5 =    V(Pbsk ,ak ,h , Vh+1
                                                k
                                                    ) ≤ 40Kvar1 + 80HT2 + 398BSAH 3.                                                  (143)
                                                  h   h
                                     k,h

To finish our bounds on T5 and T6 , it remains to establish Lemma 28 and Lemma 29.
                                 ⋆             ⋆
Proof of Lemma 28. Let Rh (s, a) = V(Ps,a,h , Vh+1 ), and define
                                                              " H                                            #
                                               k               X
                                             V h (s) = E                  Rh′ (sh′ , ah′ ) sh = s .
                                                                  h′ =h

        k
Then V h (s) ≤ var1 ≤ H 2 . It then follows that
                              H
                              X                                                    H
                                                                                   X
                                                     ⋆                                       ⋆
                                     V(Psk ,ak ,h , Vh+1 ) − var1 =                      Rh (skh , akh ) − var1
                                         h h
                              h=1                                                  h=1
                                                                                   H
                                                                                   X         ⋆                   k
                                                                              ≤          Rh (skh , akh ) − V 1 (sk1 )
                                                                                   h=1
                                                                                   H 
                                                                                   X                                k
                                                                              =              esk       − Psk ,ak ,h V h+1 .           (144)
                                                                                                 h+1        h    h
                                                                                   h=1

             k
Note that V depends only on π k , which is determined before the beginning of the k-th episode. Consequently,
applying Lemma 15 reveals that, with probability at least 1 − 2SAHKδ ′ ,
                          K       H
                                                                       !
                          X      X                             k
                                                     ⋆
                                     V(Psk ,ak ,h , Vh+1 ) − V 1 (sk1 )
                                                          h   h
                                  k=1       h=1
                                       v
                                       u K H
                                       u XX                   k      1            1
                                    ≤ 2t2    V Psk ,ak ,h , V h+1 log ′ + 3H 2 log ′ .                                                (145)
                                                 h h                 δ            δ
                                              k=1 h=1




                                                                              46
Regarding the sum of variance terms on the right-hand side of (145), one can further bound
                 H
               K X
               X                                        k       
                           V Psk ,ak ,h , V h+1
                                    h       h
               k=1 h=1
                     H 
                   K X
                   X                                            k                                  k        2 
               =                    Psk ,ak ,h , (V h+1 )2 −                   Psk ,ak ,h , V h+1
                                            h       h                               h   h
                   k=1 h=1
                     H
                   K X
                   X                                                    k
               =                   Psk ,ak ,h − esk , (V h+1 )2
                                        h       h               h+1
                   k=1 h=1
                             H 
                           H X
                           X                      k           2   k       2  X  H 
                                                                                 K X
                                                                                         k       2                                                k       2 
                       +                        V h+1 (skh+1 ) − V h (skh )    +       V h (skh ) −                                   Psk ,ak ,h , V h+1
                                                                                                                                          h   h
                           k=1 h=1                                                                     k=1 h=1
                  v
                  u       H
                        K X                                     H
                                                              K X
                  u     X                    k      1        X                              1
               ≤ 2t8H 4     V Psk ,ak ,h , V h+1 log ′ + 2H 2     Rh (skh , akh ) + 3H 4 log ′                                                                     (146)
                                h h                 δ                                       δ
                               k=1 h=1                                                                     k=1 h=1

with probability at least 1 − 2SAHKδ ′ . Here, the last inequality arises from Lemma 15 and Lemma 16 as
                        k                                         k
well as the fact that V h (skh ) = Rh (skh , akh ) + Psk ,ak ,h V h+1 . It then follows from elementary algebra that
                                                                                   h    h

                                      H
                                    K X
                                    X                                     XK X H
                                                             k          2                                     1
                                            V(Psk ,ak ,h , V h+1 ) ≤ 4H           Rh (skh , akh ) + 42H 4 log ′ .                                                  (147)
                                                h h                                                          δ
                                    k=1 h=1                               k=1 h=1

   Substituting (147) into (145) gives
                                                                                    v
            H
          K X                                                    H                  u       H
                                                                                          K X
          X                                                      X                  u     X
                                       ⋆
                       V(Psk ,ak ,h , Vh+1 )≤
                                                                         k k
                                                                       V 1 (s1 ) + 2t8H 2                     ⋆ ) log 1 + 21H 2 log 1 ,
                                                                                              V(Psk ,ak ,h , Vh+1
                               h    h                                                             h h                 δ′            δ′
          k=1 h=1                                                k=1                                k=1 h=1

thus indicating that
                         H
                       K X
                       X                                                      K
                                                                              X
                                                    ⋆                                   k                            1                       1
                                    V(Psk ,ak ,h , Vh+1 )≤2                         V 1 (sk1 ) + 84H 2 log              ≤ 2Kvar1 + 84H 2 log ′ .
                                                    h   h                                                            δ′                     δ
                       k=1 h=1                                                k=1

The proof of Lemma 28 is thus completed.

Proof of Lemma 29. We make the observation that
  X                              
                      k      ⋆
      V Psk ,ak ,h , Vh+1 − Vh+1
                   h   h
   k,h
       X                                                                                                          2 
                                  k      ⋆
   =               Psk ,ak ,h , (Vh+1 − Vh+1 )2 −                                         k
                                                                            Psk ,ak ,h , Vh+1    ⋆
                                                                                              − Vh+1
                       h   h                                                  h     h
         k,h
       X                                                                      
                                        k      ⋆
   =               Psk ,ak ,h − esk , (Vh+1 − Vh+1 )2
                       h   h                h+1
         k,h
                       X                                                                                                    2 
                           k
                   +     (Vh+1             ⋆
                               (skh+1 ) − Vh+1 (skh+1 ))2 −                                                 k
                                                                                              Psk ,ak ,h , Vh+1    ⋆
                                                                                                                − Vh+1
                                                                                                h      h
                       k,h
       X                                                                           X                                                                           2 
                                        k      ⋆
   =               Psk ,ak ,h − esk , (Vh+1 − Vh+1 )2                              +   (Vhk (skh ) − Vh⋆ (skh ))2 −                               k
                                                                                                                                    Psk ,ak ,h , Vh+1    ⋆
                                                                                                                                                      − Vh+1             .
                       h   h                h+1                                                                                       h   h
         k,h                                                                            k,h
                                                                                                                                                                   (148)
According to Lemma 15 and Lemma 16, we see that with probability exceeding 1 − δ ′ ,
                   X
                                            k      ⋆
                       Psk ,ak ,h − esk , (Vh+1 − Vh+1 )2
                                                        h   h           h+1
                                     k,h


                                                                                              47
                               s
                             √       X                                 1            1
                          ≤ 2 2 4H 2                   k
                                       V Psk ,ak ,h , Vh+1    ⋆
                                                           − Vh+1   log ′ + 3H 2 log ′ .                         (149)
                                           h h                         δ            δ
                                             k,h


In addition, with probability at least 1 − δ ′ one has
                   X                          2                          2 
                                                                k
                        Vhk (skh ) − Vh⋆ (skh ) − Psk ,ak ,h , Vh+1    ⋆
                                                                    − Vh+1
                                                                   h   h
                    k,h
                           X                                                                 
                    ≤ 2H                                        k
                                 max Vhk (skh ) − Psk ,ak ,h , Vh+1                       ⋆
                                                                    − Vh⋆ (skh ) − Phk , Vh+1  ,0
                                                             h     h
                           k,h
                           X        
                    ≤ 2H                                        k
                                 max Vhk (skh ) − Psk ,ak ,h , Vh+1 − rh (skh , akh ), 0
                                                             h     h
                           k,h
                           X                                                             X
                    ≤ 2H         max       Pbsk ,ak ,h − Psk ,ak ,h , Vh+1
                                                                       k
                                                                           , 0 + 2H             bkh
                                             h   h            h    h
                           k,h                                                            k,h
                       s       X                            X
                                                     
                    ≤ 2 BSAH 3                   k
                                 V Psk ,ak ,h , Vh+1   + 2H   bkh (skh , akh ) + BSAH 3 .                        (150)
                                                     h   h
                                       k,h                                          k,h


It then follows that, with probability at least 1 − 2δ ′ ,
    X                                  s         X                              X
                       k      ⋆
                                                                        
       V Psk ,ak ,h , Vh+1 − Vh+1   ≤ 4 BSAH 3                       k
                                                     V Psk ,ak ,h , Vh+1   + 4H   bkh (skh , akh ) + 3BSAH 3 ,   (151)
            h   h                                                           h   h
   k,h                                                       k,h                                k,h


thereby concluding the proof.

F.1.4    Putting all this together

To finish up, let us rewrite the inequalities (40g)−(40f) as follows, with (40a), (40c), (40d) and (40e) replaced
by (117), (135) (143) and (142), respectively:
                                  p
                            T1 ≤ 128BSAHT6 + 24BSAH 2 ,
                                    p
                            T7 ≤ H 512BSAHT6 + 24BSAH 3 ,
                                  p
                            T9 ≤ 128BSAHT6 + 24BSAH 2 ,
                                     p
                            T2 ≤ 100 BSAHT5 + 140BSAH 2,
                                  p                 1
                            T3 ≤ 8BT6 + 3H log ′ ,
                                  p                 δ
                                                    p
                            T4 ≤ BSAHT10 + 32 BH(T1 + T2 + T3 ) + BSAH 2 ,
                            T5 ≤ 40Kvar1 + 80HT2 + 398BSAH 3 ,
                            T6 ≤ 8Kvar1 + 16HT2 + 78BSAH 3 ,
                                 p
                            T8 ≤ 32BH 2 T6 + 3BH 2 ,

where we recall that B = 4000(log2 K)3 log(3SA) log δ1′ . In addition, it follows from Lemma 28 that

                                                   T10 ≤ 2Kvar1 + 80BH 2 .

Solving the inequalities above reveals that, with probability exceeding 1 − 200SAH 2K 2 δ ′ ,
                                                         p                         
                     Regret(K) = T1 + T2 + T3 + T4 ≤ O        BSAHKvar1 + BSAH 2 .                               (152)

                                                             δ
One can thus conclude the proof by recalling that δ ′ = 200SAH 2K2 .




                                                                       48
F.2     Proof of Lemma 25
Following similar arguments as in the proof of Lemma 24, we focus on bounding T2 , T4 , T5 and T6 in terms
of var2 .

F.2.1   Bounding T2
                                         δ
Recall that δ ′ is defined as δ ′ = 200SAH 2 K 2 , and that we have demonstrated in (67) that

              r
        460                       1
   T2 ≤       2SAHT5 (log2 K) log ′
         9                        δ
              r                   s
                                1 X k k k                           2  1088                    1
           + 4 SAH(log2 K) log ′    bh (sh , ah ) − rbhk (skh , akh )
                                    σ                                    +     SAH 2 (log2 K) log ′ .                  (153)
                                δ                                           9                    δ
                                               k,h


To bound the right-hand side of (153), we resort to the following lemma.
Lemma 30. With probability at least 1 − 4SAHKδ ′ , one has
                       X                                                                           1
                                                  rhk (skh , akh ))2 ≤ 6Kvar2 + 242H 2 (log2 K) log ′ .
                              bhk (skh , akh ) − (b
                              σ                                                                                        (154)
                                                                                                   δ
                       k,h


Proof. Recall that in Lemma 26, we have shown that with probability at least 1 − 4SAHKδ ′ ,
                    H 
                  K X
                  X                                              2     K
                                                                         X                                   1
                             bhk (skh , akh ) − rbhk (skh , akh )
                             σ                                        ≤3   Ve1k (sk1 ) + 2SAH 3 (log2 K) log ′ .       (155)
                                                                                                            δ
                  k=1 h=1                                                k=1

We then complete the proof by observing that
                                                                "H                                                 #
                                                                 X                          k   
                              Ve1k (sk1 ) ≤ Ve1k (sk1 ) + Eπk                          π
                                                                       V Psh ,ah ,h , Vh+1              s1 = sk1
                                                                 h=1
                                                     "H                               #
                                                      X
                                        = Varπk            rh (sh , ah )   s1 = sk1       ≤ var2 .                     (156)
                                                     h=1




   Combining Lemma 30 with (153) gives: with probability at least 1 − 4SAHKδ ′ ,
                        r                             r
                    460                        1                         1p
               T2 ≤      2SAHT5 (log2 K) log ′ + 12 SAH(log2 K) log ′ 2Kvar2
                     9                        δ                          δ
                                     2            1
                          + 157SAH (log2 K) log ′ .                                                                    (157)
                                                 δ

F.2.2   Bounding T4

Recall that T4 = Tq1 + Tq2 , where
                                                    H
                                                  K X
                                                  X                                             
                                          Tq1 =              rbhk (skh , akh ) − rh (skh , akh ) ,
                                                  k=1 h=1
                                                  K H
                                                                                                !
                                                  X X                                k
                                          Tq2 =                 rh (skh , akh ) − V1π (sk1 )        .
                                                  k=1   h=1




                                                                    49
Repeating similar arguments employed in the proof of Lemma 26 and using (124), we see that with probability
exceeding 1 − 6SAHKδ ′ ,
                                              v
                       r                      uK H
                                           1 u  XX                                             1
                |T1 | ≤ 4SAH(log2 K) log ′ · t
                 q                                       vh (skh , akh ) + 2SAH 2 (log2 K) log ′
                                           δ                                                  δ
                                                k=1 h=1
                       r
                                                 1                             1
                      ≤ 8SAHKvar2 (log2 K) log ′ + 20SAH 2 (log2 K) log ′ .
                                                 δ                             δ
In addition, from Lemma 15 and the definition of var2 , we see that
                                           r
                                   q                     1                 1
                                  |T2 | ≤ 2 2Kvar2 log ′ + 3H log ′                                  (158)
                                                         δ                 δ
with probability at least 1 − 2SAHKδ ′ . Therefore, with probability at least 1 − 8SAHKδ ′ , it holds that
                              r
                                                         1                         1
                       T4 ≤ 4 2SAHKvar2 (log2 K) log ′ + 23SAH 2 (log2 K) log ′ .                       (159)
                                                        δ                          δ

F.2.3    Bounding T5 and T6

Recall that Lemma 27 asserts that with probability exceeding 1 − 2δ ′ ,
                                                          T5 ≤ 5T6 + 8BSAH 3 .
Hence, it suffices to bound T6 .
   From the elementary inequality Var(X + Y ) ≤ 2Var(X) + 2Var(Y ), we obtain
                 X                            X                         X                            
                                      k                          πk                         k      πk
           T6 =       V Psk ,ak ,h , Vh+1   ≤2   V Psk ,ak ,h , Vh+1   +2   V Psk ,ak ,h , Vh+1 − Vh+1
                           h    h                                   h       h                                 h    h
                    k,h                               k,h                                          k,h
                               K H
                                                                                          !
                               X X                                                                X                                
                                                            πk                                                           k      πk
               ≤ 3Kvar2 +                   V Psk ,ak ,h , Vh+1             − 3var2           +2         V Psk ,ak ,h , Vh+1 − Vh+1  .   (160)
                                                h h                                                           h    h
                               k=1    h=1                                                          k,h

To bound the right-hand side of (160), we resort to the following two lemmas.
Lemma 31. With probability at least 1 − 4SAHKδ ′ , it holds that
                         K      H
                                                               !
                        X     X                                             1
                                                  πk
                                  V(Psk ,ak ,h , Vh+1 ) − 2var2 ≤ 80H 2 log ′ .                                                          (161)
                                       h h                                 δ
                                k=1        h=1

Lemma 32. With probability exceeding 1 − 4SAKHδ ′ , it holds that
    X                                s     X                            X
                       k      πk
                                                                
       V Psk ,ak ,h , Vh+1 − Vh+1 ≤ 4 BH 2                   k
                                             V Psk ,ak ,h , Vh+1   + 4H   bkh (skh , akh ) + 3BSAH 3 .
                h    h                                                          h     h
        k,h                                                   k,h                                            k,h

   With Lemma 31 and Lemma 32 in place, we can demonstrate that with probability at least 1−6SAHKδ ′,
                           X                         X                            
                                             πk                         k      πk
                    T6 ≤ 2   V Psk ,ak ,h , Vh+1   +2   V Psk ,ak ,h , Vh+1 − Vh+1
                                                 h    h                                       h   h
                                     k,h                                        k,h
                                                     p
                               ≤ 4Kvar2 + 8           BSAH 3 T6 + 8HT2 + 7BSAH 3 ,

                                      =⇒             T6 ≤ 8Kvar2 + 16HT2 + 78BSAH 3 .                                                    (162)
Taking this result together with Lemma 27 gives, with probability exceeding 1 − 8SAHKδ ′ ,
                            X                        
                       T5 =     V Pbsk ,ak ,h , Vh+1
                                                 k
                                                       ≤ 40Kvar2 + 80HT2 + 398BSAH 3.                                                    (163)
                                             h   h
                                k,h

To finish establishing the above bounds on T5 and T6 , it suffices to prove Lemma 31 and Lemma 32, which
we accomplish in the sequel.

                                                                        50
Proof of Lemma 31. For notational convenience, define
                                                                                                                " H                                       #
                                                                                                                 X
                                           πk
                  qhk (s, a) = V(Ps,a,h , Vh+1
                  R                            )                              and              Vqhk (s) = E                 qhk ′ (sh′ , ah′ )
                                                                                                                            R                        sh = s .
                                                                                                                    h′ =h

It is easily seen that Vqhk (s) ≤ var2 ≤ H 2 .
    We also make the observation that
                                      H
                                      X                                                         H
                                                                                                X
                                                                        k
                                                                  π
                                                  V(Psk ,ak ,h , Vh+1 ) − var2 =                      qk (sk , ak ) − var2
                                                                                                      R
                                                          h     h
                                                                                                       h h h
                                      h=1                                                       h=1
                                                                                                H
                                                                                                X
                                                                                           ≤          qk (sk , ak ) − Vq k (sk )
                                                                                                      Rh h h            1    1
                                                                                                h=1
                                                                                                H
                                                                                                X
                                                                                           =              esk       − Psk ,ak ,h , Vqh+1
                                                                                                                                     k
                                                                                                                                         .                          (164)
                                                                                                            h+1             h   h
                                                                                                h=1

Note that Vq k only depends on π k , which is determined before the k-th episode starts. Lemma 15 then tells
us that, with probability at least 1 − 2SAHKδ ′ ,
                              K     H
                                                                     !
                            X      X                      
                                                       πk
                                      V Psk ,ak ,h , V      − Vq (s )
                                                                k  k
                                                                                         h+1          1     1
                                                                        h    h
                                                  k=1     h=1
                                                     v
                                                     u K H
                                                     u XX                            1            1
                                                  ≤ 2t2    V Psk ,ak ,h , Vqh+1
                                                                            k     log ′ + 3H 2 log ′ .                                                              (165)
                                                               h h                   δ            δ
                                                                k=1 h=1

Further, it is observed that with probability at least 1 − 2SAHKδ ′ ,
             H
           K X
           X                                              
                     V Psk ,ak ,h , Vqh+1
                                      k
                              h       h
           k=1 h=1
                 H 
               K X
               X                                                                                    2 
           =                  Psk ,ak ,h , (Vqh+1
                                              k
                                                  )2 −                      Psk ,ak ,h , Vqh+1
                                                                                           k
                                      h       h                                  h   h
               k=1 h=1
                 H
               K X
               X
           =                 Psk ,ak ,h − esk , (Vqh+1
                                                   k
                                                       )2
                                  h       h               h+1
               k=1 h=1
                       H                                                                                                                                      
                     H X
                     X                                  2            2  X  H
                                                                            K X
                                                                                                                               2                   2
                 +                        Vqh+1
                                            k
                                                (skh+1 ) − Vqhk (skh )    +                                         Vqhk (skh ) − Psk ,ak ,h , Vqh+1
                                                                                                                                                 k
                                                                                                                                                 h    h
                     k=1 h=1                                                                     k=1 h=1
              v
              u       H
                    K X                                       H
                                                            K X
              u     X                             1        X
           ≤ 2t8H 4     V Psk ,ak ,h , Vqh+1
                                         k     log ′ + 2H 2     qh (sk , ak ) + 3H 4 log 1 .
                                                                R                                                                                                   (166)
                                                                     h h
                            h h                   δ                                      δ′
                         k=1 h=1                                                                   k=1 h=1

                                                                                          qh (sk , ak ) +
Here, the last inequality results from Lemma 15, Lemma 16 and the fact that Vqhk (skh ) = R    h h
hPsk ,ak ,h , Vqh+1
                k
                    i. It then follows that
   h   h

                                H
                              K X
                              X                                                H
                                                                             K X
                                                                             X
                                                                     
                                                                 q k
                                                  V Psk ,ak ,h , Vh+1 ≤ 4H 2     qh (sk , ak ) + 42H 4 log 1 .
                                                                                 R                                                                                  (167)
                                                                                      h h
                                                      h h                                                  δ′
                              k=1 h=1                                                          k=1 h=1

Taking (165) and (167) together leads to
                                                                                 v
       K X
         H                                                    H                  u       H
                                                                                       K X
       X                                                     X                  u     X                            1             1
                                                                    Vq1 (s1 ) + 2t8H 2
                                                  k
                                 π                                     k  k
                 V Psk ,ak ,h , Vh+1 ≤                                                                     πk
                                                                                           V Psk ,ak ,h , Vh+1   log ′ + 21H 2 log ′ ,
                         h    h                                                                h h                  δ             δ
       k=1 h=1                                                k=1                                k=1 h=1


                                                                                           51
which further implies that
                        H
                      K X
                      X                                          K
                                                                 X
                                                        πk
                                                                                          1                      1
                                        V Psk ,ak ,h , Vh+1   ≤2   Vq1k (sk1 ) + 84H 2 log ′ ≤ 2Kvar2 + 84H 2 log ′ .
                                            h h                                           δ                      δ
                      k=1 h=1                                                              k=1

This concludes the proof.

Proof of Lemma 29. A little algebra gives
  X                              
                      k      πk
      V Psk ,ak ,h , Vh+1 − Vh+1
              h       h
  k,h
      X                                                        k                                                                 k     2 
                             k      π
  =           Psk ,ak ,h , (Vh+1 − Vh+1 )2 −                                                         k
                                                                                       Psk ,ak ,h , Vh+1    π
                                                                                                         − Vh+1
                      h       h                                                            h   h
        k,h
      X                                                                       k
                                                                                           
                                   k      π
  =           Psk ,ak ,h − esk , (Vh+1 − Vh+1 )2
                      h       h           h+1
        k,h
                      X                                        2                                                                                   2 
                                    k               πk                                                                                         k
              +                    Vh+1 (skh+1 ) − Vh+1 (skh+1 ) −                                                         k
                                                                                                             Psk ,ak ,h , Vh+1    π
                                                                                                                               − Vh+1
                                                                                                                  h       h
                      k,h
      X                                                                       k
                                                                                                  X                             k      2                                      k     2 
                                   k      π
  =           Psk ,ak ,h − esk , (Vh+1 − Vh+1 )2                                               +                  Vhk (skh ) − Vhπ (skh ) −                               k
                                                                                                                                                            Psk ,ak ,h , Vh+1    π
                                                                                                                                                                              − Vh+1          .
                      h       h           h+1                                                                                                                 h   h
        k,h                                                                                            k,h
                                                                                                                                                                                        (168)

From Lemma 15 and Lemma 16, we can show that with probability 1 − 2SAKHδ ′ ,
                 X
                                          k      πk 2
                     Psk ,ak ,h − esk , (Vh+1 − Vh+1 )                                                                                                                                  (169)
                                                    h       h              h+1
                                        k,h
                                                                s
                                                 √                    X                                 1            1
                                               ≤2 2              4H 2                   k
                                                                        V Psk ,ak ,h , Vh+1    πk
                                                                                            − Vh+1   log ′ + 3H 2 log ′ .                                                               (170)
                                                                            h h                         δ            δ
                                                                               k,h


Additionally, with probability at least 1 − 2SAKHδ ′ ,
                  Xn                    k      2                             o
                                                                       πk
                                                                k
                        Vhk (skh ) − Vhπ (skh ) − Psk ,ak ,h , Vh+1 − Vh+1 )2
                                                                                                             h    h
                                  k,h
                                              X        n                                    k                     o
                                                                                                             πk
                                  ≤ 2H                                             k
                                                    max Vhk (skh ) − Psk ,ak ,h , Vh+1 − Vhπ (skh ) − Phk , Vh+1  ,0
                                                                                                   h    h
                                              k,h
                                              X        n                                                    o
                                  = 2H                                             k
                                                    max Vhk (skh ) − Psk ,ak ,h , Vh+1 − rh (skh , akh ), 0
                                                                                                   h    h
                                              k,h
                                              X                     n                                      o     X
                                  ≤ 2H              max                 Pbsk ,ak ,h − Psk ,ak ,h , Vh+1
                                                                                                    k
                                                                                                        , 0 + 2H   bkh (skh , akh )
                                                                           h       h               h     h
                                              k,h                                                                                              k,h
                                     s       X                            X
                                                                   
                                  ≤ 2 BSAH 3                   k
                                               V Psk ,ak ,h , Vh+1   + 2H   bkh (skh , akh ) + BSAH 3 .                                                                                 (171)
                                                                                       h   h
                                                                    k,h                                                           k,h


It then follows that
   X                                                                      s       X                          X
                                                        k
                          k      π
          V(Psk ,ak ,h , Vh+1 − Vh+1 )≤4                                   BSAH 3                   k ) + 4H
                                                                                    V(Psk ,ak ,h , Vh+1        bkh (skh , akh ) + 3BSAH 3                                               (172)
                  h       h                                                                                           h       h
    k,h                                                                                            k,h                                               k,h


with probability at least 1 − 4SAKHδ ′ . The proof is thus complete.




                                                                                                                 52
F.2.4   Putting all pieces together

Recall that B = 4000(log2 K)3 log(3SA) log δ1′ . The last step is to rewrite the inequalities (40g) − (40f) as
follows with (40a), (40c), (40d) and (40e) replaced by (157),(159) (163) and (162) respectively:
                                        p
                                   T1 ≤ 128BSAHT6 + 24BSAH 2 ,
                                           p
                                   T7 ≤ H 512BSAHT6 + 24BSAH 3 ,
                                        p
                                   T9 ≤ 128BSAHT6 + 24BSAH 2 ,
                                            p
                                   T2 ≤ 100 BSAHT5 + 140BSAH 2 ,
                                        p                 1
                                   T3 ≤ 8BT6 + 3H log ′ ,
                                        p                 δ
                                   T4 ≤ BSAHKvar2 + BSAH 2 ;
                                    T5 ≤ 40Kvar2 + 80HT2 + 398BSAH 3 ,
                                    T6 ≤ 8Kvar2 + 16HT2 + 78BSAH 3 ,
                                         p
                                    T8 ≤ 32BH 2 T6 + 3BH 2 ,

which are valid with probability at least 1 − 200SAH 2 K 2 δ ′ . Solving the inequalities listed above, we can
readily conclude that
                                                       p                               
                    Regret(K) = T1 + T2 + T3 + T4 ≤ O         BSAHKvar2 + BSAH 2 .                       (173)

                                                     δ
This finishes the proof by recalling that δ ′ = 200SAH 2K2 .




G       Minimax lower bounds
In this section, we establish the lower bounds advertised in this paper.


G.1     Proof of Theorem 12
Consider any given (S, A, H). We start by establishing the following lemma.
Lemma 33. Consider any K ′ ≥ 1. For any algorithm, there exists an MDP instance with S states, A
actions, and horizon H, such that the regret in K ′ episodes is at least
                                                           √                   
                         Regret(K ′ ) = Ω f (K ′ ) = Ω min       SAH 3 K ′ , K ′ H .

Proof of Lemma 33. Our construction of the hard instance is based on the hard instance JAO-MDP con-
                                                                                                √ already
structed in Jaksch et al. (2010); Jin et al. (2018). In Jin et al. (2018, Appendix.D), the authors
showed that when K ′ ≥ C0 SAH for some constant C0 > 0, the minimax regret lower bound is Ω( SAH 3 K ′ ).
Hence, it suffices for us to focus on the regime where K ′ ≤ C0 SAH. Without loss of generality, we assume
S = A = 2, and the argument to generalize it to arbitrary (S, A) is standard and henc omitted for brevity.
    Recall the construction of JAO-MDP in Jaksch et al. (2010). Let the two states be x and y, and the two
actions be a and b. The reward is always equal to x in state 1 and 1/2 in state y. The probability transition
kernel is given by

                    Px,a = Px,b = [1 − δ, δ],   Py,a = [1 − δ, δ],   Py,b = [1 − δ − ǫ, δ + ǫ],

where we choose δ = C1 /H and ǫ = 1/H. Then the mixing time of the MDP is roughly O(H). By choosing
C1 large enough, we can ensure that the MDP is C3 -mixing after the first half of the horizons for some
proper constant C3 ∈ (0, 1/2).


                                                       53
    It is then easy to show that action b is the optimal action for state y. Moreover, whenever action a is
chosen in state y, the learner needs to pay regret Ω(ǫH) = Ω(1). In addition, to differentiate action a from
                                                   1
action b in state y with probability at least 1 − 10 , the learner needs at least Ω( δǫ2 ) = Ω(H) rounds — let us
call it C4 H rounds for some proper constant C4 > 0. As a result, in the case where K ′ ≤ C4 H, the minimax
regret is at least Ω(K ′ H 2 ǫ) = Ω(K ′ H). When C4 H ≤ K ′ ≤ C0 SAH = 4C0 H, the minimax regret is at least
Ω(C4 H 2 ) = Ω(K ′ H). This concludes the proof.
                                                                                                       1
    With Lemma 33, we are ready to prove Theorem 12. Let M be the hard instance for K ′ = max 10          Kp, 1
constructed in the proof of Lemma 33. We construct an MDP M′ as below.

   • In the first step, for any state s, with probability p, the leaner transitions to a copy of M, and with
     probability 1 − p, the learner transitions to a dumb state with 0 reward.

It can be easily verified that v ⋆ ≤ pH. Let X = X1 + X2 + · · · + Xk , where {Xi }K
                                                                                   i=1 are i.i.d. Bernoulli
random variables with mean p. Let g(X, K ′ ) denote the minimax regret on the hard instance M in X
episodes. Given that g(X, K ′ ) is non-decreasing in X, one sees that
                                                                 
                                          Regret(K) ≥ E g(X, K ′ ) .
                                                                                           1
   • In the case where Kp ≥ 10, Lemma 17 tells us that with probability at least 1/2, X ≥ 10  Kp = K ′ ,
     and then it holds that
                    1               1          1     n√                  o     p
        E g(X, K ′ ) ≥ g(K ′ , K ′ ) = f (K ′ ) = Ω min   SAH 3 K ′ , K ′ H    = Ω( SAH 3 Kp, KHp).
                       2              2          2

   • In the case where Kp < 10, with probability exceeding 1 − (1 − p)K ≥ (1 − e−Kp ) ≥ Kp
                                                                                        30 , one has X ≥ 1.
     Then one has
                                       Kp                   Kp
                           E g(X, K ′ ) ≥      · g(1, K ′ ) =    · g(1, 1) = Ω(KHp).
                                          30                  30
The preceding bounds taken together complete the proof.


G.2      Proof of Theorem 13
Without loss of generality, assume that S = A = 2 (as in the proof of Theorem 12), and recall the assumption
that p ≤ 1/4. In what follows, we construct a hard instance for which the learner needs to identify the correct
action for each step.
    Let S = {s1 , s2 }, and take the initial state to be s1 . The transition kernel and cost are chosen as follows.

   • Select a⋆h ∈ {a1 , a2 } for every h ∈ [H].
   • For each action a and each step h, set Ps2 ,a,h = es2 and ch (s2 , a) = 0.
   • For each step h and each action a 6= a⋆h , set Ps1 ,a,h = es2 and ch (s1 , a) = 1.
   • Set Ps1 ,a⋆h ,h = es1 and ch (s1 , a⋆h ) = p.

It can be easily checked that c⋆ = Hp (the cost obtained by choosing action a⋆h for each step h).
    Note that in the above construction, the a⋆h ’s are selected independently across different steps. Thus, to
identify the optimal action a⋆h for at least half of the H steps, we need at least Ω(H) episodes. This implies
that: there exists a constant C5 > 0 such that in the first K ≤ C5 H episodes, the cost of the learner is at
least Ω(H(1 − p)). As a result, the minimax regret is at least
                                                                       
                                        Ω K(H − c⋆ ) = Ω KH(1 − p)

when K ≤ C5 H. Similarly, in the case where C5 H ≤ K ≤ 100H
                                                         p , the minimax regret is at least
                                                                       
                                            Ω H(H − c⋆ ) = Ω H 2 (1 − p) .

                                                         54
    We then turn to the case where K ≥ 100H    p . Let M be the hard instance having the same transition as
the instance constructed in the proof of Lemma 33, and set the cost as 1/2 (resp. 1) for state x (resp. state
y), with respect to K ′ = Kp/10 ≥ 10H (a quantity defined therein). Let M′ be the MDP such that: in the
first step, with probability p, the learner transitions to a copy of M, and with probability 1 − p, the learner
transitions to a dumb state with 0 cost. Then we clearly have c⋆ = Θ(Hp). It follows from Lemma 17 that,
with probability exceeding 1/2, one has X ≥ 31 Kp − log 2 ≥ 16 Kp, where X is again defined in the proof of
Lemma 33. Then one has
                                          1        √                    p      
                           Regret(K) ≥ Ω min           H 3 K ′, K ′ H   = Ω H 3 Kp .
                                          2
The proof is thus completed by combining the above minimax regret lower bounds for the three regimes
K ∈ [1, C5 H], K ∈ (C5 H, 100H                100H
                              p ] and K ∈ ( p , ∞].


G.3     Proof of Theorem 14
                                                                                               p
When K ≥ SAH/p, the lower bound in Theorem 12 readily applies because the regret is at least Ω( SAH 3 Kp)
and thepvariance var is at most pH 2 . When SAH ≤ K ≤ SAH/p, the regret is at least Ω(SAH 2 ) =
Ω(min{ SAH 3 Kp + SAH 2 , KH}). As a result, it suffices to focus on the case where 1 ≤ K ≤ SAH,
Towards this end, we only need the following lemma, which suffices for us to complete the proof.
Lemma 34. Consider any 1 ≤ K ≤ SAH. There exists an MDP instance with S states, A actions, horizon
H, and var1 = var2 = 0, such that the regret is at least Ω(KH).

Proof. Let us construct an MDP with deterministic transition; more precisely, for each (s, a, h), there is
some s′ such that Ps,a,h,s′ = 1 and Ps,a,h,s′′ = 0 for any s′′ 6= s′ . The reward function is also chosen to be
deterministic. In this case, it is easy to verify that var1 = var2 = 0.
    We first assume S = 2. For any action a and horizon h, we set Ps2 ,a,h = es2 and rh (s2 , a) = 0. For
any action a 6= a⋆ and h, we also set Ps1 ,a,h = es2 and rh (s2 , a) = 0. At last, we set Ps1 ,a⋆ ,h = es1 and
rh (s1 , a⋆ ) = 1. In other words, there are a dumb state and a normal state in each step. The learner would
naturally hope to find the correct action to avoid the dumb state. Obviously, V1⋆ (s1 ) = H. To find an
H                                                        ⋆             H
 2 -optimal policy, the learner needs to identify a for the first 2 steps, requiring at least Ω(HA) rounds in
expectation. As a result, the minimax regret is at least Ω(KH) when K ≤ cHA for some proper constant
c > 0.
    Let us refer to the hard instance above as a hard chain. For general S, we can construct d := S2 hard
chains. Let the two states in the i-th hard chain be (s1 (i), s2 (i)). We set the initial distribution to be the
uniform distribution over {s1 (i)}di=1 . Then V1⋆ (s1 (i)) = H holds for any 1 ≤ i ≤ d. Let Regreti (K) be the
expected regret resulting from the i-th hard chain. When K ≥ 100S, Lemma 17 tells us that with probability
                                              K
at least 12 , s1 (i) is visited for at least 10S ≥ 10 times. As a result, we have
                                                                        
                                                              1      KH
                                               Regreti (K) ≥ · Ω            .
                                                              2       S
                                                                Pd
Summing over i, we see that the total regret is at least i=1 Regreti (K) = Ω(KH). When K < 100S, with
probability at least 1 − (1 − S1 )K ≥ 0.0001 K    S , we know that s1 (i) is visited for at least one time. Therefore,
it holds that Regreti (K) ≥ Ω( KH    S   ). Summing   over i, we obtain
                                                    K
                                                    X
                                     Regret(K) =          Regreti (K) = Ω(KH)
                                                    i=1

as claimed.


References
Agarwal, A., Kakade, S., and Yang, L. F. (2020). Model-based reinforcement learning with a generative
 model is minimax optimal. In Conference on Learning Theory, pages 67–83.

                                                           55
Agarwal, A., Krishnamurthy, A., Langford, J., Luo, H., et al. (2017). Open problem: First-order regret
 bounds for contextual bandits. In Conference on Learning Theory, pages 4–7.
Agrawal, S. and Jia, R. (2017). Optimistic posterior sampling for reinforcement learning: worst-case regret
 bounds. In Guyon, I., Luxburg, U. V., Bengio, S., Wallach, H., Fergus, R., Vishwanathan, S., and Garnett,
 R., editors, Advances in Neural Information Processing Systems 30, pages 1184–1194. Curran Associates,
  Inc.
Allen-Zhu, Z., Bubeck, S., and Li, Y. (2018). Make the minority great again: First-order regret bound for
  contextual bandits. In International Conference on Machine Learning, pages 186–194.
Azar, M. G., Munos, R., and Kappen, H. J. (2013). Minimax PAC bounds on the sample complexity of
  reinforcement learning with a generative model. Machine learning, 91(3):325–349.
Azar, M. G., Osband, I., and Munos, R. (2017). Minimax regret bounds for reinforcement learning. In
 Proceedings of the 34th International Conference on Machine Learning, pages 263–272.
Bai, Y., Xie, T., Jiang, N., and Wang, Y.-X. (2019). Provably efficient Q-learning with low switching cost.
  In Advances in Neural Information Processing Systems, pages 8004–8013.
Bartlett, P. L. and Tewari, A. (2009). Regal: a regularization based algorithm for reinforcement learn-
  ing in weakly communicating mdps. In Proceedings of the 25th Conference on Uncertainty in Artificial
 Intelligence (UAI 2009)).
Beck, C. L. and Srikant, R. (2012). Error bounds for constant step-size Q-learning. Systems & control letters,
  61(12):1203–1208.
Bertsekas, D. (2019). Reinforcement learning and optimal control. Athena Scientific.
Brafman, R. I. and Tennenholtz, M. (2003). R-max - a general polynomial time algorithm for near-optimal
  reinforcement learning. J. Mach. Learn. Res., 3(Oct):213–231.
Cai, Q., Yang, Z., Jin, C., and Wang, Z. (2019). Provably efficient exploration in policy optimization. arXiv
  preprint arXiv:1912.05830.
Chen, L., Jafarnia-Jahromi, M., Jain, R., and Luo, H. (2021). Implicit finite-horizon approximation and
  efficient optimal algorithms for stochastic shortest path. Advances in Neural Information Processing
 Systems, 34.
Chen, Z., Maguluri, S. T., Shakkottai, S., and Shanmugam, K. (2020). Finite-sample analysis of contractive
 stochastic approximation using smooth convex envelopes. Advances in Neural Information Processing
 Systems, 33:8223–8234.
Cui, Q. and Yang, L. F. (2021). Minimax sample complexity for turn-based stochastic game. In Uncertainty
 in Artificial Intelligence, pages 1496–1504.
Dann, C. and Brunskill, E. (2015). Sample complexity of episodic fixed-horizon reinforcement learning. In
 Advances in Neural Information Processing Systems, pages 2818–2826.
Dann, C., Lattimore, T., and Brunskill, E. (2017). Unifying PAC and regret: Uniform PAC bounds for
 episodic reinforcement learning. Advances in Neural Information Processing Systems, 30.
Dann, C., Li, L., Wei, W., and Brunskill, E. (2019). Policy certificates: Towards accountable reinforcement
 learning. In Proceedings of the 36th International Conference on Machine Learning, pages 1507–1516.
Dann, C., Marinov, T. V., Mohri, M., and Zimmert, J. (2021). Beyond value-function gaps: Improved
 instance-dependent regret bounds for episodic reinforcement learning. Advances in Neural Information
 Processing Systems, 34:1–12.
Domingues, O. D., Ménard, P., Kaufmann, E., and Valko, M. (2021). Episodic reinforcement learning in
 finite mdps: Minimax lower bounds revisited. In Algorithmic Learning Theory, pages 578–598.

                                                     56
Dong, K., Wang, Y., Chen, X., and Wang, L. (2019). Q-learning with UCB exploration is sample efficient
 for infinite-horizon MDP. arXiv preprint arXiv:1901.09311.
Efroni, Y., Merlis, N., Ghavamzadeh, M., and Mannor, S. (2019). Tight regret bounds for model-based
  reinforcement learning with greedy policies. Advances in Neural Information Processing Systems, 32.
Even-Dar, E. and Mansour, Y. (2003). Learning rates for Q-learning. Journal of Machine Learning Research,
  5(Dec):1–25.
Freedman, D. A. (1975). On tail probabilities for martingales. the Annals of Probability, 3(1):100–118.
Fruit, R., Pirotta, M., Lazaric, A., and Ortner, R. (2018). Efficient bias-span-constrained exploration-
  exploitation in reinforcement learning. In ICML 2018-The 35th International Conference on Machine
  Learning, volume 80, pages 1578–1586.
Jaksch, T., Ortner, R., and Auer, P. (2010). Near-optimal regret bounds for reinforcement learning. Journal
  of Machine Learning Research, 11(Apr):1563–1600.
Ji, X. and Li, G. (2023). Regret-optimal model-free reinforcement learning for discounted MDPs with short
   burn-in time. Advances in neural information processing systems.
Jiang, N. and Agarwal, A. (2018). Open problem: The dependence of sample complexity lower bounds on
  planning horizon. In Conference On Learning Theory, pages 3395–3398.
Jin, C., Allen-Zhu, Z., Bubeck, S., and Jordan, M. I. (2018). Is Q-learning provably efficient? In Advances
  in Neural Information Processing Systems, pages 4863–4873.
Jin, C., Krishnamurthy, A., Simchowitz, M., and Yu, T. (2020). Reward-free exploration for reinforcement
  learning. International Conference on Machine Learning.
Jin, Y., Yang, Z., and Wang, Z. (2021). Is pessimism provably efficient for offline RL? In International
  Conference on Machine Learning, pages 5084–5096.
Kakade, S. M. (2003). On the sample complexity of reinforcement learning. PhD thesis, University of London
 London, England.
Kearns, M. and Singh, S. (1998a). Finite-sample convergence rates for Q-learning and indirect algorithms.
 Advances in neural information processing systems, 11.
Kearns, M. J. and Singh, S. P. (1998b). Near-optimal reinforcement learning in polynominal time. In
 Proceedings of the Fifteenth International Conference on Machine Learning, pages 260–268.
Kolter, J. Z. and Ng, A. Y. (2009). Near-bayesian exploration in polynomial time. In Proceedings of the 26th
 annual international conference on machine learning, pages 513–520.
Lattimore, T. and Hutter, M. (2012). PAC bounds for discounted MDPs. In International Conference on
  Algorithmic Learning Theory, pages 320–334. Springer.
Lee, C.-W., Luo, H., Wei, C.-Y., and Zhang, M. (2020). Bias no more: high-probability data-dependent
  regret bounds for adversarial bandits and mdps. Advances in neural information processing systems,
  33:15522–15533.
Levine, S., Kumar, A., Tucker, G., and Fu, J. (2020). Offline reinforcement learning: Tutorial, review, and
  perspectives on open problems. arXiv preprint arXiv:2005.01643.
Li, G., Cai, C., Chen, Y., Wei, Y., and Chi, Y. (2024a). Is Q-learning minimax optimal? a tight sample
  complexity analysis. Operations Research, 72(1):222–236.
Li, G., Chi, Y., Wei, Y., and Chen, Y. (2022). Minimax-optimal multi-agent RL in Markov games with a
  generative model. Advances in Neural Information Processing Systems, 35:15353–15367.


                                                    57
Li, G., Shi, L., Chen, Y., Chi, Y., and Wei, Y. (2024b). Settling the sample complexity of model-based
  offline reinforcement learning. The Annals of Statistics, 52(1):233–260.
Li, G., Shi, L., Chen, Y., Gu, Y., and Chi, Y. (2021a). Breaking the sample complexity barrier to regret-
  optimal model-free reinforcement learning. Advances in Neural Information Processing Systems, 34.
Li, G., Wei, Y., Chi, Y., and Chen, Y. (2024c). Breaking the sample size barrier in model-based reinforcement
  learning with a generative model. Operations Research, 72(1):203–221.
Li, G., Wei, Y., Chi, Y., Gu, Y., and Chen, Y. (2021b). Sample complexity of asynchronous Q-learning:
  Sharper analysis and variance reduction. IEEE Transactions on Information Theory, 68(1):448–473.
Li, G., Yan, Y., Chen, Y., and Fan, J. (2024d). Minimax-optimal reward-agnostic exploration in reinforce-
  ment learning. Conference on Learning Theory (COLT).
Li, G., Zhan, W., Lee, J. D., Chi, Y., and Chen, Y. (2024e). Reward-agnostic fine-tuning: Provable statistical
  benefits of hybrid reinforcement learning. Advances in Neural Information Processing Systems, 36.
Li, Y., Wang, R., and Yang, L. F. (2021c). Settling the horizon-dependence of sample complexity in rein-
  forcement learning. In IEEE Symposium on Foundations of Computer Science.
Maurer, A. and Pontil, M. (2009). Empirical Bernstein bounds and sample variance penalization. In
 Conference on Learning Theory.
Ménard, P., Domingues, O. D., Shang, X., and Valko, M. (2021). UCB momentum Q-learning: Correcting
 the bias without forgetting. In International Conference on Machine Learning, pages 7609–7618.
Neu, G. and Pike-Burke, C. (2020). A unifying view of optimism in episodic reinforcement learning. arXiv
  preprint arXiv:2007.01891.
Osband, I., Russo, D., and Van Roy, B. (2013). (more) efficient reinforcement learning via posterior sampling.
  In Advances in Neural Information Processing Systems, pages 3003–3011.
Pacchiano, A., Ball, P., Parker-Holder, J., Choromanski, K., and Roberts, S. (2020). On optimism in
  model-based reinforcement learning. arXiv preprint arXiv:2006.11911.
Pananjady, A. and Wainwright, M. J. (2020). Instance-dependent ℓ∞ -bounds for policy evaluation in tabular
  reinforcement learning. IEEE Transactions on Information Theory, 67(1):566–585.
Qu, G. and Wierman, A. (2020). Finite-time analysis of asynchronous stochastic approximation and Q-
 learning. In Proceedings of Thirty Third Conference on Learning Theory (COLT).
Rashidinejad, P., Zhu, B., Ma, C., Jiao, J., and Russell, S. (2021). Bridging offline reinforcement learning and
  imitation learning: A tale of pessimism. Advances in Neural Information Processing Systems, 34:11702–
 11716.
Ren, T., Li, J., Dai, B., Du, S. S., and Sanghavi, S. (2021). Nearly horizon-free offline reinforcement learning.
 Advances in neural information processing systems, 34:15621–15634.
Russo, D. (2019). Worst-case regret bounds for exploration via randomized value functions. In Advances in
 Neural Information Processing Systems, pages 14433–14443.
Shi, L., Li, G., Wei, Y., Chen, Y., and Chi, Y. (2022). Pessimistic Q-learning for offline reinforcement
  learning: Towards optimal sample complexity. In International Conference on Machine Learning, pages
  19967–20025.
Shi, L., Li, G., Wei, Y., Chen, Y., Geist, M., and Chi, Y. (2023). The curious price of distributional
  robustness in reinforcement learning with a generative model. Advances in Neural Information Processing
  Systems.



                                                       58
Sidford, A., Wang, M., Wu, X., Yang, L., and Ye, Y. (2018a). Near-optimal time and sample complexities for
  solving Markov decision processes with a generative model. In Advances in Neural Information Processing
  Systems, pages 5186–5196.
Sidford, A., Wang, M., Wu, X., and Ye, Y. (2018b). Variance reduced value iteration and faster algorithms
  for solving Markov decision processes. In Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium
  on Discrete Algorithms, pages 770–787. Society for Industrial and Applied Mathematics.
Simchowitz, M. and Jamieson, K. G. (2019). Non-asymptotic gap-dependent regret bounds for tabular
  MDPs. In Advances in Neural Information Processing Systems, pages 1153–1162.
Strehl, A. L., Li, L., Wiewiora, E., Langford, J., and Littman, M. L. (2006). PAC model-free reinforcement
  learning. In Proceedings of the 23rd international conference on Machine learning, pages 881–888. ACM.
Strehl, A. L. and Littman, M. L. (2008). An analysis of model-based interval estimation for markov decision
  processes. Journal of Computer and System Sciences, 74(8):1309–1331.
Szita, I. and Szepesvári, C. (2010). Model-based reinforcement learning with nearly tight exploration com-
  plexity bounds. In ICML.
Talebi, M. S. and Maillard, O.-A. (2018). Variance-aware regret bounds for undiscounted reinforcement
  learning in mdps. arXiv preprint arXiv:1803.01626.
Tarbouriech, J., Zhou, R., Du, S. S., Pirotta, M., Valko, M., and Lazaric, A. (2021). Stochastic shortest path:
  Minimax, parameter-free and towards horizon-free regret. Advances in Neural Information Processing
  Systems, 34.
Tirinzoni, A., Pirotta, M., and Lazaric, A. (2021). A fully problem-dependent regret lower bound for finite-
  horizon MDPs. arXiv preprint arXiv:2106.13013.
Wagenmaker, A. J., Chen, Y., Simchowitz, M., Du, S., and Jamieson, K. (2022). First-order regret in
 reinforcement learning with linear function approximation: A robust estimation approach. In International
 Conference on Machine Learning, pages 22384–22429.
Wainwright, M. J. (2019a). Stochastic approximation with cone-contractive operators: Sharp ℓ∞ -bounds for
 Q-learning. arXiv preprint arXiv:1905.06265.
Wainwright, M. J. (2019b).         Variance-reduced Q-learning is minimax optimal.            arXiv preprint
 arXiv:1906.04697.
Wang, K., Zhou, K., Wu, R., Kallus, N., and Sun, W. (2023). The benefits of being distributional: Small-loss
 bounds for reinforcement learning. arXiv preprint arXiv:2305.15703.
Wang, R., Du, S. S., Yang, L. F., and Kakade, S. M. (2020). Is long horizon reinforcement learning more
 difficult than short horizon reinforcement learning? In Advances in Neural Information Processing Systems.
Wang, X., Cui, Q., and Du, S. S. (2022). On gap-dependent bounds for offline reinforcement learning.
 Advances in Neural Information Processing Systems, 35:14865–14877.
Xie, T., Jiang, N., Wang, H., Xiong, C., and Bai, Y. (2021). Policy finetuning: Bridging sample-efficient
  offline and online reinforcement learning. Advances in neural information processing systems, 34:27395–
  27407.
Xiong, Z., Shen, R., Cui, Q., Fazel, M., and Du, S. S. (2022). Near-optimal randomized exploration for
  tabular markov decision processes. Advances in Neural Information Processing Systems, 35:6358–6371.
Xu, H., Ma, T., and Du, S. (2021). Fine-grained gap-dependent bounds for tabular MDPs via adaptive
 multi-step bootstrap. In Conference on Learning Theory, pages 4438–4472.
Yan, Y., Li, G., Chen, Y., and Fan, J. (2023). The efficacy of pessimism in asynchronous Q-learning. IEEE
 Transactions on Information Theory, 69(11):7185–7219.

                                                      59
Yang, K., Yang, L., and Du, S. (2021). Q-learning with logarithmic regret. In International Conference on
  Artificial Intelligence and Statistics, pages 1576–1584.
Yin, M., Duan, Y., Wang, M., and Wang, Y.-X. (2022). Near-optimal offline reinforcement learning with
  linear representation: Leveraging variance information with pessimism. arXiv preprint arXiv:2203.05804.
Zanette, A. and Brunskill, E. (2019). Tighter problem-dependent regret bounds in reinforcement learning
  without domain knowledge using value function bounds. In International Conference on Machine Learning,
  pages 7304–7312.
Zhang, Z., Ji, X., and Du, S. (2021a). Is reinforcement learning more difficult than bandits? a near-optimal
  algorithm escaping the curse of horizon. In Conference on Learning Theory, pages 4528–4531.
Zhang, Z., Ji, X., and Du, S. (2022). Horizon-free reinforcement learning in polynomial time: the power of
  stationary policies. In Conference on Learning Theory, pages 3858–3904.
Zhang, Z., Zhou, Y., and Ji, X. (2020). Almost optimal model-free reinforcement learning via reference-
  advantage decomposition. In Advances in Neural Information Processing Systems.
Zhang, Z., Zhou, Y., and Ji, X. (2021b). Model-free reinforcement learning: from clipped pseudo-regret to
  sample complexity. In International Conference on Machine Learning, pages 12653–12662.
Zhao, H., He, J., Zhou, D., Zhang, T., and Gu, Q. (2023). Variance-dependent regret bounds for linear bandits
  and reinforcement learning: Adaptivity and computational efficiency. arXiv preprint arXiv:2302.10371.
Zhou, R., Zihan, Z., and Du, S. S. (2023). Sharp variance-dependent bounds in reinforcement learning: Best
  of both worlds in stochastic and deterministic environments. In International Conference on Machine
  Learning, pages 42878–42914.




                                                     60
