Exponential Lower Bounds for Batch Reinforcement Learning: Batch RL can be Exponentially Harder than Online RL
Andrea Zanette
Introduction
While the grand goal of reinforcement learning (RL) is to design fully autonomous agents capable of improving their performance over time by learning from past mistakes, oftentimes a batch approach — which predicts some quantity of interest using past observations only — is preferable. For example, past data may be available in large quantities and should not be disregarded by adopting a purely online method. In other applications, safety concerns require that the dataset be collected by a carefully monitored procedure, involving a human or a safe controller. In addition, batch algorithms are key tools to build complex online procedures.
These considerations motivate us to investigate whether there exists any fundamental limitation to using a batch approach for RL compared to online learning. Concretely, we consider two classical batch RL problems: 1) the off-policy evaluation (OPE) problem, where the batch algorithm needs to predict the performance of a target policy and 2) the best policy identification (BPI) problem, where the batch algorithm needs to identify a near optimal policy.
As many applications of RL require very large state and action spaces, the hope is that by leveraging strong prior knowledge, for example on the form of the optimal solution, we can learn the critical features of a Markov decision process (MDP) to solve the task at hand without probing the full state-action space. For the OPE problem, we assume that the action-value function of the target policy can be written at any state action pair as an inner product between a known feature extractor and an unknown parameter that the learner seeks to identify. For the BPI problem, this representation condition applies to the action-value function of an optimal policy.
Quality of the dataset and assumptions
Batch algorithms are limited by the quality and quantity of the available data: for example, in a tabular MDP, without adequate coverage of the area of the MDP that the optimal policy tends to visit, there is little hope that we can identify such policy or even predict its performance. However, given enough samples in each state-action pairs, it becomes easy to identify the optimal policy (Azar et al., 2012) or to evaluate the value of another (Yin et al., 2020). In addition, without any prior knowledge about the problem or information about the target policy, a uniform distribution over the state-action space is a priori optimal.
Very recently, some authors have derived exponential lower bounds for the off-policy evaluation problem with linear function approximations (Wang et al., 2020a; Amortila et al., 2020). They discover that even if a sampling distribution induces the best-conditioned covariance matrix, at least exponentially many samples are needed to estimate the value of a target policy reasonably well. As their hard instances are tabular MDPs (i.e., with small state-action spaces), certainly there exists a better batch distribution for their setting: the OPE problem in tabular MDPs is easily solvable by using a uniform distribution over the state-actions coupled with the policy evaluation algorithm on the empirical model. Therefore, their works show that the assumption on the condition number of the covariance matrix is insufficient in batch RL. However, their works leave open the question of whether the OPE problem with linear value functions can always be solved by using a better sampling distribution that generates a dataset of polynomial size (in the horizon and feature dimension), leading to the following, more fundamental question in the context of batch RL with function approximation:
What can a batch algorithm learn using the best a priori distribution for the problem class at hand?
In particular, we wonder whether there is any penalty in using an entirely batch approach in place of an online (and adaptive) method if a good dataset is provided to the batch algorithm. To answer this question for both the OPE and BPI problems in the strongest possible way, we consider an auxiliary process or oracle that provides the batch algorithm with the best data distribution for the task; together they form a learning algorithm. However, in contrast to fully online / adaptive algorithms, the oracle is not allowed to change its data acquisition strategy while information is being acquired. As we explain in Appendix A, this framework allows us to derive strong batch RL lower bounds, because they will hold for every batch distribution. Thanks to this framework, we can recover the concurrent lower bound by (Wang et al., 2020a) — which holds for one specific choice of the sampling distribution — in infinite horizon RL as a corollary.
Learning process and assumptions
We consider oracles that can decide on a set of strategic policies to gather data. Alternatively, the oracles can directly specify the state-actions where they want to observe the rewards and transitions (for example, with a simulator). In either case, the oracle selects a sampling strategy and the batch algorithm later receives a dataset of states, actions, rewards and transitions. Using the dataset, the batch algorithm makes a prediction, i.e., it estimates the value of a target policy (OPE problem) or returns a near optimal policy (BPI problem). We make two other assumptions that favor the learner:
Realizability, i.e., there is no misspecification.
Exact feedback: the exact reward and transition function is observed for each point in the dataset. This is equivalent to observing infinite data.
1 Contributions
there exists OPE and BPI problems where any batch algorithm must receive an exponential dataset to return a good answer,
if the dataset does not originate from policy rollouts then the lower bounds hold even if the action-value function of every policy admits a linear representation,
there exist exponentially hard batch BPI problems (even under the best data distribution) which are easy to solve with online / adaptive algorithms, showing an exponential separation between batch and online RL,
there exist exponentially hard problems for infinite horizon batch RL which cannot arise in finite horizon problems, showing exponential separation between finite and infinite horizon batch RL.
As a corollary, our work recovers (Wang et al., 2020a)’s lower bound in infinite horizon RL and also shows that the classical globally optimal experimental design yields provably bad distributions for infinite horizon RL, making learning impossible even in the limit of infinite data; we discuss this in Appendix A.
We make the following technical contributions:
we introduce a new ‘oracle + batch algorithm’ framework to derive lower bounds for every a priori distribution; this automatically yields fixed distribution lower bounds (e.g., (Wang et al., 2020a)) as a special case,
we help formalize the hardness induced by the deadly triad (Sutton & Barto, 2018), i.e., the combination of off-policy learning, bootstrapping and function approximation; in particular, we explain that the bootstrapping problem is fundamentally different and potentially more severe than the extrapolation problem,
we present new classes of hard MDPs where critical MDP information is ‘deferred’ — through bootstrapping — and hidden in an unknown and exponentially small region in feature space, too small to be covered by a batch dataset but easy to locate using an online algorithm.
2 Literature
Polynomial lower bounds are often derived to certify that a certain algorithm is sample efficient (Jiang & Li, 2016; Duan & Wang, 2020; Hao et al., 2020); in this work we are interested in exponential lower bounds. Divergence of dynamic programing algorithms with function approximation is well known (Baird, 1995; Tsitsiklis & Van Roy, 1996) and has prompted researchers to look for information-theoretic lower bounds for generic predictors (Chen & Jiang, 2019) and in presence of misspecification (Du et al., 2019). Concurrently, Weisz et al. (2020); Wang et al. (2020a) also show information-theoretic lower bounds highlighting the danger of extrapolation; for additional literature, please see app. B.
Preliminaries
Batch Reinforcement Learning
We first formally define the two learning problems, namely the task of returning a near optimal policy, also known as best policy identification (BPI) problem, and the task of predicting the value of a target policy, also known as off-policy evaluation (OPE) problem. Then, in the next four sub-sections we describe the learning process in more detail. The lower bounds that we later derive will hold for all algorithms of the form described in this section.
A BPI problem is defined by a starting state and a class of MDPs sharing the same state space, action space and discount factor. An OPE problem additionally requires us to identify one or more target policies for each .
Depending on the problem, the oracle selects a sampling strategy such that for every problem instance (of an OPE problem) or (of a BPI problem) the batch algorithm experiences a dataset from and uses it to return an accurate estimate of the action-value function of at (for the OPE problem) or a near optimal policy on from (for the BPI problem).
2 Step II: Query Selection
The purpose of the oracle is to help the batch algorithm by providing it with the best dataset for the specific problem at hand. To capture different mechanisms of data acquisition, we consider two methods to specify the query set, i.e., the set of state-action pairs where the oracle wants the batch algorithm to observe the rewards and the transitions. In the first mechanism the oracle directly selects the state-actions; we place no restriction on the mechanism to obtain these queries as long as the sampling distribution is fixed for all MDPs in the class.
A set of state-action pairs is said to be policy-free for an OPE or BPI problem if does not depend on the specific MDP instance .
Since the batch algorithm observes the exact reward and transition function at the selected query points, the number of policy-free queries is the size of the support of the distribution .
The second mechanism to collect data is by selecting deterministicThis is not a restriction: for any given stochastic policy the agent can sample an action from the distribution of actions in every state before deploying the policy. policies. The policies will generate random trajectories that the batch algorithm later observes. Since we are interested in what the agent can learn in the limit of infinite data (i.e., under exact feedback) we let the batch algorithm observe all possible realizations of such trajectories. With this aim, we define the state-action space reachable in or less timesteps from using policy as
where is the random state-action encountered at timestep upon following from . We let the oracle select the best combination of trajectory lengths and number of distinct policies.
Consider an OPE or BPI problem and fix a set of triplets, each containing a starting state , a deterministic policy and a trajectory length such that . Then the query set induced by is defined as
The condition attempts to make the amount of information acquired using policy-free queries comparable to the policy-induced query method, although the latter generates if the dynamics are stochastic. In other words, the batch learner always observes at least state-actions if these are induced by policies.
A policy-induced query set is also policy-free whenever the dynamics of each MDP are the same.
When prescribing a set the oracle has knowledge of the induced dataset for each choice of (e.g., by having access to a connectivity graph of the MDP).
While a policy-free query set may seem less constrained than a policy-induced query set, the latter may implicitly reveal additional information about the dynamics of the MDP whenever the induced trajectories are all different across different MDPs.
3 Step III: Data Collection
After the oracle has submitted the sampling strategy, the batch learner receives a dataset which contains the exact reward and transition function, and , from the MDP for each in the query set .
4 Step IV: Output
The batch algorithm is finally required to make a prediction using the acquired dataset . For the OPE problem, the batch algorithm also receives the target policy and it is required to output an estimator for the action-value function of the target policy ; for the BPI problem, it must output a near-optimal policy at .
5 Evaluation Criterion
The oracle and the batch algorithm together form a learning algorithm. This framework allows us to derive batch lower bounds in a strong form as they will hold for any data distribution. We say that the learning algorithm is -sound for an OPE problem if for every instance of the problem the returned estimator is accurate w.h.p.:
Similarly, we say that that the learning algorithm is -sound for a BPI problem if for every instance it holds that the returned policy is near optimal w.h.p.:
As the query set is always non-random and the batch algorithm experiences the exact reward and transition function, the only randomness lies in the possible randomization internal to the batch algorithm when it returns an answer.
6 Adaptive and Online Algorithms
Consider a policy-free mechanism. We say that a learning algorithm is adaptive if every time the oracle submits a state-action it receives the feedback from the environment and can use it to select the next state-action to query the MDP.
Likewise, consider a policy-induced mechanism. We say that a learning algorithm is acting online if every time the oracle selects a policy and trajectory length, it can use the acquired feedback to select the next combination of policy and trajectory length (its position is reset in every episode).
Intuition
The mechanism that induces hardness for infinite horizon problems must be different than that in finite horizon: the constructions from Weisz et al. (2020); Wang et al. (2020b) rely on the extrapolation issue that compounds the errors multiplicatively. In our case, the reward and transition functions are observed exactly, so there is no error to extrapolate in the first place. Instead, bootstrapping, i.e., the fact that the value function in one state depends on the same value function at successor states (Sutton & Barto, 2018), is the root cause of hardness; here we provide some intuition.
While each of our theorems need a different construction, they all build on the intuition presented in this section; at a high level, bootstrapping can “erase” the information gained along certain directions in feature space.
An online algorithm can detect that the next-state feature matrix is acting adversarially. In addition, reveals the location of the spherical cap in Fig. 1 (right). The online algorithm can then probe the spherical cap to ensure that the linear system in Eq. 1 is full rank.
Exponential Lower Bounds
We define the query complexity to -soundness of a problem (OPE or BPI) to be the minimum value for (as in Definitions 1 and 2) such that there exists a -sound learning algorithm for that problem. In particular, the query complexity depends on the MDP class and can be different for the OPE and BPI tasks and for the policy-free and policy-induced query mechanism. Our lower bounds on the query complexity are significantly stronger than typical sample complexity lower bounds: they are really lower bounds on the size of the support of the distribution and automatically imply infinite sample complexity lower bounds since the batch algorithm already observes the exact reward and transition functions where is supported.
The lower bounds are expressed in terms of the regularized incomplete beta function where is the incomplete beta function for some positive real numbers and ; for the precise definitions, please see Section D.1. For brevity, define . Corollary 2 ensures is exponential in the dimension for (here the symbol highlights an approximate dependence without a formal definition):
Unless additional assumptions are made regarding the MDP class that defines the OPE and BPI problems, the query complexity of a reasonably sound learner is exactly the size of the state and action space (we assume exact feedback). One hopes that by restricting the MDP class , the query complexity of the OPE and BPI problems can be brought down to a more manageable level, in particular, independent of the state-action spaces.
We make one of the following three assumptions (only one assumption will hold at any given time, depending on the theorem); two are known as realizability, and the third is strictly stronger than the first two. The first concerns the OPE problem; is the unit Euclidean ball.
Given an OPE problem , there exists a -dimensional map such that and for any the action-value function of the target policy satisfies for some .
For the BPI problem the representation condition applies to the action-value function of an optimal policy.
Given a BPI problem , there exists a -dimensional feature map such that and for any there exists such that the optimal action-value function is linear: .
A stronger assumption we make is that the action-value function of every policy has a linear representation.
Given a BPI problem or an OPE problem , there exists a -dimensional feature map such that and for any MDP the value of every policy satisfies for some .
The learners that we consider are aware of these assumptions because they can examine each MDP in the class they receive (see Section 3.1).
2 Off-Policy Evaluation
The first result of this work is contained in the following lower bound for the OPE problem; since all MDPs in share the same dynamics, the oracle has full knowledge of the actions it needs to take to visit any state-action it desires.
There exists an OPE problem satisfying 1 such that its policy-induced query complexity to -soundness is at least .
It is useful to compare the form of the above lower bound with that of some concurrent results for the off-policy evaluation problem: for example, (Wang et al., 2020a; Amortila et al., 2020) show that there exist a sampling distribution (that induces the best-conditioned covariance matrix), a target policy and an MDP class , each satisfying certain properties, such that the best estimator on the most difficult MDP in performs poorly if less than exponentially many samples are used. However, in their case there exists a better batch distribution of polynomial size that solves the problem. Our instances are instead much harder, as they command an exponential dataset even for the best distribution for the task: since the oracle can prescribe any data distribution, we can claim that for all distributions of polynomial size we can find an MDP subclass and a target policy such that all MDPs in generate similar datasets but the value of the target policy is very different on these MDPs in , giving lower bounds in a stronger form.
3 Best Policy Identification
As in Theorem 1, in the next lower bound the oracle knows the set induced by any choice of (see Definition 2).
There exists a BPI problem satisfying 2 with features in dimension such that its policy-induced query complexity to -soundness is at least .
Hard BPI problems for adaptive and online algorithms are given by Weisz et al. (2020). Clearly, their construction can be embedded in an infinite horizon MDP, giving a lower bound under their assumptions. However, our framework allows the learner to observe the exact reward and transition function, which is equivalent to having infinite data at the selected state-actions. In such case, the construction of Weisz et al. (2020) no longer gives rise to hard instances. In particular, the BPI problem with our assumptions becomes straightforward in finite horizon, showing an exponential separation between finite and infinite horizon batch RL.
4 Lower Bounds with Stronger Representation
We wonder what is achievable if the oracle can specify the queries anywhere in the state-action space without the restriction imposed by following policies (i.e., using a policy-free query set). Under this assumption the situation gets surprisingly worse, as the lower bounds now hold even if the action-value function of every policy is linear.
There exist an OPE problem and a BPI problem , which satisfy 3 and share the same and , such that their policy-free query complexity to -soundness is at least . In addition, an MDP class that yields the lower bounds (but with -soundness) can be constucted with at most actions.
Contrasting Theorem 3 with Theorems 1 and 2 shows that there is a sharp distinction in what can be achieved depending on the assumptions on the mechanism that generates the batch dataset, a distinction which is absent in tabular RL.
Exponential Separation with Online Learning
Consider the same BPI problem as in Theorem 2. There exists an online algorithm that can identify an optimal policy with probability one by observing trajectories of length one with exact feedback from distinct policies from .
This result shows exponential separation with online learning even when the best batch distribution is used. The key information is hidden in an exponentially small area of the feature space whose position is a priori unknown. This region is too small to be covered by a batch dataset. However, an online algorithm can learn where this information is hidden and then probe such region as we show in Section 7.
A similar exponential separation with online learning is available for the BPI problem in Theorem 3 (see the end of the proof in the appendix). In addition, assuming access to a generative model an even stronger result is readily available in the literature using the Least-Square Policy Iteration (LSPI) algorithm (Lagoudakis & Parr, 2003): with a generative model (Lattimore et al., 2020) show that with probability at least , LSPI finds an optimal policy for any BPI problem that satisfies 3 using at most samples. However, LSPI is non-batch as it relies on Monte-Carlo rollouts at every iteration. Our result thus shows that it is not possible to start from a batch dataset obtained from a generative model and run LSPI (or any algorithm) successfully without acquiring further data even if a strong representation holds.
Proof Sketch of Theorem 2 and Theorem 4
We first describe the state and action space which are fixed across all MDPs in the class . Then we describe the instance-dependent reward and transition functions. Finally we prove the theorems.
At a high level, each MDP contains a two-armed bandit instance in (the starting state). There, the learner has two choices: 1) take the special action that gives a known return or 2) take any other action in the positive orthant , see Fig. 2.
Crucially, on the reward function is almost everywhere zero except inside the exponentially small spherical cap (Fig. 2) for some . Unless the oracle prescribes an action inside , the batch algorithm only observes a zero reward function and is unable to distinguish different MDPs using this information.
The state space consists of a start state , an intermediate state and a terminal state .
Action space
In the starting state the special action is available in addition to any action . In the intermediate state any action in is available but not . Finally, in the terminal state only is available. Mathematically
Feature map
The feature map only depends on the action:
2 Setup: MDP-specific Rewards and Transitions
Every MDP is identified by a vector in the outer portion of the positive orthant and by a sign, and is denoted with or .
The transition function depends on the vector that identifies each MDP in the class, but not on the sign or . Fix the MDP by fixing (two MDPs correspond to a given choice of ). If the agent plays the special action , which is only available in the starting state , it transitions with probability one to the terminal state . If the agent plays , the transition function only depends on the action (and not on the current state ) and the successor state is with some probability, and is otherwise the absorbing state .
Mathematically, if then and if conversely :
The definition implies that the successor state is always either or the terminal state .
Reward function
The reward function depends on both the vector and on the sign or that identifyies the MDP. It is always if the special action is taken and otherwise it is everywhere on or is positive only in the spherical cap on . Mathematically:
3 Proof Sketch of Theorem 2 (Batch Lower Bound)
The steps for the proof are the following: we show that 1) is linear 2) policy-induced queries are also policy-free for this problem 3) using less than exponentially many queries ensures that at least one spherical cap is not probed 4) the corresponding MDPs and look the same outside the spherical cap 5) the agent does not have enough information to distinguish from .
By inspection we can verify realizability.
For any let and be the optimal values on and , respectively. It holds that
Policy-free vs policy-induced queries
Notice that although the dynamics are different for different ’s (that identify the MDP), any set (Definition 2) induces the same set of state-actions (possibly with the exception of and ) regardless of the vector and the sign . We can therefore consider the case that the oracle has chosen a policy-free query set .
Existence of exponentially many spherical caps
Assume that less than actions on are selected. Then there exists a spherical cap that no action has probed, i.e., .
In this case, the agent does not have any information originating from inside the dark gray spherical cap in Fig. 2.
Batch algorithm does not have enough information
The above equation implies that the transitions and the rewards in the dataset could have originated from either or . In , the batch algorithm has two choices to determine the policy to return: choose action and get a total return of or choose an action . The second choice is -suboptimal on , while the first is at least -suboptimal on . At best, the batch algorithm can randomize between the two, showing the result.
4 Proof Sketch of Theorem 4 (Online Upper Bound)
It remains to exhibit an online algorithm that can solve every problem instance from this MDP class using queries. The algorithm proceeds as follows: 1) it tries to locate the position of the spherical cap by learning the vector and 2) it probes the spherical cap to learn the sign of the MDP, precisely identifying the MDP.
Consider the following adaptive algorithm that submits policy-induced queries. The algorithm first plays the actions in where is the vector of all zeros and in position (these are policies that generate trajectories of length one where is the only action).
Upon receiving the transition functions for all (see Eq. 2), the agent can determine each component of the vector . By construction, identifies the spherical cap .
Identifying the sign ±plus-or-minus\boldsymbol{\pm} of the MDP
Next, the algorithm plays the state-action to probe the spherical cap and observe the reward ( on and on ) which identifies the sign of the MDP. Since the MDP is now precisely identified, the agent can predict the value of any policy, and in particular, it can return the optimal policy.
Discussion
This work presents exponential lower bounds for batch RL. In general, models are never correct, observations are noisy, and a batch algorithm needs to return an answer using whatever dataset is available; clearly the lower bounds continue to hold in these more general settings as much as they do when using more general predictors (like neural networks) which contain the linear setting as a special case. As these hard instances can only arise in infinite horizon settings, there is an exponential separation between finite and infinite horizon batch RL.
The strength of our results arise from the ‘oracle + batch algorithm’ protocol which allows us to derive lower bounds for every a priori data distribution; as a special case, we recover the concurrent lower bound of (Wang et al., 2020a) for the infinite horizon setting. We highlight that our lower bounds always imply an infinite sample complexity.
Beyond the exponential lower bounds, an important result is that online exploration may be required to achieve polynomial sample efficiency on certain RL problems. This is surprising, because online RL has the additional exploration burden compared to batch RL with a good dataset.
Finally, this work helps formalize some of the dangers of the deadly triad, which has long been known to cause algorithmic instabilities and divergence of dynamic programming algorithms. In a sense, the bootstrapping problem is for infinite horizon what the extrapolation problem is for finite horizon MDPs (and finite-steps algorithms), but unlike extrapolation, it cannot be mitigated by adding more samples.
Acknowledgment
The author is grateful to Emma Brunskill, Mykel Kochenderfer and Martin Wainwright for providing useful feedback. The author also thanks the reviewers for their helpful and detailed comments. The work was done while the author was visiting the Simons Institute for the Theory of Computing.
References
Appendix A Benefits of the Setup
One of the technical innovation of this work lies in the ‘oracle + batch algorithm’ protocol, which allows us to obtain lower bounds that hold for every distribution that the oracle can choose; this automatically yields lower bounds for fixed distributions as a special case. The key idea is that if the batch algorithm cannot return a good answer for any distribution chosen by the oracle, it certainly cannot return a good answer for an a priori fixed distribution, otherwise the oracle would have chosen it! To formally highlight the strength of the oracle setup, we derive (Wang et al., 2020a)’s lower bound (theorem 4.1 in their paper) for infinite horizon RL as a special case and with an additional remark about infinite data.
There exist an MDP class and a feature extractor that satisfy 3 ( ( is Realizable for every Policy).) together with a target policy and a distribution that induces a covariance matrix
such that no algorithm can predict the value of the target policy with probability and additive error (or return a policy with suboptimality ) even in the limit of infinite data (i.e., sampled rewards and transitions) generated from .
Consider the MDP class described in the proof of theorem 4. Since any feature vector in the unit Euclidean ball is available, simply choose a distribution that samples the feature vectors (concretely, we can choose ).
Since is a distribution that the oracle could have chosen and consists of just queries, apply Theorem 3 ( (Policy-Free Lower Bounds).) to deduce that even if infinite data is generated from , no batch algorithm can return the value of for some action with additive error and with probability ; likewise it cannot return a policy with suboptimality error from with probability . ∎
In summary, there exist problems where the batch algorithm cannot return a reasonable answer even with infinite data, the best conditioned covariance matrix and a strong representation for the action value function. We highlight that the exponential lower bound in (Wang et al., 2020a)’s construction can potentially be avoided by choosing a better batch distribution since their MDPs are tabular with small state-action spaces; our MDPs are instead much harder and cannot be solved even if one chooses — through an oracle — the best distribution for such problem class. Similar results can be derived for any assumption on the covariance matrix.
Finally, we highlight that all theorems that we present in this work are expressed as a function of the number of state-action queries, i.e., the size of the support of , instead of the number of sampled rewards and transitions. This way, if the support of the batch distribution is small then our theorems ensure that even infinite samples from the state-actions where is supported do not suffice to make accurate predictions, because the batch algorithm already receives the full reward and transition functions in our interaction protocol. As a clarifying example, consider choosing a sampling distribution according to globally-optimal design of experiments (Pukelsheim, 2006), which is an optimal procedure in linear bandits to recover the unknown parameter (Lattimore & Szepesvári, 2020). Design of experiments fails to be effective in our hard instances because it prescribes only distinct state-actions, i.e., queries, where to (repeatedly) acquire samples, but to escape the lower bound one does not need more samples at the same state-actions; instead the support of the sampling distribution needs to grow.
Appendix B Related Literature
For tabular MDPs one query in each state and action pair with exact feedback is sufficient to identify the MDP. The available results for learning in tabular MDPs consider a similar setting, where only noisy observations are available (Azar et al., 2012; Li et al., 2020; Agarwal et al., 2020b). The algorithms examined by these authors are batch algorithms which specify a uniform distribution over all the state-actions and are minimax optimal. Adaptive algorithms with a generative model (Zanette et al., 2019a; Marjani & Proutiere, 2020) exist but offer little minimax advantage.They can however remove the explicit dependence on the action space from the main rate even in minimax problems, see (Zanette et al., 2019a), section . In the following discussion we primarily consider the function approximation setting with linear value functions.
Polynomial lower bounds are routinely derived to certify that a certain algorithm is sample efficient. For example, (Jiang & Li, 2016) present lower bounds for tabular RL and (Duan & Wang, 2020; Hao et al., 2020) for the linear setting under additional closure assumptions on the Bellman operator. Instead, in this work we are interested in exponential lower bounds.
Dynamic programming algorithms like least-square value and policy iteration (Bradtke & Barto, 1996; Lagoudakis & Parr, 2003) are widely adopted but they are prone to divergence (Baird, 1995; Tsitsiklis & Van Roy, 1996). The hardness of obtaining statistically efficient algorithms has motivated researchers to look for information-theoretic lower bounds. In particular, (Chen & Jiang, 2019) provide a generic lower bound in absence of concentrability; such lower bound does not apply to our setting as we further assume a linear structure. Du et al. (2019) show that if a linear predictor is highly misspecified then an exponential number of queries is needed, and Lattimore et al. (2020) generalize this result through a corollary to show that using -accurate linear predictors in dimension can only give -optimal policies for linear bandits and RL. While these results are relevant to our setting, they becomes vacuous in absence of misspecification, i.e., when realizability holds. We examine the relation with concurrent work (Weisz et al., 2020; Wang et al., 2020a; Amortila et al., 2020) in Section 5; however, here we mention that their constructions are easily solvable under our assumptions.
Positive results: upper bounds
When the action value function has a linear parameterization and the transitions are low rank, Yang & Wang (2020); Jin et al. (2020); Zanette et al. (2020a) propose regret-minimizing online algorithms; these works implicitly imply that both the BPI and OPE batch problems are easily solvable under low-rank dynamics. For the more general setting that the value function is closed under the Bellman operator, batch upper bounds for the BPI problem exist (Munos, 2005; Munos & Szepesvári, 2008) and these have been recently generalized to the online setting (Zanette et al., 2020b) with a computationally tractable algorithm (Zanette et al., 2020c); collectively, these works show that online RL can operate under batch assumptions, and our work shows that online RL is in fact exponentially easier than batch RL on certain problems. Minimax results for batch OPE problems are also available (Duan & Wang, 2020) for a setting essentially equivalent to low inherent Bellman error; for the BPI problem see instead (Xie & Jiang, 2020a). Batch methods based on minimizing the Bellman residual also exist (Antos et al., 2008). When the action value function of all policies can be linearly represented Munos (2003); Lazaric et al. (2012); Lattimore et al. (2020); Agarwal et al. (2020c) provide algorithms to learn a good policy using a simulator, and online using stronger conditions (Agarwal et al., 2020a); all these methods are non-batch, and our Theorem 3 rules out the existence of batch algorithms operating under the same assumptions. Other linear models recently considered include (Ayoub et al., 2020; Zhou et al., 2020) and when the Bellman equations are linearly representable up to a low-rank error (Jiang et al., 2017); although the focus of these works is online exploration, learning should be possible in the batch setting as well.
The optimal policy (as opposed to a near optimal one) can be identified if there exists some separation between the best and the second best policy (Du et al., 2020), although a sample complexity proportional to the inverse gap (which can be exponentially small) must be suffered; learning in such setting is also possible with an entirely batch algorithm. Near-convexity also ensures that both the BPI and OPE learning problems are solvable in the batch setting (Zanette et al., 2019b); under exact convexity (Cui & Yang, 2020) give an optimal sample complexity for the BPI problem. Deterministic systems with linear value functions are also learnable (Wen & Van Roy, 2013) in finite horizon, and it is easy to derive a batch algorithm for both the BPI and OPE problem under this assumption. Xie & Jiang (2020b) show that under strong concentrability assumptions the BPI problem is solvable using only realizability and general (non-linear) function approximators and Liu et al. (2020) show how to find the best-in-class solution to the BPI problem while avoiding concetrability for general approximators. Finally, importance sampling estimators (Precup, 2000; Li et al., 2015) make very little assumptions but as such they do not leverage the linear structure of the problem and can exhibit unbounded variance. However, methods to reduce the variance exist (Jiang & Li, 2016; Thomas & Brunskill, 2016; Liu et al., 2018; Xie et al., 2019).
Appendix C Globally Optimal Experimental Design is Not a Good Sampling Strategy in RL
We wonder if the classical globally optimal design of experiment (DoE) (Pukelsheim, 2006) from statistics produces acceptable results in light of our lower bounds, for example, whether it yields a matching exponential upper bound. DoE prescribes a set of states and actions (the design) where to acquire several samples; multiple samples are acquired at the selected state-actions, according to the design. The procedure thus prescribes policy-free queries. In finite horizon DoE is successful: Weisz et al. (2020) conclude that DoE with value iteration can identify a near optimal policy in finite horizon given exponentially many samples.
Dishearteningly, we find that in infinite horizon this is no longer true: in the limit of infinite samples over the feature vectors selected by DoE the learner receives exact feedback, but since DoE always prescribes at most distinct vectors where samples are acquired (see (Lattimore & Szepesvári, 2020; Pukelsheim, 2006)), the support of the query set is always at most regardless of the number of actual samples along these feature vectors. For large enough and close to we have as the left hand side is polynomial and the right hand side is exponential. In light of Theorem 3, we conclude that even if infinite data are collected over the feature vectors chosen by DoE and all policies have a linear representation, no batch algorithm can output a good policy or estimate the value of another with good enough probability. This happens because traditional DoE fails to account for the effect of bootstrapping, as we explain in Section 4. Thus, in infinite horizon the challenge is much greater than in finite horizon, because a good policy (or the value of a target policy) cannot eventually be learned by just collecting more samples, instead, the support of the sampling distribution needs to grow.
Appendix D Preliminaries
In the proofs for the lower bounds we consider a class of MDPs containing MDP instances with certain properties. Every MDP in the class can be identified by a vector and a sign or , and is denoted by or , respectively. We overload the notation slightly and write in a statement to indicate the statement holds for both and . This allows us to write, for example, .
If we can define the incomplete beta function
which allows us to define the regularized incomplete beta function
Useful bounds are provided in Lemma 3 ( (Upper Bound on ).).
D.2 Learning Finite Horizon MDPs with Policy-Free Queries
In this section we describe the process to learn a finite horizon MDPs with a linear representation for the target policy and for the optimal action-value function, . We make the same assumptions as in the main text.
The OPE problem is analogous. The batch algorithm solves the following linear system of equations for at timestep .
D.3 Hypersphere and Hyperspherical Sectors
Fix and define the -hyperspherical cap in direction as
and the -hyperspherical sector in direction as
The following formulas are useful to compute the volume of the hypersphere and of a spherical sector .
The volume of an spherical sector is given by the formula
where the volume of the ball is
For the proof, see (Li, 2011) where in their notation is the half-angle of the hypersector and . ∎
D.4 Bounds on the Regularized Incomplete Beta Function
The following upper bound holds true for and :
We first compute an upper bound on the incomplete Beta function
Notice that and so and finally . Therefore the following upper bound follows:
It remains to compute a lower bound on the Beta function:
We have ; we thus focus on the ratio
The inequality is Gautschi’s inequality for the gamma function. Therefore, we conclude
The bounds just derived for the beta functions together yield an upper bound on the regularized incomplete beta function:
Using the above result we can derive the following easily interpretable lower bounds.
If then the following lower bounds holds true for :
Using Lemma 3 we can derive the following crude lower bound for
Under the same conditions we have the following lower bound
Appendix E Existence of a Lonely Hyperpherical Cap
Consider a set of points in the unit ball . In this section we show that if is less than then there exists an hyperspherical cap (identified by its direction ) such that none of the ’s is in or its symmetric counterpart . For short, define
Let be a collection of points. If then there exists a point such that its -spherical cone does not contain any of the ’s, i.e.,
This follows from a geometrical argument; the idea is that the hyperspherical cones around with parameter are not sufficient to cover the whole hypersphere, leaving a “gap”. A point in that gap, which we denoteWe save the notation for its normalization, i.e., . with is not covered by any of the hyperspherical cones , which in turn means that the hyperspherical cone around such point cannot cover any of the ’s.
More formally, consider the hyperspherical cones . The volume of their union is at most
where the first equality follows from 1 ( (Volume of a Hyperspherical Sector).). It is easily seen that if then there must exist a point (in fact, a whole subset of of non-zero volume) not covered by any spherical sector around the ’s, i.e.,
Now denote with its normalization; it follows by definition that and . Consider the spherical cone around , i.e., consider . By symmetry we have that none of the ’s can be in . This is because means
which is equivalent to saying , and this can be repeated for every . ∎
We also need the following closely related result in the positive orthant.
Let be a collection of points. If then there exists a point that also satisfies such that its -spherical cone does not contain any of the ’s, i.e.,
The proof for the positive orthant (i.e., restricted to ) is nearly identical to Lemma 4 ( (Existence of a Lonely Hyperspherical Cone).). Consider the hyperspherical sectors intersected with , i.e., . The volume of their union is at most
From geometry we know that the volume of the hypersphere in its positive orthant is times the volume of the hypersphere:
where the second equality follows from 1 ( (Volume of a Hyperspherical Sector).). It is easily seen that if then there must exist a whole subset of of non-zero volume not covered by any hyperspherical cone around the ’s, which allows us to claim
Now denote with its normalization; it follows by definition that and . Consider the hyperspherical cone around , i.e., consider . By symmetry we have that none of the ’s can be in . This is because means
which is equivalent to saying , and this can be repeated for every . Since , the thesis follows. ∎
Building on Lemma 4 ( (Existence of a Lonely Hyperspherical Cone).), we can actually show there exists two symmetric hyperspherical sectors that do not contain any of ’s.
Let be a collection of points. If then there exists a point such that the -hyperspherical cones around and do not contain any of the , i.e.,
so in particular, .
Consider the augmented set . Then Lemma 4 ( (Existence of a Lonely Hyperspherical Cone).) applied to this set ensures that if then there exists a point with unit norm such that
and so in particular, . ∎
Appendix F Proof of Theorem 1
We consider a class of MDPs sharing the same state-space , action space , discount factor , and transition function . The MDPs differ only in the reward function and the prescribed target policy. We first describe the state and action space, the discount factor and the transition probabilities, which are fixed across all MDPs in the class .
Each state in the state space can be identified by a point in the Euclidean ball, i.e., we write . The starting state is the origin .
Action space
In each state the action set coincides with the unit ball, i.e., .
Discount factor
The discount factor is in the interval .
Feature map
The feature extractor returns the point in the Euclidean ball corresponding to the action chosen in the selected state. Mathematically
Since the available actions are always a subset of , it is easy to see that the image of the feature map is the set and holds.
Transition Function
The transition function is deterministic and is only a function of the action chosen in the current state; it is thus convenient to denote with the unique successor state reached upon taking action (in any state ). The successor state is equivalent to the action taken, i.e.,
Since , we have that , which is a valid state, and so the above display identifies a valid transition function.
F.2 Instance of the Class
Every MDP in the class can be identified by a vector and a sign or , and is denoted by or , respectively. We now describe the MDP-specific reward function and target policy.
The target policy depends on the vector that identifies the MDP , but not on the sign or that distinguishes from (therefore, knowledge of the target policy does not reveal the exact MDP in the class). In addition, the target policy is deterministic. Let be a -hyperspherical cap in direction (see Definition 3 ( (Hypersphere, hyperspherical cap and hyperspherical sector).)). Then the target policy is defined as
Since and , the linear algebra operations in the above definition are all well defined. In addition, we have using the definition of hyperspherical cap in Definition 3 ( (Hypersphere, hyperspherical cap and hyperspherical sector).), so as well. This means the action chosen by the target policy lives in and it is thus a valid action, so the definition of the target policy in the above display is well posed.
Reward function
The reward function depends on both the vector and on the sign or identifying the MDP and it is defined as follows:
Notice that this is a valid definition as the linear algebra operations are well defined.
The prescribed target policy is the same on and . In particular, the two MDPs have identical transition functions but opposite reward functions. In addition, notice that and .
Since the dynamics are the same for all MDPs , and the oracle has access to each one of them, it must know the dynamics, i.e., the oracle knows how to navigate the environment.
F.3 Realizability
We compute the action value function for each MDP (and its associated policy) in the class, showing realizability.
For any let and be the action-value functions of (the target policy) on and , respectively. Then it holds that
Consider . At all , must satisfy the Bellman evaluation equations for . In particular, consider applying to
since is the only possible successor state. We now evaluate the RHS. Two cases are possible: if then the reward function is zero and the rhs of the above equation reads
If conversely then the rhs reads
Thus is the action value function of the target policy on .
Similarly we verify that solves the Bellman evaluation equation on .
We now evaluate the RHS. Two cases are possible: if then the reward function is zero and the rhs of the above equation reads
If conversely then the rhs reads
F.4 Proof of Theorem 1
Consider the MDP class described in Section F.1 and Section F.2. First, from Lemma 7 ( ( Realizability).) we know that every instance of the OPE problem satisfies 1 ( ( is Realizable).) with a given feature map .
Next, we know that the set of query points is induced by one or more policies. However notice that any fixed policy visits the same states regardless of the MDP because the transition function does not depend on the particular MDP at hand. Therefore, the policy-induced query set is also policy-free. Thus, it suffices to do the proof for a policy free query set . In addition, the size of the policy-free query set is exactly since the MDP is deterministic.
From Lemma 6 ( (Existence of two Symmetric Hyperspherical Cones).) we know that if then such that . Consider the two associated MDPs and . Notice that the transition function is by construction identical on and (and so is the target policy) while their reward functions are zero at any :
This implies that the reward and transition functions in the dataset could have originated from either or , and likewise the target policy does not indicate whether the prediction concerns or .
In the value of is on and on . The agent has thus two choices: either predict a positive value or a negative one. At best, it can randomize between the two, showing the result.
Appendix G Proof of Theorem 2 and Theorem 4
We consider a class of MDPs sharing the same state-space , action space and discount factor , but different transition function and reward function . We first describe the state and action space and the discount factor which are fixed across all MDPs in the class .
At a high level, each MDP contains a two-armed bandit instance in (the starting state). There, the learner has two choices: either take the special action that leads to the terminal state and gives an immediate reward of , or take any other action that leads to either an intermediate state or the terminal state . In any case, the agent never gets back to .
The state space can written as the union of three states, a starting state , an intermediate state and a terminal state . Mathematically:
Action space
The action space is as follows. In the starting state the special action is available in addition to any action in . In , any action in is available. Finally, in the terminal state only is available. Mathematically:
Discount factor
The discount factor is in the interval .
Feature map
For this BPI problem the feature map is the -dimensional vector defined as follows
We notice that we must have and that the feature map only depends on the action.
G.2 Instance of the Class
Next we describe the MDP-specific transition and reward functions. Every MDP is identified by a vector such that , and by a and sign.
The transition function depends on the vector that identifies each MDP in the class, but not on the sign or . Fix the MDP by fixing (two MDPs correspond to a given choice of ). If the agent plays the special action , which is only available in the starting state , it transitions with probability one to the terminal state . Otherwise, the transition function is only a function of the action and the successor state is with some probability, and is otherwise the absorbing state .
Mathematically, if (which implies ) then
This is a valid definition in . If conversely :
Since the probabilities are positive (notice that in particular since and ) and add up to one, the definition is well posed. In particular, the definition implies that the successor state is always either or the terminal state :
Reward function
The reward function or depends on both the vector and on the sign or that identifies the MDP. It is always if the special action is taken and otherwise it is everywhere on or is positive only in the hyperspherical cap on . Mathematically, it is defined as follows:
and have identical transition functions but different reward functions.
The reward functions on and differ only when the chosen action is inside the hyperspherical cap .
G.3 Realizability
We compute the optimal action value function for each MDP in the class , showing realizability.
For any , let and be the optimal values on and , respectively. Then it holds that
We first consider . On any state the optimal policy is to take action , achieving a return of at every timestep. This way the agent transitions to the state and then stays put there playing action . This yields a total return of . In the terminal state action is the only available and gives a reward of zero with a self loop. Thus:
Now we apply the Bellman operator to to compute the optimal action-value function on .
If and then by definition and so
If and then
This shows that the optimal action-value function on is
which equals .
Now we reason on . In , the optimal policy is play once and transition to the terminal state . If conversely , the maximum attainable return by any policy is . Thus on the optimal value function reads
Now we apply the Bellman optimality operator to to obtain the optimal action value function on .
Conversely, if
This shows that on the optimal action value function is
which equals . This concludes the proof. ∎
G.4 Proof of Theorem 2
Consider the MDP class described in Section G.1 and Section G.2. First, from Lemma 8 ( ( is Realizable).) we know that every member of the class satisfies 2 ( ( is Realizable).) with a given feature map .
Notice that any policy induces the same state-actions (possibly with the exception of the singletons and ) regardless of the MDP that the learner is interacting with. We can therefore consider the case that the oracle has chosen a policy-free query set of size in addition to the singletons and (these singletons do not convey any additional information). Here the pairs are the possible state-actions visited by the behavioral policies chosen by the oracle.
From Lemma 5 ( (Existence of a Lonely Spherical Cone in the Positive Orthant).) we know that if then such that and . Consider the two associated MDPs and . Notice that the transition function is by construction identical on and while their reward functions are zero at any :
This implies that the transitions and the rewards in the dataset could have originated from either or . Thus in , the batch algorithm has two choices to determine : choose action and get a total return of or choose an action . The second choice is -suboptimal on , while the first is -suboptimal on . At best, the batch algorithm can randomize between the two, showing the result. ∎
G.5 Proof of Theorem 4
Now consider the following adaptive algorithm that submits policy-induced queries. The algorithm first plays in (these are policies that generate trajectories of length one) to locate the position of the hyperspherical cap (vector ). Then the agent probes the hyperspherical cap to gain knowledge of the reward function, which identifies the sign of the MDP.
Upon playing in the agent receives the transition functions for all . From this, the agent can determine each entry of the vector . Next, it can play the state-action to probe the hyperspherical cap and to observe the reward ( on and on ) which identifies the sign of the MDP. Since the specific MDP is now precisely identified, the agent can predict the value of any policy, and in particular, it can return the optimal policy. ∎
Appendix H Proof of Theorem 3
We present two versions of the construction, one with continuous action space and one with small action space. The proof for either case is the same; the two constructions are reported here to highlight the impact of the action space in such lower bound.
The state space consists of a starting state and a set of satellite states which can be identified with the unit ball . Mathematically we can write
Action space (Continuous 𝒜𝒜\mathcal{A})
The starting state has actions in the Euclidean ball; each satellite state has a unique action. Mathematically
In particular .
Action space (Small 𝒜𝒜\mathcal{A})
The starting state has the canonical vectors in the Euclidean ball as available actions (along with their ‘negative counterpart’); each satellite state has a unique action. Mathematically
In particular .
Discount factor
The discount factor is in the interval .
Feature map
The feature extractor returns the action chosen in the selected state. Mathematically
Since the available actions are always a subset of (see e.g., Eq. 101), it is easy to see that the image of the feature map is (contained in) the set .
Target Policy
In the OPE problem, the target policy is identical in every MDP in the class, and in particular, it returns the only action available in each state . In it takes action .
H.2 Instance of the Class
Every MDP in the class can be identified by a vector and a sign or , and is denoted by or , respectively. Next we describe the transition function and the reward function on and the target policy.
The transition function depends only on the vector that identifies the MDP , but not on the sign or that distinguishes from . For a given MDP , the transition function is deterministic and depends only on the action chosen; it is convenient to represent the only possible successor state by the function . Mathematically
It is easy to see that the linear algebra operations in the above display are well defined. In addition, , because and if we have , so as well. This also means that the successor state is never the starting state .
Reward function
The reward function depends on both the vector and on the sign or that identifies the MDP and it is defined as follows:
and have identical transition functions but opposite reward functions.
and have identical transition and reward functions i.e., they are the same MDP . Likewise, we have .
H.3 Realizability
For each MDP in the class, we compute the action value function of an arbitrary policy , showing realizability.
For any vector , and any policy , let and be the action-value functions of on and , respectively. Then it holds that
Let and be the Bellman evaluation operators for on and , respectively. We need to show that the proposed solutions in Eq. 108 satisfy the Bellman evaluation equations at all pairs.
First, we focus on and apply the Bellman operator to .
If then notice that the successor state is . Furthermore, must return the only action available in the successor state (and the successor state is never ). Thus we can write
If conversely then , and as before the policy can only take the only action available there, giving
This shows that is the value of on .
The argument to verify that is the value of on is identical, as follows.
If then
Otherwise, if then
H.4 Proof of Theorem 3
Consider the MDP class described in Section H.1 and Section H.2. First, from Lemma 9 ( (Realizability: Verifying assumption 3).) we know that every MDP in satisfies 3 ( ( is Realizable for every Policy).) with a given feature map .
Let be the policy-free query set chosen by the oracle. Using Lemma 6 ( (Existence of two Symmetric Hyperspherical Cones).) we can claim that if then such that . Consider the two associated MDPs and . Notice that the transition function is by construction identical on and while their reward function is zero at any :
This implies that the reward and transition functions in the dataset could have originated from either or . In addition, the target policy is fixed for all MDPs and so it does not reveal the MDP instance.
In this section we focus on the construction with continuous actions space.
Consider the best policy identification problem. In the algorithm has two choices to determine : choose an action such that or . In the first case, it obtains negative return on and in the second case it obtains negative return on . However, the value of the optimal policy in is in both cases. Even if the batch algorithm randomizes the output, with probability at least the returned policy is at least -suboptimal.
Likewise, consider the off-policy evaluation problem where is the target policy. The batch algorithm has two choices to estimate : either a positive or a negative value. However equals and equals . At best, the batch algorithm can randomize between a positive and a negative value, making an error of at least with probability at least .
Conclusion for small action space
In this section we focus on the construction with small actions space.
Now Lemma 10 ( (Sufficient Inner Product).) ensures that that for any there exists an action such that either or ; define the action in most aligned with to be .
Consider the best policy identification problem. In the algorithm has two choices to determine : choose an action such that or . In the first case, it obtains negative return on and in the second case it obtains negative return on . However, the value of the optimal policy in is at least on and at least on (notice that is available in the construction with small action space). Even if the batch algorithm randomizes the output, with probability at least the returned policy is at least -suboptimal.
Likewise, consider the off-policy evaluation problem where is the target policy. The batch algorithm has two choices to estimate : either a positive or a negative value. However and . At best, the batch algorithm can randomize between a positive and a negative value, making an error of at least with probability at least .
Learning with an adaptive or online algorithm (continuous action space)
H.5 Helper Lemma
To prove Theorem 3 ( (Policy-Free Lower Bounds).) with small action space we need the following helper lemma.
Let be the th component of . From the hypothesis we must have
This implies that at least one component for some must be greater (in absolute value) than , i.e.,
otherwise in Eq. 139, contradiction. Since are the canonical vectors, the thesis now follows. ∎