Contextual Decision Processes with Low Bellman Rank are PAC-Learnable

Nan Jiang, Akshay Krishnamurthy, Alekh Agarwal, John Langford, Robert E. Schapire

Introduction

How can we tractably solve sequential decision making problems where the agent receives rich observations?

In this paper, we study this question by considering reinforcement learning (RL) problems where the agent receives rich sensory observations from the environment, forms complex contexts from the sensorimotor streams, uses function approximation to generalize to unseen contexts, and must engage in systematic exploration to efficiently learn to complete tasks. Such problems are at the core of empirical reinforcement learning research (e.g., (Mnih et al., 2015; Bellemare et al., 2016)), yet no existing theory provides rigorous and satisfactory guarantees in a general setting.

To answer the question, we propose a new formulation, which we call Contextual Decision Processes (CDPs), to capture a large class of sequential decision-making problems: CDPs generalize MDPs where the state forms the context (Example 1), and POMDPs where the history forms the context (Example 2). We describe CDPs formally in Section 2, and the learning goal is to find a near-optimal policy for a CDP in a sample-efficient manner.Throughout the paper, by sample-efficient we mean a number of trajectories that is polynomial in the problem horizon, number of actions, Bellman rank (to be introduced), and polylogarithmic in the number of candidate value-functions.

When the context space is very large or infinite, as is common in practice, lower bounds that are exponential in the problem horizon preclude efficient learning of CDPs, even when simple function approximators are used. However, RL problems arising in applications are often far more benign than the pathological lower bound instances, and we identify a structural assumption capturing this intuition. As our first major contribution, we define a notion of Bellman factorization (Definition 5) in Section 3, and focus on problems with low Bellman rank.

At a high level, Bellman rank is a form of algebraic dimension on the interplay between the CDP and the value-function approximator that we show is small for many natural settings. For example, every MDP with a tabular value-function has Bellman rank bounded by the rank of its transition matrix, which is at most the number of states but can be considerably smaller. For a POMDP with reactive value-functions, the Bellman rank is at most the number of hidden states and has no dependence on the observation space. We provide other instances of low Bellman rank including Linear Quadratic Regulators and Predictive State Representations. Overall, CDPs with a small Bellman rank yield a unified framework for a large class of sequential decision making problems.

Our second contribution is a new algorithm for episodic reinforcement learning called Olive (Optimism Led Iterative Value-function Elimination), detailed in Section 4.1. Olive combines optimism-driven exploration and Bellman error-based search in a new way crucial for theoretical guarantees.

The algorithm is an iterative procedure that successively refines a space of candidate Q-value functions F\mathcal{F}. At iteration tt, it first finds the surviving value function f∈Ftf\in\mathcal{F}_{t} that predicts the highest value on the initial context distribution. By collecting a few trajectories according to ff’s greedy policy, πf\pi_{f}, we can verify this prediction. If the attained value is close to the prediction, our algorithm terminates and outputs ff. If not, we eliminate all surviving f′∈Ftf^{\prime}\in\mathcal{F}_{t} which violate certain Bellman equations on trajectories sampled using πf\pi_{f}. Ft+1\mathcal{F}_{t+1} is set to all the surviving functions and this process repeats.

Importantly, the sample complexity bound has a logarithmic dependence on F\mathcal{F}, thus enabling powerful function approximation, and no direct dependence on the size of the context space, which can be very large or even infinite. As many existing models, including the ones mentioned above, have low Bellman rank, the result immediately implies sample-efficient learning in all of these settings,Our algorithm requires discrete action spaces and does not immediately apply to LQRs; see more discussion in Section 3. as highlighted in Table 1.

We also present several extensions of the main result, showing robustness to the failure of the assumption that the optimal value-function is captured by the function approximator, adaptivity to unknown Bellman rank, and extension to infinite function classes of bounded statistical complexity. Altogether, these results show that the notion of Bellman rank robustly captures the difficulty of exploration in sequential decision-making problems.

To summarize, this work advances our understanding in reinforcement learning with complex observations where long-term planning and exploration are critical. There are, of course, several additional questions that must be resolved before we have satisfactory tools for these problems. The biggest drawback of Olive is its computational complexity, which is polynomial in the number of value functions and hence intractable for the powerful classes of interest. This issue must be addressed before we can empirically evaluate the effectiveness of the proposed algorithm. We leave this and other open questions for future work.

There is a rich body of theoretical literature on learning Markov Decision Processes (MDPs) with small state spaces (Kearns and Singh, 2002; Brafman and Tennenholtz, 2003; Strehl et al., 2006), with an emphasis on sophisticated exploration techniques that find near-optimal policies in a sample-efficient manner. While there have been attempts to extend these techniques to large state spaces (Kakade et al., 2003; Jong and Stone, 2007; Pazis and Parr, 2016), these approaches fail to be a good fit for practical scenarios where the environment is typically perceived through complex sensory observations such as image, text, or audio signals. Alternatively, Monte Carlo Tree Search (MCTS) methods can handle arbitrarily large state spaces, but only at the cost of exponential dependence on the planning horizon (Kearns et al., 2002; Kocsis and Szepesvári, 2006). Our work departs from these existing efforts by aiming for a sample complexity that is independent of the size of the context space and at most polynomial in the horizon. Similar goals have been attempted by Wen and Van Roy (2013) and Krishnamurthy et al. (2016) where attention is restricted to decision processes with deterministic dynamics and special structures. In contrast, we study a much broader class of problems with relatively mild conditions.

On the empirical side, the prominent recent success on both the Atari platform (Mnih et al., 2015; Wang et al., 2015) and Go (Silver et al., 2016) have sparked a flurry of research interest. These approaches leverage advances in deep learning for powerful function approximation, while, in most cases, using simple heuristic strategies, such as ϵ\epsilon-greedy, for exploration. More advanced exploration strategies include extending the methods for small state spaces (e.g., the use of pseudo-counts in Bellemare et al. (2016)), and combining MCTS with function approximation (e.g., Silver et al. (2016)). Unfortunately, both types of approaches often require strong domain knowledge and large amounts of data to be successful.

Hallak et al. (2015) have proposed a setting called Contextual MDPs, where a context refers to some static information that can be used to generalize across many similar MDPs. In this paper, a context is most similar to state features in the RL literature and is a natural generalization of the notion of context as in the contextual bandit literature (Langford and Zhang, 2008).

Contextual Decision Processes (CDPs)

We introduce a new model, called a Contextual Decision Process, as a unified framework for reinforcement learning with rich observations. We first present the model, before the relevant notation and definitions.

Contextual Decision Processes make minimal assumptions to capture a very general class of RL problems and are defined as follows.

In a CDP, the agent’s interaction with the environment proceeds in episodes. In each episode, the agent observes a context x1x_{1}, takes action a1a_{1}, receives reward r1r_{1} and observes x2x_{2}, repeating HH times. A policy π:X→A\pi:\mathcal{X}\to\mathcal{A} specifies the decision-making strategy of an agent, that is ah=π(xh), ∀h∈[H]a_{h}=\pi(x_{h}),~{}\forall h\in[H], and induces a distribution over the trajectory (x1,a1,r1,…,xH,aH,rH,xH+1)(x_{1},a_{1},r_{1},\ldots,x_{H},a_{H},r_{H},x_{H+1}) according to the system descriptor PP. More generally, a sequence of stochastic policies π1,…,πH:X→Δ(A)\pi_{1},\ldots,\pi_{H}:\mathcal{X}\to\Delta(\mathcal{A}) induces a distribution over trajectories in a similar way, where ah∼πh(xh) ∀h∈[H]a_{h}\sim\pi_{h}(x_{h})~{}\forall h\in[H]. The value of a policy, VπV^{\pi}, is defined as

Below we show that CDPs capture classical RL models, including MDPs and POMDPs, and the optimal policies can be expressed as a function of appropriately chosen contexts.

Consider a finite-horizon MDP (S,A,H,Γ1,Γ,R)({\mathcal{S}},\mathcal{A},H,\Gamma_{1},\Gamma,R), where S{\mathcal{S}} is the state space, A\mathcal{A} is the action space, HH is the horizon, Γ1∈Δ(S)\Gamma_{1}\in\Delta({\mathcal{S}}) is the initial state distribution, Γ:S×A→Δ(S)\Gamma:{\mathcal{S}}\times\mathcal{A}\to\Delta({\mathcal{S}}) is the state transition function, R:S×A→Δ()R:{\mathcal{S}}\times\mathcal{A}\to\Delta() is the reward function, and an episode takes the form of (s1,a1,r1,…,sH,aH,rH)(s_{1},a_{1},r_{1},\ldots,s_{H},a_{H},r_{H}). We can convert the MDP to a CDP (X,A,H,P)(\mathcal{X},\mathcal{A},H,P) by letting X=S×[H]\mathcal{X}={\mathcal{S}}\times[H] and xh=(sh,h)x_{h}=(s_{h},h), which allows the set of policies {X→A}\{\mathcal{X}\to\mathcal{A}\} to contain the optimal policy (Puterman, 1994). The system descriptor is P=(P∅,P+)P=(P_{\varnothing},P_{+}), where P∅(x1)=Γ1(s1)P_{\varnothing}(x_{1})=\Gamma_{1}(s_{1}), and P+(rh,xh+1 ∣ x1,a1,r1,…,xh,ah)=R(rh∣sh,ah) Γ(sh+1∣sh,ah)P_{+}(r_{h},x_{h+1}\,|\,x_{1},a_{1},r_{1},\ldots,x_{h},a_{h})=R(r_{h}|s_{h},a_{h})\,\Gamma(s_{h+1}|s_{h},a_{h}).

The system descriptor for a particular model is usually obvious from the definitions, and here we give its explicit form as an illustration. We omit the specification of system descriptor in the remaining examples.

Next we turn to POMDPs. It might seem that a CDP describes a similar process as a POMDP but limits the agent’s decision-making strategies to memoryless (or reactive) policies, as we only consider policies in {X→A}\{\mathcal{X}\to\mathcal{A}\}. This is not true. We clarify this issue by showing that we can use the history as context, and the induced CDP suffers no loss in the ability to represent optimal policies.

It is also clear from this example that we can assume contexts are Markovian in CDPs without loss of generality, as we can always use history as context. While we do not commit to this assumption to allow for a flexible framework with simple notation (see Example 3), we later connect to well-known results in MDP literature based on this observation so that readers can transfer insights from MDPs to CDPs.

In some application scenarios, partial observability can be resolved by using a small sliding window: for example, in Atari games, it is common to keep track of the last 44 frames of images (Mnih et al., 2015). In this case, we can represent the problem as a CDP by letting xh=(oh−3,oh−2,oh−1,oh)x_{h}=(o_{h-3},o_{h-2},o_{h-1},o_{h}).

We hope these examples convince the reader of the flexibility of keeping contexts separate from intrinsic quantities such as states or observations. Finally, we introduce a regularity assumption on the rewards.

We assume that regardless of how actions are chosen, for any h=1,…,Hh=1,\ldots,H, rh≥0r_{h}\geq 0 and ∑h=1Hrh≤1\sum_{h=1}^{H}r_{h}\leq 1 almost surely.

2 Value-based RL and Function Approximation

Now that we have a model in place, we turn to some important solution concepts.

A CDP makes no assumption on the cardinality of the context space, which makes it critical to generalize across contexts, since the agent might not encounter the same context twice. Therefore, we consider value-based RL with function approximation. That is, the agent is given a set of functions F⊆X×A→\mathcal{F}\subseteq\mathcal{X}\times\mathcal{A}\to and uses it to approximate an action-value function (or Q-value function). Without loss of generality we assume that f(xH+1,a)≡0f(x_{H+1},a)\equiv 0.This frees us from having to treat the last level (h=Hh=H) differently in the Bellman equations. For the purpose of presentation, we assume that F\mathcal{F} is a finite space with ∣F∣=N<∞|\mathcal{F}|=N<\infty for most of the paper. In Section 5.3 we relax this assumption and allow infinite function classes with bounded complexity.

Given any policy π:X→A\pi:\mathcal{X}\to\mathcal{A} and a function f:X×A→f:\mathcal{X}\times\mathcal{A}\to, the average Bellman error of ff under roll-in policy π\pi at level hh is defined as

In words, the average Bellman error measures the self-consistency of a function ff between its predictions at levels hh and h+1h+1 when all the previous actions are taken according to some policy π\pi. In many existing approaches (e.g., LSPI (Lagoudakis and Parr, 2003) and FQI (Ernst et al., 2005)), the Bellman errors are defined as taking the expectation of a squared error unlike this definition. Given this definition, we now define a set of Bellman equations.

Given an (f,π,h)(f,\pi,h) triple, a Bellman equation posits E(f,π,h)=0\mathcal{E}(f,\pi,h)=0. We say f∈Ff\in\mathcal{F} is valid if the Bellman equation on (f,πf′,h)(f,\pi_{f^{\prime}},h) holds for every f′∈F,h∈[H]f^{\prime}\in\mathcal{F},h\in[H].

Note that the validity assumption only considers roll-ins according to the greedy policies πf\pi_{f}, which is the natural policy class in a function approximation setting. In Section 5.2, we show how to incorporate a separate policy class in these definitions. In the MDP setting, each Bellman equation can be viewed as the linear combination of the standard Bellman optimality equations for Q⋆Q^{\star}, Readers who are not familiar with the definition of Q⋆Q^{\star} are advised to consult a textbook, such as (Sutton and Barto, 1998). where the coefficients are the probabilities with which the roll-in policy π\pi visits each state. This leads to the following consequence.

Given an MDP and a space of functions F:S×[H]×A→\mathcal{F}:{\mathcal{S}}\times[H]\times\mathcal{A}\to, if the optimal Q-value function of the MDP Q⋆Q^{\star} lies in F\mathcal{F}, then in the corresponding CDP with X=S×[H]\mathcal{X}={\mathcal{S}}\times[H], Q⋆Q^{\star} is valid.

