Sparse Feature Selection Makes Batch Reinforcement Learning More Sample Efficient
Botao Hao, Yaqi Duan, Tor Lattimore, Csaba Szepesvári, Mengdi Wang
Introduction
We consider batch reinforcement learning (RL), where the problem is to evaluate a target policy or to learn a good policy based on a given dataset (Szepesvári, 2010; Lange et al., 2012; Levine et al., 2020). While in online RL the central question is how to sequentially interact with the environment to balance exploration and exploitation, in batch RL the dataset is given a priori and the focus is typically on learning a near-optimal policy or evaluating a given target policy.
To handle RL systems with large or even infinite state spaces, we focus on the use of linear function approximation (Bellman et al., 1963; Schweitzer and Seidmann, 1985; Bertsekas and Tsitsiklis, 1996), that is, using a weighted linear combination of available features (aka basis functions) to represent high-dimensional transition/value functions. Results from the supervised learning literature show that the sample size needed to get accurate policy evaluations or near-optimal policies must scale at least linearly with , the number of features (e.g., Example 15.14 of Wainwright, 2019).
We leverage the idea of sparse approximation and focus on situations when a smaller number of unknown relevant features is sufficient for solving the RL problem. Sparse regression has proved to be a powerful method for high-dimensional statistical learning with limited data (Tibshirani, 1996; Chen et al., 2001; Bunea et al., 2007; Bickel et al., 2009; Rish and Grabarnik, 2014), and we will borrow techniques from the sparse learning literature to improve the sample efficiency of batch RL, an idea with a considerable history in RL as witnessed by our literature review that follows below.
Second, to reduce the Lasso bias, we propose an improved post model-selection estimator (Algorithm 2) that applies fitted Q-evaluation with a smaller feature set that is selected using group Lasso. Under an additional separability assumption, we derive a sharper and nearly minimax-optimal error bound that is instance-dependent. The error bound is determined by a divergence function measuring the distribution mismatch, restricted over the reduced feature space, between the data distribution and the occupancy distribution of the target policy. This divergence defined over the reduced feature space is significantly smaller than its counterpart over the full -dimensional space. In other words, sparse feature selection reduces the distribution mismatch. We also provide a nearly-matching lower bound, and these two results sharply characterize the statistical limits of sparse off-policy evaluation.
2 Related work
OPE often serves the starting point of batch RL. A direct approach was to fit value function from data using approximate dynamic programming, e.g., the policy evaluation analog of fitted Q-iteration (Ernst et al., 2005; Munos and Szepesvári, 2008; Le et al., 2019) or least square policy iteration (Lagoudakis and Parr, 2003). Another popular class of OPE methods used importance sampling to get unbiased value estimate of a new policy (Precup et al., 2000) and improved by doubly-robust technique to reduce the variance (Jiang and Li, 2016; Thomas and Brunskill, 2016). To alleviate the curse of horizon (Li et al., 2015; Jiang and Li, 2016; Yin and Wang, 2020), marginalized importance sampling was suggested by estimating state marginal importance ratio without reweighting the entire trajectory (Hallak and Mannor, 2017; Liu et al., 2018; Xie et al., 2019). In general, estimating marginalized importance ratio could be sample-expensive and even intractable. Recently, practical duality-inspired methods were developed for estimating this ratio using function approximation (Nachum et al., 2019; Uehara and Jiang, 2019; Zhang et al., 2020a, b; Yang et al., 2020).
On the theoretical side, Uehara and Jiang (2019); Yin and Wang (2020); Kallus and Uehara (2020) established asymptotic optimality and efficiency for OPE in the tabular setting. Duan and Wang (2020) showed that fitted Q-evaluation with linear function approximation is minimax optimal and provided matching upper and lower bounds that depend on a distribution mismatch term. Another closely related work was by Le et al. (2019) who studied batch policy evaluation and optimization with more general function approximation. They showed the complexity of batch RL depends on the complexity of the function class, assuming a “concentration coefficient” condition (Munos and Szepesvári, 2008) that the state-action visitation density is bounded entrywisely across policies. More recently, Uehara and Jiang (2019) provided theoretical investigations into OPE using general function approximators for marginalized importance weights and value functions but did not show the statistical optimality.
Ghavamzadeh et al. (2011); Geist et al. (2012) proposed Lasso-TD with finite-sample statistical analysis for estimating the value function in Markov reward process. In particular, they derived in-sample prediction error bound under -minimum eigenvalue condition on the empirical feature gram matrix. Although this bound also has no polynomial dependency on , in-sample prediction error generally can not be translated to the estimation error of target policy in the OPE problem and their bound can not characterize the distribution mismatch between behavior policy and target policy. On the other hand, no minimax lower bound has been investigated so far.
Sparse regression receives considerable attention in high-dimensional statistics in the past decade. Lasso (Tibshirani, 1996), is arguably the most widely used method to conduct sparse regression. Theoretical analysis of Lasso is well-studied in Zhao and Yu (2006); Bickel et al. (2009); Wainwright (2009). For a thorough review of Lasso as well as high-dimensional statistics, we refer the readers to Hastie et al. (2015); Wainwright (2019); Bühlmann and Van De Geer (2011). However, extending existing analysis from regression to batch RL is much more involved due to the complex optimization structure, non-i.i.d data collection, and covariate shift.
Preliminaries
A finite, infinite-horizon discounted Markov decision process (DMDP) can be described by the tuple . Here, is a finite set of states, is a finite set of actions, is the transition probability function, is the reward function and is the so-called discount factor. In this paper, for the sake of simplicity, we stick to finite DMDPs. However, our results can be extended to more general cases with routine work.
We consider the following learning and optimization problems. The learner knows the state space and action space . The reward function is given in the form of a black box, which the learner can use to evaluate for any pair of . The only unknown is the transition probability function . The learner is given a random dataset generated by using a (possibly nonstationary and unknown) behavior policy in the DMDP starting from some initial distribution which may be different from . We study two fundamental batch RL tasks:
Off-policy policy evaluation: given and black box access to a target policy , and , estimate the value, , of ;
Batch policy optimization: given and black box access to , find an optimal policy.
The function is the unique solution to the Bellman equation .
2 Sparse linear Markov decision process
When little a priori information is available on how to choose the features, agnostic choices often lead to dimensions which can be as large as the number of samples , if not larger. Without further assumptions, no procedure can achieve nontrivial performance guaranteed even when just considering simple prediction problems (e.g., predicting immediate rewards). However, effective learning with many more features than the sample-size is possible when only features are relevant. This motivates our assumption of sparse linear DMDPs.
We denote by the set of all -sparse DMDP instances. Our second assumption concerns the dataset:
The dataset consists of samples from independent episodes . Each episode has consecutive transitions generated by some unknown behavior policy giving rise to a sample path .
Sparsity-Aware Off-Policy Policy Evaluation
In this section we consider the off-policy policy evaluation (OPE) problem, i.e., to estimate the value of a target policy from logged experiences generated using unknown behavior policies. We propose two sparsity-aware algorithms to approximate state-action functions using sparse parameters.
The last step Monte Carlo averaging is only for numerical integration, where the samples are newly drawn inside the algorithm (independent from batch data), so there is no bias here. We set to simplify the theory but it could be much larger than for a more accurate approximation.
2 Post model-selection fitted Q-evaluation
Sparse regularization is known to induce a small bias in regression. However, this bias could get compounded through the iterative procedure of Algorithm 1. To avoid such bias and improve the accuracy, we aim to identify the set of relevant features before evaluating the policy based on the following proposition.
Under Assumption 2.2, there exists a matrix such that
Thus we propose to estimate the set of relevant features using group lasso (Yuan and Lin, 2006). Once the relevant feature set is identified, any regular policy evaluation method can be used over the learned feature set . In Algorithm 2, for the ease of comparability with the previous method, we consider vanilla fitted Q-evaluation.
One may wonder whether it is necessary to refit the iterative regression and why not simply use the estimated to get a plug-in estimator. This is because refitting typically performs strictly better than direct regularized learning and has less bias, as long as the feature selection succeeds (Belloni et al., 2013).
Performance Bounds For Sparse Off-Policy Evaluation
We study the finite-sample estimation error of Algorithms 1, 2. All the technical proofs are deferred to the Appendix. Let be the expected uncentered covariance matrix of the batch data, given by
where is the length of one episode. We need a notion of restricted eigenvalue that is common in high-dimensional statistics (Bickel et al., 2009; Bühlmann and Van De Geer, 2011).
The restricted eigenvalue characterizes the quality of the distribution that generates the batch data set . We need meaning that the data is well-conditioned or the behavior policy provides good coverage over relevant features. This is a key condition to guarantee the success of sparse feature selection (Bickel et al., 2009). To ensure the success of policy evaluation/optimization with linear function approximation, similar assumptions regarding in RL literature also appear in Abbasi-Yadkori et al. (2019a) (Assumption A.4), Duan and Wang (2020) (Theorem 2), Lazic et al. (2020) (Assumption A.3), Abbasi-Yadkori et al. (2019b) (Assumption A.3) and Agarwal et al. (2020b) (Assumption 6.2).
We first provide a statistical error bound for the Lasso fitted Q-evaluation (Algorithm 1).
Suppose Assumptions 2.2, 2.3 hold and . Let Algorithm 1 take samples satisfying Set the number of iterations and . Then, with probability at least ,
Theorem 4.3 shows that the OPE error for sparse linear DMDPs depends linearly on . For comparison, when the linear DMDPs model is not sparse, Duan and Wang (2020) proved the error bound (using our notations) of the form
From the Definition 4.1, . Comparing the two results (setting ), we expect the new error bound to be significantly tighter , i.e., , when there is a high level of sparsity ().
2 Finite-sample error bounds of Algorithm 2
Next, we give a result for the post-selection model estimator for OPE (Algorithm 2). We will show that this algorithm provides a more accurate estimate under the additional condition that every relevant feature plays a nontrivial role in the transition dynamics.
For some given , the minimum signal strength satisfies
where is the th row of defined in Eq. (3.1).
Then we provide a critical lemma showing that the group lasso step in Algorithm 2 is guaranteed to identify a sufficiently sparse feature set including all the relevant features with high probability.
Suppose Assumptions 2.2, 2.3, 4.4 hold and . Set the regularization parameter for some and let the sample size satisfy . Then with probability at least , the size of learned relevant feature set satisfies and where is the true relevant feature set of .
Now we analyze the policy evaluation error of Algorithm 2. According to Cramer-Rao lower bound for tabular OPE (Jiang and Li, 2016) and the minimax lower bound for OPE with linear function approximation (Duan and Wang, 2020), we expect the optimal OPE error to depend on the distribution mismatch between the target policy and the behavior policy that generated the data. To define the notion of distribution mismatch, we first need the notion of occupancy measures:
Inspired by Theorem 5 of Duan and Wang (2020), we will measure the distribution mismatch using restricted chi-square divergences between and .
Let be a set of real-valued functions over and let and be probability distributions over . We define the -restricted chi-square divergence (or -divergence) between and as
By using the feature screening Lemma 4.5, and a similar analysis as by Duan and Wang (2020), we obtain the following instance-dependent error bound for sparse off-policy evaluation.
Suppose Assumptions 2.2, 2.3, 4.4 hold and . Let and assume that Algorithm 2 is fed with samples satisfying Set . Letting the number of iterations , the following holds with probability at least ,
where is the data generating distribution, is the reduced feature space.
The OPE error bound of Theorem 4.8 depends on the statistics that quantifies the distribution mismatch between data and the target policy. This result implies the uncertainty for evaluating a new policy from batch data crucially and jointly depends on the two distributions as well as the function class used for fitting. When is a small subset of , we have . Therefore our instance-dependent error bound is expected to be significantly smaller than its counterpart that does not exploit sparsity.
3 Minimax lower bound for OPE
To complete the picture, we provide a minimax lower bound of off-policy evaluation for the class of sparse linear DMDPs (Assumption 2.2). The proof is an adaptation of the respective lower bound proof for linear MDPs (Theorem 3 in Duan and Wang (2020)). It implies the bound in Theorem 4.8 is nearly minimax-optimal.
Suppose Assumption 2.3 holds. If , then
It is worth to mention that in Theorem 4.10, the distribution mismatch term may also contain a term in the worse case. Thus the lower bound of sparse off-policy policy evaluation also has a dependency in the worse case that matches the result for the lower bound of sparse batch policy optimization in Theorem 5.2.
Sparsity-Aware Batch Policy Optimization
We extend our analysis to batch policy learning problem for sparse linear DMDPs. Consider the Lasso fitted Q-iteration (see Algorithm 3) that has been studied in Calandriello et al. (2014) as a special case of an algorithm for sparse multi-task RL. It resembles Algorithm 1 except for that it calculates the regression target with an additional “max” operation. The next theorem proves the approximate optimality of the learned policy using Lasso fitted Q-iteration.
Suppose Assumptions 2.2, 2.3 hold and . Let Let Algorithm 3 take and . Then, with probability at least ,
Theorem 5.1 suggests that the sample size needed to get a good policy depends mainly on the number of relevant features , instead of the large ambient dimension , provided that the data is well-conditioned. This result is not surprising: Calandriello et al. (2014) gave a similar upper bound for sparse FQI for the setting of generative model. Le et al. (2019) provided a generalization theory for policy evaluation/learning with a general function class and their error bound depends on the VC-dimension of the class, but it requires a stronger coefficient concentration condition.
In the end, we study the fundamental limits of sparse batch policy learning. We establish an information-theoretic minimax lower bound that nearly match the aforementioned upper bound.
Theorems 5.1, 5.2 show that the statistical error of batch policy learning is fundamentally determined by the ratio . Note that there remains a gap between Theorems 5.1 and 5.2, due to the nature of Lasso regression.
Earlier results such as those of Munos and Szepesvári (2008); Antos et al. (2008); Le et al. (2019) require stronger forms of concentration condition that the state-action occupancy measure (or a ratio involving this measure) is entrywisely bounded across all policies. Such entrywise bound can be very large if the state-action space is large. In contrast, our results only require that the data’s covariance is well-conditioned on restricted supports, which is a much weaker assumption. Further, one can use the empirical minimal eigenvalue to get a rough error estimate. Theorem 5.2 further validates that the minimal eigenvalue indeed determines the statistical limit of batch policy optimization. The result is the first of its kind to our best knowledge.
Experiment
In this section, we conducted some preliminary experiments with a Mountain Car (Moore, 1990) example to demonstrate the advantage of sparse learning in OPE problem. We use 800 radial basis functions for linear value function approximation and compare our Lasso-FQE with the standard FQE. We pick the random policy as the behavior one and a near-optimal policy as the target, and we measure the estimation error by . We constructed multiple behavior policies with varying levels of -greedy noise, and plot their OPE error against their (restricted) -divergence from the target policy. The results are averaged by 20 runs and summarized in Figure G in the appendix. It shows that our Lasso-FQE clearly has smaller estimation error compared with FQE, proving the sparse feature selection is effective in a practical RL example, and demonstrates how the distribution mismatch (-divergence term) affects OPE error (with sample size fixed). The results confirm our theorems that the (restricted) chi-square divergence sharply determines the (sparse) OPE error.
Conclusion
In this work we focus on high-dimensional batch RL using sparse linear function approximation. While previous work in RL recognized the possibility of bringing tools from sparse learning to RL, they lacked a clean theoretical framework and formal results. By building on the strength of the linear DMDP framework, our result show that learning and planning in linear DMDPs can be done in the “feature space” even in the presence of sparsity and when only batch data is available.
References
Appendix A Proofs concerning linear MDPs
Now, if is as above, .
Finally, assuming that satisfies the last identity, defining , we have . As is well known, the unique fixed point of this equation is . Hence, . ∎
Under the sparsity assumption, Assumption 2.2, there exists such that when . This shows that all but rows of are identically zero, finishing the proof. ∎
Appendix B Proofs of off-policy policy evaluation
Recall that we split the whole dataset into folds and each fold consists of episodes or sample transitions. At th phase, only the fresh fold of dataset is used.
Step 1: Approximate value iteration. We first show that the execution of Algorithm 1 is equivalent to approximate value iteration. Denote a Lasso estimator with respect to a function at th phase:
Note that only depends data collected at the th phase. Define the parameterized value function as
Note this is a randomized operator that only depends data in the th fold. It is easy to see that if is the sequence of weights computed in Algorithm 1 then and also
We first verify for each phase , has a linear representation. From Assumption 2.2, it holds that
and if . Then we have
It shows that has a linear representation if the reward could also be linearly represented. For notation simplicity, we drop the supscript of and for the following derivations when there is no ambiguity.
Step 3: Sparse linear regression. We interpret as the ground truth of the lasso estimator in Algorithm 1 at phase , in terms of the following sparse linear regression:
where . Define a filtration with generated by . By the definition of and in Eq. (B.5), we have
Consider the sparse linear regression described in Eq. (B.7). Suppose the restricted minimum eigenvalue of satisfy and the number of episodes used in phase satisfies
for some absolute constant With the choice of , the following holds with probability at least ,
Note that the samples we use between phases are mutually independent. Thus, Eq. (B.8) uniformly holds for all with probability at least .
Step 4: Error decomposition. Recall that and we denote According to Eq. (B.3), we decompose the policy evaluation error by Monte Carlo error, estimation error and approximation error as follows:
Since is i.i.d sampled from and , standard Hoeffding’s inequality shows that
To bound approximation error, we expand it by Eq. (B.4):
Combining Eqs. (B.9), (B.11) and (B.12) together, we have
Iteratively implementing the above decomposition, we have
Since we assume , then as well. Using the fact that , we have
for a sufficient large constant . Applying Lemma B.1 over , it implies
holds with probability at least . By elementary change of base formula and Taylor expansion, we have
By properly choosing , we have with probability at least ,
where we use . Combining with Monte Carlo approximation error Eq. (B.10) This ends the proof.
B.2 Proof of Lemma 4.5: feature selection
We study the feature screening and sparsity properties of the model selected by the regularized estimator . Recall that from the identity Eq. (3.1), we solve the following multivariate regression problem:
Note that is a block diagonal matrix.
Therefore, we can rewrite Eq. (B.13) into an ordinary linear regression form with group sparse structure on the regression coefficients :
Note that where is defined in Assumption 2.2 since is row-sparse. The corresponding group lasso estimator defined in Eq. (3.2) can be rewritten into:
and . The regularization parameter is chosen as
Now we study the feature screening property of in four steps.
Step 1. By the optimality of , we have
where the last inequality is from Hlder’s inequality.
Step 2. Next, we will bound the noise term: . From the definitions of and , we write it explicitly as
It is easy to verify that is also a martingale difference sequence for any and since we assume for any state-action pair. According to Azuma-Hoeffding inequality (Lemma F.2), for all ,
Using the union bound twice, the following holds,
Letting , we have with probability at least ,
Step 3. According to Karush–Kuhn–Tucker (KKT) condition, the solution of the optimization problem Eq. (B.14) satisfies
Under event and using KKT condition, we have if , then
We define a notation of restricted maximum eigenvalue with respect to and :
Denote . Then we have
Combining Eqs. (B.18) and (B.20) together, we have
holds with probability at least .
Step 4. It remains to control the in-sample prediction error . Under event , using Eq. (B.16) implies
Adding \sum_{j=1}^{d}\big{\|}\widehat{\bm{\beta}}^{j}-\bm{\beta}^{*j}\big{\|}_{2}\lambda_{2}/2 to both sides and using the fact that for , we have
where the last inequality is from Cauchy-Schwarz inequality. Recall that the expected uncentered covariance matrix is defined as
and we define the empirical uncentered covariance matrix as
with . Denote the expected and empirical uncentered covariance matrices for the multivariate linear regression as
We introduce a generalization of restricted eigenvalue condition (Definition 4.1) for multivariate linear regression.
Next lemma provides a lower bound for . The proof is deferred to Appendix E.1.
On the other hand, from Eq. (B.22), we know that
This implies that . Applying Lemma B.3, the following holds with probability at least ,
Plugging the above bound into Eq. (B.22),
Combining with Eq. (B.21) and the choice of in Eq. (B.15), we reach
Consider a sequence of vectors satisfying . Then for , we have
Therefore, we conclude such that
with probability at least , as long as .
Using the definition of , it holds that
Summing the above inequality from 1 to ,
This implies . As shown in the Lemma 1 in Belloni et al. , we have for any as long as .
Step 5. Recall that and denote
Suppose there is a such that . From Eq. (B.25), we know that
According to Lemma 3 in Belloni et al. for the sublinearity of sparse maximum eigenvalues, we have
where the last inequality we use . Putting the above two results together, we have
This leads a contradiction with the definition of . Therefore, for all . This implies
The term essentially characterizes the condition number of on a restricted support and is upper bounded by the condition number defined in the full support. Now we finish the proof of the first part of Lemma 4.5 and start to prove the second part of Lemma 4.5 under separability condition.
According to Eq. (B.23), under event we have
Combining the above two inequality together and plugging in the choice of , we can bound
with probability at least . Under Assumption 4.4, the following holds that with probability at least ,
If there is a but , we have
which leads a contradiction. Now we conclude that . This ends the proof.
B.3 Proof of Theorem 4.8: instance-dependent upper bound
We restate the instance-dependent error bound error bound of vanilla fitted Q-evaluation algorithm on the full support.
Assume the DMDPs satisfy Assumption 2.2 and batch dataset satisfy Assumption 2.2. Suppose for any pair of . Let and Algorithm 2 without feature selection stage takes samples satisfying
Set regularization parameter . Letting the number of iteration , the following holds with probability at least ,
If the true relevant feature set is known in an oracle case, we could directly run the algorithm on such that all the dependency on can be reduced to and the instance-dependent term turns to be defined in the that is much sharper than the original one. Fortunately, Lemma 4.5 implies and . Suppose
Rewriting Theorem B.4 with respect to , we have
where and . The corresponding condition can be satisfied due to and . From Definitions 4.6, 4.7 and Lemma B.2 in Duan and Wang , we have
Appendix C Proof of Theorem 5.1: lasso fitted Q-iteration
The main structure of this proof is similar to the proof of Theorem 4.3 in Appendix B.1 but we need to utilize the contraction property of Bellman optimality operator. Recall that we split the whole dataset into folds and each fold consists of episodes or sample transitions. The overall sample size is .
Step 1. We verify that the execution of Algorithm 3 is equivalent to the approximate value iteration. Recall that a generic Lasso estimator with respect to a function at th phase is defined in Eq. (B.1) as
Note this is a randomized operator that only depends data collected at th phase. Algorithm 3 is equivalent to the following approximate value iteration:
Step 2. We verify that the true Bellman operator on can also be written as a linear form. From Condition 2.2, there exists some functions such that for every , the transition function can be represented as
and if . By the definition of true Bellman optimality operator in Eq. (C.3) and Eq. (C.4),
Step 3. We start to bound for each phase . By the approximate value iteration form Eq. (C.2) and the definition of optimal value function,
The first term mainly captures the error between approximate Bellman optimality operator and true Bellman optimality operator while the second term can be bounded by the contraction of true Bellman operator. From linear forms Eqs. (C.2) and (C.6), it holds for any ,
Applying Lemma B.1, with the choice of , the following error bound holds with probability at least ,
where satisfies
Note that the samples we use between phases are mutually independent. Thus Eq. (C.9) uniformly holds for all with probability at least . Plugging it into Eq. (C.8), we have for any phase ,
holds with probability at least .
To bound the second term in Eq. (C.7), we use the contraction property of true Bellman operator such that
Plugging Eqs. (C.10) and (C.11) into Eq. (C.7), it holds that
with probability at least . Recursively using Eq. (C.12), the following holds with probability ,
where the first inequality is due to that can only make error smaller and the last inequality is from . By properly choosing , it implies
holds with probability at least . From Proposition 2.14 in Bertsekas ,
Putting the above together, we have with probability at least ,
for some sufficiently large constant . This ends the proof.
Appendix D Proof of Theorem 5.2: minimax lower bound of policy optimization
We first restate the full statement of Theorem 5.2 and include an instance-dependent lower bound. Note that the worse-case lower bound Eq. (D.2) can be derived from instance-dependent lower bound Eq. (D.1) (See Appendix D.6.2 for details).
where is the discounted state-action occupancy measure of . In addition, we have
Minimax sample complexity lower bound for solving MDP has been studied in the setting with a generative model that allows querying any for independent samples. Azar et al. constructed a hard instance of tabular MDP and, by reducing policy optimization to a testing a Bernoulli distribution, proved a lower bound which is known to be sharp. Yang and Wang extended the construction to linear MDP and show that the sample complexity lower bound is under a generative model. There also exists matching upper bound in the same setting.
Our Theorem 5.2 applies to the setting of batch episodic data where are highly dependent. Due to this major difference, we have to use a more intricate proof based on likelihood test to establish a minimax lower bound. Further, Theorem 5.2 characterizes for the first time that the lower bound depends on the minimal eigenvalue of the data’s population covariance.
D.1 Reducing to likelihood test
We prove the minimax lower bound by conducting likelihood test. Similar to Lemma C.1 in Duan and Wang , we have Lemma D.1 below.
Let and be two MDP instances with transition kernels and . Suppose Assumption 2.3 holds. Define likelihood functions
then for any policy learning algorithm ,
D.2 Constructing MDP instances
We assume without loss of generality that the number of active features is even. We consider a simplest case where the MDP only consists of two states, i.e. . At each state, the agent chooses from actions \mathcal{A}=\big{\{}a_{1},a_{2},\ldots,a_{\frac{s}{2}}\big{\}}\cup\big{\{}\bar{a}_{i,k}\,\big{|}\,i=1,2,\ldots,\frac{s}{2},\,k=\pm 1,\pm 2,\ldots,\pm(d-s)\big{\}}. Here, we only use in collecting the dataset .
is orthogonal and satisfies (D.5). ∎
where will be determined later. By construction, we have for any . Note that abstracts all the dynamic informatrion for state-action pairs, and does not affect the transition model or reward function. Therefore, it is sufficient for us to use when identifying the optimal policy or calculate value functions.
We propose MDP models , where has transition kernel given by
Here, \delta_{1},\delta_{2}\in\big{[}0,2(1-\gamma)\big{)} are parameters reflecting the small differences among actions.
The reward functions are the same for all models and are chosen as
for , .
D.3 Analyzing the concentration of the likelihood ratio
Parallel to Lemma C.3 in Duan and Wang , we provide concentration results of the likelihood ratio in Lemma D.3. The proof can be found in Appendix E.2.1.
If we take such that
then for any , , it holds that
Lemma D.3 suggests that as long as (D.6) is satisfied, the likelihood test in Lemma D.1 works for any pair of indices , .
D.4 Calculating the gap in values
For model , the optimal policy is given by
If , , then for any policy such that , it holds that
then condition (D.3) in Lemma D.1 holds for any , .
D.5 Choosing parameters
We now integrate Lemmas D.1, D.3 and D.4. Specifically, we choose parameters and that maximize in (D.8) under the constraint (D.6).
We first consider the optimization problem
Plugging (D.9) into (D.8) and assuming that , we have
We maximize the right hand side of (D.10) over , and obtain
We further let \varsigma_{1}\in\big{[}\frac{1-\gamma}{2\gamma},1-\frac{1-\gamma}{2\gamma}\big{)} and suppose the sample size
In this case, and .
In summary, if the sample size satisfies (D.11) and we take
then the conditions in Lemmas D.3 and D.4 are satisfied and (D.4) holds for
Remark that under this construction, we still have the flexibility to take so that is very ill-conditioned. For instance, if we take , then or at least has the order of .
In order that condition (D.11) is as weak as possible, we take , and . In this setting, if then (D.11) holds.
D.6 Relating to mismatch terms
In this part, we relate in (D.12) to mismatch terms and .
According to Lemma B.2 in Duan and Wang , we have
For model , is an absorbing state under the optimal policy . Therefore, and . Under our proposed behavior policy , we have
where is the discounted state-action occupancy measure of .
D.6.2 Restricted minimum eigenvalue
In the following, we specify the choice of and and show that if
Under condition (D.14), it holds that , therefore, . In addition, for the -by- matrix , we have and . It follows that
We next relate to .
for , . It holds that and . For notational simplicity, let . Under our proposed behavior policy , we have
By (D.13), . We also note that , and therefore
It follows that , which further implies . On the other hand, the eigenvector of corresponding to has support set and is -sparse. Hence, . In this way, we have proved for defined in (D.16).
In the special case where and , condition (D.14) holds. Plugging (D.15) into (D.12), we finish our proof of Theorem 5.2.
Appendix E Proofs of auxiliary results
We prove if the population covariance matrix satisfies the restricted eigenvalue condition, the empirical covariance matrix satisfies it as well with high probability. Recall that
for some absolute constant . Applying the union bound over , we have
Since the blocks of are the same, the following holds holds with probability .
Therefore, when the number of episodes , the following holds with probability at least ,
Next lemma shows that if the restricted eigenvalue condition holds for one positive semi-definite block diagonal matrix , then it holds with high probability for another positive semi-definite block diagonal matrix as long as and are close enough in terms of entry-wise max norm.
Let and be two positive semi-definite block diagonal matrices. Suppose that the restricted eigenvalue of satisfies and . Then the restricted eigenvalue of satisfies .
Applying Lemma E.1 with and , we have the restricted eigenvalue of satisfies with probability at least , as long as the sample size . This ends the proof.
E.2 Proof of Lemma B.1
Similar to the proof of Lemma B.3 in Appendix E.1, we can have with probability at least ,
where is an absolute constant. When , we have
Applying Lemma E.1, we have with probability at least . Note that is a martingale difference sequence and . Similar to the proof of Eq. (B.17) by Azuma-Hoeffding inequality,
holds with probability at least . This ends the proof.
If we take , then and
Denote \Xi_{k}:=\frac{1}{L}\sum_{l=0}^{L-1}\big{(}\phi(s_{l}^{(k)},a_{l}^{(k)})^{\top}(\psi_{i}(\overline{x})-\psi_{j}(\overline{x}))\big{)}^{2}. Note that
Plugging (E.4) and (E.5) into (E.1) and applying condition (D.6), we obtain (D.7).
E.2.2 Proof of Lemma D.4
We consider another policy such that for some and . It holds that
Under model , when , and satisfy
Under the condition , we have , therefore,
Plugging (E.8) and (E.9) into (E.7), we finish our proof. ∎
Appendix F Supporting lemmas
Let be a sequence of -fields known as a filtration. Let be a martingale difference sequence for which there are constants such that almost surely for . Then for all ,
Appendix G Preliminary experiments
The left panel in Figure G shows that our Lasso-FQE clearly has smaller estimation error compared with FQE, proving the sparse feature selection is effective in a practical RL example. The right panel in Figure G demonstrates how the distribution mismatch (-divergence term) affects OPE error (with sample size fixed). The results confirm our theorems that the (restricted) chi-square divergence sharply determines the (sparse) OPE error.