---
title: "Finite Sample Analysis of LSTD with Random Projections and Eligibility Traces"
authors:
  - "Haifang Li"
  - "Yingce Xia"
  - "Wensheng Zhang"
doi: "10.24963/ijcai.2018/331"
url: "https://ijcai.org/proceedings/2018/331"
pdf: "https://ijcai.org/proceedings/2018/0331.pdf"
venue: "Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence"
year: 2018
pages: "2390-2396"
track: "Main track"
keywords:
  - "Machine Learning: Learning Theory"
  - "Machine Learning: Reinforcement Learning"
---

# Finite Sample Analysis of LSTD with Random Projections and Eligibility Traces

Haifang Li, Yingce Xia, Wensheng Zhang

*Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence*, pages 2390-2396. DOI: [10.24963/ijcai.2018/331](https://doi.org/10.24963/ijcai.2018/331)

## Abstract

Policy evaluation with linear function approximation is an important problem in reinforcement learning. When facing high-dimensional feature spaces, such a problem becomes extremely hard considering the computation efficiency and quality of approximations. We propose a new algorithm, LSTD(lambda)-RP, which leverages random projection techniques and takes eligibility traces into consideration to tackle the above two challenges. We carry out theoretical analysis of LSTD(lambda)-RP, and provide meaningful upper bounds of the estimation error, approximation error and total generalization error. These results demonstrate that LSTD(lambda)-RP can benefit from random projection and eligibility traces strategies, and LSTD(lambda)-RP can achieve better performances than prior LSTD-RP and LSTD(lambda) algorithms.

## Full text

## 1 Introduction

Policy evaluation, commonly referred to as value function approximation, is an important and central part in many reinforcement learning (RL) algorithms [Sutton and Barto, 1998], whose task is to estimate value functions for a fixed policy in a discounted Markov Decision Process (MDP) environment. The value function of each state specifies the accumulated reward an agent would receive in the future by following the fixed policy from that state. Value functions have been widely investigated in RL applications, and it can provide insightful and important information for the agent to obtain an optimal policy, such as important board configurations in Go [Silver et al., 2007], failure probabilities of large telecommunication networks [Frank et al., 2008], taxi-out times at large airports [Balakrishna et al., 2010] and so on.

Despite the value functions can be approximated by different ways, the simplest form, linear approximations, are still widely adopted and studied due to their good generalization abilities, relatively efficient computation and solid theoretical guarantees [Sutton and Barto, 1998; Dann et al., 2014; Geist and Scherrer, 2014; Liang et al., 2016]. Temporal Difference (TD) learning is a common approach to this policy evaluation with linear function approximation problem [Sutton and Barto, 1998]. These typical TD algorithms can be divided into two categories: gradient based methods (e.g., GTD(λ) [Sutton et al., 2009]) and least-square (LS) based methods (e.g., LSTD(λ) [Boyan, 2002]). A good survey on these algorithms can be found in [Maei, 2011; Dann, 2012; Geist and Pietquin, 2013; Dann et al., 2014; Geist and Scherrer, 2014].

As the development of information technologies, highdimensional data is widely seen in RL applications [Sutton, 1996; Tedrake et al., 2004; Riedmiller and Gabel, 2007] , which brings serious challenges to design scalable and computationally efficient algorithms for the linear value function approximation problem. To address this practical issue, several approaches have been developed for efficient and effective value function approximation. Kolter and Ng (2009) and Farahmand and Szepesvari (2011) adopted l1 or l2 regularization techniques to control the complexity of the large function space and designed several l1 and l2 regularized RL algorithms. Gehring et al. (2016) studied this problem by using low-rank approximation via an incremental singular value function decomposition and proposed t-LSTD(λ). Pan et al. (2017b) derived ATD(λ) by combining the low-rank approximation and quasi-Newton gradient descent ideas.

Recently, Ghavamzadeh et al. (2010) and Pan et al. (2017a) investigated sketching (projecting) methods to reduce the dimensionality in order to make it feasible to employ Least-Squares Temporal Difference (briefly, LSTD) algorithms. Specifically, Ghavamzadeh et al. (2010) proposed an approach named LSTD-RP, which is based on random projections. They showed that LSTD-RP can benefit from the random projection strategy. The eligibility traces have already been proven to be important parameters to control the quality of approximation during the policy evaluation process, but Ghavamzadeh et al. (2010) did not take them into consideration. Pan et al. (2017a) empirically investigated the effective use of sketching methods including random projections, count sketch, combined sketch and hadamard sketch for value function approximation, but they did not provide any conclusion on finite sample analysis. However, finite sample analysis is important for these algorithms since it clearly demonstrates the effects of the number of samples, dimensionality of the function space and the other related parameters.

In this paper, we focus on exploring the utility of random projections and eligibility traces on LSTD algorithms to tackle the computation efficiency and quality of approximations challenges in the high-dimensional feature spaces setting. We also provide finite sample analysis to evaluate its performance. To the best of our knowledge, this is the first work that performs formal finite sample analysis of LSTD with random projections and eligibility traces. Our contributions can be summarized from the following two aspects:

Algorithm: By introducing random projections and eligibility traces, we propose a refined algorithm named LSTD with Random Projections and Eligibility Traces (denoted as LSTD(λ)-RP for short), where λ is the trace parameter of λ-return when considering eligibility traces. LSTD(λ)- RP algorithm consists of two steps: first, generate a lowdimensional linear feature space through random projections from the original high-dimensional feature space; then, apply LSTD(λ) to this generated low-dimensional feature space.

Theoretical Analysis: We perform theoretical analysis to evaluate the performance of LSTD(λ)-RP and provide its finite sample performance bounds, including the estimation error bound, approximation error bound and total error bound. The analysis of the prior works LSTD-RP and LSTD(λ) cannot directly apply to our setting, since (i) The analysis of LSTD-RP is based on a model of regression with Markov design, but it does not hold when we incorporate eligibility traces; (ii) Due to utilizing random projections, the analysis of LSTD(λ) cannot be directly used, especially the approximation error analysis. To tackle these challenges, we first prove the linear independence property can be preserved by random projections, which is important for our analysis. Second, we decompose the total error into two parts: estimation error and approximation error. Then we make analysis on any fixed random projection space, and bridge these error bounds between the fixed random projection space and any arbitrary random projection space by leveraging the norm and inner-product preservation properties of random projections, the relationship between the smallest eigenvalues of the Gram matrices in the original and randomly projected spaces and the Chernoff-Hoeffding inequality for stationary β-mixing sequence. What's more, our theoretical results show that

- 1) Compared to LSTD-RP, the parameter λ of eligibility traces illustrates a trade-off between the estimation error and approximation error for LSTD(λ)-RP. We could tune λ to select an optimal λ∗ which could balance these two errors and obtain the smallest total error bound. Furthermore, for fixed sample n, optimal dimension of randomly projected space d∗ in LSTD(λ)-RP is much smaller than that of LSTD-RP.
- 2) Compared to LSTD(λ), in addition to the computational gains which are the result of random projections, the estimation error of LSTD(λ)-RP is much smaller at the price of a controlled increase of the approximation error. LSTD(λ)-RP may have a better performance than LSTD(λ), whenever the additional term in the approximation error is smaller than the gain achieved in the estimation error.