While Q⋆Q^{\star} satisfies the Bellman equations and yields the optimal policy π⋆=πQ⋆\pi^{\star}=\pi_{Q^{\star}}, there can be other functions which also satisfy the equations while yielding suboptimal policies. This happens because Eq. (2) only considers aha_{h} drawn according to πf\pi_{f} and does not use the values on other actions. For instance, consider a CDP where at every context, action aa always gets a reward of 0 and action a′a^{\prime} always gets a reward of 1. A function that predicts f(x,a)=f(x,a′)=0 ∀x,af(x,a)=f(x,a^{\prime})=0~{}\forall x,a is trivially valid as long as tie-breaks always favor aa.

Since validity alone does not imply that we get a good policy, it is natural to search for a valid value function which also induces a high-value policy. We formalize this goal in the next definition.

For the same setting as in Fact 1, when Q⋆∈FQ^{\star}\in\mathcal{F}, we have f⋆=Q⋆f^{\star}=Q^{\star}, and VF⋆=V⋆V_{\mathcal{F}}^{\star}=V^{\star}, which is the optimal long-term value.

Definition 4 implicitly assumes that there is at least one valid f∈Ff\in\mathcal{F}. This is weaker than the realizability assumption made in the value-based RL literature, that F\mathcal{F} contains the optimal Q-value function of an MDP Q⋆Q^{\star} (Antos et al., 2008; Krishnamurthy et al., 2016). Indeed, the setup subsumes realizability, as evidenced by Fact 1 and 2. When Q⋆∈FQ^{\star}\in\mathcal{F}, the algorithm aims to identify a policy achieving value close to V⋆V^{\star}, the optimal value achievable by any agent. When no functions in F\mathcal{F} approximate Q⋆Q^{\star} well, finding the best valid value function is still a meaningful and non-trivial objective. In this sense, our work makes substantially weaker realizability-type assumptions than prior theoretical results for value-based RL (Antos et al., 2008; Krishnamurthy et al., 2016), which assume Q⋆∈FQ^{\star}\in\mathcal{F} often in addition to several stronger requirements.

In general, F\mathcal{F} may not contain Q∗Q^{*}, or any valid functions at all, which makes our learning goal trivial. It is desirable to have an algorithm robust to such a scenario, and we show how our algorithm requires only an approximate notion of validity in Section 5.4, implying a graceful degradation in the results.

Bellman Factorization and Bellman Rank

CDPs are general models for sequential decision making, but are there efficient RL algorithms for them?

Unfortunately, without further assumptions, learning in CDPs is generally hard, since they subsume MDPs and POMDPs with arbitrarily large state/observation spaces. Moreover, a function class F\mathcal{F} with low statistical complexity, which would generalize effectively in a standard supervised learning setting with a fixed data distribution, does not overcome this difficulty in CDPs where the data distribution crucially depends on the agent’s policy. In particular, even when log⁡N\log N, the statistical complexity for finite classes, is small, there exists an Ω(KH)\Omega(K^{H}) lower bound on the sample complexity of learning CDPs. The result is due to Krishnamurthy et al. (2016), and is included in Appendix A.1 for completeness.

While exponential lower bounds for learning CDPs exist, they are fairly pathological, and most real problems have substantially more structure. To capture these realistic instances and circumnavigate the lower bounds, we propose a new complexity measure and restrict our attention to settings where this measure is low. As we will see, this measure is naturally small for many existing models, and, when it is small, efficient reinforcement learning is possible.

The complexity measure we propose is a structural characterization of the set of Bellman equations induced by the CDP and the value-function class (recall Definition 2) that we need to check to find valid functions. While checking validity by enumeration is intractable for large F\mathcal{F}, observe that the Bellman equations are structured in tabular MDPs: the average Bellman error under any roll-in policy is a stochastic combination of the single-state errors, and checking the single-state errors (which is tractable) is sufficient to guarantee validity. This observation hints toward a more general phenomenon: whenever the collection of Bellman errors across all roll-in policies can be concisely represented, we may be able to check the validity of all functions in a tractable way.

This intuition motivates a new complexity measure that we call the Bellman rank. Define the Bellman error matrices, one for each hh, to be ∣F∣×∣F∣|\mathcal{F}|\times|\mathcal{F}| matrices where the (f,f′)th(f,f^{\prime})^{\textrm{th}} entry is the Bellman error E(f,πf′,h)\mathcal{E}(f,\pi_{f^{\prime}},h). Informally, the Bellman rank for a CDP and a given value-function class F\mathcal{F} is a uniform upper bound on the rank of these HH Bellman error matrices.

and ∥νh(f′)∥2⋅∥ξh(f)∥2≤ζ<∞\|\nu_{h}(f^{\prime})\|_{2}\cdot\|\xi_{h}(f)\|_{2}\leq\zeta<\infty.

The exact factorization in Eq. (3) can be relaxed to an approximate version as is discussed in Section 5.4. In the remaining sections of this paper we introduce the main algorithm, and analyze its sample-efficiency in problems with low Bellman rank. In the remainder of this section we showcase the generality of Definition 5 by describing a number of common RL settings that have a small Bellman rank. Throughout, we see how the Bellman rank captures the process-specific structures that allow for efficient exploration. Proofs of all claims in this section are deferred to Appendix B.

We start with the tabular MDP setting, and show that the Bellman rank is at most the number of states.

Consider the MDP setting of Example 1 with the corresponding CDP. With any F⊂X×A→\mathcal{F}\subset\mathcal{X}\times\mathcal{A}\to, this model admits a Bellman factorization with M=∣S∣M=|{\mathcal{S}}| and ζ=2M\zeta=2\sqrt{M}.

A related model introduced by Li (2009) for extending tabular PAC-MDP methods to large MDPs using a form of state abstractions also has low Bellman rank (See Appendix B.2).

The MDP example is particularly simple as each coordinate of the MM-dimensional space corresponds to a state, which is observable. Our next few examples show that this is not necessary, and that Bellman factorization can be based on latent properties of the process. We next consider large MDPs whose transition dynamics have a low-rank structure. A closely related setting has been considered by Barreto et al. (2011, 2014) where the low-rank structure is exploited to speed up MDP planning, but prior to this work, no sample-efficient RL algorithms are known for this setting.

Consider the MDP setting of Example 1 with a transition matrix Γ\Gamma having rank at most MM. The induced CDP along with any F⊂X×A→\mathcal{F}\subset\mathcal{X}\times\mathcal{A}\to admits a Bellman factorization with Bellman rank MM.

The next example considers POMDPs with large observations spaces and reactive value functions, where the Bellman rank is at most the number of hidden states.

Consider the POMDP setting of Example 3 with ∣S∣<∞|{\mathcal{S}}|<\infty and a sliding window of size 1 along with the induced CDP. Given any F⊂X×A→\mathcal{F}\subset\mathcal{X}\times\mathcal{A}\to, this model admits a Bellman factorization with M=∣S∣M=|{\mathcal{S}}| and ζ=2M\zeta=2\sqrt{M}.

Proposition 2 and 3 can be proved under a unified model that generalizes POMDPs by allowing the transition function and the reward function to depend on the observation (See Figure 1 (a) – (c) for graphical representations of these models). This unified model captures the experimental settings considered in state-of-the-art empirical RL work (Figure 1 (d)), where agents act in a grid-world (∣S∣|{\mathcal{S}}| is small) and receives complex and rich observations such as raw pixel images (∣O∣|\mathcal{O}| is large). The model also subsumes and generalizes the setting of Krishnamurthy et al. (2016) which requires deterministic transitions in the underlying MDP. Our new algorithm eliminates the need for determinism, and still guarantee sample-efficient learning.

Next, we consider Predictive State Representations (PSRs), which are models of partially observable systems with parameters grounded in observable quantities (Littman et al., 2001). Similar to the case of POMDPs, we can bound the Bellman rank in terms of the rank of the PSREvery POMDP has an equivalent PSR whose rank is bounded by the number of hidden states (Singh et al., 2004). when the candidate value functions are reactive.

Consider a partially observable system with observation space O\mathcal{O}, and the induced CDP (X,A,H,P)(\mathcal{X},\mathcal{A},H,P) with xh=(oh,h)x_{h}=(o_{h},h). If the linear dimension of the system (i.e., rank of its PSR model) is at most LL, then given any F:X×A→\mathcal{F}:\mathcal{X}\times\mathcal{A}\to, the Bellman rank is bounded by LKLK.

The last example considers a class of linear control problems well studied in control theory, called Linear Quadratic Regulators (LQRs). We show that the Bellman rank in LQRs is bounded by the dimension of the state space. Exploration in this class of problems has been previously considered by Osband and Van Roy (2014). Note that the algorithm to be introduced in the next section does not directly apply to LQRs due to the continuous action space, and adaptations that exploit the structure of the action space may be needed, which we leave for future work.

Algorithm and Main Results

In this section we present the algorithm for learning CDPs that have a Bellman factorization with a small Bellman rank and the main sample complexity guarantee. To aid presentation and help convey the main ideas, we make three simplifying assumptions:

We assume the Bellman rank parameter MM is known to the agent.We also assume knowledge of the corresponding norm parameter, but this is relatively minor.

We assume the function class F\mathcal{F} is finite with ∣F∣=N|\mathcal{F}|=N.

We assume exact validity (Definition 3) and exact Bellman factorization (Definition 5).

All three assumptions can be relaxed, and we sketch these relaxations in Section 5.

We are interested in designing an algorithm for PAC Learning CDPs. We say that an algorithm PAC learns if given F\mathcal{F}, two parameters ϵ,δ∈(0,1)\epsilon,\delta\in(0,1), and access to a CDP, the algorithm outputs a policy π^\hat{\pi} with Vπ^≥VF⋆−ϵV^{\hat{\pi}}\geq V_{\mathcal{F}}^{\star}-\epsilon with probability at least 1−δ1-\delta. The sample complexity is the number of episodes needed to achieve such a guarantee, and is typically expressed in terms of ϵ\epsilon, δ\delta and other relevant parameters. The goal is to design an algorithm with sample complexity that is Poly(M,K,H,1/ϵ,log⁡(N),log⁡(1/δ))\textrm{Poly}(M,K,H,1/\epsilon,\log(N),\log(1/\delta)) where MM is the Bellman rank, KK is the number of actions, and HH is the time horizon. Importantly, the bound has no dependence on the number of unique contexts ∣X∣|\mathcal{X}|.

Pseudocode for the algorithm, which we call Olive (Optimism Led Iterative Value-function Elimination), is displayed in Algorithm 1. Theorem 1 describes how to set the parameters nest,neval,nn_{\textrm{est}},n_{\textrm{eval}},n, and ϕ\phi.

At a high level, the algorithm aims to eliminate functions f∈Ff\in\mathcal{F} that fail to satisfy the validity condition in Definition 3. This is done by Lines 13 and 14 inside the loop of the algorithm. Observe that, since the actions ahta_{h_{t}} are chosen uniformly at random, Eq. (5) produces an unbiased estimate of E(f,πt,ht)\mathcal{E}(f,\pi_{t},h_{t}), the average Bellman error for function ff on roll-in policy πt\pi_{t} at time hth_{t}. Thus, Eq. (6) eliminates functions that have high average Bellman error on this distribution, which means they fail to satisfy the validity criteria.

The other major component of the algorithm involves choosing the roll-in policy and level on which to do the learning step. At iteration tt, we choose the roll-in policy πt\pi_{t} optimistically, by choosing ftf_{t} that predicts the highest value at the starting context distribution, and letting πt=πft\pi_{t}=\pi_{f_{t}}. To pick the level, we compute ftf_{t}’s average Bellman error on its own roll-in distribution (Eq. (4)), and set hth_{t} to be any level for which this average Bellman error is high (See Line 11). As we will show, these choices ensure that substantial learning happens on each iteration, guaranteeing that the algorithm uses polynomially many episodes.

The last component is the termination criterion. The algorithm terminates if ftf_{t} has small average Bellman error on its own roll-in distribution at all levels. This criteria guarantees that πt\pi_{t} is near optimal.

Computationally, the algorithm requires enumeration of the value-function class, which we expect to be extremely large or infinite in practice. A computationally efficient implementation is essential for a practical algorithm, which is left to future work. We focus on the sample efficiency of the algorithm in this paper.

Intuition for OLIVE. To convey intuition, it is helpful to ignore any sampling effects by replacing all empirical estimates with population values, and set ϵ\epsilon to . The first important fact is that the algorithm never eliminates a valid function, since the learning step in Eq. (6) only eliminates a function ff if we can find a distribution on which it has a large average Bellman error. If ff is valid, then E(f,π,h)=0\mathcal{E}(f,\pi,h)=0 for all π,h\pi,h, so ff is never eliminated.

The more challenging component is ensuring that the algorithm terminates in polynomially many iterations, which is critical for obtaining a polynomial sample complexity bound. This argument crucially relies on the Bellman factorization (recall Definition 5), which enables us to embed the distributions into MM dimensions and measure progress in this low-dimensional space.

For now, fix some hh and focus on the iterations when ht=hh_{t}=h. If we ignore sampling effects we can set ϕ=0\phi=0, and, by using the Bellman factorization to write E(f,πft,h)\mathcal{E}(f,\pi_{f_{t}},h) as an inner product, we can think of the learning step in Line 14 as introducing a homogeneous linear constraint on the set of ξh(f)\xi_{h}(f) vectors, that is, ⟨νh(ft),ξh(f)⟩=0\langle\nu_{h}(f_{t}),\xi_{h}(f)\rangle=0. Now, if we execute the learning step at level hh again in a later iteration t′t^{\prime}, we have ⟨νh(ft′),ξh(ft′)⟩≠0\langle\nu_{h}(f_{t^{\prime}}),\xi_{h}(f_{t^{\prime}})\rangle\neq 0 from Line 11. Importantly, this means that νh(ft′)\nu_{h}(f_{t^{\prime}}) must be linearly independent from previous νh(ft)\nu_{h}(f_{t}) since ⟨νh(ft),ξh(ft′)⟩=0\langle\nu_{h}(f_{t}),\xi_{h}(f_{t^{\prime}})\rangle=0. In general, every time ht=hh_{t}=h, the number of linearly independent constraints increases by 1, and therefore the number of iterations where ht=hh_{t}=h is at most the dimension of the space, which is MM. Thus the Bellman rank leads to a bound on the number of iterations.

