Datasets:
Towards Instance-Optimal Offline Reinforcement Learning with Pessimism
Ming Yin 1,2 and Yu-Xiang Wang1
1Department of Computer Science, UC Santa Barbara 2Department of Statistics and Applied Probability, UC Santa Barbara ming_yin@ucsb.edu yuxiangw@cs.ucsb.edu
Abstract
We study the offline reinforcement learning (offline RL) problem, where the goal is to learn a reward-maximizing policy in an unknown Markov Decision Process (MDP) using the data coming from a policy $\mu$ . In particular, we consider the sample complexity problems of offline RL for finite-horizon MDPs. Prior works study this problem based on different data-coverage assumptions, and their learning guarantees are expressed by the covering coefficients which lack the explicit characterization of system quantities. In this work, we analyze the Adaptive Pessimistic Value Iteration (APVI) algorithm and derive the suboptimality upper bound that nearly matches
In complementary, we also prove a per-instance information-theoretical lower bound under the weak assumption that $d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) > 0$ if $d _ { h } ^ { \pi ^ { \star } } ( s _ { h } , a _ { h } ) > 0$ . Different from the previous minimax lower bounds, the per-instance lower bound (via local minimaxity) is a much stronger criterion as it applies to individual instances separately. Here $\pi ^ { \star }$ is a optimal policy, $\mu$ is the behavior policy and $d _ { h } ^ { \mu }$ is the marginal state-action probability. We call (1) the intrinsic offline reinforcement learning bound since it directly implies all the existing optimal results: minimax rate under uniform data-coverage assumption, horizon-free setting, single policy concentrability, and the tight problem-dependent results. Later, we extend the result to the assumption-free regime (where we make no assumption on $\mu$ ) and obtain the assumption-free intrinsic bound. Due to its generic form, we believe the intrinsic bound could help illuminate what makes a specific problem hard and reveal the fundamental challenges in offline RL.
1 Introduction
In offline reinforcement learning (offline RL Levine et al. [2020], Lange et al. [2012]), the goal is to learn a reward-maximizing policy in an unknown environment (Markov Decision Process or MDP) using the historical data coming from a (fixed) behavior policy $\mu$ . Unlike online RL, where the agent can keep interacting with the environment and gain new feedback by exploring unvisited state-action space, offline RL usually populates when such online interplays are expensive or even unethical. Due to its nature of without the access to interact with the MDP model (which causes the distributional mismatches), most of the literature that study the sample complexity / provable efficiency of offline RL (e.g. Le et al. [2019], Chen and Jiang [2019], Xie and Jiang [2020, 2021],
Yin et al. [2021a,b], Ren et al. [2021], Rashidinejad et al. [2021], Xie et al. [2021b]) rely on making different data-coverage assumptions for making the problem learnable and provide the near-optimal worst-case performance bounds that depend on their data-coverage coefficients. Those results are valuable in general as they do not depend on the structure of the particular problem, therefore, remain valid even for pathological MDPs. But is this good enough?
In practice, the empirical performances of offline reinforcement learning (e.g. Gulcehre et al. [2020], Fu et al. [2020, 2021], Janner et al. [2021]) are often far better than what those non-adaptive / problem-independent bounds would indicate. Although empirical evidence can help explain why we may observe better or worse performances on different MDPs, a systematic understanding of what types of decision processes and what kinds of behavior policies are inherently easier or more challenging for offline RL is lacking. Besides, despite the fact that a non-adaptive bound can learn even the pathological examples within the assumption family, there is no guarantee for the instances outside the family. However, practical offline reinforcement learning problems are usually beyond the scope of certain data-coverage assumptions, which limits the applicability of those results. Can we make as few assumptions as possible? Or even more, what can we guarantee when no assumption is made about offline learning?
Those motivate us to derive the provably efficient bounds that are adaptive to the individual instances but only require minimal assumptions so they can be widely applied in most cases. Ideally, such bounds should characterize the system structures of the specific problems, hold even for peculiar instances that do not satisfy the standard data-coverage assumptions, and recover the worst-case guarantees when the assumptions are satisfied. As mentioned in Zanette and Brunskill [2019], a fully adaptive characterization in RL is important as it might bring considerable saving in the time spent designing domain-specific RL solutions and in training a human expert to judge and recognize the complexity of different problems.
1.1 Our contribution
In this work, we provide the analysis for the adaptive pessimistic value iteration (APVI) (Algorithm 1) with finite horizon time-inhomogeneous (non-stationary) MDPs and derive a strong adaptive bound that is near-optimal under the weak assumption $d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) > 0$ if $d _ { h } ^ { \pi ^ { \star } } ( s _ { h } , a _ { h } ) > \bar { 0 }$ (Theorem 4.1). Specifically, our bound (quantity (1)) explicitly depends on the marginal importance ratios (between the optimal policy $\pi ^ { \star }$ and the behavior policy $\mu _ { . }$ ) and the per-step conditional variances. In addition, we provide an instance-dependent (local minimax) lower bound (Theorem 4.3) to certify (1) is nearly optimal at the instance level for offline learning and call it the intrinsic offline learning bound. The intrinsic bound has the following consequences.
• In the non-adaptive / worst-case regime (4.1-4.3), the intrinsic bound implies $\widetilde { O } ( H ^ { 3 } / d _ { m } \epsilon ^ { 2 } )$ complexity under the uniform data-coverage 2.1, $\tilde { O } ( H ^ { 3 } S C ^ { \star } / \epsilon ^ { 2 } )$ complexity under the single policy concentrability assumption 2.3 and $\widetilde { O } ( H / d _ { m } \epsilon ^ { 2 } )$ complexity when the sum of rewards is bounded by 1. All of those are optimal in their respectively regimes [Yin et al., 2021a, Rashidinejad et al., 2021, Xie et al., 2021b, Ren et al., 2021];
• In the adaptive domain (4.4), the intrinsic bound implies the tight problem-dependent counterpart of Zanette and Brunskill [2019], yields ${ \tilde { O } } ( H ^ { 3 } / n d _ { m } )$ fast convergence in the deterministic systems, has improved complexity in the partially deterministic systems and a family of highly mixing problems, and remains optimal when reducing to the tabular contextual bandits.
Beyond the above, due to the generic form of the intrinsic bound, we could come up with as many problem instances (that are of our interests) as possible and study their properties. In this sense, the intrinsic bound helps illuminate the fundamental nature of offline RL.
Furthermore, as a step towards assumption-free offline reinforcement learning, we build a modified AVPI and obtain an adaptive bound that could characterize the suboptimality gap in the state-action space that is agnostic to the behavior policy (Theorem 5.1). To the best of our knowledge, all of these results are the first of its kinds.
1.2 Related work
Finite sample analysis for offline reinforcement learning can be traced back to Szepesvári and Munos [2005], Antos et al. [2008a,b] for the infinite horizon discounted setting via Fitted Q-Iteration (FQI) type function approximation algorithms. [Chen and Jiang, 2019, Le et al., 2019, Xie and Jiang, 2021, 2020] follow this line of research and derive the information-theoretical bounds. Recently, Xie and Jiang [2021] considers the offline RL with only the realizability assumption, Liu et al. [2020], Chang et al. [2021] considers the offline RL without sufficient coverage and Kidambi et al. [2020], Uehara and Sun [2021] uses the model-based approach for addressing offline RL. Under those weak coverage assumption, their finite sample analysis are suboptimal (e.g. in terms of the effective horizon $( 1 - \gamma ) ^ { \bar { - } 1 } .$ ). Recently, Yin et al. [2021a,b], Ren et al. [2021] study the finite horizon case. In the linear MDP case, Jin et al. [2020] studies the pessimistic algorithm for offline policy learning under only the compliance assumption, and, concurrently, Xie et al. [2021a] proposes the general pessimistic function approximation framework with instantiation in linear MDP and Zanette et al. [2021] shows actor-critic style algorithm is near-optimal for linear Bellman complete model. In addition, Wang et al. [2021], Zanette [2021] prove some exponential lower bounds under their linear function approximation assumptions.
Among them, there are a few works that achieve the sample optimality under their respective assumptions. Under the uniform data coverage (minimal state-action probability $d _ { m } > 0$ ), Yin et al. [2021a] first proves the optimal ${ \cal \tilde { O } } ( H ^ { 3 } / d _ { m } \epsilon ^ { 2 } )$ complexity in the time-inhomogeneous MDP. Recently, Yin et al. [2021b] designs the offline variance reduction algorithm to achieve the optimal $\tilde { O } ( H ^ { 2 } / d _ { m } \epsilon ^ { 2 } )$ rate for the time-homogeneous case. Under the setting where the total cumulative reward is bounded by 1, Ren et al. [2021] obtains the horizon-free result with $\tilde { O } ( 1 / d _ { m } )$ . More recently, Rashidinejad et al. [2021] considers the single concentrability coefficient $\begin{array} { r } { C ^ { \star } : = \operatorname* { m a x } _ { s , a } d ^ { \pi ^ { \star } } ( s , a ) / d ^ { \mu } ( s , a ) } \end{array}$ and derives the upper bound $\tilde { O } [ ( 1 - \gamma ) ^ { - 5 } S C ^ { \star } / \epsilon ^ { 2 } ]$ in the infinite horizon setting which is recently improved by the concurrent work Xie et al. [2021b]. While those worst-case guarantees are desirable, none of them can explain the hardness of the individual problems.1
2 Preliminaries
Episodic non-stationary (time-varying) reinforcement learning. A finite-horizon Markov Decision Process (MDP) is denoted by a tuple $M = ( S , A , P , r , H , d _ { 1 } )$ [Sutton and Barto, 2018], where $s$ is the finite state space and $\mathcal { A }$ is the finite action space with $S : = | S | < \infty , A : = | A | < \infty$ . A nonstationary transition kernel $P _ { h } : S \times \mathcal { A } \times \mathcal { S } \mapsto [ 0 , 1 ]$ maps each state action $\left( s _ { h } , a _ { h } \right)$ to a probability distribution $P _ { h } ( \cdot | s _ { h } , a _ { h } )$ and $P _ { h }$ can be different across the time. Besides, $r : S \times A \mapsto \mathbb { R }$ is the expected instantaneous reward function satisfying $0 \leq r \leq 1$ . $d _ { 1 }$ is the initial state distribution. $H$ is the horizon. A policy $\pi = ( \pi _ { 1 } , \ldots , \pi _ { H } )$ assigns each state $s _ { h } \in S$ a probability distribution over actions according to the map $s _ { h } \mapsto \pi _ { h } ( \cdot | s _ { h } ) \forall h \in [ H ]$ . An MDP together with a policy $\pi$ induce a random trajectory $s _ { 1 } , a _ { 1 } , r _ { 1 } , \ldots , s _ { H } , a _ { H } , r _ { H } , s _ { H + 1 }$ with $s _ { 1 } \sim d _ { 1 } , a _ { h } \sim \pi ( \cdot | s _ { h } ) , s _ { h + 1 } \sim P _ { h } ( \cdot | s _ { h } , a ) , \forall h \in [ H ]$ and $r _ { h }$ is a random realization given the observed $s _ { h } , a _ { h }$ .
$Q$ -values, Bellman (optimality) equations. The value function $V _ { h } ^ { \pi } ( \cdot ) \in \mathbb { R } ^ { S }$ and $\mathbf { Q }$ -value function $Q _ { h } ^ { \pi } ( \cdot , \cdot ) \in \mathbb { R } ^ { S \times A }$ for any policy $\pi$ is defined as: $V _ { h } ^ { \pi } ( s ) ~ = ~ \mathbb { E } _ { \pi } [ \sum _ { t = h } ^ { H } r _ { t } | s _ { h } = s ]$ , $Q _ { h } ^ { \pi } ( s , a ) =$ $\begin{array} { r } { \mathbb { E } _ { \pi } [ \sum _ { t = h } ^ { H } r _ { t } | s _ { h } , a _ { h } \ = \ s , a ] } \end{array}$ , $\forall s , a \in \mathcal { S } , \mathcal { A } , h \in [ H ]$ . The performance is defined as $v ^ { \pi } : =$ $\begin{array} { r } { \mathbb { E } _ { d _ { 1 } } \left[ V _ { 1 } ^ { \pi } \right] = \mathbb { E } _ { \pi , d _ { 1 } } \left[ \sum _ { t = 1 } ^ { H } r _ { t } \right] } \end{array}$ , where we denote $V _ { h } ^ { \pi } , Q _ { h } ^ { \pi }$ as column vectors and $P _ { h } ~ \in ~ \mathbb { R } ^ { S A \times S }$ the transition matrix, then the vector form Bellman (optimality) equations follow $\forall h \in [ H ]$ : $\begin{array} { r } { Q _ { h } ^ { \pi } = r _ { h } + P _ { h } V _ { h + 1 } ^ { \pi } } \end{array}$ , $V _ { h } ^ { \pi } = \mathbb { E } _ { a \sim \pi _ { h } } [ Q _ { h } ^ { \pi } ]$ , $Q _ { h } ^ { \star } = r _ { h } + P _ { h } V _ { h + 1 } ^ { \star }$ , $V _ { h } ^ { \star } = \operatorname* { m a x } _ { a } Q _ { h } ^ { \star } ( \cdot , a )$ .In addition, we denote the per-step marginal state-action occupancy $d _ { h } ^ { \pi } ( s , a )$ as: $d _ { h } ^ { \pi } ( s , a ) : = \mathbb { P } [ s _ { h } =$ $s | s _ { 1 } \sim d _ { 1 } , \pi ] \cdot \pi _ { h } ( a | s )$ , which is the marginal state-action probability at time $h$ .
Offline setting and the goal. The offline RL requires the agent to find a policy $\pi$ such that the performance $v ^ { \pi }$ is maximized, given only the episodic data $\mathcal { D } = { ( s _ { h } ^ { \tau } , a _ { h } ^ { \tau } , r _ { h } ^ { \tau } , s _ { h + 1 } ^ { \tau } ) } _ { \tau \in [ n ] } ^ { h \in [ H ] }$ rolled out from some behavior policy $\mu$ . The offline nature requires we cannot change $\mu$ and in particular we do not assume the functional knowledge of $\mu$ . That is to say, given the batch data $\mathcal { D }$ and a targeted accuracy $\epsilon > 0$ , the offline RL seeks to find a policy $\pi _ { \mathrm { a l g } }$ such that $v ^ { \star } - v ^ { \pi _ { \mathrm { a l g } } } \leq \epsilon$ .
2.1 Assumptions in offline RL
We revise several types of assumptions proposed by existing studies that can yield provably efficient results. Recall $d _ { h } ^ { \mu } ( s _ { h } , a _ { h } )$ is the marginal state-action probability and $\mu$ is the behavior policy.
Assumption 2.1 (Uniform data coverage [Yin et al., 2021a]). The behavior policy obeys that $d _ { m } : =$ $\begin{array} { r } { \operatorname* { m i n } _ { h , s _ { h } , a _ { h } } d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) > 0 . } \end{array}$ . Here the infimum is over all the states satisfying there exists certain policy so that this state can be reached by the current MDP with this policy.
This is the strongest assumption in offline RL as it requires $\mu$ to explore each state-action pairs with positive probability. Under 2.1, it mostly holds $1 / d _ { m } \ge S A$ . This reveals offline learning is generically harder than the generative model setting [Agarwal et al., 2020] in the statistical sense. On the other hand, this is required for the uniform $O P E$ task in Yin et al. [2021a] as it seeks to simultaneously evaluate all the policies within the policy class and it is in general a harder task than offline learning itself.
Assumption 2.2 (Uniform concentrability Szepesvári and Munos [2005], Chen and Jiang [2019]).
For all the policies, $\begin{array} { r } { C _ { \mu } : = \operatorname* { s u p } _ { \pi , h } | | d _ { h } ^ { \pi } ( \cdot , \cdot ) / d _ { h } ^ { \mu } ( \cdot , \cdot ) | | _ { \infty } < \infty . } \end{array}$ .
This is a classical offline RL condition that is commonly assumed in the function approximation scheme (e.g. Fitted Q-Iteration). Qualitatively, this is a uniform data-coverage assumption that is similar to Assumption 2.1, but quantitatively, the coefficient $C _ { \mu }$ can be smaller than $1 / \bar { d _ { m } } \bar { }$ due the $d _ { h } ^ { \pi }$ term in the numerator.
Assumption 2.3 (Liu et al. [2019]). There exists one optimal policy $\pi ^ { \star }$ , s.t. $\forall s _ { h } , a _ { h } \ \in \ S , A ,$ , $d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) \ > \ 0$ if $d _ { h } ^ { \pi ^ { \star } } ( s _ { h } , a _ { h } ) > 0$ . We further denote the trackable set as $\mathcal C _ { h } : = { ( s _ { h } , a _ { h } )$ : $d _ { h } ^ { \tilde { \mu } } ( s _ { h } , a _ { h } ) > 0 }$ .
Assumption 2.3 is (arguably) the weakest assumption needed for accurately learning the optimal value $v ^ { \star }$ and we will use 2.3 for most parts of this paper. It only requires $\mu$ to trace the state-action space of one optimal policy and can be agnostic at other locations. Rashidinejad et al. [2021], Xie et al. [2021b] considers this assumption and provide analysis is based on the single concentrability coefficient $\begin{array} { r } { C ^ { \star } : = \operatorname* { m a x } _ { s , a } { d ^ { \pi ^ { \star } } ( s , a ) } / { d ^ { \mu } ( s , a ) } } \end{array}$ . The dependence on $C ^ { \star }$ makes their result less adaptive since there can be lots of locations that have the ratio ${ d ^ { \pi } } ^ { \star } ( s , a ) / { d ^ { \mu } } ( s , a )$ much smaller than $C ^ { \star }$ . Furthermore, what could we end up with when 2.3 is not met? We will provide our answers in the subsequent sections.
3 A warm-up case study: Vanilla Pessimistic Value Iteration
As a step towards the optimal and strong adaptive offline RL bound, we analyze the vanilla pessimistic value iteration (VPVI), a tabular counterpart of pessimistic value iteration (PEVI initiated in Jin et al. [2020]), to understand what is missing for achieving the fully adaptivity. In particular, VPVI relies on the model-based construction.
Model-based Components. Given data n $\begin{array} { r } { { \mathcal { D } } \ = \ \left{ \left( s _ { h } ^ { \tau } , a _ { h } ^ { \tau } , r _ { h } ^ { \tau } , s _ { h + 1 } ^ { \tau } \right) \right} _ { \tau \in [ n ] } ^ { h \in [ H ] } } \end{array}$ , we denote $n _ { s _ { h } , a _ { h } } : =$ $\begin{array} { r } { \sum _ { \tau = 1 } ^ { n } \mathbf { 1 } [ s _ { h } ^ { \tau } , { a } _ { h } ^ { \tau } \ = \ s _ { h } , { a } _ { h } ] } \end{array}$ be the total counts that vis construct the estimators for $\left( s _ { h } , a _ { h } \right)$ pair at time as: , then we use the $P _ { h }$ $r _ { h }$
if $n _ { s _ { h } , a _ { h } } > 0$ and $\widehat { P } _ { h } ( s ^ { \prime } | s _ { h } , a _ { h } ) = 1 / S , \widehat { r } _ { h } ( s _ { h } , a _ { h } ) = 0$ if $n _ { s _ { h } , a _ { h } } = 0$ . In particular, we use the word b“vanilla” as it directly mirrors Jin et al. [2020] with a pessimistic penalty of order $O ( H / \sqrt { n _ { s _ { h } , a _ { h } } } )$ . 2 With $\widehat { P } _ { h } , \widehat { r } _ { h }$ in Algorithm 2 (which we defer to Appendix), VPVI guarantees the following:
Theorem 3.1. Under the Assumption 2.3, denote $\begin{array} { r } { \bar { d } _ { m } : = \operatorname* { m i n } _ { h \in [ H ] } { d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) : d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) > 0 } } \end{array}$ . For any $0 < \delta < 1$ , there exists absolute constants $c _ { 0 } , C ^ { \prime } > 0$ , such that when $n > c _ { 0 } \cdot 1 / \bar { d } _ { m } \cdot \iota$ $( \iota = \log ( H S A / \delta ) )$ , with probability $1 - \delta$ , the output policy $\widehat { \pi }$ of VPVI satisfies
The full proof can be found in Appendix C. Theorem 3.1 makes some improvements over the existing works. First, it is more adaptive than the results with uniform data-coverage Assumption 2.1 (Yin et al. [2021a], Ren et al. [2021]). In addition, by straightforward calculation (3) can be bounded by $\tilde { O } ( \sqrt { H ^ { 4 } S C ^ { \star } / n } )$ which improves VI-LCB [Rashidinejad et al., 2021] by a factor of $H$ .3 Besides, the analysis of VPVI also improves the direct reduction of PEVI [Jin et al., 2020] in the tabular case by a factor $_ { S A }$ since their $\beta = S A H$ when $d = S A$ .
However, VPVI is not optimal as the dependence on horizon is $H ^ { 4 }$ which does not match the optimal worst case guarantee $H ^ { 3 }$ [Yin et al., 2021a] in the nonstationary setting. Also, the explicit dependence on $H$ in (3) possibly hides some key features of the specific offline RL instances. For example, no improvement can be made if the system has the deterministic transition.
Algorithm 1 Adaptive (assumption-free) Pessimistic Value Iteration or LCBVI-Bernstein
1: Input: Offline dataset $\boldsymbol { \mathcal { D } } = { ( \boldsymbol { s } _ { h } ^ { \tau } , \boldsymbol { a } _ { h } ^ { \tau } , \boldsymbol { r } _ { h } ^ { \tau } , \boldsymbol { s } _ { h + 1 } ^ { \tau } ) } _ { \tau , h = 1 } ^ { n , H }$ . Set $C _ { 1 } = 2 , C _ { 2 } = 1 4$ , failure probability $\delta$ .
2: Initialization: Set $\widehat { V } _ { H + 1 } ( \cdot ) 0$ . Set $\iota = \log ( H S A / \delta )$ . (if assumption-free, set $M ^ { \dagger } , \widehat { M } ^ { \dagger }$ as in Section 5.)
3: for time $h = H , H - 1 , \ldots , 1 \bullet$ do
4: Set $\widehat { Q } _ { h } ( \cdot , \cdot ) \gets \widehat { r } _ { h } ( \cdot , \cdot ) + ( \widehat { P } _ { h } \cdot \widehat { V } _ { h + 1 } ) ( \cdot , \cdot ) \mathrm { ~ } ( \mathrm { u s e } \widehat { r } _ { h } ^ { \dag } + ( \widehat { P } _ { h } ^ { \dag } \cdot \widehat { V } _ { h + 1 } )$ if assumption-free)
5: $\forall s _ { h } , a _ { h }$ , set $\begin{array} { r } { \Gamma _ { h } ( s _ { h } , a _ { h } ) = C _ { 1 } \sqrt { \frac { \operatorname { V a r } _ { \widehat { P } _ { s _ { h } , a _ { h } } } ( \widehat { r } _ { h } + \widehat { V } _ { h + 1 } ) \cdot \iota } { { n _ { s _ { h } , a _ { h } } } } } + \frac { C _ { 2 } H \cdot \iota } { n _ { s _ { h } , a _ { h } } } } \end{array}$ if $n _ { s _ { h } , a _ { h } } \ge 1$ , o.w. set to $\frac { C H \iota } { 1 }$ .
6: (If assumption-free, use C1qVarPb†sh,ah ( $\begin{array} { r } { C _ { 1 } \sqrt { \mathrm { V a r } _ { \widehat { P } _ { s _ { h } , a _ { h } } ^ { \dagger } } ( \widehat { r } _ { h } ^ { \dagger } + \widehat { V } _ { h + 1 } ) \cdot \iota / n _ { s _ { h } , a _ { h } } } + \frac { C _ { 2 } H \cdot \iota } { n _ { s _ { h } , a _ { h } } } } \end{array}$ C2H·ιn if nsh,ah ≥ 1, o.w. use 0.)
7: Set $\widehat { Q } _ { h } ^ { p } ( \cdot , \cdot ) \gets \widehat { Q } _ { h } ( \cdot , \cdot ) - \dot { \Gamma _ { h } } ( \cdot , \cdot )$ . Set $\overline { { { Q } } } _ { h } ( \cdot , \cdot ) \operatorname* { m i n } { \widehat { Q } _ { h } ^ { p } ( \cdot , \cdot ) , H - h + 1 } ^ { + }$ . // Pessmistic update
8: $\forall s _ { h }$ , Select $\begin{array} { r } { \widehat \pi _ { h } ( \cdot | s _ { h } ) \gets \operatorname * { a r g m a x } _ { \pi _ { h } } \langle \overline { Q } _ { h } ( s _ { h } , \cdot ) , \pi _ { h } ( \cdot | s _ { h } ) \rangle } \end{array}$ . Set $\widehat { V } _ { h } ( s _ { h } ) \gets \langle \overline { { Q } } _ { h } ( s _ { h } , \cdot ) , \widehat { \pi } _ { h } ( \cdot | s _ { h } ) \rangle$ .
9: end for
10: Output: $\left{ \widehat { \pi } _ { h } \right}$ .
4 Intrinsic Offline Reinforcement Learning bound
Now we go deeper to understand what is the more intrinsic characterization for offline reinforcement learning. From the study of VPVI, penalizing the Q-function by $\widetilde { O } ( H / \sqrt { n _ { s _ { h } , a _ { h } } } )$ is crude as it estimates the confidence width of ${ \widehat { Q } } _ { h }$ in Algorithm 2 too conservatively therefore loses the accuracy (the bound is suboptimal). This motivates us to use empirical standard deviation instead to create a more adaptive (and also less conservative) Bernstein-type confidence width as the pessimistic penalty:
and update $\widehat { Q } _ { h } \gets \widehat { Q } _ { h } - \Gamma _ { h }$ . On one hand, $\sqrt { \mathrm { V a r } _ { \widehat { P } _ { s _ { h } , a _ { h } } } ( \widehat { r } _ { h } + \widehat { V } _ { h + 1 } ) / n _ { s _ { h } , a _ { h } } }$ is a “less pessimistic” penalty than VPVI due to $\sqrt { \mathrm { V a r } _ { \widehat { P } } ( \widehat { r } _ { h } + \widehat { V } _ { h + 1 } ) } \le H$ and critically this design is more data-adaptive since it holds negative view towards the locations with high uncertainties and recommends the locations that we are confident about, as opposed to the online RL (which encourages exploration in the uncertain locations). Such principles are not reflected by the isotropic design in VPVI. On the other hand, it carries the extremely negative view towards fully agnostic locations ${ \widetilde { O } } ( H )$ which in turn causes the agent unlikely to choose them. We summarized the this adaptive pessimistic value
iteration (APVI) into the Algorithm 1, with $\widehat { P } _ { h } , \widehat { r } _ { h }$ defined in (2). APVI has the following guarantee.
bA sketch of the analysis is presented in Section B and Appendix F includes the full proof.
Theorem 4.1 (Intrinsic offline RL bound). Under the Assumption 2.3, denote $\bar { d } _ { m } : =$ $\mathrm { m i n } _ { h \in [ H ] } { d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) \ : \ d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) \ > \ 0 }$ . For any $0 ~ < ~ \delta ~ < ~ 1$ , there exists absolute constants $c _ { 0 } , C ^ { \prime } > 0$ , such that when $n > c _ { 0 } \cdot 1 / \bar { d } _ { m } \cdot \iota ( \iota = \log ( H S A / \delta ) )$ , with probability $1 - \delta$ , the output policy $\widehat { \pi }$ of APVI (Algorithm $I$ ) satisfies $\widetilde O$ hides log factor and higher order terms)
Remark 4.2. APVI (Algorithm $I$ ) can also be called LCBVI-Bernstein as it creates the offline counterpart of UCBVI in Azar et al. [2017]. However, to highlight that the resulting bound fully adapts to the specific system structure, we use the word “adaptive” instead.
APVI makes significant improvements in a lot of aspects. First and foremost, the dominate term is fully expressed by the system quantities that admits no explicit dependence on $H , S , A$ . To the best of our knowledge, this is the first offline RL bound that concretely depicts the interrelations within the problem when the problem instance is a tuple $( M , \pi ^ { \star } , \mu )$ : an MDP $M$ (coupled with the optimal policy $\pi ^ { \star }$ ) with the data rolling from an offline logging policy $\mu$ . As we will discuss later, this result indicates (nearly) all the optimal worst-case non-adaptive bounds (and clearly also the VPVI) under their respective regimes / assumptions. Thus, (5) is generic. More interestingly, Theorem 4.1 caters to the specific MDP structures and adaptively yields improved sample complexities (e.g. faster convergence in deterministic systems) that existing works cannot imply. Such features are crucial as it helps us to understand what type of problems are harder / easier than others, and even more, in a quantitative way. Last but not least, to illustrate this bound exhibits the intrinsic nature of offline RL, we prove a per-instance dependent information-theoretical lower bound that shares a similar formulation. The proof of Theorem 4.3 can be found in Appendix G.
Theorem 4.3 (Instance-dependent information theoretical offline lower bound). Denote $\begin{array} { c c c c c c } { { \mathcal G } } & { { : = } } & { { { ( \mu , M ) } } & { { : } } & { { \exists \pi ^ { \star } } } & { { s } } \end{array}$ .t. $d _ { h } ^ { \mu } ( s , a ) \quad > \quad 0 \quad i f \quad d _ { h } ^ { \pi ^ { \star } } ( s , a ) \quad > \quad 0 }$ . Fix an instance $\begin{array} { r l r l r } { { \mathcal { P } } } & { { } = } & { ( \mu , M ) } & { { } \in { } } & { { \mathcal { G } } } \end{array}$ . Let $\mathcal { D }$ consists of $n$ episodes and define $\begin{array} { r l } { \xi } & { { } = } \end{array}$ $\begin{array} { r } { \operatorname* { s u p } _ { h , s _ { h } , a _ { h } , s _ { h + 1 } , d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) \cdot \operatorname { V a r } _ { P _ { s _ { h } , a _ { h } } } ( V _ { h + 1 } ^ { \star } ) > 0 } \frac { P _ { h } ( s _ { h + 1 } | s _ { h } , a _ { h } ) \big ( V _ { h + 1 } ^ { \star } ( s _ { h + 1 } ) - \mathbb { E } _ { P _ { s _ { h } , a _ { h } } } ( V _ { h + 1 } ^ { \star } | ) \big ) } { \sqrt { 2 \cdot d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) \cdot \operatorname { V a r } _ { P _ { s _ { h } , a _ { h } } } ( V _ { h + 1 } ^ { \star } ) } } } \end{array}$ Ph(sh+1|sh,ah)(V ?h+1(sh+1)−EPsh,ah [V ?h+1]) . Let π to be the output of any algorithm. Define the local non-asymptotic minimax risk as
where $v ^ { \star } ( \mathcal { Q } )$ denotes the optimal value under the instance $\mathcal { Q }$ . Then there exists universal constants $c _ { 0 } , p , C > 0$ , such that if $\begin{array} { r } { { \bf \ddot { \sigma } } n \geq c _ { 0 } H ^ { 6 } \xi ^ { 4 } / ( \sum _ { h = 1 } ^ { H } \sum _ { s _ { h } , a _ { h } } { d _ { h } ^ { \pi } } ^ { \star } ( s _ { h } , a _ { h } ) \sqrt { \frac { \mathrm { V a r } { P _ { s _ { h } , a _ { h } } } ( V _ { h + 1 } ^ { \star } ) } { \zeta \cdot d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) } } ) ^ { 2 } } \end{array}$ , with constant probability $p > 0$ , Then we have (here $\zeta = H / \bar { d } _ { m , }$ ):
where $\mathcal { P } = ( \mu , M )$ and $M = \left( S , A , P , r , H , d _ { 1 } \right)$ .
The interpretation of Theorem 4.3 is: for any instance $\mathcal { P }$ , learning requires (7) (divided by $1 / \sqrt { n } )$ for any algorithm. Note this notion is significantly stronger than the previous minimax offline lower bounds [Yin et al., 2021a, Rashidinejad et al., 2021, Xie et al., 2021b, Jin et al., 2020] (where they only select a particular family of hard problems), therefore, their lower bounds in general do not hold for individual instances.
The quantity (1) nearly-matches the per-instance lower bound (7) (they deviate by a factor of $\zeta = \hat { H } / \hat { d } _ { m }$ due to the technical reason) and, in addition, we provide a matching minimax lower bound in Appendix H. These results certify Theorem 4.1 is not only adaptive but also near-optimal.
Hence, we call the quantity $\begin{array} { r l } & { \sum _ { h = 1 } ^ { H } \sum _ { ( s _ { h } , a _ { h } ) \in \mathcal { C } _ { h } } { d _ { h } ^ { \pi ^ { \star } } ( s _ { h } , a _ { h } ) \cdot \sqrt { \frac { \operatorname { V a r } _ { P _ { s _ { h } , a _ { h } } } ( r _ { h } + V _ { h + 1 } ^ { \star } ) } { n \cdot d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) } } } } \end{array}$ intrinsic offline reinforcement learning bound. In the sequel, we provide thorough discussions to explain the intrinsic bound embraces the fundamental challenges in offline RL and the strong adaptivity. The detailed technical derivations that are missing in Section 4.1-4.4 are deferred to Appendix I.