These results demonstrate that LSTD(λ)-RP can benefit from eligibility traces and random projections strategies in computation efficiency and approximation quality, and can be superior to LSTD-RP and LSTD(λ) algorithms.

## 2 Background

In this section, first we introduce some notations and preliminaries. Then we make a brief review of LSTD(λ) and LSTDRP algorithms.

Now we introduce some notations for the following paper. Let |·| denote the size of a set and ‖·‖2 denote the L2 norm for vectors. Let X be a measurable space. Denote S(X) the set of probability measure over X, and denote the set of measurable functions defined on X and bounded by L ∈ R+ as B(X,L). For a measure µ ∈ S(X), the µweighted L2 norm of a measurable function f is defined as ‖f‖µ = √∑x∈X f(x)2µ(x). The operator norm for matrix W is defined as ‖W‖µ = supw̸=0 ‖Ww‖µ ‖w‖µ .

## 2.1 Value Functions

Reinforcement learning (RL) is an approach to find optimal policies in sequential decision-making problems, in which the RL agent interacts with a stochastic environment formalized by a discounted Markov Decision Process (MDP) [Puterman, 2014]. An MDP is described as a tuple M = (X , A, P a xx′ ,R, γ), where state space X is finite 1 , action space A is finite, P a xx′ is the transition probability from state x to the next state x′ when taking action a, R : X ×A → R is the reward function, which is uniformly bound by Rmax, and γ ∈ (0, 1) is the discount factor. A deterministic policy 2 π : X → A is a mapping from state space to action space, which is an action selection policy. Given the policy π, the MDP M can be reduced to a Markov chain Mπ = (X , P π , rπ , γ), with transition probability P π (·|x) = P(·|x, π(x)) and reward rπ (x) = R(x, π(x)).

In this paper, we are interested in policy evaluation, which can be used to find optimal policies or select actions. It involves computing the state-value function of a given policy which assigns to each state a measure of long-term performance following the given policy. Mathematically, given a policy π, for any state x ∈ X, the value function of state x is defined as follows:

<!-- formula-not-decoded -->

where Eπ denotes the expectation over random samples which are generated by following policy π. Let V π denote a vector constructed by stacking the values of V π (1), ..., V π (|X|) on top of each other. Then, we can see that V π is the unique fixed point of the Bellman operator T π :

<!-- formula-not-decoded -->

where Rπ is the expected reward vector under policy π. Equation (1) is called Bellman Equation, which is the basis of temporal difference learning approaches. In the reminder of this paper, we omit the policy superscripts for ease of reference in unambiguous cases, since we are interested in onpolicy learning in this work.