The above heuristic reasoning, despite relying on the brittle notion of linear independence, can be made robust. With sampling effects, rather than homogeneous linear equalities, the learning step for level hh introduces linear inequality constraints to the ξh(f)\xi_{h}(f) vectors. But if f′f^{\prime} is a surviving function that forces us to train at level hh, it means that ⟨νh(f′),ξh(f′)⟩\langle\nu_{h}(f^{\prime}),\xi_{h}(f^{\prime})\rangle is very large, while ⟨νh(⋅),ξh(f′)⟩\langle\nu_{h}(\cdot),\xi_{h}(f^{\prime})\rangle is very small for all previous νh(⋅)\nu_{h}(\cdot) vectors used in the learning step. Intuitively this means that the new ν(f′)\nu(f^{\prime}) vector is quite different from all of the previous ones. In our proof, we use a volumetric argument to show that this suffices to guarantee substantial learning takes place.

The optimistic choice for ftf_{t} is critical for driving the agent’s exploration. With this choice, if ftf_{t} is valid, then the algorithm terminates correctly, and if ftf_{t} is not valid, then substantial progress is made. Thus the agent does not get stuck exploring with many valid but suboptimal functions, which could result in exponential sample complexity.

2 Sample Complexity

We now turn to the main result, which guarantees that Olive PAC-learns Contextual Decision Processes with polynomial sample complexity.

For any ϵ,δ∈(0,1)\epsilon,\delta\in(0,1), any Contextual Decision Process and function class F\mathcal{F} that admits a Bellman factorization with parameters M,ζM,\zeta, run Olive with the following parameters:

According to this theorem, if a Contextual Decision Process and function class F\mathcal{F} admit a Bellman factorization with small Bellman rank and F\mathcal{F} contains valid functions, Olive is guaranteed to find a near optimal valid function using only polynomially many episodes. To our knowledge, our result is the most general polynomial sample complexity bound for reinforcement learning with rich observation spaces and function approximation, as many popular models are shown to admit small Bellman rank (see Section 3). The result also certifies that the notion of Bellman factorization, which is quite general, is sufficient for efficient exploration and learning in sequential decision making problems.

It is worth briefly comparing this result with prior work.

The most closely related result is the recent work of Krishnamurthy et al. (2016), who also consider episodic reinforcement learning with infinite observation spaces and function approximation. The model studied there is a form of Contextual Decision Process with Bellman rank MM, so the result applies as is to that setting. Importantly, we eliminate the need for deterministic transitions, resolving one of their open problems. Moreover, the sample complexity bound improves the dependence on HH and ϵ\epsilon, at the cost of a worse dependence on MM. We emphasize that this result applies to a much more general class of models.

Another related body of work provides sample complexity bounds for fitted value/policy iteration methods (e.g., (Munos, 2003; Antos et al., 2008; Munos and Szepesvári, 2008)). These works consider the infinite-horizon discounted MDP setting, and impose much stronger assumptions than we do including not only that the function class captures Q⋆Q^{\star}, but also that it is approximately closed under Bellman update operators. More importantly, the analyses rely on the so-called concentrability coefficients to correct the mismatch between training and test distributions (Farahmand et al., 2010; Lazaric et al., 2012), implicitly assuming that an exploration distribution is given, hence these results do not address the exploration issue which is the main focus here.

This approach applies to learning reactive policies in POMDPs (see Proposition 3). Azizzadenesheli et al. (2016) provides a sample-efficient algorithm in a closely related setting, where both the observation space and the hidden-state space are small in cardinality. While their approach does not require realizable value-functions, the sample complexity depends polynomially on the number of unique observations, and the method relies on additional mixing assumptions, which we do not require.

Finally, Contextual Decision Processes also encompass contextual bandits, where the optimal sample complexity is O(Klog⁡(N)/ϵ2)O(K\log(N)/\epsilon^{2}) (Agarwal et al., 2012). As contextual bandits have M=1M=1 and H=1H=1, Olive achieves optimal sample complexity in this special case.

Turning briefly to lower bounds, since the CDP setting with Bellman factorization is new, general lower bounds for the broad class do not exist. However, we can use MDP lower bounds for guidance on the question of optimality, since the small-state MDPs in Example 1 are a special case. While no existing MDP lower bounds apply as is (because formulations vary), in Appendix A.2 we adapt ideas from Auer et al. (2002) to obtain a Ω(MKH/ϵ2)\Omega(MKH/\epsilon^{2}) sample complexity lower bound for learning the MDPs in Example 1.

Comparing with this lower bound, the sample complexity in Theorem 1 is worse in M,HM,H, and log⁡(N)\log(N) factors, but of course the small-state MDP is a significantly simpler special case. We leave as future work the question of optimal sample complexity for learning CDPs with low Bellman rank.

Extensions

We introduce four important extensions to the algorithm and analysis.

The first extension eliminates the need to know MM in advance (note that Algorithm 1 requires MM as an input parameter). A simple procedure described in Algorithm 2, can guess the value of MM on a doubling schedule and handle this situation with no consequences to asymptotic sample complexity.In Algorithm 2 we assume that ζ\zeta is known. In the examples provided in Proposition 1, 2, and 3, however, ζ\zeta grows with MM in the form of ζ=2M\zeta=2\sqrt{M}. In this case, we can compute ζ′=2M′\zeta^{\prime}=2\sqrt{M^{\prime}} and call Olive with ζ′\zeta^{\prime} instead of ζ\zeta. As long as ζ\zeta is a polynomial term and non-decreasing in MM the same analysis applies and Theorem 2 holds.

For any ϵ,δ∈(0,1)\epsilon,\delta\in(0,1), any Contextual Decision Process and function class F\mathcal{F} that admits a Bellman factorization with parameters M,ζM,\zeta, if we run GuessM(F,ϵ,δ)(\mathcal{F},\epsilon,\delta), then with probability at least 1−δ1-\delta, Olive halts and returns a policy which satisfies Vπ^≥VF⋆−ϵV^{\hat{\pi}}\geq V_{\mathcal{F}}^{\star}-\epsilon, and the number of episodes required is at most

We give some intuition about the proof here, with details in Appendix D. In Algorithm 2, M′M^{\prime} is a guess for MM which grows exponentially. When M′≥MM^{\prime}\geq M, analysis of the main algorithm shows that \textscOlive(F,M′,ϵ,δi(i+1))\textsc{Olive}(\mathcal{F},M^{\prime},\epsilon,\frac{\delta}{i(i+1)}) terminates and returns a near-optimal policy with high probability. The doubling schedule implies that the largest guess is at most 2M2M, which has negligible effect on the sample complexity. On the other hand, Olive may not explore effectively when M′<MM^{\prime}<M, because not enough samples (chosen according to M′M^{\prime}) are used to estimate the average Bellman errors in Eq. (5). This worse accuracy does not guarantee sufficient progress in learning.

However, the high-probability guarantee that f⋆f^{\star} is not eliminated is unaffected, because the threshold ϕ\phi on Line 6 of Olive is set in accordance with the sample size nn specified in Theorem 1, regardless of MM. Consequently, if the algorithm ever terminates when M′<MM^{\prime}<M, we still get a near-optimal policy. When M′<MM^{\prime}<M the Olive subroutine may not terminate, which the explicit termination on line 4 in Algorithm 2 addresses. Finally, by splitting the failure probability δ\delta appropriately among all guesses of M′M^{\prime}, we obtain the same order of sample complexity as in Theorem 1.

2 Separation of Policy Class and V-value Class

So far, we have assumed that the agent has access to a class of Q-value functions F⊂X×A→\mathcal{F}\subset\mathcal{X}\times\mathcal{A}\to. In this section, we show the algorithm allows separate representations of policies and V-value functions.

For every f∈Ff\in\mathcal{F}, and any x∈X,a≠πf(x)x\in\mathcal{X},a\neq\pi_{f}(x), we note that the value of f(x,a)f(x,a) is not used by Algorithm 1, and changing it to arbitrary values does not affect the execution of the algorithm as long as f(x,a)≤f(x,πf(x))f(x,a)\leq f(x,\pi_{f}(x)) (so that πf\pi_{f} does not change). In other words, the algorithm only interacts with ff in two forms:

A mapping gf:x↦f(x,πf(x))g_{f}:x\mapsto f(x,\pi_{f}(x)). We call such mappings V-value functions to contrast the previous use of Q-value functions.In the MDP setting, such functions are also known as state-value functions.

Hence, supplying F\mathcal{F} is equivalent to supplying the following space of (policy, V-value function) pairs:

This observation provides further evidence that Definition 3 is significantly less restrictive than standard realizability assumptions. Validity of ff means that (πf,gf)(\pi_{f},g_{f}) obeys the Bellman Equations for Policy Evaluation (i.e., gfg_{f} predicts the long-term value of following πf\pi_{f}), as opposed to the more common Bellman Optimality Equations. In MDPs, there are many ways to satisfy the policy evaluation equations at every state simultaneously, while Q⋆Q^{\star} is the only function that satisfies all optimality equations.

More generally, instead of using a Q-value function class, we can run Olive with a policy space Π⊂X→A\Pi\subset\mathcal{X}\to\mathcal{A} and a V-value function class G⊂X→\mathcal{G}\subset\mathcal{X}\to where we assemble (policy,V-value function) pairs by taking the Cartesian product of Π\Pi and G\mathcal{G}. Olive can be run here with the understanding that each Q-value function ff in Olive is associated with a (π,g)(\pi,g) pair, and the algorithm uses π\pi instead of πf\pi_{f} and g(x)g(x) instead of f(x,πf(x))f(x,\pi_{f}(x)). All the analysis applies directly with this transformation, and the log⁡∣F∣\log|\mathcal{F}| dependence in sample complexity is replaced by log⁡∣Π∣+log⁡∣G∣\log|\Pi|+\log|\mathcal{G}|. Note also that the definition of Bellman factorization also extends naturally to this case, where the first argument is the (π,g)(\pi,g) pair and the second argument is a roll-in policy, π′\pi^{\prime}.

3 Infinite Hypothesis Classes

The arguments in Section 4 assume that ∣F∣=N<∞|\mathcal{F}|=N<\infty. However, almost all commonly used function approximators are infinite classes, which restricts the applicability of the algorithm. On the other hand, the size of the function class appears in the analysis only through deviation bounds, so techniques from empirical process theory can be used to generalize the results to infinite classes. This section establishes parallel versions of those deviation bounds for function classes with finite combinatorial dimensions, and together with the rest of the original analysis we can show the algorithm enjoys similar guarantees when working with infinite hypothesis classes.

Specifically, we consider the setting where Π\Pi and G\mathcal{G} are given (see Section 5.2), and they are infinite classes with finite combinatorial dimensions. We assume that Π\Pi has finite Natarajan dimension (Definition 6), and G\mathcal{G} has finite pseudo dimension (Definition 7). These two dimensions are standard extensions of VC-dimension to multi-class classification and regression respectively.

Suppose X\mathcal{X} is a feature space and Y\mathcal{Y} is a finite label space. Given hypothesis class H⊂X→Y\mathcal{H}\subset\mathcal{X}\to\mathcal{Y}, its Natarajan dimension Ndim(H)\textrm{Ndim}(\mathcal{H}) is defined as the maximum cardinality of a set A⊆XA\subseteq\mathcal{X} that satisfies the following: there exists h1,h2:A→Yh_{1},h_{2}:A\to\mathcal{Y} such that (1) ∀x∈A\forall x\in A, h1(x)≠h2(x)h_{1}(x)\neq h_{2}(x), and (2) ∀B⊆A\forall B\subseteq A, ∃h∈H\exists h\in\mathcal{H} such that ∀x∈B\forall x\in B, h(x)=h1(x)h(x)=h_{1}(x) and ∀x∈A∖B\forall x\in A\setminus B, h(x)=h2(x)h(x)=h_{2}(x).

The definition of pseudo dimension relies on that of VC-dimension, whose definition and basic properties are recalled in the appendix. We state the final sample complexity result here. Since the algorithm parameters are somewhat complex expressions, we omit them in the theorem statement and provide specification in the proof, which is deferred to Appendix D.

Let Π⊂X→A\Pi\subset\mathcal{X}\to\mathcal{A} with Ndim(Π)≤dΠ<∞\textrm{Ndim}(\Pi)\leq d_{\Pi}<\infty and G⊂X→\mathcal{G}\subset\mathcal{X}\to with Pdim(G)≤dG<∞\textrm{Pdim}(\mathcal{G})\leq d_{\mathcal{G}}<\infty. For any ϵ,δ∈(0,1)\epsilon,\delta\in(0,1), any Contextual Decision Process with policy space Π\Pi and function space G\mathcal{G} that admits a Bellman factorization with parameters M,ζM,\zeta, if we run Olive with appropriate parameters, then with probability at least 1−δ1-\delta, Olive halts and returns a policy π^\hat{\pi} that satisfies Vπ^≥VF⋆−ϵV^{\hat{\pi}}\geq V_{\mathcal{F}}^{\star}-\epsilon, and the number of episodes required is at most

Compared to Theorem 1, the sample complexity we get for infinite hypothesis classes has two differences: (1) log⁡N\log N is replaced by dΠ+dGd_{\Pi}+d_{\mathcal{G}}, which is expected, based on the discussion in Section 5.2, and (2) the dependence on KK is quadratic as opposed to linear. In fact, in the proof of Theorem 1, we exploited the low-variance property of importance weights in Eq. (5), and applied Bernstein’s inequality to avoid a factor of KK. With infinite hypothesis classes, the same approach does not apply directly. However, this may only be a technical issue, and a more refined analysis may recover a linear dependence (e.g., using tools from Panchenko (2002)).

4 Approximate Validity and Approximate Bellman Rank

Recall that the sample-efficiency guarantee of Olive relies on two major assumptions:

