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

                                    July 2023; Revised: February 2024



                                                       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 (i.e.,
                                                                 3
      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 — a
      long-standing challenge facing the analysis of online RL in the sample-hungry 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)                                                33

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

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 RL


                                                       2
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 discussion 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
model-based algorithm called UCBVI that enjoys a regret bound O SAH K + H S A . A close inspection
                                                                                    3 2
                                                                                         
                                                                   e        3

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 unprecedented
dimensionality and relatively limited data collection capability), reducing the burn-in cost without compromis-
ing 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)            e SAH 3 K + SAH 4 ,                           (5a)
                                                                                                         
                                                                               O
   1 Let X = {S, A, H, K, 1 }, where 1 − δ is the target success rate (to be seen shortly). The standard 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
f (X )  g(X )) means that f (X ) . g(X ) and f (X ) & g(X ) hold simultaneously. Moreover, O      e (·) and Θ
                                                                                            e (·), Ω         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, ∞)                   ε2
  (this work, Theorem 1)
              UCBVI                            √                                                                     SAH 3    2   3
                                        min         SAH 3 K + S 2 AH 3 , HK                    [S 3 AH 3 , ∞)               + S AH
       (Azar et al., 2017)                                                                                             ε2        ε

              ORLC                             √                                                                     SAH 3      2   4
                                        min         SAH 3 K + S 2 AH 4 , HK                    [S 3 AH 5 , ∞)                + S AH
      (Dann et al., 2019)                                                                                               ε2         ε

              EULER                    √                         √   √                          √   √            SAH 3
                                                                                                                            2   3
                                                                                                                                   √   √
                                 min        SAH 3 K + S 3/2 AH 3 ( S + H), HK            S AH 3 ( S + H), ∞             + S AH ( ε S+ H)
                                                                                         2                 
 (Zanette and Brunskill, 2019)                                                                                     ε2

             UCB-Adv                    √                                                                          SAH 3    8/3 2
                                                                                                                                   H 11
                                  min        SAH 3 K + S 2 A3/2 H 33/4 K 1/4 , HK             [S 6 A4 H 27 , ∞)           + S εA
      (Zhang et al., 2020)                                                                                           ε2         4/3


               MVP                             √                                                                     SAH 3    2   2
                                        min         SAH 3 K + S 2 AH 2 , HK                    [S 3 AH, ∞)                  + S AH
     (Zhang et al., 2021a)                                                                                             ε2        ε

              UCBMQ                            √                                                                     SAH 3       4
                                        min         SAH 3 K + SAH 4 , HK                       [SAH 5 , ∞)                  + SAH
     (Ménard et al., 2021)                                                                                             ε2       ε

     Q-Earlysettled-Adv                        √                                                                     SAH 3       6
                                        min         SAH 3 K + SAH 6 , HK                       [SAH 9 , ∞)                  + SAH
        (Li et al., 2021a)                                                                                             ε2       ε

          Lower bound                                 √                                                                  SAH 3
                                                min        SAH 3 K, HK                              n/a
   (Domingues et al., 2021)                                                                                                ε2



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)                              SAH 3 K + S 2 AH 2 ,                       (5b)
                                                                                                              
                                                                                    O
                                                                                    e

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 ,
                                                      


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. (2024b) 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 accommo-
date the online counterpart. The main hurdle stems from the complicated statistical dependency intrinsic to
                                                                     √              
                                                                   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
episodic online RL; for instance, in online RL, the empirical transition probabilities and the running estimates
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 (16).

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                              
                                                         5 SAHK
                        Regret(K) . min      SAH K log
                                                  3                , HK                                      (7)
                                                              δ
with probability at least 1 − δ.

    The optimality of our regret bound (7) 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)         Oe SAH          episodes                           (8)
                                                                  ε2
                          4
(or equivalently, O
                  e SAH
                       ε2    sample transitions as each episode has length H). Remarkably, this result holds
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., 2024b).
    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 the model-based approach,
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
guarantees 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


                                                       5
Jamieson, 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 algorithm automatically achieves optimality on a more refined problem-dependent level, without
requiring prior knowledge of additional problem-specific knowledge. This results in a couple of 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),                                    (9)
                                

where v ? is the value of the optimal policy averaged over the initial state distribution (to be formally defined
in (42)).
   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? )                     (10)
with probability exceeding 1 − δ, where c? denotes the cost of the optimal policy averaged over the initial state
distribution (to be formally defined in (44)).
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                            (11)

with probability at least 1 − δ, where var is a certain variance-type metric (to be formally defined in (48)).
   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
numerous works, allowing the learner to query any state-action pairs and draw independent samples (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, 2024b; 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., 2024b). 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 emergent 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., 2023a, 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., 2023a). 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, 2023b, 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 reduction 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 xy to abbreviate x> 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                             (12)
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 nonstatioanry) 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
                 step h + 1 of the environment is randomly drawn from Ps,a,h := Ph (· | s, a) ∈ ∆(S). Also, the
state at the next
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) := Er0 ∼Rs,a,h [r0 ] ∈ [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 , r10 , s2 , . . . , sH , aH , rH
                                                                           0
                                                                             ) 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 rh0 ∼ Rsh ,ah ,h , and the environment
transits to the state sh+1 at step h + 1 according to Psh ,ah ,h . 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 , r10 , . . . , sH , aH , rH        0
                                                                                         ), one always has 0 ≤ h=1 rh0 ≤ H.

As can be easily seen, Assumption 1 is less stringent than another common choice that assumes rh0 ∈ [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π    rj0 sh = s ,                    ∀(s, h) ∈ S × [H],              (13a)
                                  j=h
                                                              
                                    H
                                    X
              Qπh (s, a) := Eπ          rj0 (sh , ah ) = (s, a) ,                 ∀(s, a, h) ∈ S × A × [H],            (13b)
                                  j=h


where the expectation Eπ [·] is taken over the randomness of an episode (sh , ah , rh0 ) 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],                          (14a)
                                     π
                     Q?h (s, a) := max Qπh (s, a)                            ∀(s, a, h) ∈ S × A × [H].                   (14b)
                                     π

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
                                                               0
                                                                  Q?h (s, a0 ),           ∀(s, a, h) ∈ S × A × [H];    (15)
                                                                  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  executes policy π (chosen based on
                                                                                             k

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 ) ,                                (16)
                                                        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
                                                                                                          1/α
       V (s ) − V (s ) . f (S, A, H)K , thus resulting in a sample complexity bound of f (S,A,H)
                                           −α
                                                                                                               .
       ?           π
                         
Es1 ∼µ   1   1
                    b
                    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 Algorithm 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 ,              (17a)
                                                  

                                     Vh (s) ← maxa Qh (s, a)                                                          (17b)

      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 exeuted 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 (17) will be invoked a couple of times as well.



                                                              9
 Algorithm 1: Monotoinic 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,
                               0             δ                        0

    κ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.
                         all        0                     0

 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 iterate. */
 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, s0 ) ← (skh , akh , skh+1 ).
 8         Update Nhall (s, a) ← Nhall (s, a) + 1, Nh (s, a, s0 ) ← Nh (s, a, s0 ) + 1, θh (s, a) ← θh (s, a) + rhk ,
             κh (s, a) ← κh (s, a) + (rhk )2 .
           /* perform updates using data of this epoch.                                                               */
 9         if Nh (s, a) ∈ {1,
                  all
                               P2, . . . , 2
                                               log2 K
                                                      } then
10              Nh (s, a) ← e       s
                                      N  h (s, a, s
                                                  e). // number of visits to (s, a, h) in this epoch.
                               θh (s,a)
11              rbh (s, a) ← N   h (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 δ10                         rh (s, a))2 log δ10
                                                                                     bh (s, a) − (b
                                                                                                             
                                                                                     σ
                         bh (s, a) ← c1                                   + c2
                                                max{Nh (s, a), 1}                         max{Nh (s, a), 1}
                                                           H log δ10
                                                      + c3                 ,                                     (18)
                                                     max{Nh (s, a), 1}
                         Qh (s, a) ← min rbh (s, a) + hPbs,a,h , Vh+1 i + bh (s, a), H , Vh (s) ← max Qh (s, a). (19)
                                        
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. (19)), 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
       will then be employed to collect samples in all episodes of the next epoch. More technical explanations


                                                                  10
       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 (17a). Here, we adopt the monotonic Bernstein-
      style bonus function for MVP originally proposed in Zhang et al. (2021a), to be made precise in (18).
      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
            i−1
{2i−1 + l}2l=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) computed
                                                           j−2
       using the j-th batch of data, i.e., the {2i−2 + i}2i=1 -th samples (resp. the 1st sample) for (s, a, h). For
                                (0)
       completeness, we take Pbs,a,h = S1 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
illuminate 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
                                                                        k
                                                                            +   bkh skh , akh
                                                                                              
                          Regret(K) ≤         Pbsk ,ak ,h − Psk ,ak ,h Vh+1
                                                                 h   h            h   h
                                                         k,h                                               k,h
                                                           X                                                  
                                                                                                         πk
                                                     +           Psk ,ak ,h − esk                 k
                                                                                                 Vh+1 − Vh+1         ;       (20)
                                                                     h   h            h+1
                                                           k,h