1 For simplicity, we assume the state space is finite. However, the results in this paper can be generalized into other more general state spaces.

2 Without loss of generality, here we only consider the deterministic policy. The extension to stochastic policy setting is straightforward.

When the size of state space |X| is very large or even infinite, one may consider to approximate the state-value function by a linear function approximation, which is widely used in RL [Sutton and Barto, 1998; Dann et al., 2014]. We define a linear function space F, which is spanned by the basis functions φi : X → R, i ∈ [D](D ≪ |X|)3 , i.e., F = {fα|fα(·) = φ(·)T α, α ∈ RD }, where φ(·) = (φ1(·), ..., φD(·))T is the feature vector. We assume φi ∈ B(X,L), i ∈ [D] for some finite positive constant L. For any function fα ∈ F, let m(fα) := ‖α‖2 supx∈X‖φ(x)‖2. Furthermore, we generate a d-dimensional (d &lt; D) random space G from F through random projections H, where H ∈ Rd×D be a random matrix whose each element is drawn independently and identically distributed (i.i.d.) from Gaussion distribution N(0, 1/d)4 . For any j ∈ [d], denote the randomly projected feature vector ψ(·) = (ψ1(·), ..., ψi(·))T , where ψ(·) = Hφ(·). Thus, G = {gβ ∣∣gβ(·) = ψ(·)T β, β ∈ Rd }. Define Φ = (φ(x))x∈X = (φ1, . . . , φD) of dimension |X | × D and Ψ = (ψ(x))x∈X = (ψ1, . . . , ψD) of dimension |X |×d to be the original and randomly projected feature matrix respectively.

## 2.2 LSTD(λ)

Least-Squares Temporal Difference (LSTD) is a traditional and important approach for policy evaluation in RL, which was first introduced by [Bradtke and Barto, 1996], and later was extended to include the eligibility traces by [Boyan, 1999; Boyan, 2002] referred to as LSTD(λ).

The essence of LSTD(λ) is to estimate the fixed point of the projected multi-step Bellman equation, that is,

<!-- formula-not-decoded -->

where µ is the steady-state probabilities of the Markov chain Mπ induced by policy π, Dµ denotes the diagonal matrix with diagonal elements being µ, ΠF is the orthogonal projection operator into the linear function space F, and T λ is a multi-step Bellman operator parameterized by λ ∈ [0, 1], and it is defined as follows:

<!-- formula-not-decoded -->

When λ = 0, we have T λ = T , and it becomes LSTD.

Given one sampled trajectory {Xt}nt=1 generated by the Markov chain Mπ under policy π, the LSTD(λ) algorithm returns ˆ VLSTD(λ) = Φ˜ θ, with ˜ θ = ˜ A-1˜b, where

<!-- formula-not-decoded -->

where ˜ zi = ∑ik=1 (λγ)i-k φ(Xk) is called the eligibility trace, and λ ∈ [0, 1] is the trace parameter for the λ-return.

<!-- formula-not-decoded -->

4 It is also can be some sub-Gaussian distributions. Without loss of generality, here we only consider Gaussian distribution for simplicity.

## 2.3 LSTD-RP

Compared to gradient based temporal difference (TD) learning algorithms, LSTD(λ) has data sample efficiency and parameter insensitivity advantages, but it is less computationally efficient. LSTD(λ) requires O(D3 ) computation per time step or still requires O(D2 ) by using the ShermanMorrison formula to make incremental update. This expensive computation cost makes LSTD(λ) impractical for the high-dimensional feature spaces scenarios in RL. Recently, Least-Squares TD with Random Projections algorithm (briefly denoted as LSTD-RP) was proposed to deal with the high-dimensional data setting [Ghavamzadeh et al., 2010].

The basic idea of LSTD-RP is to learn the value function of a given policy from a low-dimensional linear space G which is generated through random projections from a highdimensional space F. Their theoretical results show that the total computation complexity of LSTD-RP is O(d3 + ndD), which is dramatically less than the computation cost in the high dimensional space F (i.e., O(D3 + nD2 )). In addition to these practical computational gains, Ghavamzadeh et al. (2010) demonstrate that LSTD-RP can provide an efficient and effective approximation for value functions, since LSTD-RP reduces the estimation error at the price of the increase in the approximation error which is controlled.

However, LSTD-RP does not take the eligibility traces into consideration, which are important parameters in RL. First, the use of these traces can significantly speed up learning by controlling the trade off between bias and variance [Att et al., 2000; Sutton et al., 2014]. Second, the parameter λ of these traces is also known to control the quality of approximation [Tsitsiklis et al., 1997]. In the remainder of this paper, we present a generalization of LSTD-RP to deal with the λ &gt; 0 scenario (i.e., LSTD(λ)-RP (see Section 3)). What's more, we also give its theoretical guarantee in Section 4.

## 3 Algorithm