We assumed that F\mathcal{F} contains valid functions (Definition 3). In practice, however, it is hard to specify a function class that contains strictly valid functions, as the notion of validity depends on the environment dynamics, which are unknown. A much more realistic situation is that some functions in F\mathcal{F} satisfy validity only approximately.

We assumed that the average Bellman errors have an exact low-rank factorization (Definition 5). While this is true for a number of RL models (Section 3), it is worth keeping in mind that these are only models of the environments, which are different from and only approximations to the real environments themselves. Therefore, it is more realistic to assume that an approximate factorization exists when defining Bellman factorization.

In this section, we show that the algorithmic ideas of Olive are indeed robust against both types of approximation errors, and degrades gracefully as the two assumptions are violated. Below we introduce the approximate versions of Definition 3 and 5, give a slightly extended version of the algorithm, Oliver (for Optimism-Led Iterative Value-function Elimination with Robustness, see Algorithm 3), and state its sample complexity guarantee in Theorem 4.

Given any CDP and function class F\mathcal{F}, we say f∈Ff\in\mathcal{F} is θ\theta-valid if for any f′∈Ff^{\prime}\in\mathcal{F} and any h∈[H]h\in[H], ∣E(f,πf′,h)∣≤θ.\left|\mathcal{E}(f,\pi_{f^{\prime}},h)\right|\leq\theta.

The approximation error θ\theta introduced in Definition 8 allows the algorithm to compete against a broader range of functions; hence the notions of optimal function and value need to be re-defined accordingly.

By definition, VF,θ⋆V_{\mathcal{F},\theta}^{\star} is non-decreasing in θ\theta with Definition 3 being a special case where θ=0\theta=0. When θ>0\theta>0, we compete against some functions that do not obey Bellman equations, breaking an essential element of value-based RL. As a consequence, returning a policy with value close to VF,θ⋆V_{\mathcal{F},\theta}^{\star} in a sample-efficient manner is very challenging, so the value that Oliver can guarantee is suboptimal to VF,θ⋆V_{\mathcal{F},\theta}^{\star} by a term that is proportional to θ\theta and does not diminish with more data.

and ∥νh(f′)∥2⋅∥ξh(f)∥2≤ζ<∞\|\nu_{h}(f^{\prime})\|_{2}\cdot\|\xi_{h}(f)\|_{2}\leq\zeta<\infty.

A modified version of Olive that deals with these approximation errors, Oliver, is specified in Algorithm 3. Here, we use ϵ\epsilon to denote the component of the suboptimality that diminish as more data is collected, and the total suboptimality that we can guarantee is ϵ\epsilon plus a term proportional to θ\theta and η\eta (see Eq. (13) in Theorem 4). The algorithm is almost identical to Olive except in two places: (1) it uses ϵ′\epsilon^{\prime} (defined on Line 1) in the termination condition (Line 9) as opposed to ϵ\epsilon, and (2) it uses a higher threshold that depends on θ\theta in Eq. (12) to avoid eliminating θ\theta-valid functions.

For any ϵ,δ∈(0,1)\epsilon,\delta\in(0,1), any Contextual Decision Process and function class F\mathcal{F} that admits a Bellman factorization with parameters MM, ζ\zeta, and η\eta, suppose we run Oliver with any θ∈\theta\in, and nest,neval,n,ϕn_{\textrm{est}},n_{\textrm{eval}},n,\phi as specified in Theorem 1. Then with probability at least 1−δ1-\delta, Oliver halts and returns a policy π^\hat{\pi} which is at most

suboptimal compared to VF,θ⋆V_{\mathcal{F},\theta}^{\star} defined in Definition 9, and the number of episodes required is at most

Proofs of Main Results

In this section, we provide the main ideas as well as the key lemmas involved in proving Theorem 1. We also show how the lemmas are assembled to prove the theorem. Detailed proofs of the lemmas are in Appendix C.

We begin by decomposing a policy-loss-like term into the sum of Bellman errors.

The structure of this lemma is similar to many existing results in RL that upper-bound the loss of following an approximate value function greedily using the function’s Bellman errors (e.g., Singh and Yee (1994)). However, most existing results are inequalities that use max-norm relaxations to deal with mismatch in distributions; hence, they are likely to be loose. This lemma, on the other hand, is an equality, thanks to the fact that we are comparing VπfV^{\pi_{f}} to VfV_{f}, not V⋆V^{\star}. As the remaining analysis shows, this simple equation allows us to relate policy loss (from the LHS) with the average Bellman error (the RHS) that we use to drive exploration. In particular, this lemma implies an explore-or-terminate behavior for the algorithm.

throughout the execution of the algorithm. Assume further that f⋆f^{\star} is never eliminated. Then in any iteration tt, one of the following two statements holds:

the algorithm terminates and the output policy πt\pi_{t} satisfies Vπt≥VF⋆−ϵV^{\pi_{t}}\geq V_{\mathcal{F}}^{\star}-\epsilon.

The lemma guarantees that the policy πt\pi_{t} used at iteration tt in Olive has sufficiently large Bellman error on at least one of the levels, provided that the two conditions in Equation (16) are met. These conditions require that (1) we have reasonably accurate value function estimates from Line 1, and (2) we collect enough samples in Line 6 to form reliable Bellman error estimates under ftf_{t} at each level hh. The result of Theorem 1 can then be obtained using two further ingredients. First, we need to make sure that the first case in Lemma 2 does not happen too many times. Second, we need to collect enough samples in Lines 1 and 6 to ensure the preconditions in Equation (16). We first establish a bound on the number of iterations using the Bellman rank of the problem, before moving on to sample complexity questions.

If E^(f,πt,ht)\hat{\mathcal{E}}(f,\pi_{t},h_{t}) in Eq. (5) always satisfies

throughout the execution of the algorithm (ϕ\phi is the threshold in the elimination criterion), then f⋆f^{\star} is never eliminated. Furthermore, for any particular level hh, if whenever ht=hh_{t}=h we have

then the number of iterations that ht=hh_{t}=h is at most Mlog⁡(ζ2ϕ)/log⁡53.M\log\left(\frac{\zeta}{2\phi}\right)/\log\frac{5}{3}.

Precondition (18) simply posits that we collect enough samples for reliable Bellman error estimation in Line 12. Intuitively, since f⋆f^{\star} has no Bellman error, this is sufficient to ensure that it is never eliminated. Precondition (19) is naturally satisfied by the exploration policies πt\pi_{t} given Lemma 2. Given this, the above lemma bounds the number of iterations at which we can find a large Bellman error at any particular level.

Finally, we need to ensure that the number of samples collected in each of Lines 1, 6, and 12 of Olive can be upper bounded, which yields the overall PAC learning result in Theorem 1. The next three lemmas present precisely the deviation bounds required for this argument. The first two follow from simple applications of Hoeffding’s inequality.

holds for all f∈Ff\in\mathcal{F} simultaneously. Hence, we can set nest≥32ϵ2log⁡2Nδn_{\textrm{est}}\geq\frac{32}{\epsilon^{2}}\log\frac{2N}{\delta} to guarantee that ∣V^f−Vf∣≤ϵ/8|\hat{V}_{f}-V_{f}|\leq\epsilon/8.

This controls the number of samples required in Line 1.

For any fixed ftf_{t}, with probability at least 1−δ1-\delta,

This lemma can be seen as the sample complexity at each iteration in Line 6. Note that no union bound over F\mathcal{F} is needed here, since Line 6 only estimates the average Bellman error for a single function, which is fixed before data is collected. Finally, we bound the sample complexity of the learning step.

For any fixed πt\pi_{t} and hth_{t}, with probability at least 1−δ1-\delta,

holds for all f∈Ff\in\mathcal{F} simultaneously. Hence, we can set n≥32Kϕ2log⁡2Nδn\geq\frac{32K}{\phi^{2}}\log\frac{2N}{\delta} to guarantee that ∣E^(f,πt,ht)−E(f,πt,ht)∣≤ϕ|\hat{\mathcal{E}}(f,\pi_{t},h_{t})-\mathcal{E}(f,\pi_{t},h_{t})|\leq\phi as long as ϕ≤4\phi\leq 4.

This lemma uses Bernstein’s inequality to exploit the small variance of the importance weighted estimates.

2 Proof of Theorem 1

Suppose the preconditions of Lemma 2 (Eq. (16)) and Lemma 3 (Eq. (18)) hold; we show them via concentration inequalities later. Applying Lemma 2, in every iteration tt before the algorithm terminates,

due to the choice of ϕ\phi. For level h=hth=h_{t}, Eq. (19) is satisfied. According to Lemma 3, the event ht=hh_{t}=h can happen at most Mlog⁡(ζ2ϕ)/log⁡53M\log\left(\frac{\zeta}{2\phi}\right)/\log\frac{5}{3} times for every h∈[H]h\in[H]. Hence, the total number of iterations in the algorithm is at most

Now we are ready to apply the concentration inequalities to show that Eq. (16) and (18) hold with high probability. We split the total failure probability δ\delta among the following estimation events:

Estimation of V^f\hat{V}_{f} (Lemma 4; only once): δ/3\delta/3.

Estimation of E^(f,πt,ht)\hat{\mathcal{E}}(f,\pi_{t},h_{t}) (Lemma 6; every iteration): same as above.

Since these events happen in a particular sequence, the proof actually bounds the probability of these failure events conditioned on all previous events succeeding. This imposes no technical challenge as fresh data is collected for every event, so it effectively reduces to a standard union bound.

Applying Lemmas 4, 5, and 6 with the above failure probabilities, we can verify that the choices of nest,neval,n_{\textrm{est}},n_{\textrm{eval}}, and nn in the algorithm statement satisfy the preconditions of Lemmas 2 and 3. Finally, we upper bound the total number of episodes as

Conclusions and Discussions

In this paper, we presented a new model for RL with rich observations, called Contextual Decision Processes, and a structural property, the Bellman factorization, of these models that enables sample-efficient learning. The unified approach allows us to address several settings of practical interest that have largely eluded RL theory to date. Via extensions of the main result, we also demonstrated that the techniques are quite robust and degrade gracefully with violation of assumptions. These results also elicit several further questions:

Can we obtain a computationally efficient algorithm for some form of this setting? Prior related work (for instance in contextual bandits (Dudik et al., 2011; Agarwal et al., 2014)) used supervised learning oracles for computationally efficient approaches. Is there a suitable oracle for this setting?

The sample complexity depends polynomially on the cardinality of the action space. Can we extend the results to handle large or continuous action spaces?

Can we address sample-efficient RL given only a policy class rather than a value function class? Empirical approaches in policy search often rely on policy gradients, which are subject to local optima. Are there parallel results to this work, without access to value functions?

Understanding these questions is a key bridge between RL theory and practice, and is critical to success in challenging reinforcement learning problems.

Appendix

Appendix A Lower Bounds

We include a result from Krishnamurthy et al. (2016) to formally show that, without making additional assumptions, the sample complexity of value-based RL for CDPs as introduced in Section 2 has a lower bound of order KHK^{H}.

The proof relies on the fact that CDPs include MDPs where the state space is arbitrarily large. Each instance of the MDP family is a complete tree with branching factor KK and depth HH. Transition dynamics are deterministic, and only leaf nodes have non-zero rewards. All leaves give Ber(1/2)(1/2) rewards, except for one that gives Ber(1/2+ϵ)(1/2+\epsilon). Changing the position of the most rewarding leaf node yields a family of KHK^{H} MDP instances so collecting optimal Q-value functions forms the desired function class F\mathcal{F}. Since F\mathcal{F} provides no information other than the fact that the true MDP lies in this family, the problem is equivalent to identifying the best arm in a multi-arm bandit with KHK^{H} arms, and the remaining analysis follows exactly the same as in Krishnamurthy et al. (2016). ∎

A.2 A Polynomial Lower Bound that Depends on Bellman Rank

In this section, we prove a new lower bound for layered episodic MDPs that meet the assumptions we make in this paper.

We first recall some definitions. A layered episodic MDP is defined by a time horizon HH, a state space S{\mathcal{S}}, partitioned into sets S1,…,SH{\mathcal{S}}_{1},\ldots,{\mathcal{S}}_{H}, each of size at most MM, and an action space A\mathcal{A} of size KK. The system descriptor is replaced with a transition function Γ\Gamma that associates a distribution over states with each state action pair. More formally, for any sh∈Shs_{h}\in{\mathcal{S}}_{h}, and a∈Aa\in\mathcal{A}, Γ(sh,a)∈Δ(Sh+1)\Gamma(s_{h},a)\in\Delta({\mathcal{S}}_{h+1}). The starting state is drawn from Γ1∈Δ(S1)\Gamma_{1}\in\Delta({\mathcal{S}}_{1}), and all transitions from SH{\mathcal{S}}_{H} are terminal.

There is also a reward distribution RR that associates a random reward with each state-action pair. We use r∼R(s,a)r\sim R(s,a) to denote the random instantaneous reward for taking action aa at state ss. We assume that the cumulative reward ∑h=1Hrh∈\sum_{h=1}^{H}r_{h}\in, where rhr_{h} is the reward received at level hthh^{\textrm{th}} as in Assumption 1.

Observe that this process is a special case of the finite-horizon Contextual Decision Process and moreover, with the set of all value functions F=(S×A→)\mathcal{F}=({\mathcal{S}}\times\mathcal{A}\rightarrow), admits a Bellman factorization with Bellman rank at most MM (by Proposition 1). Thus the upper bounds for PAC learning apply directly to this setting.

Fix M≥4,H,K≥2M\geq 4,H,K\geq 2 and ϵ∈(0,1488)\epsilon\in(0,\frac{1}{48\sqrt{8}}). For any algorithm and any n≤cMKH/ϵ2n\leq cMKH/\epsilon^{2}, there exists a layered episodic MDP with HH layers, MM states per layer, and KK actions, such that the probability that the algorithm outputs a policy π^\hat{\pi} with V(π^)≥V⋆−ϵV(\hat{\pi})\geq V^{\star}-\epsilon after collecting nn trajectories is at most 11/1211/12. Here c>0c>0 is a universal constant.