see also the derivation in Section 5. Here, we abuse the notation by letting Vh+1  k
                                                                                      (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
(20) carefully, among which two of them are easy to handle.

   • It is known that the second term (i.e., the aggregate bonus) on the right-hand side of (20) can be
     controlled 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 (20) 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 (20). This turns out to be
the most challenging part, owing to the complicated statistical dependency between Pbsk,allk ,ak ,h and Vh+1 . To
                                                                                                         k
                                                                                           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
influences upon Vh+1
                  k
                     as Vh+1
                          k
                              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.

   • Strategy 1: replacing Vh+1 k
                                    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                    
                                               k
                    Pbsk ,ak ,h − Psk ,ak ,h Vh+1
                        h     h          h       h
                k,h
                                  X                                      X  k,all                  
                            =           Pbsk,all                     ?
                                                                         +                               k      ?
                                                                                                                             (21)
                                                                                                                    
                                            k ,ak ,h − P  k  k
                                                         s ,a ,h   V h+1      P
                                                                              b
                                                                                sk ,ak ,h
                                                                                          − P  k  k
                                                                                              s ,a ,h   Vh+1 − Vh+1   .
                                             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
           (21) can be bounded easily using Freedman’s inequality;
       (ii) the second term on the right-hand side of (21) would vanish as Vh+1
                                                                            k
                                                                                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:
      given that Vh+1
                  k       ?
                      − 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 and Vh+1
                                                                                                  k
                                                                                                      . 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         and Vh+1k
                                                                         are statistically independent conditioned on
        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
                                 k,all
        and independent of {Pbs,a,h     }, then one can invoke standard concentration inequalities to obtain a
        high-probability bound on k,h Pbsk,all  k ,ak ,h − Psk ,ak ,h Vh+1 in a desired manner. The next step would
                                       P                              k
                                                    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 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, we observe that this analysis strategy can only hope
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 (20), we are in need of bounding the following term when analyzing Algorithm 1:
                                        X                              
                                               Pbskk ,ak ,h − Psk ,ak ,h Vh+1
                                                                          k
                                                                              .                                (22)
                                                            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
                                          (
                                           max j ∈ N : 2j−1 ≤ Nhk,all (s, a) , if Nhk,all (s, a) > 0;
                                              
     ∀(s, a, h) ∈ S × A × [H] : Is,a,h :=
                                 k
                                                                                                      (23a)
                                           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

                                           I k := Is,a,h                                                       (23b)
                                                  k
                                                         (s,a,h)∈S×A×[H]

                                         and            I := {I k }K
                                                                   k=1 .                                       (23c)

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

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 develop 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 .   (25)
                                                                 


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, s0,(i) )
               ind.
obeying s0,(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 sometimes
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
                                       and Vh+1
                                            k
                                                . To begin with, from relation (24) we can write

               K X
                 H D                                    K X
                                                          H D (I                      k,true
                                                                            )
                                                                  sk ,ak ,h
               X                                     E X                                       E
                    Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                                 k
                                                      =                                    k
                                                             Pbsk ,ahk ,hh − Psk ,ak ,h , Vh+1
                              h     h         h   h                               h     h      h   h
               k=1 h=1                                           k=1 h=1
                   log2 K                                K
                    X X              (l)
                                                         X  n
                                                                                   k,true
                                                                                            o     
               =                    Pbs,a,h − Ps,a,h ,     1 (sh , ah ) = (s, a), Is,a,h = l Vh+1
                                                               k    k                         k

                    l=0 s,a,h                            k=1
                   log2 K                                K
                    X X              (l)
                                                         X  n
                                                                                     k,true
                                                                                               o     
               ≤                    Pbs,a,h − Ps,a,h ,     1 (skh , akh ) = (s, a), Is,a,h  = l Vh+1
                                                                                                 k
                                                                                                       + SAH 2
                    l=1 s,a,h                            k=1
                   log2 K 2 l−1
                    X X X D                  (l)               kl,j,s,a,h
                                                                             E
               =                            Pbs,a,h − Ps,a,h , Vh+1               + SAH 2 ,                      (26)
                    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
line makes use of the fact that 0 ≤ Vh+1 (s) ≤ H for all s ∈ S. The decomposition (26) motivates us to first
                                                k
                                    (l)              k
control the term                         − Ps,a,h , V l,j,s,a,h , leading to the following 3-step analysis strategy.
                   P
                       s,a,h     Pb
                                s,a,h             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 ,                             (27)
                                                  s,a,h

      where each vector Xh+1,s,a is any deterministic function of I and the samples collected for steps
                                                                 (l)
      h0 ≥ h + 1. Given the statistical independence between Pbs,a,h and those samples for steps h0 ≥ h + 1
      (in the view of Dexpand ), we can bound (27) 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 (27), 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 (26) 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 (27). For each total
profile I ∈ C (cf. (25)), 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 (I k ) (I k )                   (I k  0)
                                                                              o
                                         0            0
                                Pb s,a,h
                                      0
                                  s,a,h                        b 0s,a,h (s, a)
                                           , rb 0s,a,h (s, a), σ
                                             h                h                                         ;
                                                                              h<h0 ≤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 − δ 0 ,
                                                                   n                              o
                         (l)                                            (l)
             X                                             X
                       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 8 X                                              1
                    u                                                   
                                V Ps,a,h , Xh+1,s,a 6SAH log22 K + log 0
                                                   
                  ≤ t l−2
                      2                                               δ
                          s,a,h

                                4H                      1
                                                         
                            + l−2 6SAH log22 K + log 0                                                                    (28)
                                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].

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
upper bounds for two additional quantities:        k,h max                                  , 0 and k,h Pbskk ,ak ,h −
                                                 P          k                          k
                                                                                                   P
                                                            Pbsk ,ak ,h − Psk ,ak ,h , Vh+1
                                                               h h          h h                             h h
                  2
              k
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 − δ 0 , we have
                   H D
                 K X
                 X                                  E X  H
                                                       K X    nD                                E o
                      Psk ,ak ,h − Psk ,ak ,h , Vh+1 ≤
                       b k                       k
                                                           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
                                      H
                                    K X
                                                                                   1
                        u                                                           
                        u           X
                      ≤ t16(log2 K)                             6SAH log22 K + log 0
                                                        k
                                                            
                                        V Psk ,ak ,h , Vh+1
                                            h h                                   δ
                                               k=1 h=1
                                                                                    1
                                          + 49SAH 2 log32 K + 8H(log2 K) log
                                                                                    δ0
and
                        H D
                      K X
                      X                                     2 E
                                                        k
                           Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                     h    h             h    h
                      k=1 h=1
                                v
                                            H
                                          K X
                                                                                         1
                                u                                                         
                                u         X
                           ≤ 8H t(log2 K)                             6SAH log22 K + log 0
                                                              k
                                                                  
                                              V Psk ,ak ,h , Vh+1
                                                  h h                                   δ
                                                        k=1 h=1
                                                                                        1
                                          + 49SAH 3 log32 K + 8H 2 (log2 K) log            .
                                                                                        δ0
Proof. This result is proved by combining the uniform bound in Lemma 6 with the decomposition (26). 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            ,                     (29)
                                                                                        δ0
where we recall that δ is the confidence parameter in Algorithm 1 and δ 0 = 200SAH
                                                                                 δ
                                                                                   2 K 2 . When K ≤ BSAH,

the claimed result in Theorem 1 holds trivially since
                                         K                                       n√             o
                                         X                      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      .          (30)
                                                                                                   δ0

        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δ 0 , one has

                                                  Qkh (s, a) ≥ Q?h (s, a)             and           Vhk (s) ≥ Vh? (s)                                           (31)

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                                  K
                                                       X                        k       X                  k
                               Regret(K) =                      V1? (sk1 ) − V1π (sk1 ) ≤   V1k (sk1 ) − V1π (sk1 )                                             (32)
                                                                                                                    

                                                       k=1                                          k=1

with probability at least 1 − 4SAHKδ 0 . In order to control the right-hand side of (32), 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
                                                                + bkh (skh , akh ) + rbhk (skh , akh ) + Psk ,ak ,h − esk , Vh+1
                                                                                                                             k
                                                                                                                                                            .
                                  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
                                                 + bkh (skh , akh ) + rbhk (skh , akh ) + Psk ,ak ,h − esk , Vh+1
                                                                                                              k
                                                                                                                  + Vh+1
                                                                                                                     k
                                                                                                                         (skh+1 ).
                       h   h          h       h                                                               h     h             h+1


Applying this relation recursively over 1 ≤ h ≤ H gives

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

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

    Combine Lemma 9 with (32) to show that, with probability at least 1 − 4SAHKδ 0 ,
                                        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 )   ,           (33)
                                                             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 (33). 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
                                                                                                         (34a)
                                                                                 
                                                                                   ,
                                                                   h     h
                                                k=1 h=1
                                                  H
                                                K X
                                                X
                                        T6 :=                              k
                                                                                                         (34b)
                                                                               
                                                           V Psk ,ak ,h , Vh+1   ,
                                                                   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 δ 0 , one has

                                  1                               1                1
            r                            r
    T2 ≤ 61 2SAH(log2 K) log 0 T5 + 8 SAH 3 K(log2 K) log 0 + 151SAH 2 (log2 K) log 0 ,                  (35a)
                                  δ                                δ               δ
                   1           1
           r
   |T3 | ≤ 8T6 log 0 + 3H log 0 ,                                                                        (35b)
                  δ           δ
                                   1                         1
            r
   |T4 | ≤ 6 2SAH 3 K(log2 K) log 0 + 55SAH 2 (log2 K) log 0 .                                           (35c)
                                   δ                         δ
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. (34a) and (34b)), 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
                                                                                    ,                    (36a)
                                                  h    h           h     h
                                     k=1 h=1
                                       H D
                                     K X
                                     X                                           2 E
                             T8 :=                                 k
                                               Psk ,ak ,h − esk , Vh+1               ,                   (36b)
                                                  h    h           h+1
                                     k=1 h=1
                                       H
                                     K X
                                     X               nD                                 E o
                             T9 :=             max                                  k
                                                       Pbskk ,ak ,h − Psk ,ak ,h , Vh+1  ,0 ,            (36c)
                                                           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δ 0 ,

                        T5 ≤ T7 + T8 + 2HT2 + 6KH 2 ,                                                    (37a)
                                                             1        1
                                             r
                        T6 ≤ 2HT2 + 6KH 2 + 32H 2 T6 log 0 + 3H 2 log 0 + 2HT9 ,                         (37b)
                                                             δ       δ
                                            1            1
                              r
                       |T8 | ≤ 32H 2 T6 log 0 + 3H 2 log 0 .                                             (37c)
                                           δ            δ
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 (33), (36a) and (36c), respectively). As it




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


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

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

where we again use B = 4000(log2 K)3 log(3SAH) log δ10 .
                                                                                             √
     To solve the inequalities (39), we resort to the elementary AM-GM inequality: if a ≤ bc + d for some
b, c ≥ 0, then it follows that a ≤ b + 2
                                         1
                                           c + d for any  > 0. This basic inequality combined with (39) 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 ,                                  (40)


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

provided that K ≥ SAHB. These bounds taken collectively with (33) 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 2 K 2 δ 0 ,

                             √
                                                     r                           
                                                                   5 SAHK
             Regret(K) . min     BSAH K, HK . min
                                        3               BSAH K log
                                                             3               , HK .
                                                                        δ0

The proof of Theorem 1 is thus completed by recalling that δ 0 = 200SAH
                                                                      δ
                                                                        2K2 .




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) .                                  (42)
                                                                


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                                                 (43)
                                            
                                                      SAH 3 Kp, KHp .

   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 learner


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

   In this cost-based setting, we find it convenient to re-define the Q-function and value function as follows:
                              " H                         #
                               X
              Qh (s, a) := Eπ
               π
                                   ch0 (sh , ah ) = (s, a) ,            ∀(s, a, h) ∈ S × A × [H],
                                h0 =h
                                " H                  #
                                 X
                Vπh (s) := Eπ           ch0 sh = s ,                                    ∀(s, h) ∈ S × ×[H],
                                h0 =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?h (s, a) = min Qπh (s, a)             and         V?h (s) = min Vπh (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) :=      Vπ1 (sk1 ) − V?1 (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 (19) 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 .               (45)

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 ) ,                           (46)
                                                                                       
                                        π
                                                 h=1                                 h=1

      where {(sh , ah )}1≤h≤H represents a sample trajectory under policy π. This captures the maximal
                                                                                         h=1 .
      possible expected sum of variance with respect to the optimal value function {Vh? }H
 (ii) Another useful variance metric is defined as
                                                                         H
                                                                        X                 
                                             var2 := max Varπ                   rh   s1 = s ,                       (47)
                                                         π,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 .                                      (48)
                                                     


   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
                                                   e min SAH 2 , HK
                                                                      
                                    Regret(K) ≤ O

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.




                                                      22
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 grants FA9550-19-1-0030 and FA9550-22-1-0198,
the ONR grant N00014-22-1-2354, and the NSF grants CCF-2221009 and CCF-1907661. JDL acknowledges
support of the ARO under MURI Award W911NF-11-1-0304, the Sloan Research Fellowship, NSF CCF
2002272, NSF IIS 2107304, NSF CIF 2212262, ONR Young Investigator Award, and NSF CAREER Award
2144994. SSD acknowledges the support of NSF IIS 2110170, NSF DMS 2134106, NSF CCF 2212261, NSF
IIS 2143493, NSF CCF 2019844, and NSF IIS 2229881.


A      Preliminary facts
In this section, we gather a couple of useful results that prove useful in our analysis. 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 beP       a martingale such that M0 = 0 and |Mn − Mn−1 | ≤ c
                                                          n
(∀n ≥ 1) hold for some quantity c > 0. Define Varn := k=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
                  "                                                 #
                           √                1           1         1
                              r                  r                              2       
                                                                                 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