In this section, we first consider the Bellman equation with random projections (see Equation (4)), and explore the existence and uniqueness properties of its solution, which is the goal of our newly proposed algorithm to estimate. Then we present the LSTD with Random Projections and Eligibility Traces algorithm (briefly denoted as LSTD(λ)-RP) as shown in Algorithm 1, and discuss its computational cost.

## 3.1 Bellman Equation with RandomProjections

To begin with, we make the following assumption throughout the paper as [Tsitsiklis et al., 1997; Tagorti and Scherrer, 2015].

Assumption 1. The feature matrix Φ has full column rank; that is, the original high-dimensional feature vectors (φj)j∈{1,...,D} are linearly independent.

From the following lemma, we can get that the linear independence property can be preserved by random projections. Due to the space restrictions, we leave its detailed proof into Appendix B in the full version of this work [Li et al., 2018].

Lemma 1. Let Assumption 1 hold. Then the randomly projected low-dimensional feature vectors (ψj)j∈{1,...,d} are linearly independent a.e.. Accordingly, ΨT DµΨ is invertible a.e.. 5

Let ΠG denote the orthogonal projection onto the randomly projected low-dimensional feature space G with respect to the µ-weighted L2 norm. According to Lemma 1, we obtain the projection ΠG has the following closed form

<!-- formula-not-decoded -->

Then the projected multi-step Bellman equation with random projections becomesV = ΠGT λV, λ ∈ [0, 1],

<!-- formula-not-decoded -->

Note that when λ = 0, we have T λ = T .

According to the Banach fixed point theorem, in order to guarantee the existence and uniqueness of the fixed point of Bellman equation with random projections (see Equation (4)), we only need to demonstrate the contraction property of operator ΠGT λ . By simple derivations, we can demonstrate that the contraction property of ΠGT λ holds as shown in the following Lemma 2, and we leave its detailed proof into Appendix C of the full paper [Li et al., 2018].

Lemma 2. Let Assumption 1 hold. Then the projection operator ΠG is non-expansive w.r.t. µ-weighted quadratic norm, and the operator ΠGT λ is a ( γ(1-λ) 1-γλ -)contraction.

Denote the unique solution of the Bellman equation with random projections (see Equation (4)) as VLSTD(λ)-RP. In this work, we focus exclusively on the linear function approximation problem. Therefore, there exists θ ∈ Rd such that

<!-- formula-not-decoded -->

Just as the derivations of LSTD(λ) algorithm [Tsitsiklis et al., 1997; Sutton and Barto, 1998; Boyan, 2002], we can obtain that θ is a solution of the linear equation

<!-- formula-not-decoded -->

Furthermore, by Lemma 1, we can prove that A is invertible. Thus, VLSTD(λ)-RP = ΨA-1 b is well defined.

## 3.2 LSTD(λ)-RP Algorithm

Now we present our proposed algorithm LSTD(λ)-RP in Algorithm 1, which aims to estimate the solution of Bellman equation with random projections (see Equation (6)) by using one sample trajectory {Xt}nt=1 generated by the Markov chain Mπ . Then we discuss its computational advantage compared to LSTD(λ) and LSTD-RP.

LSTD(λ)-RP algorithm is a generalization of LSTD-RP. It uses eligibility traces to handle the λ &gt; 0 case. Line 8

5 Notice that here the randomness is w.r.t. the random projection rather than the random sample. In the following paper, without loss of generality, we can assume (ψj )j∈{1,...,d} are linearly independent and ΨT DµΨ is invertible.

## Algorithm 1: LSTD(λ)-RP Algorithm

- 1 Input: The original high-dimensional feature vector φ : X → RD ; discount factor γ ∈ [0, 1); eligibility trace parameter λ ∈ [0, 1]; the sample trajectory {Xt, rt}nt=1 , where Xt and rt are the observed state and reward received at time t respectively;
- 2 Output: ˆ θ := ˆ A-1ˆb or ˆ θ := ˆ A†ˆb, where ˆ A† denote the Moore-Penrose pseudo-inverse of matrix ˆ A;
- 3 Initialize: ˆ A ← 0, ˆb ← 0, z ← 0, t ← 0;
- 4 Generate random projection matrix H ∈ Rd×D whose elements are drawn i.i.d. fromN(0, 1/d);
- 5 for t = 0, 1, . . . , n do
- 6 t ← t + 1;
- 7 The randomly projected low-dimensional feature vector ψ(Xt) = Hφ(Xt);
- 8 z ← λγz + ψ(Xt);
- 9 ∆ ˆ A ← z(ψ(Xt) - ψ(Xt+1))T ;
- 10 ∆ˆb ← zrt;
- 11 ˆ A← ˆ A+ 1t [∆ ˆ A- ˆ A];
- 12 ˆb ←ˆb + 1t [∆ˆb -ˆb];

updates the eligibility traces z, and lines 9-12 incrementally update A and b as described in Equation (8), which have some differences from that in LSTD-RP algorithm due to eligibility traces. If the parameter λ is set to zero, then the LSTD(λ)-RP algorithm becomes the original LSTD-RP algorithm. What's more, if the random projection matrix H is identity matrix, then LSTD(λ)-RP becomes LSTD(λ).