The result precludes a o(MKH/ϵ2)o(MKH/\epsilon^{2}) PAC-learning sample complexity bound since in this case the algorithm must fail with constant probability. The result is similar in spirit to other lower bounds for PAC-learning MDPs (Dann and Brunskill, 2015; Krishnamurthy et al., 2016), but we are not aware of any lower bound that applies directly to the setting. There are two main differences between this bound and the lower bound due to Dann and Brunskill (2015) for episodic MDPs. First, that bound assumes that the total reward is in [0,H][0,H], so the H2H^{2} dependence in the sample complexity is a consequence of scaling the rewards. Second, that MDP is not layered, but instead has MM total states shared across all layers. In contrast, the process is layered with MM distinct states per layer and total reward bounded in $.Intuitively,theadditional. Intuitively, the additionalHdependencearisessimplyfromhavingdependence arises simply from havingMH$ total states.

At a high level, the proof is based on embedding Θ(MH)\Theta(MH) independent multi-arm bandit instances into a MDP and requiring that the algorithm identify the best action in Ω(MH)\Omega(MH) of them to produce a near-optimal policy. By appealing to a sample complexity lower bound for best arm identification, this implies that the algorithm requires Ω(MHK/ϵ2)\Omega(MHK/\epsilon^{2}) samples to identify a near-optimal policy.

We rely on a fairly standard lower bound for best arm identification. We reproduce the formal statement from Krishnamurthy et al. (2016), although the proof is based on earlier lower bounds due to Auer et al. (2002).

In particular, the problem instance used in this lower bound is one where the best arm a⋆a^{\star} has reward Ber(1/2+ϵ)\textrm{Ber}(1/2+\epsilon), while all other arms have reward Ber(1/2)\textrm{Ber}(1/2). The construction embeds precisely these instances into the MDP.

We construct an MDP with MM states per level, HH levels, and KK actions per state. At each level, we allocate three special states, wh,ghw_{h},g_{h}, and bhb_{h} for “waiting”, “good”, and “bad.” The remaining M−3M-3 “bandit” states are denoted sh,i,i∈[M−3]s_{h,i},i\in[M-3]. Each bandit state has an unknown optimal action ah,i⋆a_{h,i}^{\star}.

For waiting states whw_{h}, all actions are equivalent and with probability 1−1/H1-1/H they transition to the next waiting state wh+1w_{h+1}. With the remaining 1/H1/H probability, they transition randomly to one of the bandit state sh+1,is_{h+1,i} so each subsequent bandit state is visited with probability 1H(M−3)\frac{1}{H(M-3)}.

For bandit states sh,is_{h,i}, the optimal action ah,i⋆a^{\star}_{h,i} transitions to the good state gh+1g_{h+1} with probability 1/2+τ1/2+\tau and otherwise to the bad state bh+1b_{h+1}. All other actions transition to gh+1g_{h+1} and bh+1b_{h+1} with probability 1/21/2. Here τ\tau is a parameter we set toward the end of the proof.

Good states always transition to the next good state and bad states always transition to bad states.

The starting state is w1w_{1} with probability 1−1/H1-1/H and s1,is_{1,i} with probability 1H(M−3)\frac{1}{H(M-3)} for each i∈[M−3]i\in[M-3].

The reward at all states except gHg_{H} is zero, and the reward at gHg_{H} is one. Clearly the optimal policy takes actions ah,i⋆a_{h,i}^{\star} for each bandit state, and takes arbitrary actions at the waiting, good, and bad states.

This construction embeds H(M−3)H(M-3) best arm identification problems that are identical to the one used in Proposition 7 into the MDP. Moreover, these problems are independent in the sense that samples collected from one provides no information about any others. Appealing to Proposition 7, for each bandit state (h,i)(h,i), unless K72τ2\frac{K}{72\tau^{2}} samples are collected from that state, the learning algorithm fails to identify the optimal action ah,i⋆a^{\star}_{h,i} with probability at least 1/31/3.

After the execution of the algorithm, let BB be the set of (h,s)(h,s) pairs for which the algorithm identifies the correct action. Let CC be the set of (h,s)(h,s) pairs for which the algorithm collects fewer than K72τ2\frac{K}{72\tau^{2}} samples. For a set SS, we use SCS^{C} to denote the complement.

The second inequality is based on Proposition 7. Now, by the pigeonhole principle, if n≤(M−3)H2×K72τ2n\leq\frac{(M-3)H}{2}\times\frac{K}{72\tau^{2}}, then the algorithm can collect K72τ2\frac{K}{72\tau^{2}} samples from at most half of the bandit problems. Thus ∣C∣≥(M−3)H/2|C|\geq(M-3)H/2, which implies,

Thus with probability at least 1/111/11 we know that ∣B∣≤1112(M−3)H|B|\leq\frac{11}{12}(M-3)H, so the algorithm failed to identify the optimal action on 1/121/12 fraction of the bandit problems. Under this event, the suboptimality of the policy produced by the algorithm is,

Here we use the fact that the probability of visiting a bandit state is independent of the policy and that the policy can only visit one bandit state per episode, so the events are disjoint. Moreover, if we visit a bandit state for which the algorithm failed to identify the optimal action, the difference in value is τ\tau, since the optimal action visits the good state with τ\tau more probability than a suboptimal one. The remainder of the calculation uses the transition model, the fact that H≥2H\geq 2, and finally the fact that ∣B∣≤1112(M−3)H|B|\leq\frac{11}{12}(M-3)H. Setting τ=48ϵ\tau=48\epsilon and using the requirement on τ\tau gives a stricter requirement on ϵ\epsilon and proves the result. ∎

Appendix B Models with Low Bellman Rank

B.2 Generalization of Li (2009)’s Setting

Li (2009, Section 8.2.3) considers the setting where the learner is given an abstraction ϕ\phi that maps the large state space S{\mathcal{S}} in an MDP to some finite abstract state space Sˉ\bar{\mathcal{S}} in an MDP. ∣Sˉ∣|\bar{\mathcal{S}}| is potentially much smaller than ∣S∣|{\mathcal{S}}|, and it is guaranteed that Q⋆Q^{\star} can be expressed as a function of (ϕ(s),a)(\phi(s),a). Li shows that when delayed Q-learning is applied to this setting, the sample complexity has polynomial dependence on ∣Sˉ∣|\bar{\mathcal{S}}| with no direct dependence on ∣S∣|{\mathcal{S}}|.

In the next proposition, we show that a similar setting for finite-horizon problems admits Bellman factorization with low Bellman rank. In particular, we subsume Li’s setting by viewing it as a POMDP, where ϕ\phi is a deterministic emission process that maps hidden state s∈Ss\in{\mathcal{S}} to discrete observations ϕ(s)∈Sˉ=O\phi(s)\in\bar{\mathcal{S}}=\mathcal{O}, and the candidate value functions are reactive so they depend on ϕ(s)\phi(s) but not directly on ss or any previous state. More generally, Proposition 8 claims that for POMDPs with large hidden-state spaces and finite observation spaces, the Bellman rank is polynomial in the number of observations if the function class is reactive.

Consider a POMDP introduced in Example 2 with ∣O∣<∞|\mathcal{O}|<\infty, and assume that rewards can only take CRC_{R} different discrete values.The discrete reward assumption is made to simplify presentation and can be relaxed. For arbitrary rewards, we can always discretize the reward distribution onto a grid of resolution CRC_{R}, which incurs η=O(1/CR)\eta=O(1/C_{R}) approximation error in Definition 10. The CDP (X,A,H,P)(\mathcal{X},\mathcal{A},H,P) induced by letting X=O×[H]\mathcal{X}=\mathcal{O}\times[H] and xh=(oh,h)x_{h}=(o_{h},h), with any F:X×A→\mathcal{F}:\mathcal{X}\times\mathcal{A}\to, admits a Bellman factorization with M=∣O∣2CRKM=|\mathcal{O}|^{2}C_{R}K and ζ=2∣O∣KCR\zeta=2|\mathcal{O}|K\sqrt{C_{R}}.

For any f,f′∈F,h∈[H]f,f^{\prime}\in\mathcal{F},h\in[H], let νh(f′)\nu_{h}(f^{\prime}) and ξh(f)\xi_{h}(f) be vectors of length ∣O∣2CRK|\mathcal{O}|^{2}C_{R}K. Let the entry of νh(f′)\nu_{h}(f^{\prime}) indexed by (oh,ah,rh,oh+1)(o_{h},a_{h},r_{h},o_{h+1}) be

interpreted as the following: conditioned on the fact that the first h−1h-1 actions are chosen according to πf′\pi_{f^{\prime}}, what is the probability of seeing a particular tuple of (oh,rh,oh+1)(o_{h},r_{h},o_{h+1}) when taking a particular action for aha_{h}? For ξh(f)\xi_{h}(f), let the corresponding entry be (with xh=(oh,h)x_{h}=(o_{h},h) and xh+1=(oh+1,h+1)x_{h+1}=(o_{h+1},h+1) as the corresponding contexts in the CDP)

It is not hard to verify that E(f,πf′,h)=⟨νh(f′),ξh(f)⟩\mathcal{E}(f,\pi_{f^{\prime}},h)=\langle\nu_{h}(f^{\prime}),\xi_{h}(f)\rangle. Since fixing aha_{h} to any non-adaptive choice of action induces a valid distribution over (oh,rh,oh+1)(o_{h},r_{h},o_{h+1}), we have ∥νh(f′)∥1=K\|\nu_{h}(f^{\prime})\|_{1}=K and ∥νh(f′)∥2≤K\|\nu_{h}(f^{\prime})\|_{2}\leq K. On the other hand, ∥ξh(f)∥∞≤2\|\xi_{h}(f)\|_{\infty}\leq 2 but the vector only has ∣O∣2CR|\mathcal{O}|^{2}C_{R} non-zero entries, so ∥ξh(f)∥2≤2∣O∣CR\|\xi_{h}(f)\|_{2}\leq 2|\mathcal{O}|\sqrt{C_{R}}. Together the norm bound follows. ∎

B.3 POMDP-like Models

Here we first state the formal version of Proposition 2, and prove Propositions 2 and 3 together by studying a slightly more general model (See Figure 1(c)).

Consider an MDP introduced in Example 1. With a slight abuse of notation let Γ\Gamma denote its transition matrix of size ∣S×A∣×∣S∣|{\mathcal{S}}\times\mathcal{A}|\times|{\mathcal{S}}|, whose element indexed by ((s,a),s′)((s,a),s^{\prime}) is Γ(s′∣s,a)\Gamma(s^{\prime}|s,a). Assume that there are two row-stochastic matrices Γ(1)\Gamma^{(1)} and Γ(2)\Gamma^{(2)} with sizes ∣S×A∣×M|{\mathcal{S}}\times\mathcal{A}|\times M and M×∣S∣M\times|{\mathcal{S}}| respectively, such that Γ=Γ(1)Γ(2).\Gamma=\Gamma^{(1)}\Gamma^{(2)}. Recall that we convert an MDP into a CDP by letting X=S×[H]\mathcal{X}={\mathcal{S}}\times[H], xh=(sh,h)x_{h}=(s_{h},h). For any F⊂X×A→\mathcal{F}\subset\mathcal{X}\times\mathcal{A}\to, this model admits a Bellman factorization with Bellman rank MM and ζ=2M\zeta=2\sqrt{M}.

The model that we use to study Proposition 2 and 3 simultaneously behaves like a POMDP except that both the transition function and the reward depends also on the observation, that is Γ:S×O×A→Δ(S)\Gamma:{\mathcal{S}}\times\mathcal{O}\times\mathcal{A}\rightarrow\Delta({\mathcal{S}}) and R:S×O×A→Δ()R:{\mathcal{S}}\times\mathcal{O}\times\mathcal{A}\rightarrow\Delta(). Clearly this model generalizes standard POMDPs, where the transition and reward are both assumed to be independent of the current observation.

This model also generalizes the MDP with low-rank dynamics described in Proposition 2: if the future hidden-state is independent of the current hidden-state conditioned on the observation (i.e., Γ(s′∣s,o,a)\Gamma(s^{\prime}|s,o,a) does not depend on ss), the observations themselves become Markovian, and we can treat oo as the observed state ss in Proposition 9, and the hidden-state ss as the low-rank factor in Proposition 9 (see Figure 1). Hence, Proposition 2 follows as a special case of the analysis for this more general model.

As in Proposition 3, we consider a class F\mathcal{F} reactive value functions. Observe that for the MDP with low rank dynamics, this provides essentially no loss of generality, since the optimal value function is reactive.

Let (X,A,H,P)(\mathcal{X},\mathcal{A},H,P) be the CDP induced by the above model which generalizes POMDPs, with X=O×[H]\mathcal{X}=\mathcal{O}\times[H] and xh=(oh,h)x_{h}=(o_{h},h). Given any F:X×A→\mathcal{F}:\mathcal{X}\times\mathcal{A}\to, the Bellman rank M≤∣S∣M\leq|{\mathcal{S}}| with ζ=2∣S∣\zeta=2\sqrt{|{\mathcal{S}}|}.

For any f,f′∈F,h∈[H]f,f^{\prime}\in\mathcal{F},h\in[H], consider

which is how actions are chosen in the definition of E(f,πf′,h)\mathcal{E}(f,\pi_{f^{\prime}},h) (see Definition 2). Such a decision-making strategy induces a distribution over the following set of variables

That is, we first sample shs_{h} from the marginal μf′\mu_{f^{\prime}}, and then sample the remaining variables conditioned on shs_{h}. Notice that once we condition on shs_{h}, the sampling of the remaining variable has no dependence on f′f^{\prime}, so we denote the joint distribution over the remaining variables (conditioned on the value of shs_{h}) μf∣sh\mu_{f|s_{h}}.

Finally, we express the factorization of E(f,πf′,h)\mathcal{E}(f,\pi_{f^{\prime}},h) as follows:

B.4 Predictive State Representations