possible value of X. Then we have Var(X 2 ) ≤ 4Cmax
                                                2
                                                    Var(X).

    Now, we turn to an intimate connection between the sum of a sequence of bounded non-negative random
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




                                                          23
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
       Pn                                            Pn
Z := n1 i=1 Zi and empirical variance Vbn := n1 i=1 (Zi − Z)2 . Then we have
                                                    s                            
                                             n
                                         1  X          2Vn log(2/δ) 7 log(2/δ) 
                                                        b
                            P  E [Z] −         Zi >                 +               ≤ δ.
                                         n i=1            n−1           3(n − 1)

   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                                        (49)
                                        k=1 h=1
                                                max{N k (sk , ak ), 1}
                                                      h h h


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
                                                                  1 (s, a) = skh , akh ≤ 2 log2 K,                          (50)
                               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δ 0 , it holds that
                                                             v
   H
 K X                                                         uK H
                                                           1                                             1
                                        r
 X                                                           uX X
      rbh (sh , ah ) − rh (sh , ah ) ≤ 4 2SAH (log2 K) log 0 t
        k k      k          k    k           2                    rh (skh , akh ) + 52SAH 2 (log2 K) log 0 ;
                                                          δ                                             δ
 k=1 h=1                                                                           k=1 h=1
                  H
                K X                                 H
                                                  K X
                X                                 X                                                  1
                          rbhk (skh , akh ) ≤ 2             rh (skh , akh ) + 60SAH 2 (log2 K) log      .
                                                                                                     δ0
                k=1 h=1                           k=1 h=1

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

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

Proof of Lemma 21. In view of Lemma 19 and the union bound, with probability 1 − 2SAHKδ 0 we have
                                           v
                                                                                
                                                                   k (sk , ak ) 2 log 1
                                                 (s       )
                                           u k k k
                                         √ u σ
                                           t h h h
                                              b       , a   −    r
                                                                 bh h h               δ0   28H log δ10
              rbhk (s, a) − rh (s, a) ≤ 2 2                                              +
                                                             Nhk (s, a)                    3Nhk (s, a)
                                           s
                                         √    rhk (s, a) log δ10
                                             Hb                       28H log δ10
                                      ≤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 σ
Hbrh (s, a) (since each immediate reward is upper bounded by H). Solve the inequality above to obtain
   k

                                                          s
                                                            Hrh (s, a) log δ10      H log δ10
                              rbhk (s, a) − rh (s, a) ≤ 4                      + 24            .                   (52)
                                                              Nhk (s, a)            Nhk (s, a)

                                                                       24
It is then seen that
                                                                                     s                                                        !
      X                                                                  X                   Hrh (skh , akh ) log δ10       H log δ10
              rbhk (skh , akh ) − rh (skh , akh ) ≤ 4SAH 2 +                        4                                 + 24
      k,h                                                                k,h
                                                                                               Nhk (skh , akh )            Nhk (skh , akh )
                                                                  v
                                                                         H log δ10                              X H log 10
                                                                  uX                     sX
                                                      ≤ 4SAH 2 + 4t                             (sk , ak ) + 24               δ
                                                                  u
                                                                          k (sk , ak )
                                                                                       ·      rh h h                  k (sk , ak )
                                                                                                                                   .
                                                                    k,h
                                                                        N h h h           k,h                   k,h
                                                                                                                    N h h h


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

                                                                         1 X                                                 1
                                                     r                      s
X
        rbh (sh , ah ) − rh (sh , ah ) ≤ 4SAH + 4 2SAH (log2 K) log 0
          k k       k            k   k          2             2                       rh (skh , akh ) + 48SAH 2 (log2 K) log 0
                                                                         δ                                                  δ
k,h                                                                             k,h

                                                                 1 X                                               1
                                           r                      s
                                        ≤ 4 2SAH 2 (log2 K) log 0     rh (skh , akh ) + 52SAH 2 (log2 K) log 0 .
                                                                δ                                                 δ
                                                                                                 k,h

Moreover, the AM-GM inequality implies that
                                                             H
                                                           K X
    X                            X                         X                                                             1                         1
           rbhk (skh , akh ) −         rh (skh , akh ) ≤              rh (skh , akh ) + 8SAH 2 (log2 K) log                 + 52SAH 2 (log2 K) log 0
                                                                                                                         δ0                       δ
     k,h                         k,h                       k=1 h=1
                                                X                             X                                                      1
                                 =⇒                   rbhk (skh , akh ) ≤ 2         rh (skh , akh ) + 60SAH 2 (log2 K) log              ,
                                                                                                                                     δ0
                                                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. (25)). Setting
                                                 M = log2 K                             and                N = SAH,                                    (53)
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 (∀τ ) ;                        (54a)
                        [
          C distinct :=   C distinct (l).                                                                                                         (54b)
                            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
                                         N +1
                                        MX
                                                 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 )M N ≤ (2K)M N
                                            MN

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

                                                |C| ≤ C distinct · (2K)M N .                                           (55)

     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 , . . . , IeM N +1 } ∈
C distinct (M N + 1), it is easily seen that

   • Ie1 = [0, 0, . . . , 0]> and IeM N +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 M N such paths. This implies that

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

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 ≤ 2M N +1 C distinct (M N + 1) ≤ (2N )M N +1 ,

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

                               |C| ≤ (2K)M N C distinct ≤ (4KN )M N +1 ≤ (4KN )M N +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 h0 ∈ [h + 1, H]. Consequently,
Lemma 15 together with Definition 2 tells us that: with probability at least 1 − δ 0 , one has
                    (l)
             X
                  Pbs,a,h − Ps,a,h , Xh+1,s,a
               s,a,h
                         v
                         u 8 X                         3 log2 (SAHK)   4H      3 log2 (SAHK)
                         u
                               V Ps,a,h , Xh+1,s,a log               + l−2 log                                         (56)
                                                  
                       ≤ t l−2                                                               ,
                           2                                   δ0     2                δ0
                                s,a,h


where we view the left-hand side of (56) 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 δ 0 in (56) with
δ / (4SAHK)
 0
                           (2K)     log2 K , we can demonstrate that with probability at least 1 − δ 0 ,
               2SAH log2 K      SAH
                                           

             (l)
   X
           Pbs,a,h − Ps,a,h , Xh+1,s,a
   s,a,h


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

         4H                                               3 log22 (SAHK)
                                                                        
      + l−2 2SAH log2 K log(4SAHK) + SAH log(2K) + log
         2                                                         δ0
     v
     u 8 X                                          1   4H                    1
     u                                                                       
              V Ps,a,h , Xh+1,s,a 6SAH log2 K + log 0 + l−2 6SAH log2 K + log 0
                                          2                             2
                                                                                                                   (57)
                                 
   ≤
       2l−2                                             2
     t
                                                   δ                         δ
                 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 },
           n                             o X                                                                   
               (l)                                     (l)
  X
      max Pbs,a,h − Ps,a,h , Xh+1,s,a , 0 ∈          Pbs,a,h − Ps,a,h , X        eh+1,s,a ∈ Xh+1,I , ∀(s, a, h)
                                                                        eh+1,s,a X
 s,a,h                                                     s,a,h

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


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 − δ 0 ,
   X D (l)                 kl,j,s,a,h
                                      E
       Pbs,a,h − Ps,a,h , Vh+1
   s,a,h
              v
              u 8 X                                              1   4H                     1
              u                                                                            
                                kl,j,s,a,h 
            ≤ t l−2 V Ps,a,h , Vh+1           6SAH log22 K + log 0 + l−2 6SAH log22 K + log 0                      (58)
                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 (26)
and applying the Cauchy-Schwarz inequality to reach
                                                      l−1
 K X
   H D                                     E log 2K 2
                                                    X X D (l)                            E
                                                                              kl,j,s,a,h
 X                                            X
             b k                        k
             Psk ,ak ,h − Psk ,ak ,h , Vh+1 ≤             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
    log2 K 2l−1 u
         v
   X Xu 8 X                kl,j,s,a,h 
                                        
                                                             1
                                                               
 ≤             V Ps,a,h , Vh+1            6SAH log22 K + log 0
           2
         t l−2
     j=1
                                                            δ
      l=1                     s,a,h

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

          j=1
                                                             δ
      l=1                  s,a,h
                 log2 K
                                                 1
                     X                            
             +             8H 6SAH log22 K + log 0 + SAH 2
                                                δ
                     l=1




                                                                       27
  v
              log2 K 2l−1
                                                                            1
  u                                                                          
                                            kl,j,s,a,h 
  u            X XX
 ≤ 16(log2 K)
  t                           V Ps,a,h , Vh+1             6SAH log2 K + log 0
                                                                  2
                                                                           δ
                l=1 j=1 s,a,h

                                                     1
                                                       
       + 48SAH 2 log32 K + 8H(log2 K) log 0 + SAH 2
                                                     δ
  v
               K X  H
                                                                    1                             1
  u                                                                  
  u           X
 ≤ 16(log2 K)          V Psk ,ak ,h , Vh+1 6SAH log2 K + log 0 + 49SAH 2 log32 K + 8H(log2 K) log 0 .
                                                           2
  t                                    k
                                          
                            h h                                     δ                            δ
                       k=1 h=1


Here, the last inequality is valid due to our assumption Vh+1
                                                          k
                                                              = 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                                                      H
                                                                              K X  n                        o
                                                         kl,j,s,a,h 
                                                                              X
              =                                                       +           1 Nhk,all (skh , akh ) = 0 V Psk ,ak ,h , Vh+1
                                                                                                                             k
                                                                                                                                 
                                             V Ps,a,h , Vh+1                                                                       .
                                                                                                                     h   h
                    l=1 s,a,h j=1                                             k=1 h=1


This establishes our advertised bound on               Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                                                                    k
                                                                                        , provided that Claim 22 is valid.
                                                                 P
                                                                     k,hh h
                                                           h h

    Before proceeding to the proof of Claim 22, we note that the other two quantities k,h max Pbskk ,ak ,h −
                                                                                                    P        
                                                                                                                  h h
                                                                   2
              k
                  , 0 and k,h Pbskk ,ak ,h − Psk ,ak ,h , Vh+1k
                                                                       can be upper bounded using exactly the same
                         P
Psk ,ak ,h , Vh+1
  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
                                         k
            Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
               h   h         h       h
k=1 h=1
 v
              H
            K X
                                                                                              1                                                 1
 u                                                                                                 
 u          X                                                   2 
≤ 16(log K)
 t
               2V Pk                         sh ,ak ,h ,
                                                            k
                                                           Vh+1            6SAH log22 K + log 0         + 49SAH 3 log32 K + 8H 2 (log2 K) log
                                                  h                                             δ                                               δ0
                       k=1 h=1
    v
                H
              K X
                                                        1                                       1
    u                                                    
    u         X
≤ 8H (log2 K)     V Psk ,ak ,h , Vh+1 6SAH log2 K + log 0 + 49SAH 3 log32 K + 8H 2 (log2 K) log 0 ,
                                              2
    t                             k
                                     
                      h h                              δ                                       δ
                       k=1 h=1


