Bilinear Classes: A Structural Framework for Provable Generalization in RL
Simon S. Du, Sham M. Kakade, Jason D. Lee, Shachar Lovett, Gaurav Mahajan, Wen Sun, Ruosong Wang
Introduction
Tackling large state-action spaces is a central challenge in reinforcement learning (RL). Here, function approximation and supervised learning schemes are often employed for generalization across large state-action spaces. While there have been a number of successful applications (Mnih et al., 2013; Kober et al., 2013; Silver et al., 2017; Wu et al., 2017). there is also a realization that practical RL approaches are quite sample inefficient.
Theoretically, there is a growing body of results showing how sample efficiency is possible in RL for particular model classes (often with restrictions on the model dynamics though in some cases on the class of value functions), e.g. State Aggregation (Li, 2009; Dong et al., 2020c), Linear MDPs (Yang and Wang, 2019; Jin et al., 2020), Linear Mixture MDPs (Modi et al., 2020a; Ayoub et al., 2020), Reactive POMDPs (Krishnamurthy et al., 2016), Block MDPs (Du et al., 2019a), FLAMBE (Agarwal et al., 2020b), Reactive PSRs (Littman et al., 2001), Linear Bellman Complete (Munos, 2005; Zanette et al., 2020).
More generally, there are also a few lines of work which propose more general frameworks, consisting of structural conditions which permit sample efficient RL; these include the low-rankness structure (e.g. the Bellman rank (Jiang et al., 2017) and Witness rank (Sun et al., 2019)) or under a complete condition (Munos, 2005; Zanette et al., 2020). The goal in these latter works is to develop a unified theory of generalization in RL, analogous to more classical notions of statistical complexity (e.g. VC-theory and Rademacher complexity) relevant for supervised learning. These latter frameworks are not contained in each other (see Table 1), and, furthermore, there are a number of natural RL models that cannot be incorporated into each of these frameworks (see Table 2).
Motivated by this latter line of work, we aim to understand if there are simple and natural structural conditions which capture the learnability in a general class of RL models.
This work provides a simple structural condition on the hypothesis class (which may be either model-based or value-based), where the Bellman error has a particular bilinear form, under which sample efficient learning is possible; we refer such a framework as a Bilinear Class. This structural assumption can be seen as generalizing the Bellman rank (Jiang et al., 2017); furthermore, it not only contains existing frameworks, it also covers a number of new settings that are not easily incorporated in previous frameworks (see Tables 1 and 2).
Our main result presents an optimization-based algorithm, BiLin-UCB, which provably enjoys a polynomial sample complexity guarantee for Bilinear Classes (cf. Theorem 5.2). Although our framework is more general than existing ones, our proof is substantially simpler – we give a unified analysis based on the elliptical potential lemma, developed for the theory of linear bandits (Dani et al., 2008; Srinivas et al., 2009).
Furthermore, as a point of emphasis, our results are non-parametric in nature (stated in terms of an information gain quantity (Srinivas et al., 2009)), as opposed to finite dimensional as in prior work. From a technical point of view, it is not evident how to extend prior approaches to this non-parametric setting. Notably, the non-parametric regime is particularly relevant to RL due to that, in RL, performance bounds do not degrade gracefully with approximation error or model mis-specification (e.g. see Du et al. (2020a) for discussion of these issues); the relevance of the non-parametric regime is that it may provide additional flexibility to avoid the catastrophic quality degradation due to approximation error or model mis-specification.
Definition of Bilinear Class: Our key conceptual contribution is the definition of the Bilinear Class, which isolates two key critical properties. The first property is that the Bellman error can be upper bounded by a bilinear form depending on the hypothesis. The second property is that the corresponding bilinear form for all hypothesis in the hypothesis class can be estimated with the same dataset. Analogous to supervised learning, this allows for efficient data reuse to estimate the Bellman error for all hypothesis simultaneously and eliminate those with high error.
A reduction to supervised learning: One appealing aspect of this framework is that the our main sample complexity result for RL is quantified via a reduction to the generalization error of a supervised learning problem, where we have a far better understanding of the latter. This is particularly important due to that we make no explicit assumptions on the hypothesis class itself, thus allowing for neural hypothesis classes in some cases (the Bilinear Class posits an implicit relationship between and the underlying MDP ).
New models: We show our Bilinear Class framework incorporates new natural models, that are not easily incorporated into existing frameworks, e.g. linear , Low Occupancy Complexity, along with (infinite-dimensional) RKHS versions of linear MDPs and linear mixture MDPs. The linear result is particularly notable due to a recent and remarkable lower bound which showed that if we only assume is linear in some given set of features, then sample efficient learning is information theoretically not possible (Weisz et al., 2020). In perhaps a surprising contrast, our works shows that if we assume that both and are linear in some given features then sample efficient learning is in fact possible.
Non-parametric rates: Our work is applicable to the non-parametric setting, where we develop new analysis tools to handle a number of technical challenges. This is notable as non-parametric rates for RL are few and far between. Our results are stated in terms of the critical information gain which can viewed as an analogous quantity to the critical radius, a quantity which is used to obtain sharp rates in non-parametric statistical settings (Wainwright, 2019).
Flexible Framework: The Bilinear Class framework is easily modified to include cases that do not strictly fit the definition. We show several examples of this in Section 6, where we show simple modifications of Bilinear Class framework include Witness Rank and Kernelized Nonlinear Regulator.
Section 2 provides further related work. Section 3 introduce some technical background and notation. Section 4 introduces our Bilinear Class framework, where we instantiate it on the several RL models, and Section 5 describes our algorithm and provides our main theoretical results. In Section 6, we introduce further extensions of Bilinear Classes. We conclude in Section 7. Appendix A provides additional examples of the Bilinear Class including the feature selection model Agarwal et al. (2020b), state aggregation, LQR, Linear MDP, and Block MDP. Appendix B provides missing proofs of Section 5. Appendix C provides a key technical theorem to attain non-parametric convergence rates in terms of the information gain, and Appendix D uses this to show concentration inequalities for all the models in a unified approach. Appendix E provides proofs for Section 6. Finally, Appendix G shows that low information gain is necessary in both Bellman Complete and Linear MDP by showing that small RKHS norm is not sufficient for sample-efficient reinforcement learning.
Related Work: Frameworks and Models
We first review existing frameworks and the relations among them. See Table 1 for a summary.
Jiang et al. (2017) defines a notion, Bellman Rank (B-Rank in Tables), in terms of the roll-in distribution and the function approximation class for , and give an algorithm with a polynomial sample complexity in terms of the Bellman Rank. They also showed a class of models, including tabular MDP, LQR, Reactive POMDP (Krishnamurthy et al., 2016), and Reactive PSR (Littman and Sutton, 2002) admit a low Bellman Rank, and thus they can be solved efficiently. Some recently proposed models, such as Block MDP (Du et al., 2019a), linear MDP (Yang and Wang, 2019; Jin et al., 2020) can also be shown to have a low Bellman rank. One caveat is that their algorithm requires a finite number of actions, so cannot be directly applied to (infinite-action) linear MDP and LQR. Subsequently, Sun et al. (2019) proposed a new framework, Witness Rank (W-Rank in tables), which generalizes Bellman Rank to model-based setting.
Bellman Complete (B-Complete in tables) is a framework of another style, which assumes that the class used for approximating the -function is closed under the Bellman operator. As shown in Table 1, neither the low-rank-style framework (Bellman Rank and Witness Rank) nor the complete-style framework (B-Complete) contains the other (See e.g., Zanette et al. (2020)).
Eluder dimension (Russo and Van Roy, 2014) is another structural condition which directly assumes the function class allows for strong extrapolation after observing dimension number of samples. With appropriate representation conditions (stronger than Bellman Complete), there is an efficient algorithm for function classes with small eluder dimension (Wang et al., 2020). However due to Eluder dimension requiring extrapolation, there are few examples of function classes with small eluder dimension beyond linear functions and monotone transformations of linear functions both of which are captured by the bilinear class.
Concurrently, Jin et al. (2021) proposes a new structural model called Bellman Eluder dimension (BE dimension) which takes both the MDP structure and the function class into consideration. We note that neither BE nor Bilinear Class capture each other. Notably, Bilinear Classes, via use of flexible Bellman error estimators, naturally captures model-based settings including linear mixture MDPs, KNRs, and factored MDPs, which are hard for model-free algorithms and frameworks to capture since the value functions of these models could be arbitrarily complicated. Specifically, Sun et al. (2019) shows that for factored MDPs, model-free algorithms such as OLIVE Jiang et al. (2017) suffer exponential sample complexity in worst case which implies that both BE dimension and Bellman rank are large for factored MDPs. However, Bilinear Class and Witness rank Sun et al. (2019) properly capture the complexity of factored MDPs. Similar situation may also apply to KNRs. For instance, Dong et al. (2020a) showed that for a simple piecewise linear dynamics (thus captured by KNRs) and piecewise reward functions, the optimal policy could contain exponentially many linear pieces and the optimal Q and V functions are fractals which are not differentiable anywhere and cannot be approximated by any neural networks with a polynomial width. It is unclear if such models have low BE dimension.
The primary difference is that the two complexity measures are applied to different structural aspects of the MDP: Bellman eluder framework is applied to the Bellman error and the bilinear class is applied to any loss estimator of the Bellman error. The actual complexity measures of eluder dimension and information gain are very similar and in fact equivalent for RKHS (Huang et al., ; Jin et al., 2021). As these two complexity measures are different in general, an interesting direction for further work is to understand how eluder dimension can address new settings of practical interest beyond (generalized) linear models and whether Bellman eluder dimension can be broadened to capture model-based approaches (like the linear mixture model). Finally, we comment that there are models (e.g., deterministic linear and state-action aggregation) that are captured by neither frameworks; we leave to future work to propose a framework that can capture these models that do not have error amplification.
With an additional Bellman completeness assumption on the function class, Jin et al. (2021) gives an algorithm which extends Eleanor from Zanette et al. (2020) to nonlinear function approximation that achieves a regret guarantee with faster rates than our algorithm. We note that our algorithm and OLIVE (as shown by Jin et al. (2021)) does not require Bellman completeness which is a much stronger assumption than realizability. As examples, the low occupancy complexity, feature selection model, linear mixture model, and many other model-based models are not Bellman complete. While our work focuses on PAC bounds, we conjecture that the techniques from Dong et al. (2020b) can be used for deriving regret bounds without completeness.
Now we discuss existing RL models. A summary on whether a model can be incorporated into a framework is provided in Table 2.
Tabular MDP is the most basic model, which has a finite number of states and actions, and all frameworks incorporate this model. When the state-action space is large, different RL models have been proposed to study when one can generalize across the state-action pairs.
Reactive POMDP (Krishnamurthy et al., 2016) assumes there is a small number of hidden states and the -function belongs to a pre-specified function class. Block MDP (Du et al., 2019a) also assumes there is a small number of hidden states and further assumes the hidden states are decodable. Reactive PSR (Littman et al., 2001) considers partial observable systems whose parameters are grounded in observable quantities. FLAMBE (Agarwal et al., 2020b) considers the feature selection and removes the assumption of known feature in linear MDP. These models all admit a low-rank structure, and thus can be incorporated into the Bellman Rank or Witness Rank and our Bilinear Classes.
The Linear Bellman Complete model (Munos, 2005) uses linear functions to approximate the -function, and assumes the linear function class is closed under the Bellman operator. Zanette et al. (2020) presented a statistically efficient algorithm for this model. This model does not have a low Bellman Rank or Witness Rank but can be incorporated into the Bellman Complete framework and ours.
Linear MDP (Yang and Wang, 2019; Jin et al., 2020) assumes the transition probability and the reward are linear in given features. This model not only admits a low-rank structure, but also satisfies the complete condition. Therefore, this model belongs in all frameworks. However, when the number of action is infinite, the algorithms for Bellman Rank and Witness Rank are not applicable because their sample complexity scales with the number of actions. Linear mixture MDP (Modi et al., 2020a; Ayoub et al., 2020) assumes the transition probability is a linear mixture of some base models. This model cannot be included in Bellman Rank, Witness Rank, or Bellman Complete, but our Bilinear Classes includes this model.
LQR is a fundamental model for continuous control that can be efficiently solvable (Dean et al., 2019). While LQR has a low Bellman Rank and low Witness Rank, since the algorithms for Bellman Rank and Witness Rank scale with the number of actions and LQR’s action set is uncountable, these two frameworks cannot incorporate LQR.
There is a line of work on state-action aggregation. “irrelevance” state aggregation assumes one can aggregate states to a meta-state if these states share the same value, and the number of meta-states is small (Li, 2009; Jiang et al., 2015). state-action aggregation aggregates state-action pairs to a meta-state-action pair if these pairs have the same -value (Dong et al., 2020c; Li, 2009).
Lastly, when only assuming is linear, there exists an exponential lower bound (Weisz et al., 2020), but with the additional assumption that the MDP is (nearly) deterministic and has large sub-optimality gap, there exists sample efficient algorithms (Wen and Van Roy, 2013; Du et al., 2019b, 2020b).
Setting
A deterministic, stationary policy specifies a decision-making strategy in which the agent chooses actions adaptively based on the current state, i.e. . We denote a non-stationary policy as a sequence of stationary policies where .
Given a policy and a state-action pair , the -function at time step is defined as
and, similarly, a value function time step of a given state under a policy is defined as
where both expectations are with respect to . We use and to denote the and -functions of the optimal policy.
Throughout the paper, we will consider an algorithm as sample-efficient, if it uses number of trajectories polynomial in the problem horizon , inherent dimension , accuracy parameter and poly-logarithmic in the number of candidate value-functions.
For any two vectors , we denote as the vector that concatenates , i.e., . For any set , we write to denote the probability simplex. We often use as the uniform distribution over set . We will let denote a Hilbert space (which we assume is either finite dimensional or separable).
We let denote the set . We slightly abuse notation (overloading with its marginal distributions), where and most frequently denotes the marginal distributions at timestep . We also use the shorthand notation , for , .
Bilinear Classes
Before, we define our structural framework – Bilinear Class, we first define our hypothesis class.
We assume access to a hypothesis class , which can be abstract sets that permit for both model-based and value-based hypotheses. The only restriction we make is that for all , we have an associated state-action value function and a value function . We next provide some examples:
An example of value-based hypothesis class is an explicit set of state-action value and value functions i.e.
Note that in this case, for any hypothesis , we can take the associated and associated .
Another example of value-based hypothesis class is when is just a set of state-action value functions i.e.
In this case, for any hypothesis , we can take the associated and the associated function to be greedy with respect to the function i.e. .
An example of model-based hypothesis class is when is a set of models/transition kernels and reward functions i.e.
In this case, for any hypothesis , we can take the associated and functions to be the optimal value functions corresponding to the transition kernels and reward functions .
Furthermore, we assume the hypothesis class is constrained so that for all , , and , which is always possible as we can remove hypothesis for which this is not true. We let be the greedy policy with respect to , i.e., , and as the sequence of time-dependent policies .
1 Warmup: Bellman rank, the Q𝑄Q and V𝑉V versions.
As a motivation for our structural framework, we next discuss Bellman rank framework considered in Jiang et al. (2017). In this case, the hypothesis class contains Q value functions, i.e.,
In this case, for any hypothesis , we take the associated state-action value function and the associated state value function to be greedy with respect to the function i.e. .
Even though Jiang et al. (2017) only considered -Bellman Rank, as a natural extension of this definition, we can also consider the -Bellman Rank.
Let us interpret how the two definitions differ in the usage of functions vs (along with the usage of the “estimation” policies vs and ). Recall that the Bellman equations can be written in terms of the value functions or the state-action values; here, the intuition is that the former definition corresponds to enforcing Bellman consistency of the value functions while the latter definition corresponds to enforcing Bellman consistency of the state-action value functions. Our more general structural framework, Bilinear Classes, will cover both these definitions for infinite dimensional hypothesis class (note that Jiang et al. (2017) only considered finite dimensional hypothesis class).
2 Bilinear Classes
We now introduce a new structural framework – the Bilinear Class.
We say that is realizable for an MDP if, for all , there exists a hypothesis such that , where is the optimal state-action value at time step in the ground truth MDP . For instance, for the model-based perspective, the realizability assumption is implied if the ground truth transition belongs to our hypothesis class .
Now we are ready to introduce the Bilinear Class.
Typically, will be either the uniform distribution on or itself; in the latter case, we refer to the estimation strategy as being on-policy.
We also define and .
We now provide some intuition for definition of Bilinear Class. The first part of the definition (Equation 1) basically relates the Bellman error for hypothesis (and hence sub-optimality) to the sum of bilinear forms (see for example proof of Lemma 5.5). Crucially, the second part of the definition (Equation 2), allows us to “reuse” data from hypothesis to estimate the bilinear form for all hypothesis in our hypothesis class! This is reminiscent of uniform convergence guarantees in supervised learning, where data can be reused to simultaneously estimate the loss for all hypothesis and eliminate those with high loss.
2.1 Finite Bellman rank ⟹\implies Bilinear Class
Its straightforward to see that in this case, both Equation 1 and Equation 2 are satisfied. ∎
Note that for , we have that for observed transition info
Therefore, to prove that this is a Bilinear Class, we will show that a stronger “equality” version of Equation 2 holds (which will also prove Equation 1 holds). Observe that for any ,
3 Examples
We now provide examples of Bilinear Classes: two known models (Linear Bellman Complete and Linear Mixture Models) and two new models that we propose (Linear and Low Occupancy Complexity). We return to these examples to give non-parametric sample complexities in Section 5.3. See Appendix A for additional examples of Bilinear Classes.
First, we show our definition naturally captures model-based hypothesis class.
We say that a MDP is a Linear Mixture Model if there exists (known) features and ; and (unknown) for some Hilbert space such that for all and
We denote hypothesis in our hypothesis class as tuples , where . Recall that given a model (i.e. is the time-dependent transitions, i.e., ), we denote as the optimal value function under model and corresponding reward function (in this case defined by ). Specifically, for any hypothesis , and satisfy the following Bellman optimality equation:
Note that in this example, discrepancy function will explicitly depend on . For hypothesis and observed transition info , we define
Observe that for , using Equation 3, for observed transition info ,
We consider on-policy estimation . To prove that linear mixture MDP is a Bilinear Class, we only need to show that an “equality” version of Equation 2 holds (which implies Equation 1 holds by the frame above). For , observe:
where we defined the functions as follows:
This concludes that Linear Mixture Model also forms a Bilinear Class. ∎
We introduce a new model: linear where we assume both the optimal and are linear functions in features that lie in (possibly infinite dimensional) Hilbert space.
We say that a MDP is a linear model if there exist (known) features , and (unknown) for some Hilbert spaces such that for all and for all ,
Here, our hypothesis class is a set of linear functions i.e. for all , the set is defined as:
Note that we will show that a stronger “equality” version of Equation 2 holds, which will also prove Equation 1 holds since for observed transition info ,
3.3 Bellman Complete and Linear MDPs
We now consider Bellman Complete which captures the linear MDP model (see Section A.4 for more detail on linear MDP model). Here, our hypothesis class is set of linear functions with respect to some (known) feature , where is a Hilbert space. We denote hypothesis in our hypothesis class as tuples , where .
We say our hypothesis class is Linear Bellman Complete with respect to if is realizable and there exists such that for all and ,
for all .
Note that in this case, we will show that a stronger version of Equation 2 holds i.e with equality instead of inequality, which will also prove Equation 1 holds since for observed transition info ,
Observe that for all . ∎
3.4 Low Occupancy Complexity (new model).
We introduce another new model: Low Occupancy Complexity.
We say that a MDP and hypothesis class has low occupancy complexity with respect to a (possibly unknown) feature mapping (where is a Hilbert space) if is realizable and there exists a (possibly unknown) for such that for all and we have that:
To see why this is a Bilinear Class, as in previous proofs, we will show that an “equality” version of Equation 2 holds, which will also prove Equation 1 holds since
Observe that for any (here observed transition info ):
Note that . This completes the proof. ∎
Note that as such the hypothesis class could be arbitrary and unlike other models where we assume linearity, here it could be a neural state-action value class. Our model can also capture the setting where the state-only occupancy has low complexity, i.e., , for some . In this case, we will use .
The Algorithm and Theory
There are two ways to collect batch samples. For the case where , then for data collection in Line 4, we can generate length-H trajectories by executing starting from . For the general case (e.g. consider setting to be a uniform distribution over ), we gather the data for each independently. For , we first roll-in with to generate ; then execute ; and then continue to generate and . Repeating this process for all , we need trajectories to form the batch datasets .
For a set , we will also use to represent the uniform distribution over this set.
It is helpful to separate the dependence of generalization error on failure probability and number of samples in order to state Theorem 5.2 concisely. is related to uniform convergence and measures the generalization error of hypothesis class and for the hypothesis classes discussed in this paper, as . One example is when , and is a discrete function class, then we have . In Appendix D, we also discuss uniform convergence via a novel covering argument for infinite dimensional RKHS.
Set the parameters as: number of iterations and confidence radius . With probability at least , Algorithm 1 uses at most trajectories and returns a hypothesis such that:
number of iterations T=c_{2}dH\ln\Big{(}B_{X}B_{W}m\Big{)} and confidence radius , with probability at least , Algorithm 1 returns a hypothesis such that using at most
The proof for this corollary follows from bounds on and using Hoeffding’s inequality (Lemma F.1). We present the complete proof in Appendix B.
Our next results will be non-parametric in nature and therefore it is helpful to introduce the maximum information gain (Srinivas et al., 2009), which captures an important notion of the effective dimension of a set. Let , where is a Hilbert space. For and integer , the maximum information gain is defined as:
If is of the form , we use the notation
Define critical information gain, denoted by , as the smallest integer s.t. , i.e.
(where is an integer). Note that such a exists provided that the information gain has a sufficiently mild growth condition in both and . The critical information gain can viewed as an analogous quantity to the critical radius, a quantity which arises in non-parametric statistics (Wainwright, 2019).
We now present our main theorem. Recall the definitions and .
Set the parameters as: number of iterations and confidence radius . With probability at least , Algorithm 1 uses at most trajectories and returns a hypothesis such that:
Next, we provide an elementary and detailed proof for our main theorem using an elliptical potential argument.
2 Proof of Theorem 5.1 and Theorem 5.2
In this subsection, we prove our main theorems – Theorem 5.1 and Theorem 5.2.
For all and and , with probability at least , we have:
This follows from the uniform convergence (5.1) and then union bounding over all and . ∎
We now complete the proof of Theorem 5.1 and Theorem 5.2 using Lemma 5.1, Lemma 5.2 and setting the parameters using the definition of critical information gain.
Fix . From definition of critical information gain (Equation 6), it follows that for ,
Observing that for our choice of , and , we get
where the second last equality uses the definition of .
Moreover, each iteration of the algorithm, takes only trajectories, this gives the total trajectories as . This proves Theorem 5.2. Theorem 5.1 follows from the upper bound on for finite dimensional using Lemma F.3. ∎
In the rest of the section, we will prove our main lemma – Lemma 5.2. The first step shows that under 5.1, our is set properly so that is always a feasible solution of the constrained optimization program in Algorithm 1.
Assume the event in Lemma 5.1 holds. Then for all , we have that is always a feasible solution.
Note that (Equation 2). Thus using Lemma 5.1, we have:
Noting that and in our parameter setup completes the proof. ∎
The feasibility result immediately leads to optimism.
Assume the event in Lemma 5.1 holds. Then for all , we have .
Lemma 5.3 implies is a feasible solution for the optimization program for all . This proves the claim. ∎
The following lemma relates the sub-optimality to a sum of bilinear forms. Using the performance difference lemma, we first show that sub-optimality is upper bounded by the Bellman errors of , which are further upper bounded by sum of bilinear forms via our assumption (Equation 1).
Assume the event in Lemma 5.1 holds. Then, the following holds for all :
where the last step follows Equation 1 in the Bilinear Class definition. ∎
The following is a variant of the Elliptical Potential Lemma, central in the analysis of linear bandits (Dani et al., 2008; Srinivas et al., 2009; Abbasi-Yadkori et al., 2011).
By definition of and matrix determinant lemma, we have:
Now, we will finish the proof of Lemma 5.2 by showing that the sum of bilinear forms in Lemma 5.5 is small for at least for one . More precisely, using Equation 2 together with elliptical potential argument (Lemma 5.6), we can show that after many iterations, we must have found a policy such that is small for all .
Our goal (as per Lemma 5.5 and Equation 1) is to find such that
for appropriately chosen . We will show existence of such and (Equation 7) using the potential argument (Lemma 5.6) and conditions on follow from our optimization program. We now show this in more detail.
where we have used definition of maximum information gain (Equation 4) and
where the last equality follows from Equation 5. Since, each of these terms is , we get that there exists such that
Again, since each of these terms is , we get that for all
and simplifying, we get that for all ,
Also, by construction of our program, for all iterations and in particular for , it holds that for all
where the first inequality follows from and the last step follows from the frame above and . Using the definition of Bilinear Class (Equation 2), for all
where the first inequality follows from the frame above and definition of . Using Equation 7 and the frame above, this immediately shows that for all
Using Lemma 5.5, this gives the desired result. ∎
3 Corollaries for Particular Models
In this section, we apply our main theorem to special models: linear , RKHS bellman complete, RKHS linear mixture model, and low occupancy complexity model. While linear bellman complete and linear mixture model have been studied, our results extends to infinite dimensional RKHS setting.
In this subsection, we provide the sample complexity result for the linear model (Definition 4.5). To state our results for linear , we define the following sets:
and define the concatenation setFor infinite dimensional and , we consider the natural inner product space where .
trajectories for some absolute constant .
To prove this, we will prove a more general sample complexity result for the infinite dimensional RKHS case.
Suppose MDP is a linear model. Assume and . Fix , batch sample size , and define:
where \nu:=\ln\left(1+3B_{X}B_{W}\sqrt{m\widetilde{\gamma}\Big{(}\frac{1}{8B_{W}^{2}m};\Phi\circ\Psi\Big{)}}\right).
Set the parameters as: R=(12H/\sqrt{m})\sqrt{\widetilde{d}_{m}(\mathcal{X})\cdot\widetilde{d}_{m}(\Phi\circ\Psi)}\cdot\sqrt{\ln\big{(}(\widetilde{d}_{m}(\mathcal{X})H)/\delta\big{)}} and . With probability greater than , Algorithm 1 uses at most trajectories and returns a hypothesis :
where .
First, using Corollary D.3, we get that for any distribution over and for any , with probability of at least over choice of an i.i.d. sample of size , for all (note that only depends on for distribution over observed transitions at timestep .)
where we have used that and (as defined in Equation 6). Define
Substituting this in Theorem 5.2 gives the result
Similarly, as , using Lemma F.3 and similar analysis as above (and ), we get
To get -optimal policy (from Equation 11), we have to set
Further upper bounding the right hand side of the above inequality by substituting in upper bounds for and from frames above, we can set to be as large as:
Using Lemma F.2 for , , and , we get that
Substituting this in the expression above for and setting this upper bound to , we get
Since, we use on policy estimation, i.e., for all , the trajectory complexity is which completes the proof. ∎
3.2 RKHS Bellman Complete.
In this subsection, we provide the sample complexity result for the Linear Bellman Complete model (Definition 4.6). To state our results, we define
trajectories for some absolute constant .
In comparison, Jin et al. (2020) has sample complexity and Zanette et al. (2020) has . To prove this, we will prove a more general sample complexity result for the infinite dimensional RKHS case. Note that RKHS Linear MDP is a special instance of RKHS Bellman Complete. Prior works that studied RKHS Linear MDP either achieves worse rate (Agarwal et al., 2020a) or further assumes finite covering dimension of the space of all possible upper confidence bound Q functions which are algorithm dependent quantities (Yang et al., 2020).
Suppose is Bellman Complete with respect to MDP for some Hilbert space . Assume and . Fix , batch sample size , and define:
where \nu=\ln\left(1+3B_{X}B_{W}\sqrt{m\widetilde{\gamma}\Big{(}\frac{1}{8B_{W}^{2}m};\Phi\Big{)}}\right).
where v=\sqrt{\ln\big{(}(\widetilde{d}_{m}(\mathcal{X})H)/\delta\big{)}}.
First, using Corollary D.2, we get that for any distribution over and for any , with probability of at least over choice of an i.i.d. sample of size , for all (note that only depends on for distribution over observed transitions at timestep .)
where we have used that and (as defined in Equation 6). Define
Substituting this in Theorem 5.2 gives the result
Since the proof follows similar to proof of Corollary 5.2, we will only provide a proof sketch here. First, from Lemma F.3, we have that
Similarly, as , using Lemma F.3 (and since ), we get
To get -optimal policy, we have to set
The rest of the proof follows similarly to proof of Corollary 5.2. ∎
3.3 RKHS linear mixture model
In this subsection, we provide the sample complexity result for the Linear Mixture model (Definition 4.4). To present our sample complexity results, we define:
trajectories for some absolute constant .
In comparison, Modi et al. (2020a) has sample complexity . To prove this, we will prove a more general sample complexity result for the infinite dimensional RKHS case. We omit proof of Corollary 5.6 since it follows same as proof of Corollary 5.2.
Suppose MDP is a linear Mixture Model. Assume and . Fix , batch sample size , and define:
where \nu_{h}=\ln\left(1+3B_{X}B_{W}\sqrt{m\widetilde{\gamma}\Big{(}\frac{1}{8B_{W}^{2}m};\Phi_{h}\Big{)}}\right).
Set parameters as: R=(12H/\sqrt{m})\sqrt{\widetilde{d}_{m}(\mathcal{X})\cdot\widetilde{d}_{m}(\Phi)}\cdot\sqrt{\ln\big{(}(\widetilde{d}_{m}(\mathcal{X})H)/\delta\big{)}} and . With probability greater than , Algorithm 1 uses at most trajectories and returns a hypothesis
where v=\sqrt{\ln\big{(}(\widetilde{d}_{m}(\mathcal{X})H)/\delta\big{)}}.
First, using Corollary D.3 and Lemma F.1, we get that for any distribution over and for any , with probability of at least over choice of an i.i.d. sample of size , for all (note that only depends on for distribution over observed transitions at timestep .)
where we have used that and (as defined in Equation 6). Define
Substituting this in Theorem 5.2 gives the result
3.4 Low Occupancy Complexity
Recall the low occupancy complexity model in Definition 4.7.
Suppose has low occupancy complexity. Assume . Fix , batch sample size , and define:
Set and R=(2\sqrt{2}H/\sqrt{m})\cdot\sqrt{\widetilde{d}_{m}(\mathcal{X})}\cdot\sqrt{1+\ln\big{(}|\mathcal{H}|\big{)}}\cdot\sqrt{\ln\big{(}\widetilde{d}_{m}(\mathcal{X})H\big{)}+\ln\big{(}1/\delta\big{)}}. With probability greater than , Algorithm 1 uses at most trajectories and returns a hypothesis such that:
where v=\sqrt{\ln\big{(}\widetilde{d}_{m}(\mathcal{X})H\big{)}+\ln\big{(}1/\delta\big{)}}.
First, using Lemma F.1, we get that for any distribution over and for any , with probability of at least over choice of an i.i.d. sample of size , for all
Substituting this in Theorem 5.2 gives the result
3.5 Finite Bellman Rank
In this section, we will prove sample complexity bounds for MDPs with finite Bellman Rank introduced in Jiang et al. (2016) (also defined as -Bellman rank in Section 4.1).
For a given MDP , suppose a hypothesis class has Bellman rank . Assume and for some . Fix and . There exists an appropriate setting of batch sample size , number of iteration and confidence radius such that with probability at least , Algorithm 1 returns a hypothesis such that using at most
trajectories for some absolute constant .
Note that in comparison, Jiang et al. (2016) has sample complexity . We now present the proof.
First, as observed in Jiang et al. (2016)[Lemma 14], we get that for any distribution over and for any , with probability of at least over choice of an i.i.d. sample of size , for all
where the second inequality holds as long as . This satisfies our 5.1 with
Substituting this in Theorem 5.2 gives the result
where the second last step follows from Lemma F.3. Substituting and conf in Theorem 5.2 also gives
To get -optimal policy, we have to set
Further simplifying the RHS, we can write it as
Using Lemma F.2 for , , and , we get that
Substituting this in the expression above for and setting this upper bound to , we get
Since, we use on policy estimation, i.e., for all , the trajectory complexity is which completes the proof. ∎
Extended Bilinear Classes
While Bilinear Classes captures most existing models, in this section, we discuss several straightforward extensions of it to incorporate additional models such as Kernelized Nonlinear Regulator (KNR), generalized linear Bellman complete model, and Witness Rank.
Typically, will be either the uniform distribution on or itself; in the latter case, we refer to the estimation strategy as being on-policy.
We also define and .
We make the following assumptions on the two nonlinear transformations. We assume the slope of is lower bounded, and is non-decreasing and concave. Similar assumption has been used in generalized linear bandit model (e.g, Russo and Van Roy (2014)).
For , we assume and is continuously differentiable, and
For , we assume , and is concave and non-decreasing.
We again rely on a reduction to supervised learning style generalization error by extending 5.1 to the following new assumption such that it now includes the additional function class .
One simple example of the is when and are both discrete, will scale in the order of via standard uniform convergence analysis.
With the above assumptions, we can show that our algorithm achieves the following regret.
For Generalized Bilinear Class under 6.1, setting parameters properly, we have that with probability at least :
The proof of the above theorem largely follows the proof of Theorem 5.2, and is deferred to Appendix E.
In this section, we show how the above definition captures KNR (Kakade et al., 2020) which we define next. We note that neither Bellman rank nor Witness rank could capture KNR directly. Specifically, since could be nonlinear transformation and reward could be arbitrary (except being bounded in $$), it is not possible to leverage model-free approaches to solve KNR as the value functions and Q functions of a KNR could be too complicated to be captured by function classes with bounded complexity.
Given features with being some Hilbert space, we say a MDP is a Kernelized Nonlinear Regulator (KNR) if it admits the following transition function:
We follow on-policy strategy and set discriminator classes to be empty, i.e., we set , and for all . Thus, we have for observed transition info :
2 Generalized Linear Bellman Complete
We first introduce the generalized linear Bellman complete model, and then we show how our framework captures it.
and .
Let us define discriminators . Note that the Bellman complete assumption indicates the following. For any , we have and .
Under this assumption (also used in Wang et al. (2019)), we can show that Definition 6.1 captures the generalized linear Bellman complete model.
Setting , adding expectation with respect to under the roll-in policy , we get:
where the third equality uses the generalized linear Bellman complete assumption, and the first inequality uses the fact that . Now we continue with the property of the inverse link function as follows.
where the first inequality above uses mean value theorem and (6.3). Thus, we can conclude that:
The above is captured by Equation 13 with being a linear function.
Now we consider upper bounding the Bellman error. Denote . We have
Thus, we have shown that generalized linear MDP is captured by Definition 6.1 with and . Note that and satisfies 6.1. ∎
3 Witness Rank
Similar to Bellman rank, the algorithm and analysis from Sun et al. (2019) rely on being finite. Below we show how definition 6.1 naturally captures witness rank.
Recall that we denote as the ground truth which in this case means the ground truth transition . This implies that for any . This allows us to write the above formulation as:
Therefore, it is a Bilinear Class with Discrepancy Family with and .
Here we also give an example for . For and with bounded complexity (e.g., discrete and discrete ), we still achieve the generalization error, i.e., for all , for all , with probability at least :
where , and the inequality assumes that (see Lemma 12 from Sun et al. (2019) for derivation).
For completeness, we consider factored MDP as a special example here. We refer readers to Sun et al. (2019) for a detailed treatment of how witness rank capturing factored MDP.
We consider state space where is a discrete set and we denote as the i-th entry of the state . For each dimension , we denote as the set of state dimensions that directly influences state dimension (we call them the parent set of the i-th dimension). In factored MDP, the transition is governed by the following factorized transition:
where is the condition distribution that governs the transition from to . Here, we do not assume any structure on reward function.
Note that the complexity of the problem is captured by the number of parameters in the transition operator, which in this case is equal to . Note that when the parent set is not too big (e.g., a constant that is independent of ), this complexity could be exponentially smaller than for a MDP that does not have factorized structure.
Thus factored MDP is captured by Definition 6.1 where , and . Sun et al. (2019) shows that value function based approaches including Olive Jiang et al. (2017) in worst case requires many samples to solve factored MDPs, which in turn indicates that the prior structural complexity such as Bellman rank and Bellman Eluder (Jin et al., 2021) must be exponential in H.
Conclusion
We presented a new framework, Bilinear Classes, together with a new sample efficient algorithm, BiLin-UCB. A key emphasis of the new class and algorithm is that many learnable RL models can be analyzed with the same algorithm and proof.
Our framework is more general than existing ones, and incorporates a large number of RL models with function approximation. Along with the general framework, our work also introduces several important new models including linear , RKHS Bellman complete, RKHS linear mixture models and low occupancy complexity. Our rates are non-parametric and depend on a new information theoretic quantity—critical information gain, which is an analog to the critical radius from non-parametric statistics. With this new quantity, our results extend prior finite-dimension results to infinite dimensional RKHS setting.
The Bilinear Classes can also be flexibly extended to cover many other examples including Witness Rank and Kernelized Nonlinear Regulator. We believe many other models (potentially even those proposed in the future) can be analyzed via extensions of the Bilinear Classes.
Acknowledgements
We thank Chi Jin and Qinghua Liu for discussions on Section 6 including the generalized linear bellman complete model. We thank Akshay Krishnamurthy for a discussion regarding -Bellman rank.
References
Appendix A Additional Examples of Bilinear Classes
We now include some other examples of Bilinear Classes in addition to ones discussed in Section 4.3.
We consider the feature selection setting introduced by Agarwal et al. [2020b].
We say a MDP is low rank feature selection model if there exists (unknown) functions and (unknown) features , for some Hilbert space such that for all and
Note that unlike linear MDP model where is assumed to be known, here is unknown to the learner. We use a function class to capture , i.e., we assume realizability .
We can define our function class as follows
Note that for , we have that (here observed transition info )
Therefore, to prove that this is a Bilinear Class, we will show that a stronger “equality” version of Equation 2 holds (which will also prove Equation 1 holds). Observe that for any ,
Observe that due to Bellman optimality condition for and . ∎
We now consider the irrelevance aggregation model introduced in Li .
We say a MDP is the irrelevance aggregation model if there exists known function such that for all states
Let . Here, our hypothesis class is a set of linear functions i.e. for all , the set is defined as:
To prove that this is implicitly a Bilinear Class, we will reduce this into linear model (Definition 4.5). Let . Now, we construct one hot representation functions and where
This is linear model (Definition 4.5) and therefore is a Bilinear Class. ∎
A.3 Linear Quadratic Regulator
To maintain notation of fixed starting state, without loss of generality, we also assume and . An important property of LQR is that for linear non stationary policies , the value function induced is quadratic (see for e.g. Jiang et al. [Lemma 7] for a proof).
This allows us to define out hypothesis class as
Note that for , we have that (here observed transition info )
Therefore, to prove that this is a Bilinear Class, we will show that a stronger “equality” version of Equation 2 holds (which will also prove Equation 1 holds). Observe that for any ,
Note that we used which follows from the bellman conditions i.e. for
Taking expectation over proves the claim. ∎
A.4 Linear MDP
We consider the Linear MDP setting from Yang and Wang , Jin et al. .
We say a MDP is a Linear MDP with features , where is a Hilbert space if for all , there exists (unknown) measures over and (unknown) , such that for any , we have
Here, our hypothesis class is set of linear functions with respect to . We denote hypothesis in our hypothesis class as tuples , where . As observed in Jin et al. [Proposition 2.3], this satisfies the conditions of Bellman Complete model (Definition 4.6) and therefore is also a Bilinear Class.
A.5 Block MDP and Reactive POMDP
Both Block MDP [Du et al., 2019a, Misra et al., 2020] and a Reactive POMDP [Krishnamurthy et al., 2016] are partially observable MDPs (POMDPs) which can be described by a finite (unobservable) latent state space , a finite action space , and a possibly infinite but observable context space . The transitions can be described by two conditional probabilities. One is the latent state transition , and the other is the context-emission function .
The key differences among Block MDP and Reactive POMDP are in the assumptions which we define below.
For Block MDPs, the context space can be partitioned into disjoint blocks for , each containing the support of the conditional distributiion .
This assumption implies there exists a perfect decoding function , which maps contexts to their generating states. Therefore, we have that the transition of contexts satisfies
For POMDP, assume reward is known and is a deterministic function over observations and actions and . let us define belief as the posterior distribution of state at time step given history , i.e., given any state , we have . Given and conditioned on being observed at , the belief is updated based on the Bayes rule, deterministically,
with , where is the initial state distribution (in the simplified case where we have a fixed , then is a delta distribution with all probability mass on ).
Note that given , the above update is deterministic, and is a function of history . Denote the deterministic Belief update procedure as . For POMDP, the optimal policy is a mapping from to . Given a belief , and an action , we can define backward as follows. Start with for all ,
where .
For Reactive POMDPs, the optimal Q function is only dependent on latest observation and action, i.e., for all , there exists , such that, for any given history , we have:
Note that in this case, the optimal policy only depends on the latest observation , i.e., . As shown in Jiang et al. , Reactive POMDPs have bellman rank bounded by which implies (see Section 4.1 for more detail) that Reactive POMDPs are a Bilinear Class.
Appendix B Proofs for Section 5
First, using Lemma F.1, we get that for any distribution over and for any , with probability of at least over choice of an i.i.d. sample of size , for all
Therefore, we get -optimal policy by setting
or equivalently by setting at least as large as
Using Lemma F.2, we get a solution for
This gives the total trajectory complexity
Appendix C An Elliptical Cover for Hilbert Spaces
The following theorem is a key technical contribution which allows us to obtain a number of non-parametric convergence rates.
This implies that there must exist a , such that:
Note that . Thus, we have that:
where the equality in the third step uses that for all . The proof is completed choosing and . ∎
Appendix D Concentration Arguments for Special Cases
Consider the RKHS linear MDP, where with being some Hilbert space. Define .
For any distribution , we seek to bound:
where the last step follows using that (which can be verified by considering both case of the sign inside the absolute value). The proof is completed by choose to be closest point to and applying Theorem C.1. ∎
Define for some real number ; and suppose for all that . Let
where (as defined in Equation 6).
First note that for any , we must have:
since we eliminate all such that for some .
Consider the cover from Corollary D.1. From Lemma F.1 and a union bound over all , for all , we have that with probability at least :
Now consider any , via Corollary D.1, we know that there exists a such that:
Thus, together with the fact that Corollary D.1 holds for both and the uniform distribution over , we get:
Let us set and rearrange terms, we get:
Denote where is the smallest integer that satisfies . Thus, we have:
where in the inequality we use .
Consider features with being some Hilbert space. Define .
Define for some real number ; and suppose for all that . Let
Then, for any distribution over and for any , with probability of at least over choice of an i.i.d. sample of size , for all
where (as defined in Equation 6).
The proof follows exactly as proof of Corollary D.2. ∎
Appendix E Generalized Bilinear Classes
Recall Definition 6.1 for Generalized Bilinear Class. We next complete the proof of Theorem 6.1.
First notice that a uniform convergence result similar to Lemma 5.1 still holds:
where .
Also it is easy to verify that the feasibility claim similar to Lemma 5.3 holds as well since . The feasibility result immediately implies the optimism claimed in Lemma 5.4. While the derivation of Lemma 5.5 mostly follows, we use Equation 12 rather than Equation 1, which gives us the following:
where the last step follows from concavity of (6.1) and Jensen’s inequality.
To show the existence of a high quality policy, we also mainly follow the steps in the proof of Lemma 5.2. First we can verify Equation 7 holds due to the elliptical potential argument. This implies that for all ,
Note that by 6.1 and an application of mean-value theorem, we have:
Apply on both sides and use the assumption that is non-decreasing, we have:
Now set , and , we get:
This concludes the first part of the theorem.
When is continuously differentiable, , and , we simply have:
via an application of mean-value theorem. This concludes the proof. ∎
Appendix F Auxiliary Lemmas
Let be independent random variables with mean such that for some almost surely for all . Then, with probability ,
(Log Dominance Rule) Suppose and . Then, is a solution to
Furthermore, the critical information gain
Therefore, using the Determinant-Trace inequality, we get the first result
To get the second result, first note that for and ,
where the third last step follows from and and last step follows from . ∎
Appendix G Sample Complexity Lower Bound for RHKS Bellman Complete and Linear MDP
Recall that in Section 5.3.2, we show that under the assumption that and are both bounded, and the assumption that the maximum information gain is bounded, then our algorithm finds a near-optimal policy using polynomial number of samples for RHKS Bellman Complete and Linear MDP. One may wonder if the assumption on the maximum information gain can be removed as in the case of contextual bandits [Abe et al., 2003, Foster and Rakhlin, 2020]. Here we show that for the case of reinforcement learning, without the maximum information gain assumption, there is an exponential sample complexity lower bound (in the problem horizon ). Therefore, our hardness result justifies the necessity of assuming bounded maximum information gain for the case of RHKS Bellman Complete and Linear MDP.
Our hard instance is based on the binary tree instance (see Du et al. [2020a], Krishnamurthy et al. for previous hardness results that use such a construction). In this construction, there are levels of states, and level contains distinct states. Thus we have . We use to name these states. Here, is the unique state in level , and are the two states in level , , , and are the four states in level , etc. There are two different actions, and , in the MDPs. For a state in level with , playing action transits state to state and playing action transits state to state , where and are both states in level . In the hard instances, for all pairs except for a special state in level and a special action . For the special state and the special action , we have . It is known that for such hard instances, any algorithm requires to find a policy with with probability at least (see Du et al. [2020a]). Now we construct a set of uninformative features and the hypothesis class so that and are both bounded.