In this subsection we state and prove the formal version of Proposition 4. We first recall the definitions and some basic properties of PSRs, which can be found in Singh et al. (2004); Boots et al. (2011). Consider dynamical systems with discrete and finite observation space O\mathcal{O} and action space A\mathcal{A}. Such systems can be fully specified by moment matrices PT∣HP_{{\mathcal{T}}|\mathcal{H}}, where H\mathcal{H} is a set of histories (past events) and T{\mathcal{T}} is a set of tests (future events). Elements of T{\mathcal{T}} and H\mathcal{H} are sequences of alternating actions and observations, and the entry of PT∣HP_{{\mathcal{T}}|\mathcal{H}} indexed by t∈Tt\in{\mathcal{T}} on the row and τ∈H\tau\in\mathcal{H} on the column is Pt∣τP_{t|\tau}, the probability that the test tt succeeds conditioned on a particular past τ\tau. For example, if t=aoa′o′t=aoa^{\prime}o^{\prime}, success of tt means seeing oo and o′o^{\prime} in the next two steps after τ\tau is observed, if interventions aa and a′a^{\prime} were to be taken.

Among all such systems, we are concerned about those that have finite linear dimension, defined as sup⁡T,Hrank(PT∣H)\sup_{{\mathcal{T}},\mathcal{H}}\textrm{rank}(P_{{\mathcal{T}}|\mathcal{H}}). As an example, the linear dimension of a POMDP is bounded by the number of hidden-states. Systems with finite linear dimension have many nice properties, which allow them to be expressed by compact models, namely PSRs. In particular, fixing any T{\mathcal{T}} and H\mathcal{H} such that rank(PT∣H)\textrm{rank}(P_{{\mathcal{T}}|\mathcal{H}}) is equal to the linear dimension (such (H,T)(\mathcal{H},{\mathcal{T}}) are called core histories and core tests), we have:

For any history τ∈(A×O)∗\tau\in(\mathcal{A}\times\mathcal{O})^{*}, the conditional predictions of core tests PT∣{τ}P_{{\mathcal{T}}|\{\tau\}} (we also write PT∣τP_{{\mathcal{T}}|\tau}) is always a state, that is, a sufficient statistics of history. This gives rise to the name “predictive state representation”.

Based on PT∣τP_{{\mathcal{T}}|\tau}, the conditional prediction of any test tt can be computed from a PSR model, parameterized by square matrices {Bao}\{B_{ao}\} and a vector b∞b_{\infty} with dimension ∣T∣|{\mathcal{T}}|. Letting t(i)t^{(i)} be the ii-th (action, observation) pair in tt, and ∣t∣|t| be the number of such pairs, the prediction rule is

PT,HP_{{\mathcal{T}},\mathcal{H}} is a matrix whose element indexed by (t∈T,τ∈H)(t\in{\mathcal{T}},\tau\in\mathcal{H}) is Pτt∣∅P_{\tau t|\varnothing}, where τt\tau t is the concatenation of τ\tau and tt and ∅\varnothing is the null history.

PH=P{∅},HP_{\mathcal{H}}=P_{\{\varnothing\},\mathcal{H}}.

PT,ao,H=PT,HaoP_{{\mathcal{T}},ao,\mathcal{H}}=P_{{\mathcal{T}},\mathcal{H}_{ao}}, where Hao={τao:τ∈H}\mathcal{H}_{ao}=\{\tau ao:\tau\in\mathcal{H}\}.

Now we are ready to state and prove the formal version of Proposition 4.

Consider a partially observable system with observation space O\mathcal{O}, and the induced CDP (X,A,H,P)(\mathcal{X},\mathcal{A},H,P) with xh=(oh,h)x_{h}=(o_{h},h). To handle some subtleties, we assume that

∣O∣<∞|\mathcal{O}|<\infty (classical PSR results assume discrete observations).

o1o_{1} is deterministic (PSR trajectories always start with an action), and rhr_{h} is a deterministic function of oh+1o_{h+1} (reward is usually omitted or assumed to be part of the observation).

If the linear dimension of the original system is at most LL, then with any F:X×A→\mathcal{F}:\mathcal{X}\times\mathcal{A}\to, this model admits a Bellman factorization with M=LKM=LK. Assuming further that the PSR’s parameters are non-negative under some choice of core histories and tests (H,T)(\mathcal{H},{\mathcal{T}}) of size ∣H∣=∣T∣=L|\mathcal{H}|=|{\mathcal{T}}|=L, then we have ζ≤2K2L3L/σmin⁡3\zeta\leq 2K^{2}L^{3}\sqrt{L}/\sigma_{\min}^{3}, where σmin⁡\sigma_{\min} is the minimal non-zero singular value of PT,HP_{{\mathcal{T}},\mathcal{H}}.

For any f,f′∈F,h∈[H]f,f^{\prime}\in\mathcal{F},h\in[H], define

μf′,h\mu_{f^{\prime},h} as the distribution vector over (a1,o2,…,oh−1,ah−1)∈(A×O)h−2×A(a_{1},o_{2},\ldots,o_{h-1},a_{h-1})\in(\mathcal{A}\times\mathcal{O})^{h-2}\times\mathcal{A} induced by a1:h−1∼πf′a_{1:h-1}\sim\pi_{f^{\prime}}. (Recall that o1o_{1} is deterministic.)

P2∣h−1P_{2|h-1} as a moment matrix whose element with column index (oh,ah,oh+1)∈O×A×O(o_{h},a_{h},o_{h+1})\in\mathcal{O}\times\mathcal{A}\times\mathcal{O} and row index (a1,o2,…,oh−1,ah−1)∈(A×O)h−2×A(a_{1},o_{2},\ldots,o_{h-1},a_{h-1})\in(\mathcal{A}\times\mathcal{O})^{h-2}\times\mathcal{A} is

Ff,hF_{f,h} as a vector whose element indexed by (oh,ah,oh+1)∈O×A×O(o_{h},a_{h},o_{h+1})\in\mathcal{O}\times\mathcal{A}\times\mathcal{O} is (recall that xh=(oh,h)x_{h}=(o_{h},h) and rhr_{h} is function of oh+1o_{h+1})

To show this, first observe that μf′,h⊤P2∣h−1\mu_{f^{\prime},h}^{\top}P_{2|h-1} is a row vector whose element indexed by (oh,ah,oh+1)(o_{h},a_{h},o_{h+1}) is

Next, we explicit construct ξh(f)\xi_{h}(f) and νh(f′)\nu_{h}(f^{\prime}) by factorizing P2∣h−1=P1×P2P_{2|h-1}=P_{1}\times P_{2}, where both P1P_{1} and P2P_{2} have no dependence on either ff or f′f^{\prime}. Recall that for PSRs, any history (a1,o2,…,oh−1)(a_{1},o_{2},\ldots,o_{h-1}) has a sufficient statistics PT∣a1,o2,…,oh−1P_{{\mathcal{T}}|a_{1},o_{2},\ldots,o_{h-1}}, that is a vector of predictions over the selected core tests T{\mathcal{T}} conditioned on the observed history. P1P_{1} consists of row vectors of length LKLK, and for the row indexed by (a1,o2,…,oh−1,ah−1)(a_{1},o_{2},\ldots,o_{h-1},a_{h-1}) the vector is

where Pada(⋅)\textrm{Pad}_{a}(\cdot) is a function that takes a LL-dimensional vector, puts it in the aa-th block of a vector of length LKLK, and fills the remaining entries with .

We construct P2P_{2} to be a matrix whose column vector indexed by (oh,ah,oh+1)(o_{h},a_{h},o_{h+1}) is

where A={a(1),…,a(K)}\mathcal{A}=\{a^{(1)},\ldots,a^{(K)}\}. It is easy to verify that P2∣h−1=P1×P2P_{2|h-1}=P_{1}\times P_{2} by recalling the prediction rules of PSRs in Eq. (20):

So we let νh(f′)=P1⊤μf′,h\nu_{h}(f^{\prime})=P_{1}^{\top}\mu_{f^{\prime},h} and ξh(f)=P2Ff,h\xi_{h}(f)=P_{2}F_{f,h}. It remains to be shown that we can bound their norms. Notice that the entries of a state vector PT∣(⋅)P_{{\mathcal{T}}|(\cdot)} are predictions of probabilities, so ∥P1∥∞≤1\|P_{1}\|_{\infty}\leq 1. Since μf′,h\mu_{f^{\prime},h} is a probability vector, its dot product with every column in P1P_{1} is bounded by 11, hence ∥νh(f′)∥2≤LK\|\nu_{h}(f^{\prime})\|_{2}\leq\sqrt{LK}.

Using a similar argument, for any fixed a=a(i)a=a^{(i)}, ∥∑oBao∥2≤L/σmin⁡\left\|\sum_{o}B_{ao}\right\|_{2}\leq L/\sigma_{\min}. We also recall the definition of b∞b_{\infty} and bound its norm similarly:

B.5 Linear Quadratic Regulators

In this subsection we prove that Linear Quadratic Regulators (LQR) (See e.g., Anderson and Moore (2007) for a standard reference) admit Bellman factorization with low Bellman rank. We study a finite-horizon, discrete-time LQR, governed by the equations:

The arguments for LQR use decoupled policy and value function classes as in Section 5.2. We use a policy class and value function class defined below for parameters B1,B2,B3B_{1},B_{2},B_{3} that we set in the proof.

The policy class consists of linear non-stationary policies, while the value functions are nonstationary quadratics with constant offset.

Consider an LQR under the assumptions outlined above.

Let G\mathcal{G} be a class of non-stationary quadratic value functions with offsets and let Π\Pi be a class of linear non-stationary policies, defined above. Then, at level hh, for any (π,g)(\pi,g) pair and any roll-in policy π′∈Π\pi^{\prime}\in\Pi, the average Bellman error can be written as

Hence, the problem admits Bellman factorization with Bellman rank at most d2+1d^{2}+1 and ζ\zeta that is exponential in HH but polynomial in all other parameters. Moreover, if we set B1,B2,B3B_{1},B_{2},B_{3} as,

then the optimal policy and value function belong to Π,G\Pi,\mathcal{G} respectively.

We prove the proposition in several components. First, we study the relationship between policies and value functions, showing that linear policies induce quadratic value functions. Then, we turn to the structure of the optimal policy, showing that it is linear. Next, we derive bounds on the parameters B1,B2,B3B_{1},B_{2},B_{3} which ensure that the optimal policy and value function belong to Π,G\Pi,\mathcal{G}. Lastly, we demonstrate the Bellman factorization.

The next lemma derives a relationship between linear policies and quadratic value functions.

where we recall that Σ\Sigma is the covariance matrix of the ϵh\epsilon_{h} random variables.

The proof is by backward induction on hh, starting from level HH. Clearly,

so Vπ(⋅,H)V^{\pi}(\cdot,H) is a quadratic function.

For the inductive step, consider level hh and assume that for all x,Vπ(x,h+1)=x⊤Λπ,h+1x+Oπ,h+1x,V^{\pi}(x,h+1)=x^{\top}\Lambda_{\pi,h+1}x+O_{\pi,h+1}. Then, expanding definitions,

We have shown that Vπ(x,h)V^{\pi}(x,h) is a quadratic function of xx. ∎

The next lemma shows that the optimal policy is linear.

We explicitly calculate the optimal policy π⋆\pi_{\star} and demonstrate that it is linear. Then we instantiate these matrices in Lemma 7 to compute the optimal value function.

For the optimal policy, we use backward induction on HH. At the last level, we have,

Plugging into Lemma 7 the value function has parameters,

For the induction step, assume that π⋆(x,h+1)=P⋆,h+1x\pi^{\star}(x,h+1)=P_{\star,h+1}x is linear and V⋆(x,h+1)V^{\star}(x,h+1) is quadratic with parameter Λ⋆,h+1≻0\Lambda_{\star,h+1}\succ 0 and O⋆,h+1O_{\star,h+1}. We then have,

This follows by applying definitions and eliminating terms that are independent of aa. Since R,Λ⋆,h+1≻0R,\Lambda_{\star,h+1}\succ 0 by assumption and using the inductive hypothesis we can analytically minimize. Setting the derivative equal to zero gives,

Thus P⋆,h=(I+B⊤Λ⋆,h+1B)−1B⊤Λ⋆,h+1AP_{\star,h}=(I+B^{\top}\Lambda_{\star,h+1}B)^{-1}B^{\top}\Lambda_{\star,h+1}A. ∎

As a consequence, we can now derive bounds on the policy and value function parameters. Recall that we assume that all system parameters are bounded in spectral norm by Θ≥1\Theta\geq 1 and that (B⊤B)−1(B^{\top}B)^{-1} has minimum eigenvalue at least κ\kappa.

With Θ\Theta and κ\kappa defined above, we have

Again we proceed by backward induction, using Lemma 8. Clearly ∥P⋆,H∥F=0\|P_{\star,H}\|_{F}=0, ∥Λ⋆,H∥F≤Θ\|\Lambda_{\star,H}\|_{F}\leq\Theta, ∣O⋆,H∣=0|O_{\star,H}|=0.

For the inductive step we can actually compute P⋆,hP_{\star,h} without any assumption on Λ⋆,h+1\Lambda_{\star,h+1}, except for the fact that it is symmetric positive definite, which follows from Lemma 8. First, we consider just the matrix B⊤Λ⋆,h+1AB^{\top}\Lambda_{\star,h+1}A. Diagonalizing Λ⋆,h+1=U⊤DU\Lambda_{\star,h+1}=U^{\top}DU where UU is orthonormal and DD is diagonal, gives,

Here ΠB=B(B⊤B)−1B⊤\Pi_{B}=B(B^{\top}B)^{-1}B^{\top} is an orthogonal projection operator. This derivation uses the fact that since (UB)⊤D(UB)^{\top}D has rows in the column space of UBUB, we can right multiply by the projector onto UBUB. We also use that U⊤U=IU^{\top}U=I since UU has orthonormal rows and columns.

Thus, by the submultiplicative property of spectral norm, we obtain

Here κ\kappa is a lower bound on the minimum eigenvalue of B⊤BB^{\top}B.

Using this bound on ∥P⋆,h∥\|P_{\star,h}\|, we can now bound the optimal value function,