From Algorithm 1, we obtain that the LSTD(λ)-RP algorithm returns

<!-- formula-not-decoded -->

with ˆ θ = ˆ A-1ˆb,6 where

<!-- formula-not-decoded -->

Here zi is referred to as randomly projected eligibility trace.

The difference between LSTD(λ)-RP algorithm and the prior LSTD-RP algorithm lies in the fact that LSTD(λ)- RP incorporates the eligibility traces. From Algorithm 1, we know that the computational cost of eligibility traces is O(nd). Based on the analysis of the computational complexity of LSTD-RP algorithm, we obtain that the total computational complexity of LSTD(λ)-RP is O(d3 + ndD)(D ≫ d). This reveals that the computation cost of LSTD(λ)-RP algorithm is much less than that of LSTD(λ) algorithm, which is O(D3 + nD2 ) [Ghavamzadeh et al., 2010].

To evaluate the performance of LSTD(λ)-RP algorithm, we consider the gap between the value function learned by LSTD(λ)-RP algorithm ˆ VLSTD(λ)-RP and the true value function V , i.e., ‖ˆ VLSTD(λ)-RP - V ‖µ. We refer to this gap as the total error of the LSTD(λ)-RP algorithm. According to the triangle inequality, we can decompose the total error into two parts: estimation error ‖ ˆ VLSTD(λ)-RP -VLSTD(λ)-RP‖µ and approximation error ‖VLSTD(λ)-RP - V ‖µ. We will illustrate how to derive meaningful upper bounds for these three errors of LSTD(λ)-RP in the following section.

6 We will see that ˆ A-1 exists with high probability for a sufficiently large sample size n in Theorem 3.

## 4 Theoretical Analysis

In this section, we conduct theoretical analysis for LSTD(λ)- RP. First, we examine the sample size needed to ensure the uniqueness of the sample-based LSTD(λ)-RP solution, that is, we explore sufficient conditions to guarantee the invertibility of ˆ A with high probability, which can be used in the analysis of estimation error bound. Second, we make finite sample analysis of LSTD(λ)-RP including discussing how to derive meaningful upper bounds for the estimation error ‖ˆ VLSTD(λ)-RP - VLSTD(λ)-RP‖µ, the approximation error ‖VLSTD(λ)-RP - V ‖µ and the total error ‖ ˆ VLSTD(λ)-RP - V ‖µ. To perform such finite sample analysis, we also need to make a common assumption on the Markov chain process (Xt)t≥1 that has some β-mixing properties as shown in Assumption 2 [Mohri and Rostamizadeh, 2010; Tagorti and Scherrer, 2015]. Under this assumption, we can make full use of the concentration inequality for β-mixing sequences during the process of finite sample analysis.

Assumption 2. (Xt)t≥1 is a stationary exponential β-mixing sequence, that is, there exist some constant parameters β0 &gt; 0, β1 &gt; 0, and κ &gt; 0 such that β(m) ≤ β0 exp(-β1mκ ).

## 4.1 Uniqueness of the Sample-Based Solution

In this subsection, we explore how sufficiently large the number of observations n needed to guarantee the invertibility of ˆ A with high probability as shown in Theorem 3, which indicates the uniqueness of sample-based LSTD(λ)-RP solution. Due to the space limitations, we leave the detailed proof into Appendix D of the full paper [Li et al., 2018].

Theorem 3. Let Assumptions 1 and 2 hold, and X1 ∼ µ. For any δ ∈ (0, 1), γ ∈ (0, 1), and λ ∈ [0, 1], let n0(δ) be the smallest integer such that

<!-- formula-not-decoded -->

where

<!-- formula-not-decoded -->

and νF is the smallest eigenvalue of the Gram matrix F = ΦT DµΦ. Then when D &gt; d + 2√2d log(4/δ) + 2 log(4/δ), with probability at least 1 - δ (the randomness w.r.t. the random sample and the random projection), we have, for all n ≥ n0(δ), ˆ A is invertible.

From Theorem 3, we can draw the following conclusions:

- 1) The number of observations needed to guarantee the uniqueness of the sample-based LSTD(λ)-RP solution is of order ˜O(d2 ), and it is much smaller than that of LSTD(λ), which is of order ˜O(D2 )(D ≫ d) (Theorem 1 in [Tagorti and Scherrer, 2015]).
- 2) In our analysis, setting λ = 0, we can see that our result has some differences from LSTD-RP (Lemma 3 in [Ghavamzadeh et al., 2010]), since we consider the invertibility of the matrix ˆ A, while they consider the empirical Grammatrix 1n ΨT Ψ.

Remark 1: According to Assumption 1, we know that νF &gt; 0. For all δ ∈ (0, 1) and fixed d, n0(δ) exists since the left hand side of Equation (9) tends to 0 when n tends to infinity.