where the last inequality follows from Lemma 16 and the fact that 0 ≤ Vh+1
                                                                       k
                                                                           (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. (25)), 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,                      (59)

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 8 X                                       1   4H                    1
              u                                                                    
                    V Ps,a,h , Xh+1,s,a 6SAH log2 K + log 0 + l−2 6SAH log2 K + log 0
                                                2                         2
                                                                                                                                         (60)
                                       
            ≤ t l−2
                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 
                                                      log δ10            (j)
                                                                       bh (s, a) − (b
                                                                                      (j)
                                                                                     rh (s, a))2 log δ10       H log δ10
                                                                                                
                                   V Pbs,a,h , Vh+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.                                 (61)

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


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 δ10 400 H log δ10
                       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.                    (62)
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 δ10           H log δ10
that obey 20
           3         n           = 400
                                    9       n      , one can use the properties of p and v to calculate
                                               s                                                                   q
                                                                                                 p(s) v(s) − hp, vi log δ10
                                         (                                                   )
       ∂f (p, v, n)         20  20                 V(p, v) log δ10           400 H log δ10
                    = p(s) + 1                                          ≥
                             3  3                                             9
                                                                                                        p
         ∂v(s)                                             n                        n                      nV(p, v)
                             (r                                                    )
                                               1      20         1                       3 H log δ 0
                                                                                         20      1
                                                                                                                           
                                                                                                         p(s) v(s) − hp, vi
                    = p(s) + 1    nV(p, v) log 0 ≥        H log 0                                      ·
                                                       3
                                                                                      q
                                              δ                  δ                      nV(p, v) log 1           H
                                                                                                         δ0
                                                      
                                       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 (62).
   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 (18):
                              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
Qh (s, a) = H, then Qh (s, a) ≥ Qh (s, a) holds trivially, and hence it suffices to look at the case with
  k                     k           ?

Qkh (s, a) < H. According to the update rule in (18), it holds that
          Qkh (s, a)
           = rbhk (s, a) + Pbs,a,h
                             k          k
                                   , Vh+1
                            v                                    v
                                                                                               
                                                                                      k (s, a) 2 log 1
                                                                          (s,
                                                                 u k
                            u V(Pbk , V k ) log 10               u σ          a) −  r
                            u
                                     s,a,h   h+1        δ        t h b              b h               δ0       H log δ10
                       + c1 t                              +  c2                                          + c3
                                        Nhk (s, a)                                Nhk (s, a)                   Nhk (s, a)
                               v
                                                             2 
                                      bh (s, a) − rbhk (s, a)     log δ10
                               u k
                               u σ
                            √                                                  48H log δ10
           ≥ rbhk (s, a) + 2 2                                             +                + f Pbs,a,h
                                                                                                  k        k
                                                                                                               , Nhk (s, a)
                               t                                                                                            
                                                                                                        , Vh+1
                                                 Nh (s, a)
                                                   k                           3Nh (s, a)
                                                                                  k
                               v                               
                                                             2
                                      bh (s, a) − rbhk (s, a)     log δ10
                               u k
                            √ ut σ                                             48H log δ10
           ≥ rbh (s, a) + 2 2
                k
                                                                           +                + f Pbs,a,h
                                                                                                  k        ?
                                                                                                               , Nhk (s, a)      (63)
                                                                                                                            
                                                                                                        , Vh+1
                                                 Nh (s, a)
                                                   k                           3Nh (s, a)
                                                                                  k


for any (s, a), where the last inequality results from the claim (62) and the property Vh+1        k     ?
                                                                                                      ≥ Vh+1  . Moreover,
applying Lemma 19 and recalling the definition of σ     bh (s, a), we have
                                                          k

                                               v                                           
                                                               h+1 log δ 0
                                                u                         1
                                                                               14H log δ0 
                                                                    
              
                                               u V Pbk , V ?                            1  
                                                      s,a,h
            P     Ps,a,h − Ps,a,h , Vh+1 > 2
                  b k                 ?         t                            +
              
                                                        Nhk (s, a)            3Nhk (s, a) 
                                                  v                                                  
                                                   u 2V Pb
                                                             s,a,h , Vh+1 log δ 0
                                                   u                           1
                                                                                        7H log δ0 
                                                             k         ?
                                                                          
                   
                                                                                                 1   
               ≤P         k
                        Pbs,a,h             ?
                                − Ps,a,h , Vh+1  >t             k (s, a) − 1
                                                                                  +                     ≤ 2δ 0     (64a)
                   
                                                           N  h                     3N  k (s, a) − 1 
                                                                                         h            

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

These two inequalities imply that with probability exceeding 1 − 4δ 0 ,
                                                            v
                                                                                          
                                                                                k (s, a) 2 log 1
                                                                   (s,
                                                            u k
                                                         √ t h
                                                            u  σ
                                                               b       a)  −  r
                                                                              b h              δ0     28H log δ10
                              rh (s, a) ≤ rbhk (s, a) + 2 2                                       +               ;
                                                                            Nhk (s, a)                3Nhk (s, a)
             k        ?
                          , Nhk (s, a) = Ps,a,h , Vh+1 ?
                                                            + Pbs,a,h
                                                                 k                   ?
                                      
         f Pbs,a,h , Vh+1                                              − Ps,a,h , Vh+1
                                                            v
                                                                            ? ) log 1
                                                       ( u                                              )
                                                                                      δ 0 400 H log δ 0
                                                                   k
                                                         20 u V(Pbs,a,h , Vh+1                       1
                                              + max         t                            ,
                                                          3          Nhk (s, a)            9 Nhk (s, a)
                                                       ?
                                           ≥ Ps,a,h , Vh+1 .
Substitution into (63) gives: with probability at least 1 − 4δ 0 ,
                                     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δ 0 , 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 (35a) on T2 . To begin with, T2 can be decomposed using the definition (18) of
the bonus term:
                     H
                   K X
                   X
            T2 =             bkh (skh , akh )
                   k=1 h=1
                          v                                          v
                                                                                                         2 
                                                    log 1
                                                                        bh (sh , ah ) − rbhk (skh , akh )     log δ10
                          u bk                k
                                                                    u k k k
                  460 X t
                          u V P sk ,ak ,h , Vh+1        δ 0   √  Xu     σ
                =                h h
                                                            +2 2
                                                                     t
                   9               Nhk (skh , akh )                                   Nhk (skh , akh )
                      k,h                                        k,h

                                                                                        544 X H log δ10
                                                                                    +                         .                (65)
                                                                                         9   Nhk (skh , akh )
                                                                                             k,h

Applying the Cauchy-Schwarz inequality and invoking Lemma 20, we obtain
            v
        460 uX log δ10
            u                     sX
                                                                  
   T2 ≤                                                      k
                                          V Pbskk ,ak ,h , Vh+1
          9          k (sk , ak )
            t
               k,h
                   N h h h          k,h
                                                h h

                 v
              √ uX log δ10                                                              544H log δ10 X            1
                 u                      sX 
           +2 2                                  σ  k (sk , ak ) − r    k (sk , ak ) 2 +
                           k (sk , ak )                                                           9             k (sk , ak )
                 t                               b  h    h    h       bh     h    h
                   k,h
                        N  h h h           k,h                                                           k,h
                                                                                                             N  h h h

        460                              1 X
            s                    
              2SAH(log2 K) log 0
                                                                           
      ≤                                                               k
                                                   V Pbskk ,ak ,h , Vh+1
          9                              δ                 h h
                                             k,h

                                        1                                                2  1088                        1
              r                           sX 
           + 4 SAH(log2 K) log 0                    bhk (skh , akh ) − rbhk (skh , akh )
                                                    σ                                        +      SAH 2 (log2 K) log 0 .     (66)
                                       δ                                                        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
(34a) of T5 , we can continue the bound in (66) to derive

                     460                                1
                          r                      
                T2 ≤          2SAH(log2 K) log 0 T5
                       9                               δ
                                                        1 X k k k               1088                    1
                            r                            s
                        + 4 SAH 2 (log2 K) log 0               rbh (sh , ah ) +      SAH 2 (log2 K) log 0 .   (67)
                                                       δ                          9                    δ
                                                               k,h


Applying Lemma 21 to bound k,h rbhk (skh , akh ) and using the basic fact k,h rh (skh , akh ) ≤ KH, we can employ
                               P                                         P
a little algebra to deduce that

                                     1                                   1                             1
                 r                                r
         T2 ≤ 61 2SAH(log2 K) log 0 T5 + 8 SAH 3 K(log2 K) log 0 + 155SAH 2 (log2 K) log 0
                                    δ                                     δ                             δ
with probability exceeding 1 − 2SAHKδ 0 .

C.2.2     Bounding T3

Next, let us prove the bound (35b) on |T3 |. Recall that Vh+1
                                                          k
                                                              (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

of Vh+1
     k
        and has conditional mean Psk ,ak ,h , allowing us to invoke the Freedman inequality for martingales
                                    h h
(see Lemma 15) to control the sum of Psk ,ak ,h − esk , Vh+1
                                                          k
                                                               . Recalling the definition of T6 in (34b), we can
                                                               h   h         h+1
see from Lemma 15 that
                              √                    1       1          1    √                                             1           1
                                     r                                                                    r
                 |T3 | ≤ 2 2 ·              T6 log 0 + log 0 + 2H log 0 ≤ 2 2 ·                               T6 log        + 3H log 0                    (68)
                                                  δ       δ          δ                                                   δ0         δ
with probability at least 1 − 10SAH 2 K 2 δ 0 .

C.2.3    Bounding T4

We now turn attention to the bound (35c) 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 )                      (69)
                                                                                 
                                                                                                                                           ,
                            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 (69), we can apply Lemma 21 and the fact
              (sh ah ) ≤ KH to show that
                k     k
     P
       k,h rh     ,
             H
           K X
                                                                                                              1                          1
                                                                         r
           X
                       rbhk (skh , akh ) − rh (skh , akh )         ≤4      2SAH 3 K(log2 K) log                   + 52SAH 2 (log2 K) log 0                (70)
                                                               
                                                                                                              δ 0                       δ
           k=1 h=1

      holds with probability at least 1 − 2SAHKδ 0 .
   • With regards to the second term on the right-hand side of (69), we note that conditional on π k ,
           PH                      k
     Ek := h=1 rh (skh , akh )−V1π (sk1 ) 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 0 + 3H 2 log 0
                                                                       δ            δ
                                  k=1                  k=1

                                                             1            1
                                                 r
                                            ≤ 2 2KH 2 log 0 + 3H 2 log 0                                 (71)
                                                            δ             δ
      holds with probability exceeding 1−4δ 0 log2 (KH), where Var(Ek ) denotes the variance of Ek conditioned
      on what happens before the k-th episode, and the last inequality follows since |Ek | ≤ H always holds.

   Substituting (70) and (71) into (69) reveals that with probability at least 1 − 3SAHKδ 0 ,

                                                        1                          1
                                r
                       |T4 | ≤ 6 2SAH 3 K(log2 K) log 0 + 55SAH 2 (log2 K) log 0 .                                                                        (72)
                                                        δ                         δ

C.3     Proof of Lemma 11
Regarding the term T5 , direct calculation gives
                     H
                   K X                                    H D
                                                        K X
                   X                                  X                           2 E                                                            2 
            T5 =               V Pbskk ,ak ,h , Vh+1
                                                 k
                                                      =        Pbskk ,ak ,h , Vh+1
                                                                               k
                                                                                        −                                                 k
                                                                                                                          Pbskk ,ak ,h , Vh+1
                                        h       h                                         h   h                                h   h
                   k=1 h=1                                             k=1 h=1
                     H D
                   K X                                                    H D
                                                                        K X
                   X                                              2 E 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


                                                                                 32
                                                                        H
                                                                      K X                            H
                                                                                                   K X
                                                                      X                         2 X                                                    2
                                                                 +                  k
                                                                                   Vh+1 (skh+1 ) −                                                k
                                                                                                                                  Pbskk ,ak ,h , Vh+1
                                                                                                                                      h   h
                                                                      k=1 h=1                                    k=1 h=1
                                              H
                                            K X                                 H
                                                                              K X
                                            X                        2       X                                          2
                   = T7 + T8 +                         Vhk (skh )         −                              k
                                                                                         Pbskk ,ak ,h , Vh+1
                                                                                                 h   h
                                            k=1 h=2                           k=1 h=1
                                                    H
                                                  K X
                                                  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 )                                       (73)
                                                  k=1 h=1                            k=1 h=1
                   ≤ T7 + T8 + 2HT2 + 6KH 2                                                                                                                  (74)