The last bound uses the fact we apply a bound for ∥Λ⋆,h+1∥2\|\Lambda_{\star,h+1}\|_{2} that is larger than one, so the last term dominates. We also use the inequalities Θ2/κ≥1\Theta^{2}/\kappa\geq 1 and Θ≥1\Theta\geq 1. This recurrence yields,

A naive upper bound on O⋆,hO_{\star,h} gives,

The final component of the proposition is to demonstrate the Bellman factorization.

Fix hh and a value function gg parametrized by matrices Λ\Lambda and offset OO at time hh and Λ′,O′\Lambda^{\prime},O^{\prime} at time h+1h+1. Also fix π\pi which uses operator PπP_{\pi} at time hh.

The norm bound on ξ\xi is straightforward, since all terms in its decomposition have an exponential in HH bound.

Since at level one we have that the norm is at most ∥Σ∥F\|\Sigma\|_{F}, we obtain a recurrence which produces a bound, at level hh of,

if Θ,B1≥1\Theta,B_{1}\geq 1, which is the regime of interest. ∎

Appendix C Auxiliary Proofs of the Main Lemmas

In this appendix we give the full proofs of the lemmas sketched in Section 6. Rather than directly analyze Olive and prove Theorem 1, we instead focus the analysis on the robust variant, Oliver, introduced in Section 5.4. Oliver (Algorithm 3) with parameters θ=0\theta=0 and η=0\eta=0 is precisely Olive, and the two analyses are identical. To avoid repetition, in this appendix we analyze Oliver (Algorithm 3) and prove the versions of the lemmas that can be used for Theorem 4. Readers can easily recover the detailed proofs of the lemmas in Section 6 for Olive by letting θ=0, η=0, ϵ′=ϵ, fθ⋆=f⋆, VF,θ⋆=VF⋆\theta=0,~{}\eta=0,~{}\epsilon^{\prime}=\epsilon,~{}f_{\theta}^{\star}=f^{\star},~{}V_{\mathcal{F},\theta}^{\star}=V_{\mathcal{F}}^{\star}.

To facilitate understanding we break up the proofs into 3 parts. The main proofs appear in C.1, and two types of technical lemmas are invoked from there: (1) a series of lemmas that adapt the work of Todd (1982) for the purpose, which are given in C.2; (2) deviation bounds, which are given in C.3.

Recall from Definition 2 that the average Bellman errors are defined as

Since all HH expected values share the same distribution over trajectories, which is the one induced by a1:H∼πfa_{1:H}\sim\pi_{f}, the above expression is equal to

throughout the execution of the algorithm (recall that ϵ′\epsilon^{\prime} is defined on Line 1), and fθ⋆f_{\theta}^{\star} is never eliminated, then in any iteration tt, either the algorithm does not terminate and

or the algorithm terminates and the output policy πt\pi_{t} satisfies Vπt≥VF,θ⋆−ϵ′−HθV^{\pi_{t}}\geq V_{\mathcal{F},\theta}^{\star}-\epsilon^{\prime}-H\theta.

The last inequality uses Lemma 1 on Vfθ⋆V_{f_{\theta}^{\star}} and the definition of VF,θ⋆V_{\mathcal{F},\theta}^{\star}, which is the reward for policy πfθ⋆\pi_{f_{\theta}^{\star}}. Lemma 1 relates these two quantities to the average Bellman errors, which, since fθ⋆f_{\theta}^{\star} is θ\theta-valid are each upper bounded by θ\theta.

If E^(f,πt,ht)\hat{\mathcal{E}}(f,\pi_{t},h_{t}) in Eq. (11) always satisfies

throughout the execution of the algorithm (ϕ\phi is the threshold in the elimination criterion), then fθ⋆f_{\theta}^{\star} is never eliminated. Furthermore, for any particular level hh, if whenever ht=hh_{t}=h, we have

then the number of iterations that ht=hh_{t}=h is at most

The first claim that fθ⋆f_{\theta}^{\star} is never eliminated follows directly from the fact ∣E(fθ⋆,πt,ht)∣≤θ|\mathcal{E}(f_{\theta}^{\star},\pi_{t},h_{t})|\leq\theta (Definition 8), Eq. (26), and the elimination threshold ϕ+θ\phi+\theta. Below we prove the second claim.

For any particular level hh, suppose i1<⋯<iτ<⋯<iThi_{1}<\cdots<i_{\tau}<\cdots<i_{T_{h}} are the iteration indices with ht=hh_{t}=h, {t:ht=h}\{t:h_{t}=h\} ordered from first to last, and Th=∣{t:ht=h}∣T_{h}=|\{t:h_{t}=h\}|. For convenience define i0=0i_{0}=0. The goal is to prove an upper bound on ThT_{h}.

p1,…,pThp_{1},\ldots,p_{T_{h}}. pτ:=νh(fiτ)p_{\tau}:=\nu_{h}(f_{i_{\tau}}) where νh(⋅)\nu_{h}(\cdot) is given in Definition 10. Recall that fiτf_{i_{\tau}} is the optimistic function used for exploration in iteration t=iτt=i_{\tau}.

Ψ=sup⁡f∈F∥νh(f)∥2\Psi=\sup_{f\in\mathcal{F}}\|\nu_{h}(f)\|_{2}, and Φ=sup⁡f∈F∥ξh(f)∥2\Phi=\sup_{f\in\mathcal{F}}\|\xi_{h}(f)\|_{2}. By Definition 10, Ψ⋅Φ≤ζ\Psi\cdot\Phi\leq\zeta.

V0,V1,…,VThV_{0},V_{1},\ldots,V_{T_{h}}. V0:={v:∥v∥2≤Φ}V_{0}:=\{v:\|v\|_{2}\leq\Phi\}, and Vτ:={v∈Vτ−1:∣pτ⊤v∣≤2ϕ+θ+η}.V_{\tau}:=\{v\in V_{\tau-1}:|p_{\tau}^{\top}v|\leq 2\phi+\theta+\eta\}.

B0,B1,…,BThB_{0},B_{1},\ldots,B_{T_{h}}. BτB_{\tau} is a minimum volume enclosing ellipsoid (MVEE) of VτV_{\tau}.

For every τ=0,…,Th\tau=0,\ldots,T_{h}, we first show that U(Fiτ)⊆Vτ\mathcal{U}(\mathcal{F}_{i_{\tau}})\subseteq V_{\tau}. When τ=0\tau=0 this is obvious. For τ≥1\tau\geq 1, we have ∀f∈Fiτ\forall f\in\mathcal{F}_{i_{\tau}},

by the elimination criterion and Eq. (26). By Definition 10, this implies that, ∀v∈U(Fiτ)\forall v\in\mathcal{U}(\mathcal{F}_{i_{\tau}}),

so U(Fiτ)⊆Vτ\mathcal{U}(\mathcal{F}_{i_{\tau}})\subseteq V_{\tau}.

Next we show that ∃v∈Vτ−1\exists v\in V_{\tau-1} such that ∣pτ⊤v∣≥3M(2ϕ+θ+η)|p_{\tau}^{\top}v|\geq 3\sqrt{M}(2\phi+\theta+\eta). In fact, Eq. (27) and the fact that fitf_{i_{t}} was chosen (implying that it survived) implies that this vv can be chosen as

(The first “⊆\subseteq” follows from the fact that Ft\mathcal{F}_{t} shrinks monotonically in Algorithm 3, since the learning steps between t=iτ−1+1t=i_{\tau-1}+1 and t=iτ−1t=i_{\tau}-1 on other levels can only eliminate functions.) We verify that this vv satisfies the desired property, given by Definition 10 and Eq. (27):

Observing that VtV_{t} is centrally symmetric and consequently so is BtB_{t} (Todd and Yıldırım, 2007), we apply Lemma 11 and Fact 4 with the variables set to d:=M,B:=Bτ−1,κ:=3M(2ϕ+θ+η),γ:=2ϕ+θ+ηd:=M,B:=B_{\tau-1},\kappa:=3\sqrt{M}(2\phi+\theta+\eta),\gamma:=2\phi+\theta+\eta. We obtain that

where B+B^{+} is the MVEE of Vτ′:={v∈Bτ−1:∣pτ⊤v∣≤2ϕ+θ+η}V_{\tau}^{\prime}:=\{v\in B_{{\tau}-1}:|p_{\tau}^{\top}v|\leq 2\phi+\theta+\eta\}. Note that Vτ={v∈Vτ−1:∣pτ⊤v∣≤2ϕ+θ+η}⊆Vτ′V_{\tau}=\{v\in V_{{\tau}-1}:|p_{\tau}^{\top}v|\leq 2\phi+\theta+\eta\}\subseteq V_{\tau}^{\prime} given that Vτ−1⊆Bτ−1V_{{\tau}-1}\subseteq B_{{\tau}-1}. Since B+B_{+} is an enclosing ellipsoid of VτV_{\tau}, and BτB_{\tau} is the MVEE of VτV_{\tau}, we have vol(Bτ)≤vol(B+)vol(B_{\tau})\leq vol(B_{+}). Altogether we claim that

For vol(BTh)vol(B_{T_{h}}), since ∥pτ∥2≤Ψ\|p_{\tau}\|_{2}\leq\Psi always holds, we can guarantee that

Hence, vol(BTh)≥cM(2ϕ/Ψ)Mvol(B_{T_{h}})\geq c_{M}\left(2\phi/\Psi\right)^{M}, and

The second claim of the lemma statement follows by recalling that ΨΦ≤ζ\Psi\Phi\leq\zeta. ∎

C.2 Lemmas for the Volumetric Argument

We adapt the work of Todd (1982) to derive lemmas that we use in C.1. The main result of this section is Lemma 11. As this section focuses on generic geometric results, we adopt notation more standard for these arguments unlike the notation used in the rest of the paper.

is a minimum volume enclosing ellipsoid (MVEE) for EβE_{\beta} if

With E,E+,σ,ρE,E_{+},\sigma,\rho as in Theorem 6, we have

The determinant is simply the product of the eigenvalues, which is easy to calculate since GG is diagonal,

Plugging in the definitions of ρ,σ\rho,\sigma from Theorem 6 proves the statement. ∎

The first claim is to prove a bound on p⊤Bpp^{\top}Bp.

The last inequality applies since v∈Bv\in B so that v⊤B−1v≤1v^{\top}B^{-1}v\leq 1. Now we proceed to work with the ellipsoids, let L={v:∣v⊤p∣≤γ}L=\{v:|v^{\top}p|\leq\gamma\}. Set B+=MVEE(B⋂L)B_{+}=MVEE(B\bigcap L). We apply two translations of the coordinate system so that BB gets mapped to the unit ball and so that pp gets mapped to αe1\alpha e_{1} (i.e. a scaled multiple of the first standard basis vector). The first translation is done by setting w=B−1/2vw=B^{-1/2}v where ww is in the new coordinate system and vv is in the old coordinate system. Let p1=B1/2pp_{1}=B^{1/2}p so that we can equivalently write L={w:∣w⊤p1∣≤γ}L=\{w:|w^{\top}p_{1}|\leq\gamma\}. The second translation maps p1p_{1} to αe1\alpha e_{1} via a rotation matrix RR such that RB1/2p=Rp1=αe1RB^{1/2}p=Rp_{1}=\alpha e_{1}. We also translate ww to RwRw but this doesn’t affect the now spherically symmetric ellipsoid, so we do not change the variable names.

To summarize, after applying the scaling and the rotation, we are interested in MVEE(I⋂{w:∣w⊤e1∣≤γ/α})MVEE(I\bigcap\{w:|w^{\top}e_{1}|\leq\gamma/\alpha\}) and specifically, since volume ratios are invariant under affine transformation, we have

Here II is the unit ball (i.e. the ellipsoid with identity matrix). Further applying Fact 3, we obtain

It remains to lower bound α\alpha, which is immediate since

Substituting this lower bound on α\alpha completes the proof. ∎

When γ/κ=13d\gamma/\kappa=\frac{1}{3\sqrt{d}}, the RHS of Eq. (31) is less than 0.60.6.

Plugging in the numbers, we have the RHS of Eq. (31) equal to

Here we used the fact that (1+1x)x(1+\frac{1}{x})^{x} is monotonically increasing towards ee on x∈[1,∞)x\in[1,\infty). ∎

C.3 Deviation Bounds

In this section we prove the deviation bounds. Note that the statement of the lemmas in this section, which are for Oliver, coincide with those stated in Section 6 for Olive. This is not surprising as the two algorithms draw data and estimate quantities in the same way.

holds for all f∈Ff\in\mathcal{F} simultaneously. Hence, we can set nest≥32ϵ2log⁡2Nδn_{\textrm{est}}\geq\frac{32}{\epsilon^{2}}\log\frac{2N}{\delta} to guarantee that ∣V^f−Vf∣≤ϵ/8|\hat{V}_{f}-V_{f}|\leq\epsilon/8.

The bound follows from a straight-forward application of Hoeffding’s inequality and the union bound, and we only need to verify that the VfV_{f} is the expected value of the V^f\hat{V}_{f}, and the range of the random variables is $$. ∎

For any fixed ftf_{t}, with probability at least 1−δ1-\delta,

For any fixed πt\pi_{t} and hth_{t}, with probability at least 1−δ1-\delta,

holds for all f∈Ff\in\mathcal{F} simultaneously. Hence, for any n≥32Kϕ2log⁡2Nδn\geq\frac{32K}{\phi^{2}}\log\frac{2N}{\delta} and ϕ≤4\phi\leq 4, with probability at least 1−δ1-\delta we have ∣E^(f,πt,ht)−E(f,πt,ht)∣≤ϕ|\hat{\mathcal{E}}(f,\pi_{t},h_{t})-\mathcal{E}(f,\pi_{t},h_{t})|\leq\phi.