## 4.2 Estimation Error Bound

In this subsection, we upper bound the estimation error of LSTD(λ)-RP as shown in Theorem 4. For its proof, first, bound the estimation error on one fixed randomly projected space G. Then, by utilizing properties of random projections, the relationship between the smallest eigenvalues of the Gram matrices in F and G and the conditional expectation properties, bridge the error bounds between the fixed space and any arbitrary random projection space. Due to space limitations, we leave its detailed proof into Appendix E [Li et al., 2018].

Theorem 4. Let Assumptions 1 and 2 hold, and let X1 ∼ µ. For any δ ∈ (0, 1), γ ∈ (0, 1), and λ ∈ [0, 1], when D &gt; d+2√2d log(4/δ)+2 log(4/δ) and d ≥ 15 log(4n/δ), with probability 1 - δ (the randomness w.r.t. the random sample and the random projection), for all n ≥ n0(δ), the estimation error ‖VLSTD(λ)-RP - ˆ VLSTD(λ)-RP‖µ is upper bounded as follows:

<!-- formula-not-decoded -->

with h(n, d, δ) = ˜O( dn log 1δ ), where νF (&gt; 0) is the smallest eigenvalue of the Gram matrix ΦT DuΦ, Vmax = Rmax 1-γ , ξ(n, d, δ), η(d,D, δ), mλn , I(n, δ), and n0(δ) are defined as in Theorem 3.

From Theorem 4, we have by setting λ = 0 in Equation (10), the estimation error bound of LSTD(λ)-RP becomes of order ˜O(d/√n), and it is consistent with that of LSTD-RP (Theorem 2 in [Ghavamzadeh et al., 2010]).

## 4.3 Approximation Error Bound

Now we upper bound the approximation error of LSTD(λ)- RP which is shown in Theorem 5. As to its proof, we first analyze the approximation error on any fixed random projected space G. Then, we make a bridge of approximation error bound between the fixed random projection space and any arbitrary random projection space by leveraging the definition of projection and the inner-product preservation property of random projections and the Chernoff-Hoeffding inequality for stationary β-mixing sequence. Due to space limitations, we leave detailed proof into Appendix F of [Li et al., 2018].

Theorem 5. Let Assumptions 1 and 2 hold. Let X1 ∼ µ. For any δ ∈ (0, 1), γ ∈ (0, 1), and λ ∈ [0, 1], when d ≥ 15 log(8n/δ), with probability at least 1 - δ (w.r.t. the random projection), the approximation error of LSTD(λ)-RP algorithm ‖V - VLSTD(λ)-RP‖µ can be upper bounded as below,

<!-- formula-not-decoded -->

<!-- formula-not-decoded -->

From Theorem 5, we know that by setting λ = 0, the right hand of Equation (11) becomes 1 1-γ [‖V - ΠFV ‖µ + O(√(1/d) log(n/δ)m(ΠFV ))], while for LSTD-RP (Theorem 2 in [Ghavamzadeh et al., 2010]) it is 4√2 √1-γ2 [‖V -

ΠFV ‖µ+O(√(1/d) log(n/δ)m(ΠFV ))]. Notice that they are just different from the coefficients. Furthermore, due to eligibility traces which can control the quality of approximation, we could tune λ to make approximation error of LSTD(λ)-RP smaller than that of LSTD-RP, since the coefficient in Equation (11) is 1-λγ 1-γ , while it is 4√2 √1-γ 2 in LSTD-RP.

Remark 2: The coefficient 1-λγ 1-γ in the approximation can be improved by 1-λγ √(1-γ)(1+γ-2λγ) [Tsitsiklis et al., 1997].

## 4.4 Total Error Bound

Combining Theorem 4 and Theorem 5, and by leveraging the triangle inequality, we can obtain the total error bound for LSTD(λ)-RP as shown in the following corollary.

Corollary 6. Let Assumptions 1 and 2 hold. Let X1 ∼ µ. For any δ ∈ (0, 1), γ ∈ (0, 1), and λ ∈ [0, 1], when D &gt; d + 2√2d log(8/δ) + 2 log(8/δ) and d ≥ 15 log(16n/δ), with probability (the randomness w.r.t. the random sample and the random projection) at least 1 - δ, for all n ≥ n0(δ), the total error ‖V - ˆ VLSTD(λ)-RP‖µ can be upper bounded by:

<!-- formula-not-decoded -->

with h(n, d, δ) = ˜O( dn log 1δ ), where νF (&gt; 0) is the smallest eigenvalue of the Gram matrix ΦT DuΦ, Vmax = Rmax 1-γ , ξ(n, d, δ), η(d,D, δ), mλn , I(n, δ), n0(δ) are defined as in Theorem 3 and Υ(n, δ) is defined as in Theorem 5.

By setting λ = 0, the total error bound of LSTD(λ)-RP is consistent with that of LSTD-RP except for some differences in coefficients. These differences lie in the analysis of LSTDRP based on a model of regression with Markov design.