with probability at least 1 − 3δ 0 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                                 h h
                                                      n                                    o
                                            ≤ 2H max Vh (sh ) − Psk ,ak ,h , Vh+1 , 0 ,
                                                         k k            b k       k
                                                                                                            h   h


the penultimate line makes use of the property Vhk (skh ) = Qkh (skh , akh ) and the update rule (19), whereas the
last line applies property (51) and the definition (35a) of T2 .
    Akin to the above bound on T5 , we can show that with probability at least 1 − 3SAHKδ 0 ,
          H
        K X                                H D
                                         K X                             H 
                                                                       K X                     2
        X                              X                        2 E X
T6 =                              k
                  V Psk ,ak ,h , Vh+1  =                     k
                                               Psk ,ak ,h , Vh+1     −                     k
                                                                             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                                  H
                                           K X                H 
                                                            K X                     2
        X                            2 E X              2 X
    =                            k
             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
                     H
                   K X
                   X                    n                                  o
    ≤ T8 + 2H                        max Vhk (skh ) − Psk ,ak ,h , Vh+1
                                                                    k
                                                                        ,0
                                                                 h    h
                   k=1 h=1
                     H
                   K X
                   X                    n                                o     K X
                                                                               X H    n                                   o
    ≤ T8 + 2H                        max Vh (sh ) − Psk ,ak ,h , Vh+1 , 0 + 2H
                                          k k       b             k
                                                                                   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                                                           (75)
                   k=1 h=1                                   k=1 h=1
    ≤ T8 + 2HT2 + 6KH 2 + 2HT9 .                                                                                                                             (76)

    Finally, note that the above bounds on T5 and T6 both depend on the term T8 (cf. (36b)), 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
                   √                                     1          1                1            1
                      s                                                r
                        X                      2 
          |T8 | ≤ 2 2          b k          k
                            V Psk ,ak ,h , Vh+1      log 0 + 3H log 0 ≤ 32H 2 T6 log 0 + 3H 2 log 0
                                                               2
                                                                                                       (77)
                                  h h                   δ          δ                δ            δ
                                      k,h

with probability at least 1 − 3δ 0 log(KH 3 ). Substitution into (74) and (76) establishes (37).


D       Proof of the value-based regret bound (proof of Theorem 2)
Recall that
                                                                                        1                                     δ
                                 B = 4000(log2 K)3 log(3SAH) log                                     with δ 0 =                       .                      (78)
                                                                                        δ0                               200SAH 2 K 2

                                                                                   33
                                                             2
Consider first the scenario where K ≤ BSAH
                                        v? : the regret bound can be upper bounded by
                             "K                       #  "K         #
                              X                    
                                              πk k
                                                          X
             E Regret(K) = E     V1 (s1 ) − V1 (s1 ) ≤ E
                                   ? k
                                                            V1 (s1 ) = KEs1 ∼µ V1? (s1 )
                                                              ? k
                                                                                      

                                          k=1                                         k=1
                                                        n√                   o
                                   = Kv = min
                                          ?
                                                             BSAH 2 Kv ? , Kv .   ?
                                                                                                                                 (79)

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

                                                                      BSAH 2
                                                                 K≥          .                                                   (80)
                                                                        v?

    To begin with, recall that the proof of Theorem 1 in Section 5 consists of bounding the quantities T1 , . . . , T9
(see (33), (34) and (36)) and recall that δ 0 = 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. (42)).

Bounding T2 . Recall that we have shown in (67) that

                  460                      1
                      r               
             T2 ≤       2SAH(log2 K) log 0 T5
                   9                       δ
                                         1                           1088                    1
                     r                     sX
                  + 4 SAH 2 (log2 K) log 0       rbhk (skh , akh ) +      SAH 2 (log2 K) log 0 .
                                        δ                              9                    δ
                                                                  k,h

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

which in turn gives

                    460                              1
                               r                
               T2 ≤                2SAH(log2 K) log 0 T5
                     9                              δ
                                                          1p                                   1
                                      r
                                   + 4 SAH 2 (log2 K) log 0 T4 + 3Kv ? + 130SAH 2 (log2 K) log 0 .                               (82)
                                                         δ                                    δ

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

Repeating the arguments for (81) yields
                 X                                X                           X                                    1
                       rh (skh , akh ) ≤ Tq2 +          V1πk (sk1 ) ≤ Tq2 +       V1? (sk1 ) ≤ Tq2 + 3Kv ? + H log 0             (84)
                                                                                                                  δ
                 k,h                               k                          k

with probability at least 1 − δ 0 . Combining this with Lemma 21, we see that
                                                v
                                                uK H
                                              1 uX X                                             1
                        r
                 Tq1 ≤ 4 2SAH 2 log2 K log 0 t            rh (skh , akh ) + 52SAH 2 (log2 K) log 0
                                              δ                                                 δ
                                                                 k=1 h=1



                                                                        34
                                                  1                                          1
                        r                             q
                    ≤4      2SAH 2 log    2 K log 0       Tq2 + 3Kv ? + 60SAH 2 (log2 K) log 0              (85)
                                                 δ                                          δ
with probability exceeding 1 − 3SAHKδ 0 . In addition, Lemma 15 tells us that
                             v
                             u
                                 K
                                              
                                                H
                                                                !2 
                                                                       1            1
                             u X                X
                      Tq2 ≤ 2t2                    rh (sh , ah )  log 0 + 3H 2 log 0
                             u
                                   Eπk ,s1 ∼µ 
                                                                      δ            δ
                                    k=1                   h=1
                               v                  "H                #
                                    K
                                                                         1          1
                               u
                               u   X               X
                            ≤ 2 2H
                               t       Eπk ,s1 ∼µ      rh (sh , ah ) log 0 + 3H log 0
                                                                        δ          δ
                                   k=1             h=1

                                            1             1
                               r
                            ≤ 2 2KHv ? log 0 + 3H log 0                                                     (86)
                                            δ            δ
                                             1
                            ≤ 2Kv + 5H log 0
                                 ?
                                                                                                            (87)
                                             δ
with probability at least 1−2SAHKδ 0 , where the expectation operator Eπk ,s1 ∼µ [·] is taken over the randomness
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 (85), (86) and (87) together, we can demonstrate that with probability exceeding 1 − 5SAHKδ 0 ,

                                                       1                        1
                              r
                       T1 ≤ 13 SAH 2 Kv ? (log2 K) log 0 + 80SAH 2 (log2 K) log 0 ,
                        q                                                                        (88a)
                                                      δ                         δ
                                           1          1
                              r
                       Tq2 ≤ 2 2KHv ? log 0 + 3H log 0 .                                         (88b)
                                           δ          δ
Substitution into (83) reveals that: with probability exceeding 1 − 5SAHKδ 0 ,

                                                         1                       1
                                r
                        T4 ≤ 15 SAH 2 Kv ? (log2 K) log 0 + 83SAH 2 (log2 K) log 0 .                        (89)
                                                         δ                      δ

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

With (84) and (87) in place, we can deduce that, with probability at least 1 − 3SAHKδ 0 ,
                       X                                         1                  1
                           rh (skh , akh ) ≤ Tq2 + 3Kv ? + H log 0 ≤ 5Kv ? + 6H log 0 .                     (91)
                                                                δ                  δ
                            k,h

Moreover, under the assumption (80), we can further bound (88a) as
                                     √
                                Tq1 ≤ BSAH 2 Kv ? + BSAH 2 ≤ 2Kv ?
with probability exceeding 1 − 3SAHKδ 0 , which combined with (91) and the assumption (80) results in
                     X                       X                                        1
                         rbhk (skh , akh ) =   rh (skh , akh ) + Tq1 ≤ 7Kv ? + 6H log 0 ≤ 8Kv ? .   (92)
                                                                                     δ
                      k,h                  k,h

Substitution into (90) indicates that: with probability exceeding 1 − 6SAHKδ 0 ,
                                          T5 ≤ T7 + T8 + 2HT2 + 16HKv ? .                                   (93)


                                                                35
Bounding T6 . Making use of our bounds (75), (37c) and (92), we can readily derive
                                                             H
                                                           K X
                                                           X
                          T6 ≤ T8 + 2HT2 + 2HT9 + 2H                 rbh (skh , akh )
                                                           k=1 h=1

                                              1                              1
                                   r
                               ≤   32T6 log      + 2HT9 + 16HKv ? + 3H 2 log 0 + 2HT2                       (94)
                                              δ0                            δ
with probability at least 1 − 16SAH 2 K 2 δ 0 .

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

                                   √                            √                      √
         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 (79) concludes the proof.


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 = −bch , 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 ,


                                                         36
                           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
(33), (34) and (36)). 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 (65) that
                           v
                   460 X t V Pskh ,akh ,h , Vh+1 log δ0
                                                           1
                           u bk               k
                                                   
                           u
              T2 =                                            +
                    9               Nhk (skh , akh )
                       k,h
                             v
                                                                 2 
                                bh (sh , ah ) − rbhk (skh , akh )     log δ10
                             u k k k
                      √ Xu   t σ                                                544 X H log δ10
                    2 2                                                       +                          .         (97)
                                               Nhk (skh , akh )                  9      Nhk (skh , akh )
                         k,h                                                        k,h

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

   • For the first and the third terms on the right-hand side of (97), invoking the Cauchy-Schwarz inequality
     and Lemma 20 gives
                     v
                     t V Pskh ,akh ,h , Vh+1 log δ0
                                                 1
                     u bk                 k
                                              
                                                                            1 X
                                                      s
                 Xu                                                   
                                                        2SAH(log        log
                                                                                                            
                                                    ≤            2 K)                                   k
                                                                                      V Pbskk ,ak ,h , Vh+1
                 k,h
                              Nh (sh , ah )
                                  k     k   k                               δ 0
                                                                                  k,h
                                                                                            h   h



                                                                            1
                                                      r                        
                                                    = 2SAH(log2 K) log 0 T5                                   (98)
                                                                            δ
      with T5 defined in (34a), and in addition,
                                           X H log 10                               1
                                                         δ
                                                 k (sk , ak )
                                                              ≤ 2SAH 2 (log2 K) log 0 .                            (99)
                                               N h h h                             δ
                                           k,h


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

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

                                        δ
                                                                  k=1                                       k=1
                                                                                                                  (100)

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



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

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

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

Putting the above results together, we can deduce that, with probability exceeding 1 − δ 0 ,

                               1
         r               
 T2 ≤ 90 SAH(log2 K) log 0 T5
                               δ
                             1                                        1                      1
        r                      r
    + 4 SAH (log2 K) log 0 T1 + T2 + T3 + 2|T4 | + 3Kc? + H log 0 + 130SAH 2 (log2 K) log 0 . (102)
               2
                             δ                                        δ                      δ