Figure 1: A visualization on how intrinsic learning bound subsumes existing best-known results: uniform visitation, single concentrability (partial coverage) and adaptive domain.
4.1 Optimality under Uniform data-coverage assumption
Under the uniform exploration Assumption 2.1 with parameter $d _ { m } : = \operatorname* { m i n } _ { h , s _ { h , } a _ { h } } d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) > 0$ Yin et al. [2021a] analyzes the model-based plug-in approach and obtains the optimal sample complexity $\widetilde { O } ( H ^ { 3 } / d _ { m } \epsilon ^ { 2 } )$ and shows $\Omega ( H ^ { 3 } / d _ { m } \epsilon ^ { 2 } )$ is also the lower bound. Indeed, this rate can ebe directly implied by the intrinsic RL bound via Cauchy inequality and the Sum of Total Variance (Lemma J.6):4
which translates to $\widetilde { O } ( H ^ { 3 } / d _ { m } \epsilon ^ { 2 } )$ complexity. Our result maintains the optimal worst-case guarantee when $\mu$ has the uniform data-coverage:
Proposition 4.4. Under Assumption 2.1 and apply Theorem 4.1, APVI achieves the sample complexity of minimax-rate $\widetilde { O } ( H ^ { 3 } / d _ { m } \epsilon ^ { 2 } )$ (Theorem 4.1 and Theorem G.2 in Yin et al. [2021a]).
Remark 4.5. We believe if the MDP is time-invariant, then by a modified construction of $\widehat { P }$ , $\widehat { r }$ in (2) our result will imply the minimax-rate of $\widetilde { O } ( H ^ { 2 } / d _ { m } \epsilon ^ { 2 } )$ as achieved in Yin et al. [2021b]. We include this discussion in Appendix I.
4.2 Bounded sum of total rewards and the Horizon-Free case
$\begin{array} { r } { r _ { h } \geq 0 , \sum _ { h = 1 } ^ { H } r _ { h } \in [ 0 , 1 ] } \end{array}$ f studies that follow the bounded sum of total rewards assumption: i.e. [Krishnamurthy et al., 2016, Jiang et al., 2017, Zhang et al., 2021]. Such a Jiang and Agarwal [2018]. In offline RL, Ren et al. [2021] derives the nearly horizon-free worst case bound $\widetilde { O } ( \sqrt { 1 / n d _ { m } } )$ for the time-invariant MDPs, under the Assumption 2.1. As a comparison, our Theorem 4.1 achieves the following guarantee for the time-varying (non-stationary) MDPs.
Proposition 4.6. Assume $r _ { h } \ge 0 ,$ , $\textstyle \sum _ { h = 1 } ^ { H } r _ { h } \leq 1$ . Then in the time-varying case AVPI (Theorem 4.1) outputs a policy $\widehat { \pi }$ such that the suboptimality gap $\boldsymbol { v } ^ { \star } - \boldsymbol { v } ^ { \widehat { \pi } }$ is bounded by $\widetilde { O } ( \sqrt { H / n d _ { m } } )$ with high bprobability under the Assumption 2.1.
The derivation is straightforward by using $\begin{array} { r } { \operatorname { V a r } _ { \pi ^ { \star } } ( \sum _ { h = 1 } ^ { H } r _ { h } ) \le 1 } \end{array}$ in (8). This proposition is interesting since it indicates when the MDP is non-stationary, $\widetilde { O } ( H / d _ { m } \epsilon ^ { 2 } )$ is required in the worst case even under $\textstyle \sum _ { h = 1 } ^ { H } r _ { h } \leq 1$ .5 The extra $H$ factor resembles the challenge that we have $H$ transitions $( P _ { 1 } , \dots , P _ { H } )$ to learn, as opposed to the bandit-type $1 / d _ { m } \epsilon ^ { 2 }$ result due to there is only one $P$ throughout (time-invariant). This reveals that one hardness in solving the MDP is in proportion to the number of different transition kernels within the MDP. Such a finding could help researchers understand the special settings like low switching cost in transitions [Bai et al., 2019] or nonstationarity [Cheung et al., 2020].
4.3 Optimality with Single Concentrability
In the finite horizon discounted setting, Rashidinejad et al. [2021] proposes the single policy concentrability assumption which is defined as C? := maxh,s,a dh (s,a)dµ(s,a) in the current episodic nonstationary MDP setting. As discussed in Appendix D, their lower bound translates to $\Omega ( { \sqrt { \frac { H ^ { 3 } S C ^ { \star } } { n } } } )$ and their VI-LCB algorithm yields q H5SC?n ) suboptimality gap in H-horizon case. Since single policy concentrability is strictly weaker than its uniform version (Assumption 2.2), we only discuss this set up. In particular, we have the following implication from our Theorem 4.1 (whose derivation can be found in Appendix I):
Proposition 4.7. Let π? be a deterministic policy such that C? := maxh,s,a dπ h (s,a)dµ(s,a) . Then by Theorem 4.1, with high probability the output policy of APVI satisfies the suboptimality gap $\widetilde { O } ( \sqrt { \frac { H ^ { 3 } S C ^ { \star } } { n } } )$ in the time-varying (non-stationary) MDPs.
This can computed similar to (8) except we use $\begin{array} { r } { \frac { \boldsymbol { d } _ { h } ^ { \pi ^ { \star } } ( s , a ) } { \boldsymbol { d } _ { h } ^ { \mu } ( s , a ) } \leq C ^ { \star } } \end{array}$ . Our implication improves the VI-LCB by the factor $H ^ { 2 }$ (in terms of sample complexity) and is optimal (recover the concurrent Xie et al. [2021b]). Qualitatively, single concentrability is the same as Assumption 2.3, but the use of $C ^ { \star }$ makes the bound highly problem independent and limits the adaptivity. Problem dependent bound is a more interesting domain as it tailors to each MDP separately. We discuss it now.
4.4 Problem dependent domain
We define the pre-step environmental norm (the finite horizon counterpart of Maillard et al. [2014]) as: $\begin{array} { r } { \mathbb { Q } _ { h } ^ { \star } = \operatorname* { m a x } _ { s _ { h } , a _ { h } } { \operatorname { V a r } _ { P _ { s _ { h } , a _ { h } } } { \left( r _ { h } + V _ { h + 1 } ^ { \star } \right) } } } \end{array}$ for all $h \in [ H ]$ , and relax the total sum of rewards to be bounded by any arbitrary value $\boldsymbol { B }$ (i.e. $\textstyle \sum _ { h = 1 } ^ { H } r _ { h } \leq B )$ , then Theorem 4.1 implies:
Proposition 4.8. Under Assumption 2.1, with high probability, subopmality of AVPI is bounded by
Such a result mirrors the online version of the tight problem-dependent bound Zanette and Brunskill [2019] but with a more general pre-step environmental norm for the non-stationary MDPs.6 For the problem instances with either small $\boldsymbol { B }$ or small $\mathbb { Q } _ { h } ^ { \star }$ , our result yields much better performances, as discussed in the following.
Deterministic systems. For many practical applications of interest, the systems are equipped with low stochasticity, e.g. robotics, or even deterministic dynamics, e.g. the game of GO. In those scenarios, the agent needs less experience for each state-action therefore the learning procedure could be much faster. In particular, when the system is fully deterministic (in both transitions and rewards) then $\mathbb { Q } _ { h } ^ { \star } = 0$ for all $h$ . This enables a faster convergence rate of order $\frac { H ^ { 3 } } { n \bar { d } _ { m } }$ and significantly improves over the existing non-adaptive results that have order $\scriptstyle { \frac { 1 } { \sqrt { n } } }$ . The convergence rate $\textstyle { \frac { 1 } { n } }$ matches Wen and ) regret into the PAC bound.
Partially deterministic systems. Practical worlds are complicated and we could sometimes have a mixture model which contains both deterministic and stochastic steps. In those scenarios, the main complexity is decided by the number of stochastic stages: suppose there are $t$ stochastic $P _ { h } , r _ { h }$ ’s and $H - t$ deterministic $P _ { h ^ { \prime } } , r _ { h ^ { \prime } }$ ’s, then completing the offline learning guarantees $t \cdot \sqrt { \operatorname* { m a x } Q _ { h } ^ { \star } / n \bar { d } _ { m } }$ suboptimality gap, which could be much smaller than $H \cdot \sqrt { \operatorname* { m a x } Q _ { h } ^ { \star } / n \bar { d } _ { m } }$ when $t \ll H$ .
Fast mixing domains. Consider a class of highly mixing non-stationary MDPs (a variant of Zanette and Brunskill [2018]) that satisfies the transition $P _ { h } ( \cdot | s _ { h } , a _ { h } ) : = \nu _ { h } ( \cdot ) \overline { { } }$ depends on neither the state $s _ { h }$ nor the action $a _ { h }$ . Define $\bar { s } _ { t } : = \arg \operatorname* { m a x } V _ { t } ^ { \star } ( s )$ and $\underline { { s } } _ { t } : = \arg \operatorname* { m a x } V _ { t } ^ { \star } ( s$ . Also, denote $\mathrm { r n g } V _ { h } ^ { \star }$ to be the range of $V _ { h } ^ { \star }$ . In such cases, Bellman optimality equations have the form
which yield $\begin{array} { r } { \mathfrak { s } \mathrm { \ r n g } { V } _ { h } ^ { \star } = V _ { h } ^ { \star } \left( \bar { s } _ { h } \right) - V _ { h } ^ { \star } \left( \underline { { s } } _ { h } \right) = \operatorname* { m a x } _ { a } r _ { h } \left( \bar { s } _ { h } , a \right) - \operatorname* { m i n } _ { a } r _ { h } \left( \underline { { s } } _ { h } , a \right) \le 1 , } \end{array}$ , and this in turn gives $\mathbb { Q } _ { h } ^ { \star } \le 1 + ( \mathrm { r n g } V _ { h } ^ { \star } ) ^ { 2 } = 2$ . As a result, the suboptimality is bounded by $\widetilde { O } ( \sqrt { H ^ { 2 } / n d _ { m } } )$ in the worst case. This result reveals, although this is a family of stochastic non-stationary MDPs, but it is only as hard as the family of stationary MDPs in the minimax sense $\left( \Omega ( H ^ { 2 } / d _ { m } \epsilon ^ { 2 } ) \right)$ ).
Tabular contextual bandits. Our result also implies $\begin{array} { r l } & { \widetilde { \cal O } ( \sum _ { x _ { 1 } , a _ { 1 } } { d _ { 1 } ^ { \pi ^ { \star } } ( x _ { 1 } , a _ { 1 } ) \sqrt { \frac { \mathrm { V a r } ( r _ { 1 } ) } { n \cdot d _ { 1 } ^ { \mu } ( x _ { 1 } , a _ { 1 } ) } } } ) } \end{array}$ q Var(r1)n·dµ1 (x1,a1) ) gap for the offline tabular contextual bandit problem and improves to $\widetilde { \cal O } ( 1 / n d _ { m } )$ when the reward is deterministic. In either cases, the result is optimal and this is due to: when $r _ { 1 }$ is deterministic, the agent only needs one sample at every location (see Bubeck and Cesa-Bianchi [2012] for a survey).
5 Towards Assumption-Free Offline RL
While assumption 2.3 is (arguably) the weakest assumption for correctly learning the optimal value, for the real-world applications even this might not be guaranteed. Can we still learn something meaningful? In this section, we consider this most general setting where the behavior policy $\mu$ can be arbitrary. In this case, $\mu$ might not cover any optimal policy $\pi ^ { \star }$ (i.e. there might be high reward location $( s , a )$ that $\mu$ can never visit, e.g. in the extreme case where a clumsy doctor only uses one treatment all the time), and, irrelevant to the number of episode $n$ , a constant suboptimality gap needs to be suffered. To tackle this problem, we create a fictitious augmented MDP $M ^ { \dagger }$ that can help characterize the discrepancy of the values between the original MDP $M$ and the estimated MDP $\widehat { M } ^ { \dag }$ . In particular, $M ^ { \dagger }$ is negative towards agnostic state-actions $s _ { h } , a _ { h }$ by setting $r _ { h } ^ { \dagger } = 0$ cand transitions to an absorbing state s†h+1.
Pessimistic augmented MDP. $M ^ { \dagger }$ is defined with one extra state $s _ { h } ^ { \dagger }$ for all $h \in { 2 , \dots , H + 1 }$ with the augmented state space $S ^ { \dagger } = S \cup { s _ { h } ^ { \dagger } }$ . The transition and the reward are defined as follows:
here $\delta _ { s }$ is the Dirac measure and we denote $V _ { h } ^ { \dag \pi }$ and $v ^ { \dag \pi }$ to be the values under $M ^ { \dagger }$ . $\widehat { M } ^ { \dagger }$ is the empirical counterpart of $M ^ { \dagger }$ with $\widehat { P }$ , $\widehat { r }$ (the same as (2)) replacing $P , r .$ By Algorithm 1, we have bTheorem 5.1 (Assumption-free offline reinforcement learning). Let us make no assumption for $\mu$ and still denote $\bar { d } _ { m } : = \operatorname * { m i n } _ { h \in [ H ] } { d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) : d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) > 0 }$ . For any $0 < \delta < 1$ , there exists absolute constants $c _ { 0 } , C ^ { \prime } > 0$ , such that when $n > c _ { 0 } \cdot 1 / \bar { d } _ { m } \cdot \iota ( \iota = \log ( H S A / \delta ) )$ , with probability $1 - \delta$ , the output policy $\widehat { \pi }$ of APVI satisfies (recall $\mathcal { C } _ { h } : = { ( s _ { h } , a _ { h } ) : d _ { h } ^ { \mu } ( s _ { h } , a _ { h } ) > 0 }$ )
where $d _ { h } ^ { \dagger \pi ^ { \star } } ( s _ { h } , a _ { h } ) \leq d _ { h } ^ { \pi ^ { \star } } ( s _ { h } , a _ { h } ) , V _ { h } ^ { \dagger \pi ^ { \star } } ( s _ { h } ) \leq V _ { h } ^ { \star } ( s _ { h } ) .$ for all $s _ { h } , a _ { h } \in S \times \mathcal { A } ,$ , and for all $h \in [ H ]$ , $\begin{array} { r } { d _ { h } ^ { \dagger \pi ^ { \star } } ( s _ { h } ^ { \dagger } ) = \sum _ { t = 1 } ^ { h - 1 } \sum _ { ( s _ { t } , a _ { t } ) \in \mathcal { S } \times \mathcal { A } \backslash \mathcal { C } _ { t } } d _ { t } ^ { \dagger \pi ^ { \star } } \big ( s _ { t } , a _ { t } \big ) } \end{array}$ . The proof is in Appendix $E$ .
Take-aways of Theorem 5.1. In $M ^ { \dagger }$ , there is no agnostic location any more since the original unknown spaces now all have known deterministic transitions to $s ^ { \dagger }$ in $M ^ { \dagger }$ . At a price, the algorithm has to suffer the constant suboptimality PH+1h=2 $\textstyle \sum _ { h = 2 } ^ { H + 1 } d _ { h } ^ { \dagger \pi ^ { \star } } ( s _ { h } ^ { \dagger } )$ due to no data in the region. The quantity $\textstyle \sum _ { h = 2 } ^ { H + 1 } d _ { h } ^ { \dag \pi ^ { \star } } ( s _ { h } ^ { \dag } )$ helps characterize the hardness when nothing is assumed about $\mu$ : it is always less than $H$ (cannot suffer more than suboptimality); under Assumption 2.1, it is 0 since with high probability (by Chernoff bound) and this causes $\boldsymbol { \mathcal { S } } \times \boldsymbol { \mathcal { A } } \backslash \boldsymbol { \bar { \mathcal { C } } } _ { h } = \boldsymbol { \emptyset }$ ; under Assumption 2.3, it is also 0 and 5.1 reduces to Theorem 4.1 (see Appendix F).
5.1 Assumption Free vs Without Great Coverage (Partial Coverage)
Recently there is a surge of studies that aim at weakening the assumptions of provable offline $/$ batch RL. Those learning bounds are derived (mostly) under the insufficient data coverage assumptions. One type of works consider the assumption without great coverage (or partial coverage): Chang et al. [2021], Uehara and Sun [2021] assume $\begin{array} { r } { \operatorname* { m a x } _ { s , a } d ^ { \pi _ { e } } ( s , a ) / \mu ( s , a ) < \infty } \end{array}$ where $\pi _ { e }$ is either an expert policy or a policy of great quality and they further compete against with this policy $\pi _ { e }$ . Those assumptions are similar to 2.3 and therefore are stronger than the assumption-free RL we considered in 5.1.
In addition, there are other studies that apply to the case where $\mu$ can be arbitrary: Liu et al. [2020] considers the behavior policy with insufficient coverage probability $\epsilon _ { \zeta }$ (see their Definition 1), and they end up with the constant suboptimality gap Vmaxζ1−γ (their Theorem 1), when the insufficient coverage probability $\epsilon _ { \zeta } > 0$ , this gap has order $( 1 - \gamma ) ^ { - 2 }$ , which is larger in order than the biggest possible suboptimality gap $( 1 - \gamma ) ^ { - 1 }$ therefore unable to characterize the essential statistical gap over the region that can never be visited by the behavior policy (and this happens similarly in Kidambi et al. [2020], see their Theorem 1); Jin et al. [2020] derive the nice assumption-free result via regularization and their bound can incur $O ( H ^ { 2 } )$ constant gap when there is at least one $\left( s _ { h } , a _ { h } \right)$ cannot be obtained by $\mu$ for all $h \in [ H ]$ (i.e. replacing $n d _ { h } ^ { \bar { \mu } } ( { \bar { s } } _ { h } , a _ { h } )$ by 1 in (3)). The concurrent work Xie et al. [2021a] provides a better characterization (and they call it off-support error) with roughly $\begin{array} { r } { \frac { 1 } { 1 - \gamma } \sum _ { \left( s , a \right) \in S \times A } \left( d _ { \pi } \backslash \nu \right) \left( s , a \right) \left[ \Delta f _ { \pi } ( s , a ) - ( \mathcal { T } ^ { \pi } \Delta f _ { \pi } ) \left( s , \bar { a } \right) \right] } \end{array}$ , however, in the worst case $\Delta f _ { \pi } ( s , a ) - ( T ^ { \pi } \Delta f _ { \pi } ) ( s , a )$ might be large (which depends on the quality (assumption) of the function approximation class).
In contrast, our 1) describes the $\textstyle \sum _ { h = 2 } ^ { H + 1 } d _ { h } ^ { \dag \pi ^ { \star } } ( s _ { h } ^ { \dag } )$ quantity (with p in a more pr $\begin{array} { r } { d _ { h } ^ { \dagger \pi ^ { \star } } ( s _ { h } ^ { \dagger } ) = \sum _ { t = 1 } ^ { h - 1 } \sum _ { ( s _ { t } , a _ { t } ) \in \mathcal { S } \times \mathcal { A } \backslash \mathcal { C } _ { t } } d _ { t } ^ { \dagger \pi ^ { \star } } ( s _ { t } , a _ { t } ) \leq } \end{array}$ into $s ^ { \dagger }$ and it is always bounded between 0 and $H$ . It reduces to 0 when $\pi ^ { \star }$ is covered. The gap is always of order $H$ (as opposed to $O ( H ^ { 2 } ) _ { * }$ ).
6 Discussion and Conclusion
This work studies the offline reinforcement learning problem and contributes the intrinsic offline learning bound which is a near-optimal and strong adaptive bound that subsumes existing worst-case bounds under various assumptions. The adaptive characterization of the intrinsic bound abandons the explicit dependence on $H , S , A , C ^ { \star } , d _ { m }$ and helps reveal the fundamental hardness of each individual instances. In this sense, it draws a clearer picture of what offline reinforcement learning looks like and serves as a step towards instance optimality in offline RL.
Nevertheless, it is still unclear whether (5) is optimal over all the instances. For example, for fully deterministic systems, our bound provides a faster convergence $H ^ { 3 } / n \bar { d } _ { m }$ , however, $\bar { H } ^ { 3 }$ might be very suboptimal comparing to algorithms that are designed specifically for deterministic MDPs, since the agent only need to experience each location $( s , a )$ once to fully acquire the dynamic $P ( \cdot | s , a )$ and $r ( s , a )$ . Recently, Xiao et al. [2021] goes beyond the minimax (worst case) optimality and studies the instance optimality behavior for the simplified batch bandit setting. One of their findings is: for “easy enough” tasks, different type of algorithms can be equally good, provably. This seems to suggest instance optimality only matters for problems that are hard to learn. How to formally define the instance optimality metric for different problems remains an open problem and how to design a single algorithm that can achieve optimality for all instances could be challenging (or even infeasible). We leave those as the future works.
Acknowledgment
The research is partially supported by NSF Awards #2007117 and #2003257. MY would like to thank Chenjun Xiao for bringing up a related literature [Xiao et al., 2021] and Masatoshi Uehara, Yu Bai for helpful suggestions.
References
Alekh Agarwal, Sham Kakade, and Lin F Yang. Model-based reinforcement learning with a generative model is minimax optimal. In Conference on Learning Theory, pages 67–83, 2020.
Andras Antos, Remi Munos, and Csaba Szepesvari. Fitted q-iteration in continuous action-space mdps. In Advances in Neural Information Processing Systems, pages 9–16, 2008a.
András Antos, Csaba Szepesvári, and Rémi Munos. Learning near-optimal policies with bellmanresidual minimization based fitted policy iteration and a single sample path. Machine Learning, 71 (1):89–129, 2008b.
Mohammad Gheshlaghi Azar, Ian Osband, and Rémi Munos. Minimax regret bounds for reinforcement learning. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 263–272. JMLR. org, 2017.
Yu Bai, Tengyang Xie, Nan Jiang, and Yu-Xiang Wang. Provably efficient q-learning with low switching cost. In Advances in Neural Information Processing Systems, volume 32, 2019.
Ronen I Brafman and Moshe Tennenholtz. R-max-a general polynomial time algorithm for nearoptimal reinforcement learning. Journal of Machine Learning Research, 3(Oct):213–231, 2002.
Sébastien Bubeck and Nicolo Cesa-Bianchi. Regret analysis of stochastic and nonstochastic multiarmed bandit problems. Foundations and Trends in Machine Learning, 2012.
Jacob Buckman, Carles Gelada, and Marc G Bellemare. The importance of pessimism in fixed-dataset policy optimization. International Conference on Learning Representations, 2021.
Qi Cai, Zhuoran Yang, Chi Jin, and Zhaoran Wang. Provably efficient exploration in policy optimization. In International Conference on Machine Learning, pages 1283–1294. PMLR, 2020.
T Tony Cai and Mark G Low. An adaptation theory for nonparametric confidence intervals. The Annals of statistics, 32(5):1805–1840, 2004.
Jonathan D Chang, Masatoshi Uehara, Dhruv Sreenivas, Rahul Kidambi, and Wen Sun. Mitigating covariate shift in imitation learning via offline data without great coverage. Advances in Neural Information Processing Systems, 2021.
Jinglin Chen and Nan Jiang. Information-theoretic considerations in batch reinforcement learning. In International Conference on Machine Learning, pages 1042–1051, 2019.
Herman Chernoff et al. A measure of asymptotic efficiency for tests of a hypothesis based on the sum of observations. The Annals of Mathematical Statistics, 23(4):493–507, 1952.
Wang Chi Cheung, David Simchi-Levi, and Ruihao Zhu. Reinforcement learning for non-stationary markov decision processes: The blessing of (more) optimism. In International Conference on Machine Learning, pages 1843–1854. PMLR, 2020.
Yaqi Duan, Zeyu Jia, and Mengdi Wang. Minimax-optimal off-policy evaluation with linear function approximation. In International Conference on Machine Learning, pages 8334–8342, 2020.
Justin Fu, Aviral Kumar, Ofir Nachum, George Tucker, and Sergey Levine. D4rl: Datasets for deep data-driven reinforcement learning. arXiv preprint arXiv:2004.07219, 2020.
Justin Fu, Mohammad Norouzi, Ofir Nachum, George Tucker, Ziyu Wang, Alexander Novikov, Mengjiao Yang, Michael R Zhang, Yutian Chen, Aviral Kumar, et al. Benchmarks for deep off-policy evaluation. International Conference on Learning Representations, 2021.
Caglar Gulcehre, Ziyu Wang, Alexander Novikov, Tom Le Paine, Sergio Gómez Colmenarejo, Konrad Zolna, Rishabh Agarwal, Josh Merel, Daniel Mankowitz, Cosmin Paduraru, et al. Rl unplugged: Benchmarks for offline reinforcement learning. Advances in neural information processing systems, 2020.
Michael Janner, Qiyang Li, and Sergey Levine. Reinforcement learning as one big sequence modeling problem. Advances in neural information processing systems, 2021.
Nan Jiang and Alekh Agarwal. Open problem: The dependence of sample complexity lower bounds on planning horizon. In Conference On Learning Theory, pages 3395–3398, 2018.
Nan Jiang and Lihong Li. Doubly robust off-policy value evaluation for reinforcement learning. In Proceedings of the 33rd International Conference on International Conference on Machine Learning-Volume 48, pages 652–661. JMLR. org, 2016.
Nan Jiang, Akshay Krishnamurthy, Alekh Agarwal, John Langford, and Robert E Schapire. Contextual decision processes with low bellman rank are pac-learnable. In International Conference on Machine Learning-Volume 70, pages 1704–1713, 2017.
Ying Jin, Zhuoran Yang, and Zhaoran Wang. Is pessimism provably efficient for offline rl? International Conference on Machine Learning, 2020.
Tobias Jung and Peter Stone. Gaussian processes for sample efficient reinforcement learning with rmax-like exploration. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pages 601–616. Springer, 2010.
Koulik Khamaru, Ashwin Pananjady, Feng Ruan, Martin J Wainwright, and Michael I Jordan. Is temporal difference learning optimal? an instance-dependent analysis. SIAM Journal on Mathematics of Data Science, 2021a.
Koulik Khamaru, Eric Xia, Martin J Wainwright, and Michael I Jordan. Instance-optimality in optimal value estimation: Adaptivity via variance-reduced q-learning. arXiv preprint arXiv:2106.14352, 2021b.
Rahul Kidambi, Aravind Rajeswaran, Praneeth Netrapalli, and Thorsten Joachims. Morel: Modelbased offline reinforcement learning. Advances in neural information processing systems, 2020.
Akshay Krishnamurthy, Alekh Agarwal, and John Langford. PAC reinforcement learning with rich observations. In Advances in Neural Information Processing Systems, pages 1840–1848, 2016.
Sascha Lange, Thomas Gabel, and Martin Riedmiller. Batch reinforcement learning. In Reinforcement learning, pages 45–73. Springer, 2012.
Hoang Le, Cameron Voloshin, and Yisong Yue. Batch policy learning under constraints. In International Conference on Machine Learning, pages 3703–3712, 2019.
Sergey Levine, Aviral Kumar, George Tucker, and Justin Fu. Offline reinforcement learning: Tutorial, review, and perspectives on open problems. arXiv preprint arXiv:2005.01643, 2020.
Yao Liu, Adith Swaminathan, Alekh Agarwal, and Emma Brunskill. Off-policy policy gradient with state distribution correction. In Uncertainty in Artificial Intelligence, 2019.
Yao Liu, Adith Swaminathan, Alekh Agarwal, and Emma Brunskill. Provably good batch reinforcement learning without great exploration. Advances in neural information processing systems, 2020.
Odalric-Ambrym Maillard, Timothy A Mann, and Shie Mannor. How hard is my mdp?" the distribution-norm to the rescue". Advances in Neural Information Processing Systems, 27:1835– 1843, 2014.
Andreas Maurer and Massimiliano Pontil. Empirical bernstein bounds and sample variance penaliza tion. Conference on Learning Theory, 2009.
Paria Rashidinejad, Banghua Zhu, Cong Ma, Jiantao Jiao, and Stuart Russell. Bridging offline reinforcement learning and imitation learning: A tale of pessimism. arXiv preprint arXiv:2103.12021, 2021.
Tongzheng Ren, Jialian Li, Bo Dai, Simon S Du, and Sujay Sanghavi. Nearly horizon-free offline reinforcement learning. Advances in neural information processing systems, 2021.
Karthik Sridharan. A gentle introduction to concentration inequalities. Dept. Comput. Sci., Cornell Univ., Tech. Rep, 2002.
Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press, 2018.
Csaba Szepesvári and Rémi Munos. Finite time bounds for sampling based fitted value iteration. In Proceedings of the 22nd international conference on Machine learning, pages 880–887, 2005.
Joel Tropp et al. Freedman’s inequality for matrix martingales. Electronic Communications in Probability, 16:262–270, 2011.
Masatoshi Uehara and Wen Sun. Pessimistic model-based offline rl: Pac bounds and posterior sampling under partial coverage. arXiv preprint arXiv:2107.06226, 2021.
Ruosong Wang, Dean P Foster, and Sham M Kakade. What are the statistical limits of offline rl with linear function approximation? International Conference on Machine Learning, 2021.
Zheng Wen and Benjamin Van Roy. Efficient exploration and value function generalization in deterministic systems. Advances in Neural Information Processing Systems, 26, 2013.
Chenjun Xiao, Yifan Wu, Jincheng Mei, Bo Dai, Tor Lattimore, Lihong Li, Csaba Szepesvari, and Dale Schuurmans. On the optimality of batch policy optimization algorithms. In International Conference on Machine Learning, pages 11362–11371. PMLR, 2021.
Tengyang Xie and Nan Jiang. $\mathbf { Q } ^ { * }$ approximation schemes for batch reinforcement learning: A theoretical comparison. In Uncertainty in Artificial Intelligence, pages 550–559, 2020.
Tengyang Xie and Nan Jiang. Batch value-function approximation with only realizability. International Conference on Machine Learning, 2021.
Tengyang Xie, Ching-An Cheng, Nan Jiang, Paul Mineiro, and Alekh Agarwal. Bellman-consistent pessimism for offline reinforcement learning. Advances in neural information processing systems, 2021a.
Tengyang Xie, Nan Jiang, Huan Wang, Caiming Xiong, and Yu Bai. Policy finetuning: Bridging sample-efficient offline and online reinforcement learning. Advances in neural information processing systems, 2021b.
Ming Yin and Yu-Xiang Wang. Asymptotically efficient off-policy evaluation for tabular reinforcement learning. In International Conference on Artificial Intelligence and Statistics, pages 3948–3958. PMLR, 2020.
Ming Yin and Yu-Xiang Wang. Optimal uniform ope and model-based offline reinforcement learning in time-homogeneous, reward-free and task-agnostic settings. Advances in neural information processing systems, 2021.
Ming Yin, Yu Bai, and Yu-Xiang Wang. Near-optimal provable uniform convergence in offline policy evaluation for reinforcement learning. In International Conference on Artificial Intelligence and Statistics, pages 1567–1575. PMLR, 2021a.
Ming Yin, Yu Bai, and Yu-Xiang Wang. Near-optimal offline reinforcement learning via double variance reduction. Advances in neural information processing systems, 2021b.
Andrea Zanette. Exponential lower bounds for batch reinforcement learning: Batch rl can be exponentially harder than online rl. International Conference on Machine Learning, 2021.
Andrea Zanette and Emma Brunskill. Problem dependent reinforcement learning bounds which can identify bandit structure in mdps. In International Conference on Machine Learning, pages 5747–5755. PMLR, 2018.
Andrea Zanette and Emma Brunskill. Tighter problem-dependent regret bounds in reinforcement learning without domain knowledge using value function bounds. In International Conference on Machine Learning, pages 7304–7312. PMLR, 2019.
Andrea Zanette, Martin J Wainwright, and Emma Brunskill. Provable benefits of actor-critic methods for offline reinforcement learning. Advances in neural information processing systems, 2021.
Zihan Zhang, Xiangyang Ji, and Simon S Du. Is reinforcement learning more difficult than bandits? a near-optimal algorithm escaping the curse of horizon. Conference of Learning Theory, 2021.