Although our results consistent with LSTD-RP when setting λ = 0 except for some coefficients, our results have some advantages over LSTD-RP and LSTD(λ). Now we have some discussions. From Theorem 4, Theorem 5 and Corollary 6, we can obtain that

- 1) Compared to LSTD(λ), the estimation error of LSTD(λ)- RP is of order ˜O(d/√n), which is much smaller than that of LSTD(λ) (i.e., ˜O(D/√n) (Theorem 1 in [Tagorti and Scherrer, 2015])), since random projections can make the complexity of the projected space G is smaller than that of the original high-dimensional space F. Furthermore, the approximation error of LSTD(λ)-RP increases by at most O(√(1/d) log(n/δ)m(ΠFV )), which decreases w.r.t d. This shows that in addition to the computational gains, the estimation error of LSTD(λ)-RP is much smaller at the cost of a increase of the approximation error which can be fortunately controlled. Therefore, LSTD(λ)-RP may have a better performance than LSTD(λ), whenever the additional term in the approximation error is smaller than the gain achieved in the estimation error.
- 2) Compared to LSTD-RP, λ illustrates a trade-off between the estimation error and approximation error for LSTD(λ)-RP, since eligibility traces can control the trade off between the approximation bias and variance during the learning process. When λ increases, the estimation error would increase, while the approximation error would decrease. Thus, we could select an optimal λ∗ to balance these two errors and obtain the smallest total error.
- 3) Compared to LSTD-RP, we can select an optimal d∗LSTD(λ)-RP = ˜O(n logn) 1 3 to obtain the smallest total error, and make a balance between the estimation error and the approximation error of LSTD(λ)-RP, which is much smaller than that of LSTD-RP (d∗LSTD-RP = ˜O(n logn) 12 ) due to the effect of eligibility traces.

These conclusions demonstrate that random projections and eligibility traces can improve the approximation quality and computation efficiency. Therefore, LSTD(λ)-RP can provide an efficient and effective approximation for value functions and can be superior to LSTD-RP and LSTD(λ).

Remark 3: Some discussions about the role of factor m(ΠFV ) in the error bounds can be found in [Maillard and Munos, 2009] and [Ghavamzadeh et al., 2010].

Remark 4: Our analysis can be simply generalized to the emphatic LSTD algorithm (ELSTD)[Yu, 2015] with random projections and eligibility traces.

## 5 Conclusion and FutureWork

In this paper, we propose a new algorithm LSTD(λ)-RP, which leverages random projection techniques and takes eligibility traces into consideration to tackle the computation efficiency and quality of approximations challenges in the highdimensional feature space scenario. We also make theoretical analysis for LSTD(λ)-RP.

For the future work, there are still many important and interesting directions: (1) the convergence analysis of the off-policy learning with random projections is worth studying; (2) the comparison of LSTD(λ)-RP to l1 and l2 regularized approaches asks for further investigation. (3) the role of m(ΠFV ) in the error bounds is in need of discussion.

## Acknowledgments

This work is partially supported by the National Key Research and Development Program of China (No. 2017YFC0803704), the National Natural Science Foundation of China (Grant No. 61772525, Grant No. 61772524, Grant No. 61702517 and Grant No. 61402480) and the Beijing Natural Science Foundation (Grant No. 4182067 and Grant No. 4172063).

## References