Bounding T4 . When it comes to the quantity T4 , we recall that
                   K    H
                                                        !  K H
                                                                                        !
                                                                                  πk k
                   X   X                                   X X
              T4 =        rbh (sh , ah ) − rh (sh , ah ) +
                            k k      k          k    k
                                                                rh (sh , ah ) − V1 (s1 ) .
                                                                     k    k
                                                                                                                     (103)
                        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δ 0 , it holds that
                H
              K X
              X
                        rbhk (skh , akh ) − rh (skh , akh )
              k=1 h=1
                                          v
                                          uK H
                                      1                                                 1
                   r
                                          uX X
              ≤4    2SAH (log2 K) log 0 · t    − rh (skh , akh ) + 52SAH 2 (log2 K) log 0 .
                                                                
                        2
                                     δ                                                 δ
                                                              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δ 0 ,
                                        v
                                        uK H
                                     1                                                       1
               r
                                        uX X
     |Tq1 | ≤ 4 2SAH (log2 K) log 0 · t             − rh (skh , akh ) + 52SAH 2 (log2 K) log 0
                                                                     
                       2
                                    δ                                                       δ
                                           k=1 h=1
                                  v
                                                     K
                                                                                                    1
                                  u
                                  u                 X
            ≤ 4 2SAH 2 (log2 K) · t−Tq2 + 3Kc? +          − V1? (sk1 ) − 3c? + 52SAH 2 (log2 K) log 0
               p                                                             
                                                                                                   δ
                                                    k=1

                                                                           1
                                  q
            ≤ 4 2SAH 2 (log2 K) · Tq2 + 3Kc? + 60SAH 2 (log2 K) log 0 .                                              (104)
               p
                                                                           δ




                                                                     38
Here, the last line uses the fact (see Lemma 17) that, with probability exceeding 1 − δ 0 ,
                                             K
                                             X                                     1
                                                       − V1? (sk1 ) ≤ 3Kc? + H log 0 .                                 (105)
                                                                   
                                                                                  δ
                                             k=1

    In addition, the Freedman inequality in Lemma 15 combined with (105) implies that, with probability at
least 1 − 3SAHKδ,
                v
                u
                   K
                          
                             H
                                              !2          
                                                               1         1
                u X         X
      |Tq2 | ≤ 2t2              rh (sh , ah )    s1 = sk1  log + 3H log
                u
                      Eπk 
                                                               δ         δ
                  k=1             h=1
             v           "H                          #
                  K
                                                          1              1
             u
             u   X        X
          ≤ 2t2H     Eπk      −rh (sh , ah ) s1 = sk1 log + 3H log
                                                          δ              δ
                 k=1      h=1
             v                                                                 !
                    K                             K
                                                                                   1         1
             u
             u     X                              X
          = 2t2H       −V1π (sk1 ) + V1? (sk1 ) +      −V1? (sk1 ) − 3c? + 3Kc? log + 3H log                           (106)
                            k
                                                                       
                                                                                   δ         δ
                        k=1                                        k=1
                                             1
          ≤ 3Kc? + T1 + T2 + T3 + T4 + 9H log .                                                                        (107)
                                             δ
Combining (104), (106) with (107) reveals that, with probability at least 1 − 4SAHKδ,

                                                                    1                     1
                     r
          |T1 | ≤ 16 SAH 2 (Kc? + T1 + T2 + T3 + T4 )(log2 K) log + 200SAH 2 (log2 K) log
            q
                                                                    δ                     δ
                                                        1           1
                    r
          |Tq2 | ≤ 2 2H(3Kc? + T1 + T2 + T3 + T4 ) log + 9H log .
                                                        δ           δ
As a result, substitution into (103) leads to

                                                                                         1                        1
                     r
           |T4 | ≤ 22 SAH 2 (Kc? + T1 + T2 + T3 + T4 )(log2 K) log                         + 209SAH 2 (log2 K) log .   (108)
                                                                                         δ                        δ

Bounding T5 . Invoking the arguments in (37a) and recalling the update rule (45), we obtain
                       H D
                     K X                                           H D
                                                                 K X
                     X                                     2 E X                              2 E
             T5 ≤         Pbskk ,ak ,h − Psk ,ak ,h , Vh+1
                                                       k
                                                               +                           k
                                                                       Psk ,ak ,h − esk , Vh+1                         (109)
                                  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                                   K                    K
                        X                                     X    k               X
                                   − rh (skh , akh ) = −Tq2 −   V1π (s1 ) ≤ −Tq2 +   V1? (sk1 ).                       (110)
                                                   

                        k=1 h=1                                          k=1                       k=1

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

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


                                                                     39
Bounding T6 . Invoking the arguments in (37a), (105) and (110), and recalling the update rule (45), we
can demonstrate that
                                           K X H
                       1          1
                r
                                          X
         T6 ≤ 2 8T6 log + 3H 2 log + 2H           max Psk ,ak ,h , Vh+1k
                                                                               − Vhk (skh ), 0
                                                       
                       δ          δ                          h h
                                          k=1 h=1
                                                    K X H
                       1          1
                r
                                                   X
            ≤ 2 8T6 log + 3H 2 log + 2HT9 + 2H              −rh (skh , akh )
                                                                            
                       δ          δ
                                                   k=1 h=1

                       1          1
                r
            ≤ 2 8T6 log + 3H 2 log + 2HT9
                       δ          δ
                                                                                                 !
                                                                        1                      1
                               r
                       + 2H 2 2H(3Kc? + T1 + T2 + T3 + T4 ) log + 3Kc? + 10H log                   (113)
                                                                        δ                      δ

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 (102),(35b),(108),(112),(113),(37c),(38a) and (38b), we can show that, with probability
exceeding 1 − 100SAH 2 Kδ,

                                        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 δ 0 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 =                                   k
                                                                                          
                                                                     V Pbsk ,ak ,h , Vh+1   ,
                                                                              h    h
                                                        k=1 h=1
                                                          H
                                                        K X
                                                        X
                                               T6 =                                  k
                                                                                         
                                                                     V Psk ,ak ,h , Vh+1   ,
                                                                              h    h
                                                        k=1 h=1

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

F.1.1    Bounding T2

Recall that when proving (35a), we have demonstrated that (see (66))

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

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


    Combining Lemma 26 with (114), we can readily derive

                    460                      1                      1p
                        r                               r
               T2 ≤       2SAH(log2 K) log 0 T5 + 12 SAH(log2 K) log 0 2Kvar1
                     9                       δ                      δ
                                                  1
                          + 157SAH (log2 K) log 0
                                    2
                                                                                                                                              (116)
                                                  δ
with probability at least 1 − 4SAHKδ 0 .

Proof of Lemma 26. For notational convenience, let us define the variance of Rh (s, a) as vh (s, a).
   Firstly, we control each σ                    rhk (skh , akh ))2 with vh (s, a). Fix (s, a, h, k). Applying Lemma 17 shows
                             bhk (skh , akh ) − (b
that, with probability at least 1 − 2δ ,      0

                                                                       2                             1
                       Nhk (s, a) σ bhk (skh , akh ) − rbhk (skh , akh )     ≤ 3Nhk vh (s, a) + H 2 log 0 .              (117)
                                                                                                       δ
This allows us to deduce that, with probability exceeding 1 − 2SAHKδ 0 ,
                  X                                              2         X                              X H 2 log 10
                           bhk (skh , akh ) − rbhk (skh , akh )
                           σ                                             ≤3            vh (skh , akh ) +                     δ

                   k,h                                                        k,h                            k,h
                                                                                                                 Nhk (skh , akh )
                                                                              X                                                     1
                                                                         ≤3            vh (skh , akh ) + 2SAH 3 (log2 K) log           .      (118)
                                                                                                                                    δ0
                                                                              k,h


                                                                              41
   It then suffices to bound the sum                        k,h vh (sh , ah ). Towards this end, let
                                                                     k    k
                                                        P

                                                                        " H                                        #
                                                                         X
                                                  Vehk (s) := Eπk                   vh0 (sh0 , ah0 ) sh = s
                                                                            h0 =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 ) =                                         k
                                                                                        esk − Psk ,ak ,h , Veh+1
                                                                                          h+1   h h
              k=1 h=1                            k=1                   k=1      h=1
                                                                    v
                                                                    u K H
                                                                    u XX                             1            1
                                                                 ≤ 2t2                           log 0 + 3H 2 log 0                                (119)
                                                                                           k
                                                                                               
                                                                          V Psk ,ak ,h , Veh+1
                                                                              h h                   δ            δ
                                                                               k=1 h=1

with probability at least 1 − 2SAHKδ 0 . Moreover, invoking Lemma 15 once again reveals that
            H
          K X
          X
                                     k
                                                 
                    V Psk ,ak ,h , Veh+1
                          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                                                   H 
                                                                        K X
                    X                               2            2  X                 2                                                 2 
                +                       k
                                      Veh+1 (skh+1 ) − Vehk (skh )    +       Vehk (skh ) −                                           k
                                                                                                                       Psk ,ak ,h , Veh+1
                                                                                                                           h   h
                    k=1 h=1                                                             k=1 h=1
             v
                     H
                   K X                                    H
                                                        K X
                                               1                                       1
             u
             u     X                                    X
          ≤ 2 8H       V Psk ,ak ,h , Vh+1 log 0 + 2H 2
                                                            vh (skh , akh ) + 3H 4 log 0
                                        k
                                          
             t   4                    e
                           h h                δ                                       δ
                        k=1 h=1                                                           k=1 h=1
                      H
                    K X
                    X                                                  1
          ≤ 4H 2                  vh (skh , akh ) + 42H 4 log                                                                                      (120)
                                                                       δ0
                    k=1 h=1

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

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δ 0 ,
                                                       s
                                                         2vh (s, a) log δ10  H log 10
                              rbh (s, a) − rh (s, a) ≤
                                k
                                                                            + k δ .                     (122)
                                                            Nh (s, a)
                                                               k             Nh (s, a)

As a result, we obtain
                                                  s                             !
                                     H
                                   K X
                                   X    2v h (sk , ak ) log 1
                                                              0   H  log  1
                                                                           0
                       |Tq1 | ≤                h    h
                                               k (sk , ak )
                                                            δ
                                                                + k k δk
                                k=1 h=1
                                            N h    h    h        Nh (sh , ah )
                                                          v
                                                          uK H
                                                     1 u                                                 1
                                r
                                                            XX
                              ≤ 4SAH(log2 K) log 0 · t             vh (skh , akh ) + 2SAH 2 (log2 K) log 0 .              (123)
                                                    δ                                                   δ
                                                                               k=1 h=1

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

Consequently, we arrive at

                                                                                          1                         1
                                              r
                                   |Tq1 | ≤       8SAHKvar1 (log2 K) log                     + 20SAH 2 (log2 K) log 0 .   (125)
                                                                                          δ0                       δ

    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 .              (126)
                                                                                 h+1        h   h
                                                               k=1 h=1

Applying Lemma 15 shows that, with probability at least 1 − 2SAHKδ 0 ,
                   v
                   u K H
                                               π k ) log 1 + 3H log 1
                   u XX
          |T2 | ≤ 2t2
           q                  V(Psk ,ak ,h , Vh+1
                                  h h                    δ0           δ0
                      k=1 h=1
                   v
                   u K H
                   u XX                                                                1          1
                ≤ 2t4                           ? ) + V(P k k , V ?
                                                                      h+1 − Vh+1 ) log 0 + 3H log 0 .
                                                                             πk                                           (127)
                                                                                  
                               V(Psk ,ak ,h , Vh+1          sh ,ah ,h
                                    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
      H D
    K X                                                              E
    X                                                          k
≤             Psk ,ak ,h − esk , (Vh+1
                                   ?      π
                                       − Vh+1 )2
                   h       h         h+1
    k=1 h=1



                                                                                     43
            H
          K X             n                                                             k                                                o
                                                                                                                                       πk
          X
   + 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
           H
         K X
                                    π k ) log 1
   u
   u     X