We first show that E^(f,πt,ht)\hat{\mathcal{E}}(f,\pi_{t},h_{t}) is an average of i.i.d. random variables with mean E(f,πt,ht)\mathcal{E}(f,\pi_{t},h_{t}). We use μ\mu as a shorthand for the distribution over trajectories induced by a1,…,aht−1∼πt,ah∼unif(A)a_{1},\ldots,a_{h_{t}-1}\sim\pi_{t},a_{h}\sim\textrm{unif}(\mathcal{A}), which is the distribution of data used to estimate E^(f,πt,ht)\hat{\mathcal{E}}(f,\pi_{t},h_{t}). On the other hand, let μ′\mu^{\prime} denote the distribution over trajectories induced by a1,…,aht−1∼πt,ah∼πf.a_{1},\ldots,a_{h_{t}-1}\sim\pi_{t},a_{h}\sim\pi_{f}. The importance weight used in Eq. (11) essentially converts the distribution from μ\mu to μ′\mu^{\prime}, hence the expected value of E^(f,πt,ht)\hat{\mathcal{E}}(f,\pi_{t},h_{t}) can be written as

Now, we apply Bernstein’s inequality. We first analyze the 2nd-moment of the random variable. Defining y(xh,ah,rh,xh+1)=f(xh,ah)−rh−f(xh+1,πf(xh+1))∈y(x_{h},a_{h},r_{h},x_{h+1})=f(x_{h},a_{h})-r_{h}-f(x_{h+1},\pi_{f}(x_{h+1}))\in, the 2nd-moment is

Next we check the range of the centered random variable. The uncentered variable lies in [−2K,K][-2K,K], and the expected value is in $,sothecenteredvariableliesin, so the centered variable lies in[-2K-1,K+2]\subseteq[-3K,3K].ApplyingBernstein’sinequality,wehavewithprobabilityatleast. Applying Bernstein’s inequality, we have with probability at least1-\delta$,

As long as 2Klog⁡2Nδn≤1\frac{2K\log\frac{2N}{\delta}}{n}\leq 1, the above is bounded by 28Klog⁡2Nδn2\sqrt{\frac{8K\log\frac{2N}{\delta}}{n}}. The choice of nn follows from solving 28Klog⁡2Nδn=ϕ2\sqrt{\frac{8K\log\frac{2N}{\delta}}{n}}=\phi for nn, which indeed guarantees that 2Klog⁡2Nδn≤1\frac{2K\log\frac{2N}{\delta}}{n}\leq 1 as ϕ≤4\phi\leq 4. ∎

Appendix D Proofs of Extensions

Since we assign δi(i+1)\frac{\delta}{i(i+1)} failure probability to the ii-th call of Algorithm 2, the total failure probability is at most

So with probability at least 1−δ1-\delta, all high probability events in the analysis of Olive occur for every i=1,2,…i=1,2,\ldots. Note that regardless of whether M′<MM^{\prime}<M, we never eliminate f⋆f^{\star} according to Lemma 3. Hence Lemma 2 holds and whenever the algorithm returns a policy it is near-optimal.

While the algorithm returns a near-optimal policy if it terminates, we still must prove that the algorithm terminates. Since when M′<MM^{\prime}<M Eq. (19) and Lemma 10 do not apply, we cannot naively use arguments from the analysis of Olive. However, we monitor the number of iterations that have passed in each execution to Olive and stop the subroutine when the actual number of iterations exceeds the iteration complexity bound (Lemma 3) to prevent wasting more samples on the wrong M′M^{\prime}.

Olive is guaranteed to terminate within the sample complexity bound and output near-optimal policy when M≤M′M\leq M^{\prime}. Since M′M^{\prime} grows on a doubling schedule, for the first M′M^{\prime} that satisfies M≤M′M\leq M^{\prime}, we have M′≤2MM^{\prime}\leq 2M and i≤log⁡2M+1i\leq\log_{2}M+1. Hence, the total number of calls is bounded by log⁡2M+1\log_{2}M+1.

Finally, since the sample complexity bound in Theorem 1 is monotonically increasing in MM and 1/δ1/\delta and the schedule for δ′\delta^{\prime} is increasing, we can bound the total sample complexity by that of the last call to Olive multiplied by the number of calls. The last call to Olive has M′≤2MM^{\prime}\leq 2M, and i(i+1)δ≤(log⁡2M+2)(log⁡2M+1)δ\frac{i(i+1)}{\delta}\leq\frac{(\log_{2}M+2)(\log_{2}M+1)}{\delta}, so the sample complexity bound is only affected by factors that are at most logarithmic in the relevant parameters.

D.2 Proofs for Infinite Hypothesis Classes

In this section we prove sample complexity guarantee for using infinite hypothesis classes in Section 5.3. Recall that we are working with separated policy class Π\Pi and V-value function class G\mathcal{G}, and when running Olive any occurrence of f∈Ff\in\mathcal{F} is replaced appropriately by (π,g)∈Π×G(\pi,g)\in\Pi\times\mathcal{G}. For clarity, we use (π,g)(\pi,g) instead of ff in the derivations in this section. We assume that the two function classes have finite Natarajan dimension and pseudo dimension respectively.

Define dΠ=max⁡(Ndim(Π),6),dG=max⁡(Pdim(G),6)d_{\Pi}=\max(\textrm{Ndim}(\Pi),6),d_{\mathcal{G}}=\max(\textrm{Pdim}(\mathcal{G}),6), and d=dΠ+dGd=d_{\Pi}+d_{\mathcal{G}}.

then with probability at least 1−δ1-\delta, ∣V^(π,g)−V(π,g)∣≤ϵ/8, ∀(π,g)∈Π×G|\hat{V}_{(\pi,g)}-V_{(\pi,g)}|\leq\epsilon/8,~{}\forall(\pi,g)\in\Pi\times\mathcal{G}.

We remark that both the estimate V^(π,g)\hat{V}_{(\pi,g)} and population quantity V(π,g)V_{(\pi,g)} are independent of π\pi in the separable case, and hence the sample complexity is independent of dΠd_{\Pi}.

then for any fixed πt\pi_{t} and hth_{t}, with probability at least 1−δ1-\delta,

Lemma 15 is a straight-forward application of Corollary 2 introduced in D.2.1 and are not proved separately. The remainder of this section, we prove Lemma 16. Before that, we review some standard definitions and results from statistical learning theory.

Notations X,x,n,d,ξ\mathcal{X},x,n,d,\xi in this section are used according to conventions in the literature and may not share semantics with the same symbols used elsewhere in this paper.

Given hypothesis class H⊂X→{0,1}\mathcal{H}\subset\mathcal{X}\to\{0,1\}, its VC-dimension VC-dim(H)\textrm{VC-dim}(\mathcal{H}) is defined as the maximal cardinality of a set X={x1,…,x∣X∣}⊂XX=\{x_{1},\ldots,x_{|X|}\}\subset\mathcal{X} that satisfies ∣HX∣=2∣X∣|\mathcal{H}_{X}|=2^{|X|} (or XX is shattered by H\mathcal{H}), where HX\mathcal{H}_{X} is the restriction of H\mathcal{H} to XX, namely {(h(x1),…,h(x∣X∣)):h∈H}\{(h(x_{1}),\ldots,h(x_{|X|})):h\in\mathcal{H}\}.

Given hypothesis class H⊂X→{0,1}\mathcal{H}\subset\mathcal{X}\to\{0,1\} with d=VC-dim(H)<∞d=\textrm{VC-dim}(\mathcal{H})<\infty, we have ∀X=(x1,…,xn)∈Xn\forall X=(x_{1},\ldots,x_{n})\in\mathcal{X}^{n},

Given hypothesis class H⊂X→Y\mathcal{H}\subset\mathcal{X}\to\mathcal{Y} with Ndim(H)≤d\textrm{Ndim}(\mathcal{H})\leq d, we have ∀X=(x1,…,xn)∈Xn\forall X=(x_{1},\ldots,x_{n})\in\mathcal{X}^{n},

Let H⊂X→[0,b]\mathcal{H}\subset\mathcal{X}\to[0,b] be a hypothesis class, and (x1,…,xn)(x_{1},\ldots,x_{n}) be i.i.d. samples drawn from some distribution supported on X\mathcal{X}. For any α>0\alpha>0,

Suppose Pdim(H)≤d\textrm{Pdim}(\mathcal{H})\leq d, then

To guarantee that this probability is upper bounded by δ\delta, it suffices to have

D.2.2 Proof of Lemma 16

The idea is to establish deviation bounds for each of the three terms in the definition of E^((π,g),πt,ht)\hat{\mathcal{E}}((\pi,g),\pi_{t},h_{t}) (Eq. (5)). Each term takes the form of an importance weight multiplied by a real-valued function, and we first show that the function space formed by these products has bounded pseudo dimension. We state this supporting lemma in terms of an arbitrary value-function class V\mathcal{V} which might operate on an input space X′\mathcal{X}^{\prime} different from the context space X\mathcal{X}. In the sequel, we instantiate V\mathcal{V} and X′\mathcal{X}^{\prime} in the the lemma with specific choices to prove the desired results.

Let Y\mathcal{Y} be a label space with ∣Y∣=K|\mathcal{Y}|=K, let Π⊆X→Y\Pi\subseteq\mathcal{X}\to\mathcal{Y} be a function class with Natarajan dimension at most dΠ∈[6,∞)d_{\Pi}\in[6,\infty), and let V⊆X′→\mathcal{V}\subseteq\mathcal{X}^{\prime}\to be a class with pseudo dimension at most dV∈[6,∞)d_{\mathcal{V}}\in[6,\infty). The hypothesis class H={(x,a,x′)↦1[a=π(x)]g(x′):π∈Π,g∈V}\mathcal{H}=\{(x,a,x^{\prime})\mapsto\mathbf{1}[a=\pi(x)]g(x^{\prime}):\pi\in\Pi,g\in\mathcal{V}\} has pseudo dimension Pdim(H)≤6(dΠ+dV)log⁡(2eK(dΠ+dV))\textrm{Pdim}(\mathcal{H})\leq 6(d_{\Pi}+d_{\mathcal{V}})\log\left(2eK(d_{\Pi}+d_{\mathcal{V}})\right).

For points where ξi<0\xi_{i}<0, all hypotheses in H+\mathcal{H}^{+} produce label 11, so without loss of generality we can assume that ξi≥0,i=1,…,d\xi_{i}\geq 0,i=1,\ldots,d.

With a slight abuse of notation, let ΠX\Pi_{X} denote the restriction of Π\Pi to the set of contexts {x1,…,xd}\{x_{1},\ldots,x_{d}\} (actions and future contexts (a1,x1′),…,(ad,xd′)(a_{1},x_{1}^{\prime}),\ldots,(a_{d},x_{d}^{\prime}) are ignored since Π\Pi does not operate on them), and VX+\mathcal{V}^{+}_{X} denote the restriction of V+\mathcal{V}^{+} to {(x1′,ξ1),…,(xd′,ξd)}\{(x_{1}^{\prime},\xi_{1}),\ldots,(x_{d}^{\prime},\xi_{d})\}. HX+\mathcal{H}_{X}^{+} can be produced by the Cartesian product of ΠX\Pi_{X} and VX+\mathcal{V}^{+}_{X} as follows:

Therefore, ∣HX+∣≤∣ΠX∣ ∣VX+∣|\mathcal{H}^{+}_{X}|\leq|\Pi_{X}|\,|\mathcal{V}^{+}_{X}|. Recall that Ndim(Π)≤dΠ\textrm{Ndim}(\Pi)\leq d_{\Pi} and VC-dim(V+)=Pdim(V)≤dV\textrm{VC-dim}(\mathcal{V}^{+})=\textrm{Pdim}(\mathcal{V})\leq d_{\mathcal{V}}. Applying Lemma 18 and 17:

It remains to be shown that this is less than log⁡(2d)=dlog⁡2\log(2^{d})=d\log 2. Note that

so we only need to show that (dΠ+dV)log⁡(2d)≤(dΠ+dV)log⁡(2eK)+3(dΠ+dV)log⁡(dΠ+dV)(d_{\Pi}+d_{\mathcal{V}})\log(2d)\leq(d_{\Pi}+d_{\mathcal{V}})\log(2eK)+3(d_{\Pi}+d_{\mathcal{V}})\log(d_{\Pi}+d_{\mathcal{V}}). Now

Recall that when we are given a policy class Π\Pi and separate V-value function class G\mathcal{G}, for every π∈Π,g∈G\pi\in\Pi,g\in\mathcal{G}, we instead estimate average Bellman error with

D.3 Proofs for OLIVER

Recall that the main lemmas for analyzing Oliver have been proved in Appendix C.1, so below we directly prove Theorem 4.

Suppose the preconditions of Lemma 9 (Eq. (24)) and Lemma 10 (Eq. (26)) hold; we show them by invoking the deviation bounds later. By Lemma 9, when the algorithm terminates, the value of the output policy is at least

Recall that ϵ′=ϵ+2H(3M(θ+η)+η)\epsilon^{\prime}=\epsilon+2H(3\sqrt{M}(\theta+\eta)+\eta) (Line 1), so the suboptimality compared to VF,θ⋆V_{\mathcal{F},\theta}^{\star} is at most

which establishes the suboptimality claim.

It remains to show the sample complexity bound. Applying Lemma 9, in every iteration tt before the algorithm terminates,

thanks to the choice of ϕ\phi and ϵ′\epsilon^{\prime}. For level h=hth=h_{t}, Eq. (27) is satisfied. According to Lemma 10, the event ht=hh_{t}=h can happen at most Mlog⁡(ζ2ϕ)/log⁡53M\log\left(\frac{\zeta}{2\phi}\right)/\log\frac{5}{3} times for every h∈[H]h\in[H]. Hence, the total number of iterations in the algorithm is at most

Now we are ready to apply the deviation bounds to show that Eq. (24) and 18 hold with high probability. We split the total failure probability δ\delta among the following events:

Estimation of V^f\hat{V}_{f} (Lemma 12; only once): δ/3\delta/3.

Estimation of E^(f,πt,ht)\hat{\mathcal{E}}(f,\pi_{t},h_{t}) (Lemma 14; every iteration): same as above.

Acknowledgements

Part of this work was completed while NJ and AK were at Microsoft Research. NJ was also partially supported by Rackham Predoctoral Fellowship in University of Michigan.

References