1. [Att et al., 2000] Michael Kearns Att, Michael Kearns, and Satin- der Singh. Bias-variance error bounds for temporal difference updates. In In Proceedings of the 13th Annual Conference on Computational Learning Theory. Citeseer, 2000.
2. [Balakrishna et al., 2010] Poornima Balakrishna, Rajesh Ganesan, and Lance Sherry. Accuracy of reinforcement learning algo- rithms for predicting aircraft taxi-out times: A case-study of tampa bay departures. Transportation Research Part C: Emerg- ing Technologies, 18(6):950-962, 2010.
3. [Boyan, 1999] Justin A Boyan. Least-squares temporal difference learning. In ICML, pages 49-56.
4. [Boyan, 2002] Justin A Boyan. Technical update: Least-squares temporal difference learning. Machine Learning, 49(2):233-246, 2002.
5. [Bradtke and Barto, 1996] Steven J Bradtke and Andrew G Barto. Linear least-squares algorithms for temporal difference learning. Machine learning, 22(1-3):33-57, 1996.
6. [Dann et al., 2014] Christoph Dann, Gerhard Neumann, and Jan Peters. Policy evaluation with temporal differences: a survey and comparison. JMLR, 15(1):809-883, 2014.
7. [Dann, 2012] Christoph Dann. Algorithms for fast gradient tempo- ral difference learning. In Autonomous Learning Systems Semi- nar, TU Darmstadt, 2012.
8. [Farahmand and Szepesvari, 2011] Amir-massoud Farahmand and Csaba Szepesvari. Regularization in reinforcement learning. University of Alberta, 2011.
9. [Frank et al., 2008] Jordan Frank, Shie Mannor, and Doina Precup. Reinforcement learning in the presence of rare events. In ICML, pages 336-343. ACM, 2008.
10. [Gehring et al., 2016] Clement Gehring, Yangchen Pan, and Martha White. Incremental truncated lstd. In IJCAI, pages 1505- 1511. AAAI Press, 2016.
11. [Geist and Pietquin, 2013] Matthieu Geist and Olivier Pietquin. Al- gorithmic survey of parametric value function approximation. TNNLS, 24(6):845-867, 2013.
12. [Geist and Scherrer, 2014] Matthieu Geist and Bruno Scherrer. Off- policy learning with eligibility traces: A survey. JMLR, 15(1):289-333, 2014.
13. [Ghavamzadeh et al., 2010] Mohammad Ghavamzadeh, Alessan- dro Lazaric, Odalric Maillard, and Rémi Munos. Lstd with ran- dom projections. In NIPS, pages 721-729, 2010.
14. [Kolter and Ng, 2009] J Zico Kolter and Andrew Y Ng. Regular- ization and feature selection in least-squares temporal difference learning. In ICML, pages 521-528. ACM, 2009.
15. [Li et al., 2018] Haifang Li, Yingce Xia, and Wensheng Zhang. Fi- nite sample analysis of lstd with random projections and eligibil- ity traces. arXiv preprint arXiv:1805.10005, 2018.
16. [Liang et al., 2016] Yitao Liang, Marlos C Machado, Erik Talvitie, and Michael Bowling. State of the art control of atari games us- ing shallow reinforcement learning. In AAMAS, pages 485-493. International Foundation for Autonomous Agents and Multiagent Systems, 2016.
17. [Maei, 2011] Hamid Reza Maei. Gradient temporal-difference learning algorithms. 2011.
18. [Maillard and Munos, 2009] Odalric Maillard and Rémi Munos. Compressed least-squares regression. In NIPS, pages 1213-1221, 2009.
19. [Mohri and Rostamizadeh, 2010] Mehryar Mohri and Afshin Ros- tamizadeh. Stability bounds for stationary ϕ-mixing and β- mixing processes. JMLR, 11(Feb):789-814, 2010.
20. [Pan et al., 2017a] Yangchen Pan, Erfan Sadeqi Azer, and Martha White. Effective sketching methods for value function approxi- mation. arXiv preprint arXiv:1708.01298, 2017.
21. [Pan et al., 2017b] Yangchen Pan, Adam M White, and Martha White. Accelerated gradient temporal difference learning. In AAAI, pages 2464-2470, 2017.
22. [Puterman, 2014] Martin L Puterman. Markov decision processes: discrete stochastic dynamic programming. John Wiley & Sons, 2014.
23. [Riedmiller and Gabel, 2007] Martin Riedmiller and Thomas Gabel. On experiences in a complex and competitive gaming do- main: Reinforcement learning meets robocup. In Computational Intelligence and Games, 2007. CIG 2007. IEEE Symposium on, pages 17-23. IEEE, 2007.
24. [Silver et al., 2007] D Silver, R Sutton, and M Müller. Reinforce- ment learning of local shape in the game of go. In IJCAI, pages 1053-1058, 2007.
25. [Sutton and Barto, 1998] Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction, volume 1. MIT press Cambridge, 1998.
26. [Sutton et al., 2009] Richard S Sutton, Hamid R Maei, and Csaba Szepesvári. A convergent o(n) temporal-difference algorithm for off-policy learning with linear function approximation. In NIPS, pages 1609-1616, 2009.
27. [Sutton et al., 2014] Rich Sutton, Ashique Rupam Mahmood, Doina Precup, and Hado Hasselt. A new q (lambda) with interim forward view and monte carlo equivalence. In ICML, pages 568- 576, 2014.
28. [Sutton, 1996] Richard S Sutton. Generalization in reinforcement learning: Successful examples using sparse coarse coding. In NIPS, pages 1038-1044, 1996.
29. [Tagorti and Scherrer, 2015] Manel Tagorti and Bruno Scherrer. On the rate of convergence and error bounds for lstd (λ). In ICML, pages 1521-1529, 2015.
30. [Tedrake et al., 2004] Russ Tedrake, Teresa Weirui Zhang, and H Sebastian Seung. Stochastic policy gradient reinforcement learning on a simple 3d biped. In In Proceedings of the IEEE International Conference on Intelligent Robots and Systems, vol- ume 3, pages 2849-2854. IEEE, 2004.
31. [Tsitsiklis et al., 1997] John N Tsitsiklis, Benjamin Van Roy, et al. An analysis of temporal-difference learning with func- tion approximation. IEEE transactions on automatic control, 42(5):674-690, 1997.
32. [Yu, 2015] Huizhen Yu. On convergence of emphatic temporal- difference learning. In Conference on Learning Theory, pages 1724-1751, 2015.