≤ 2t8H 2                     ?
             V(Psk ,ak ,h , Vh+1 − Vh+1
                 h h                          δ0
              k=1 h=1
                    H 
                  K X
                  X                                                                                   1
          + 2H                 Vh? (skh ) − rh (skh , akh ) − Psk ,ak ,h , Vh+1
                                                                            ?
                                                                                          + 3H 2 log      .                             (128)
                                                                   h      h                            δ0
                  k=1 h=1

Here, (128) holds with probability at least 1 − 2SAHKδ 0 , a consequence of Lemma 15 and Lemma 16.
   To further bound the right-hand side of (128), we develop the following upper bound:
      H 
    K X
    X                                                                 
               Vh? (skh ) − rh (skh , akh ) − Psk ,ak ,h , Vh+1
                                                            ?
                                                    h   h
    k=1 h=1
        K                            XK              H                     H
                                                                           K X
        X                     k              k         X                 X
    =         V1? (sk1 ) − V1π (sk1 ) +   V1π (sk1 ) −   rh (skh , akh ) +     esk                                              ?
                                                                                                                − Psk ,ak ,h , Vh+1 .   (129)
                                                                                                          h+1        h   h
        k=1                                   k=1                 h=1                       k=1 h=1

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

with probability at least 1 − 2SAHKδ 0 . It then implies the validity of the following bound with probability
exceeding 1 − 8SAHKδ 0 :
                      H 
                    K X
                    X                                                                   
                                   Vh? (skh ) − rh (skh , akh ) − Psk ,ak ,h , Vh+1
                                                                                ?
                                                                      h       h
                    k=1 h=1
                                               v
                                               u K H
                                                                     ? ) log 1 + 55H log 1 .
                                               u XX
                    ≤ T1 + T2 + T3 + 2|T4 | + 2t2    V(Psk ,ak ,h , Vh+1                                                                (131)
                                                         h h                 δ0          δ0
                                                               k=1 h=1

Combining these bounds with (128), 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    + 262H 2 log 1
              ≤ 4H T1 + T2 + T3 + 2|T4 | + 2t2                    ? ) log
                                                   V(Psk ,ak ,h , Vh+1       0
                                                                                                                                        (132)
                                                       h h                 δ                  δ0
                                                                 k=1 h=1

                                                            PK PH
with probability at least 1 − 8SAHKδ 0 . If we define T10 = k=1 h=1 V(Psk ,ak ,h , Vh+1
                                                                                      ?
                                                                                        ), then substituting
                                                                            h h
(132) into (127) yields: with probability exceeding 1 − 10SAHKδ , 0

                                   v                                          !
                              1                                             1       1              1
                  r                u                              r
                                   u
        |Tq2 | ≤ 2 8Kvar1 log 0 + 8 H T1 + T2 + T3 + 2|T4 | + 2 2T10 log 0 log 0 + 107H log 0
                                   t
                              δ                                            δ        δ             δ

                            1                                   1             1
                   r              r
               ≤ 11 T10 log 0 + 16 H(T1 + T2 + T3 + 2|T4 |) log 0 + 115H log 0 .                       (133)
                           δ                                   δ             δ


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

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

                                       1                        1                         1
               r                            r
     |T4 | ≤ 36 SAHT10 (log2 K) log 0 + 32 H(T1 + T2 + T3 ) log 0 + 306SAH 2 (log2 K) log 0 .                                                                               (134)
                                      δ                        δ                         δ

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δ 0 , one has

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

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 −                                 k
                                                                 Pbsk ,ak ,h , Vh+1
                          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                       (136)
                          h     h                                   h      h                                           h   h              h   h
              k,h                                                                                           k,h
                                    X
                       + 2H                                               k
                                              Pbsk ,ak ,h − Psk ,ak ,h , Vh+1
                                                 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                                                              k
                                                                                                                                          Pbsk ,ak ,h − Psk ,ak ,h , Vh+1
                          h     h                                  h       h               h    h                                             h   h       h   h
              k,h                                        k,h                                                                        k,h

        = T5 + T7 + 2HT1 .                                                                                                                                                  (137)

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                                                                            (138)
                                                                           h       h
                                                          k,h

with probability exceeding 1 − 2SAHKδ 0 .

   In view of Lemma 27, it suffices to bound T6 =                      ,ak ,h , Vh+1 ). Given that Var(X + Y ) ≤
                                                                                 k
                                                         P
                                                             k,h V(Psk
                                                                     h h
2(Var(X) + Var(Y )) holds for any two random variables X, Y , we have
               X                            X                           X
          T6 =                     k
                                         ≤2                   ?
                                                                    +2                       k      ?
                                                                                                      
                   V Psk ,ak ,h , Vh+1        V Psk ,ak ,h , Vh+1            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
                     ≤ 3Kvar1 +                                                ?
                                                                                                    − 3var1           +2                           k      ?
                                                                                                                                                                            (139)
                                                                                                                                                             
                                                               V Psk ,ak ,h , Vh+1                                                 V Psk ,ak ,h , Vh+1 − Vh+1   .
                                                                   h h                                                                    h   h
                                              k=1        h=1                                                               k,h

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



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

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


   Combining Lemma 28 and Lemma 29 with (139), we see that with probability at least 1 − 6SAHKδ 0 ,
                             X
                        T6 =                   k
                               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 .                                                       (141)

This taken collectively with Lemma 27 yields, with probability at least 1 − 8SAHKδ 0 ,
                             X
                       T5 =                     k
                               V(Pbsk ,ak ,h , Vh+1 ) ≤ 40Kvar1 + 80HT2 + 398BSAH 3 .                                                (142)
                                                  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                  Rh0 (sh0 , ah0 ) sh = s .
                                                                  h0 =h

        k
Then V h (s) ≤ var1 ≤ H 2 . It then follows that
                              H                                                 H
                              X                                                 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 .             (143)
                                                                                              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δ 0 ,
                          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 0 + 3H 2 log 0 .                                               (144)
                                                                 
                                                 h h                 δ            δ
                                              k=1 h=1




                                                                           46
Regarding the sum of variance terms on the right-hand side of (144), 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                                                                     H 
                                                                                                 K X
                           X                            k                 2       k       2  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
                          H
                        K X                                     H
                                                              K X
                                                     1                                       1
                  u
                  u     X                    k                X
               ≤ 2t8H 4     V Psk ,ak ,h , V h+1 log 0 + 2H 2     Rh (skh , akh ) + 3H 4 log 0                                                                           (145)
                                                
                                h h                 δ                                       δ
                               k=1 h=1                                                                           k=1 h=1

with probability at least 1 − 2SAHKδ 0 . 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                                    K X H
                                    X                        k            X                                   1
                                            V(Psk ,ak ,h , V h+1 ) ≤ 4H 2
                                                                                  Rh (skh , akh ) + 42H 4 log 0 .                                                        (146)
                                                h h                                                          δ
                                    k=1 h=1                               k=1 h=1

   Substituting (146) into (144) gives
                                                                                        v
            H
          K X                                                        H                          H
                                                                                              K X
                                                                                                                  ? ) log 1 + 21H 2 log 1 ,
                                                                                        u
          X                                                          X       k k        u     X
                                       ?
                       V(Psk ,ak ,h , Vh+1 )≤                              V 1 (s1 ) + 2t8H 2     V(Psk ,ak ,h , Vh+1
                               h    h                                                                 h h                 δ0            δ0
          k=1 h=1                                                    k=1                                  k=1 h=1

thus indicating that
                         H
                       K X                                                          K
                       X                                                            X         k                            1                       1
                                                    ?
                                    V(Psk ,ak ,h , Vh+1 )≤2                               V 1 (sk1 ) + 84H 2 log              ≤ 2Kvar1 + 84H 2 log 0 .
                                                    h       h                                                              δ0                     δ
                       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 
   =               Psk ,ak ,h , (Vh+1
                                  k      ?
                                      − Vh+1 )2 −                                                k
                                                                                   Psk ,ak ,h , Vh+1    ?
                                                                                                     − Vh+1
                       h   h                                                         h    h
         k,h
       X                                                                             
   =               Psk ,ak ,h − esk , (Vh+1
                                        k      ?
                                            − Vh+1 )2
                       h   h                h+1
         k,h
                       X                                                                                                          2 
                   +           (Vh+1
                                 k
                                     (skh+1 ) − Vh+1
                                                 ?
                                                     (skh+1 ))2 −                                                 k
                                                                                                    Psk ,ak ,h , Vh+1    ?
                                                                                                                      − Vh+1
                                                                                                      h      h
                       k,h
       X                                                                                    X                                                                        2 
   =               Psk ,ak ,h − esk , (Vh+1
                                        k      ?
                                            − 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
                                                                                                                                                                         (147)
According to Lemma 15 and Lemma 16, we see that with probability exceeding 1 − δ 0 ,
                   X
                       Psk ,ak ,h − esk , (Vh+1
                                            k      ?
                                                − Vh+1 )2
                                                            h   h           h+1
                                     k,h


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


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


It then follows that, with probability at least 1 − 2δ 0 ,
   X                                   s         X                             X
                       k      ?
                                    ≤ 4 BSAH 3                            + 4H   bkh (skh , akh ) + 3BSAH 3 ,   (150)
                                                                   k
                                                                        
       V Psk ,ak ,h , Vh+1 − Vh+1                   V Psk ,ak ,h , Vh+1
            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 (39g) − (39f) as follows, with (39a), (39c), (39d) and (39e) replaced
by (116), (134) (142) and (141), 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 0 ,
                                   p                 δ
                            T4 ≤ BSAHT10 + 32 BH(T1 + T2 + T3 ) + BSAH 2 ,
                                                     p

                            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 δ10 . In addition, it follows from Lemma 28 that

                                                   T10 ≤ 2Kvar1 + 80BH 2 .

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

One can thus conclude the proof by recalling that δ 0 = 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 δ 0 is defined as δ 0 = 200SAH
                                         δ
                                           2 K 2 , and that we have demonstrated in (66) that



        460                       1
              r
   T2 ≤       2SAHT5 (log2 K) log 0
         9                        δ
                                1                                           2  1088                    1
              r                   sX 
           + 4 SAH(log2 K) log 0       bhk (skh , akh ) − rbhk (skh , akh )
                                       σ                                        +     SAH 2 (log2 K) log 0 .           (152)
                                δ                                                  9                    δ
                                               k,h


To bound the right-hand side of (152), we resort to the following lemma.

Lemma 30. With probability at least 1 − 4SAHKδ 0 , one has
                       X                                                                            1
                                                  rhk (skh , akh ))2 ≤ 6Kvar2 + 242H 2 (log2 K) log 0 .
                              bhk (skh , akh ) − (b                                                                    (153)
                                                                    
                              σ
                                                                                                   δ
                       k,h


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

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




   Combining Lemma 30 with (152) gives: with probability at least 1 − 4SAHKδ 0 ,

                    460                        1                         1p
                        r                             r
               T2 ≤       2SAHT5 (log2 K) log 0 + 12 SAH(log2 K) log 0 2Kvar2
                     9                        δ                          δ
                                                  1
                          + 157SAH (log2 K) log 0 .
                                     2
                                                                                                                       (156)
                                                  δ

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 (123), we see that with probability
exceeding 1 − 6SAHKδ 0 ,
                                              v
                                              uK H
                                           1 u                                                 1
                       r
                                                 XX
                |T1 | ≤ 4SAH(log2 K) log 0 · t
                 q                                       vh (skh , akh ) + 2SAH 2 (log2 K) log 0
                                           δ                                                  δ
                                                 k=1 h=1

                                                  1                            1
                       r
                      ≤ 8SAHKvar2 (log2 K) log 0 + 20SAH 2 (log2 K) log 0 .
                                                 δ                             δ
In addition, from Lemma 15 and the definition of var2 , we see that
                                                         1                 1
                                           r
                                  |T2 | ≤ 2 2Kvar2 log 0 + 3H log 0
                                   q                                                                 (157)
                                                         δ                 δ
with probability at least 1 − 2SAHKδ 0 . Therefore, with probability at least 1 − 8SAHKδ 0 , it holds that
                                                         1                         1
                              r
                       T4 ≤ 4 2SAHKvar2 (log2 K) log 0 + 23SAH 2 (log2 K) log 0 .                      (158)
                                                        δ                          δ

F.2.3    Bounding T5 and T6

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

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

Lemma 32. With probability exceeding 1 − 4SAKHδ 0 , it holds that
                                     s
                              πk
    X                                      X                            X
       V Psk ,ak ,h , Vh+1 − Vh+1 ≤ 4 BH 2
                       k
                                                                   + 4H   bkh (skh , akh ) + 3BSAH 3 .
                                                            k
                                                                 
                                             V Psk ,ak ,h , Vh+1
                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δ 0 ,
                                             πk                                πk
                           X                          X
                    T6 ≤ 2                         +2                   k
                                                                                  
                             V Psk ,ak ,h , Vh+1        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 .                                                     (161)
Taking this result together with Lemma 27 gives, with probability exceeding 1 − 8SAHKδ 0 ,
                            X
                       T5 =                      k
                                                       ≤ 40Kvar2 + 80HT2 + 398BSAH 3 .                                                    (162)
                                                     
                                V Pbsk ,ak ,h , Vh+1
                                             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                                      #
                  qk (s, a) = V(Ps,a,h , V πk )
                                                                                                                 X
                  R h                     h+1                                 and              Vqhk (s) = E                 qk 0 (sh0 , ah0 )
                                                                                                                            Rh                      sh = s .
                                                                                                                    h0 =h

It is easily seen that Vqhk (s) ≤ var2 ≤ H 2 .
    We also make the observation that
                                      H                                                         H
                                      X                                 k                       X
                                                                  π
                                                  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 )
                                                                                                      R h h h           1    1
                                                                                                h=1
                                                                                                H
                                                                                                X
                                                                                           =              esk                        k
                                                                                                                    − Psk ,ak ,h , Vqh+1 .                         (163)
                                                                                                            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δ 0 ,
                              K     H
                                                                     !
                                                       πk
                            X      X
                                                            − Vq (s )
                                                                k  k
                                                          
                                      V Psk ,ak ,h , V                                   h+1          1     1
                                                                        h    h
                                                  k=1      h=1
                                                     v
                                                     u K H
                                                     u XX                             1            1
                                                  ≤ 2t2                           log 0 + 3H 2 log 0 .                                                             (164)
                                                                            k
                                                                                
                                                           V Psk ,ak ,h , Vqh+1
                                                               h h                   δ            δ
                                                                k=1 h=1

Further, it is observed that with probability at least 1 − 2SAHKδ 0 ,
             H
           K X
           X
                                      k
                                                          
                     V Psk ,ak ,h , Vqh+1
                              h       h
           k=1 h=1
                 H 
               K X
               X                                                                                    2 
           =                  Psk ,ak ,h , (Vqh+1
                                              k
                                                  )2 −                                     k
                                                                            Psk ,ak ,h , Vqh+1
                                      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                                                      H
                                                                            K X                                                                     2        
                     X                                  2            2  X                                                   2 
                 +                          k
                                          Vqh+1 (skh+1 ) − Vqhk (skh )    +                                         Vqhk (skh ) − Psk ,ak ,h , Vqh+1
                                                                                                                                                 k
                                                                                                                                                h    h
                     k=1 h=1                                                                     k=1 h=1
              v
                      H
                    K X                                       H
                                                            K X
                                                   1            qh (sk , ak ) + 3H 4 log 1 .
              u
              u     X                                       X
           ≤ 2t8H 4                            log 0 + 2H 2                                                                                                        (165)
                                         k
                                             
                        V Psk ,ak ,h , Vqh+1                    R    h h
                            h h                   δ                                      δ0
                         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
                k
hPsk ,ak ,h , Vqh+1 i. It then follows that
   h   h

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

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


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

This concludes the proof.

Proof of Lemma 29. A little algebra gives
                             πk
  X
                      k
                                 
      V Psk ,ak ,h , Vh+1 − Vh+1
              h       h
  k,h
      X                                                        k                                                                     k     2 
  =           Psk ,ak ,h , (Vh+1
                             k      π
                                 − 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
                                   k      π
                                       − Vh+1 )2
                      h       h           h+1
        k,h
                      X                                                  k                    2                                                    k     2 
              +                     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 
  =           Psk ,ak ,h − esk , (Vh+1
                                   k      π
                                       − 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
                                                                                                                                                                                              (167)

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


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


It then follows that
                                                                          s
   X                                                    k                         X                          X
                          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                                                     (171)
                  h       h                                                                                               h       h
   k,h                                                                                              k,h                                                    k,h


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




                                                                                                                  52
F.2.4   Putting all pieces together

Recall that B = 4000(log2 K)3 log(3SA) log δ10 . The last step is to rewrite the inequalities (39g) − (39f) as
follows with (39a), (39c), (39d) and (39e) replaced by (156),(158) (162) and (161) 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 0 ,
                                        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 δ 0 . Solving the inequalities listed above, we can
readily conclude that
                                                       p                               
                    Regret(K) = T1 + T2 + T3 + T4 ≤ O         BSAHKvar2 + BSAH 2 .                       (172)

This finishes the proof by recalling that δ 0 = 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 0 ≥ 1. For any algorithm, there exists an MDP instance with S states, A
actions, and horizon H, such that the regret in K 0 episodes is at least
                                                            √                   
                         Regret(K 0 ) = Ω f (K 0 ) = Ω min       SAH 3 K 0 , K 0 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 0 ≥ C0 SAH for some constant C0 > 0, the minimax regret lower bound is Ω( SAH 3 K 0 ).
Hence, it suffices for us to focus on the regime where K 0 ≤ 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
action b in state y with probability at least 1 − 10
                                                   1
                                                     , 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 0 ≤ C4 H, the minimax
regret is at least Ω(K 0 H 2 ) = Ω(K 0 H). When C4 H ≤ K 0 ≤ C0 SAH = 4C0 H, the minimax regret is at least
Ω(C4 H 2 ) = Ω(K 0 H). This concludes the proof.

    With Lemma 33, we are ready to prove Theorem 12. Let M be the hard instance for K 0 = max 10          Kp, 1
                                                                                                       1

constructed in the proof of Lemma 33. We construct an MDP M0 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.

                                                                                   i=1 are i.i.d. Bernoulli
It can be easily verified that v ? ≤ pH. Let X = X1 + X2 + · · · + Xk , where {Xi }K
random variables with mean p. Let g(X, K 0 ) denote the minimax regret on the hard instance M in X
episodes. Given that g(X, K 0 ) is non-decreasing in X, one sees that

                                          Regret(K) ≥ E g(X, K 0 ) .
                                                                 


   • In the case where Kp ≥ 10, Lemma 17 tells us that with probability at least 1/2, X ≥ 10
                                                                                          1
                                                                                             Kp = K 0 , and
     then it holds that
                     1               1          1     n√                   o     p
        E g(X, K 0 ) ≥ g(K 0 , K 0 ) = f (K 0 ) = Ω min    SAH 3 K 0 , K 0 H    = Ω( SAH 3 Kp, KHp).
          
                        2             2          2

                                                                                        30 , one has X ≥ 1.
   • In the case where Kp < 10, with probability exceeding 1 − (1 − p)K ≥ (1 − e−Kp ) ≥ Kp
     Then one has
                                        Kp                   Kp
                           E g(X, K 0 ) ≥      · g(1, K 0 ) =    · 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). Note that p ≤ 1/4. We
would like to 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.

   • For any action a and h, set Ps2 ,a,h = es2 and ch (s2 , a) = 0.
   • For any action a 6= a? and h, set Ps1 ,a,h = es2 and ch (s2 , a) = 1.
   • Set Ps1 ,a? ,h = es1 and ch (s1 , a? ) = p.

It can be easily checked that c? = Hp by choosing a? for each step. To identify the correct action a? for at
least half of the H steps, we need Ω(H) episodes, which 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)
                                                                      2    . Then the minimax regret is at least

                                      Ω K(H − c? ) = Ω KH 2 (1 − p)
                                                                        


                                              p , the minimax regret is at least
when K ≤ C5 H. In the case where C5 H ≤ K ≤ 100H

                                          Ω H(H − c? ) = Ω H 2 (1 − p) .
                                                                     


   For K ≥ 100Hp , we let M be the hard instance with the same transition as that in the proof of Lemma 33,
and set the cost as 10 2 for state x and 1 for state y with respect to K 0 = Kp/10 ≥ 10H. Let M0 be the MDP
such that: in the first step, with probability p, the learner transitions to a copy of M, and with probability


                                                       54
1 − p, the learner transitions to a dumb state with 0 cost. Then we have c? = Θ(Hp). It follows from
Lemma 17 that, with probability exceeding 1/2, one has X ≥ 13 Kp − log 2 ≥ 16 Kp. Then one has

                                          1      √                  p
                                            Ω min    H 3K 0, K 0H   = Ω H 3 Kp .
                                                                              
                           Regret(K) ≥
                                          2
The proof is thus completed by combining the above minimax regret lower bounds for the three regimes
                            p ] and K ∈ ( p , ∞].
K ∈ [1, C5 H], K ∈ (C5 H, 100H           100H



G.3     Proof of Theorem 14
When K ≥ SAH/p, the lower bound in Theorem 12 readily applies because the regret is at least Ω( SAH 3 Kp)
                                                                                               p

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 s0 such that Ps,a,h,s0 = 1 and Ps,a,h,s00 = 0 for any s00 6= s0 . 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
 2 -optimal policy, the learner needs to identify a for the first 2 steps, requiring at least Ω(HA) rounds in
H                                                        ?            H

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
at least 21 , s1 (i) is visited for at least 10S
                                              K
                                                 ≥ 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
                                             S , we know that s1 (i) is visited for at least one time. Therefore, it
probability at least 1 − (1 − S1 )K ≥ 0.0001 K
holds that Regreti (K) ≥ Ω( S ). Summing over i, we obtain
                             KH


                                                   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.
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.


                                                          55
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 learning 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.
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.


                                                     56
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.
Li, G., Shi, L., Chen, Y., Chi, Y., and Wei, Y. (2023a). Settling the sample complexity of model-based offline
  reinforcement learning. accepted to the Annals of Statistics.


                                                     57
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. (2024b). 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. (2023b). Minimax-optimal reward-agnostic exploration in reinforcement
  learning. arXiv preprint arXiv:2304.07278.
Li, Y., Wang, R., and Yang, L. F. (2021c). Settling the horizon-dependence of sample complexity in
  reinforcement 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.
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.



                                                       58
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
  complexity 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.
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.


                                                       59
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
