diff --git "a/reanalysisofvariancereducedtemporaldifferencelearning/full.md" "b/reanalysisofvariancereducedtemporaldifferencelearning/full.md" new file mode 100644--- /dev/null +++ "b/reanalysisofvariancereducedtemporaldifferencelearning/full.md" @@ -0,0 +1,881 @@ +# REANALYSIS OF VARIANCE REDUCED TEMPORAL DIFFERENCE LEARNING + +Tengyu Xu†, Zhe Wang†, Yi Zhou§, Yingbin Liang† + +† Department of ECE, The Ohio State University ,Columbus, OH 43210, USA +$^{\S}$ Department of ECE, The University of Utah, Salt Lake City, UT 84112, USA + +xu.3260@osu.edu, wang.10982@osu.edu, yi.zhou@utah.edu, liang.889@osu.edu + +# ABSTRACT + +Temporal difference (TD) learning is a popular algorithm for policy evaluation in reinforcement learning, but the vanilla TD can substantially suffer from the inherent optimization variance. A variance reduced TD (VRTD) algorithm was proposed by Korda and La (2015), which applies the variance reduction technique directly to the online TD learning with Markovian samples. In this work, we first point out the technical errors in the analysis of VRTD in Korda and La (2015), and then provide a mathematically solid analysis of the non-asymptotic convergence of VRTD and its variance reduction performance. We show that VRTD is guaranteed to converge to a neighborhood of the fixed-point solution of TD at a linear convergence rate. Furthermore, the variance error (for both i.i.d. and Markovian sampling) and the bias error (for Markovian sampling) of VRTD are significantly reduced by the batch size of variance reduction in comparison to those of vanilla TD. As a result, the overall computational complexity of VRTD to attain a given accurate solution outperforms that of TD under Markov sampling and outperforms that of TD under i.i.d. sampling for a sufficiently small conditional number. + +# 1 INTRODUCTION + +In reinforcement learning (RL), policy evaluation aims to obtain the expected long-term reward of a given policy and plays an important role in identifying the optimal policy that achieves the maximal cumulative reward over time Bertsekas and Tsitsiklis (1995); Dayan and Watkins (1992); Rummery and Niranjan (1994). The temporal difference (TD) learning algorithm, originally proposed by Sutton (1988), is one of the most widely used policy evaluation methods, which uses the Bellman equation to iteratively bootstrap the estimation process and continually update the value function in an incremental way. In practice, if the state space is large or infinite, function approximation is often used to find an approximate value function efficiently. Theoretically, TD with linear function approximation has been shown to converge to the fixed point solution with i.i.d. samples and Markovian samples in Sutton (1988); Tsitsiklis and Van Roy (1997). The finite sample analysis of TD has also been studied in Bhandari et al. (2018); Dalal et al. (2018a); Cai et al. (2019); Srikant and Ying (2019). + +Since each iteration of TD uses one or a mini-batch of samples to estimate the mean of the pseudogradient ${}^{1}$ ,TD learning usually suffers from the inherent variance,which substantially degrades the convergence accuracy. Although a diminishing stepsize or very small constant stepsize can reduce the variance Bhandari et al. (2018); Srikant and Ying (2019), they also slow down the convergence significantly. + +Two approaches have been proposed to reduce the variance. The first approach is the so-called batch TD, which takes a fixed sample set and transforms the empirical mean square projected Bellman error (MSPBE) into an equivalent convex-concave saddle-point problem Du et al. (2017). Due to the finite-sample nature of such a problem, stochastic variance reduction techniques for conventional optimization can be directly applied here to reduce the variance. In particular, Du et al. (2017) showed that SVRG Johnson and Zhang (2013) and SAGA Defazio et al. (2014) can be applied to improve + +the performance of batch TD algorithms, and Peng et al. (2019) proposed two variants of SVRG to further save the computation cost. However, the analysis of batch TD does not take into account the statistical nature of the training samples, which are generated by a MDP. Hence, there is no guarantee of such obtained solutions to be close to the fixed point of TD learning. + +The second approach is the so-called TD with centering (CTD) algorithm proposed in Korda and La (2015), which introduces the variance reduction idea to the original TD learning algorithm. For the sake of better reflecting its major feature, we refer to CTD as Variance Reduced TD (VRTD) throughout this paper. Similarly to the SVRG in Johnson and Zhang (2013), VRTD has outer and inner loops. The beginning of each inner-loop (i.e. each epoch) computes a batch of sample pseudogradients so that each subsequent inner loop iteration modifies only one sample pseudo-gradient in the batch pseudo-gradients to reduce the variance. The main difference between VRTD and batch TD is that VRTD applies the variance reduction directly to TD learning rather than to a transformed optimization problem in batch TD. Though Korda and La (2015) empirically verified that VRTD has better convergence accuracy than vanilla TD learning, some technical errors in the analysis in Korda and La (2015) have been pointed out in follow up studies Dalal et al. (2018a); Narayanan and Szepesvári (2017). Furthermore, as we discuss in Section 3, the technical proof in Korda and La (2015) regarding the convergence of VRTD also has technical errors so that their results do not correctly characterize the impact of variance reduction on TD learning. Given the recent surge of interest in the finite time analysis of the vanilla TD Dalal et al. (2018a); Bhandari et al. (2018); Dalal et al. (2018b); Srikant and Ying (2019), it becomes imperative to reanalyze the VRTD and accurately understand whether and how variance reduction can help to improve the convergence accuracy over vanilla TD. Towards this end, this paper specifically addresses the following central questions. + +- For i.i.d. sampling, it has been shown in Dalal et al. (2018a); Bhandari et al. (2018) that vanilla TD converges only to a neighborhood of the fixed point for a constant stepsize and suffers from a constant error term caused by the variance of the stochastic pseudo-gradient at each iteration. For VRTD, does the variance reduction help to reduce such an error and improve the accuracy of convergence? How does the error depend on the variance reduction parameter, i.e., the batch size for variance reduction? +- For Markovian sampling, it has been shown in Bhandari et al. (2018) that the convergence of vanilla TD further suffers from a bias error due to the correlation among samples in addition to the variance error as in i.i.d. sampling. Does VRTD, which was designed to have reduced variance, also enjoy reduced bias error? If so, how does the bias error depend on the batch size for variance reduction? +- For both i.i.d. and Markovian sampling, to attain an $\epsilon$ -accurate solution, what is the overall computational complexity (the total number of computations of pseudo-gradients) of VRTD, and does VRTD have a reduced overall computational complexity compared to TD? + +# 1.1 OUR CONTRIBUTIONS + +Our main contributions are summarized in Table 1 and are described as follows. + +For i.i.d. sampling, we show that a slightly modified version of VRTD (for avoiding bias error) converges linearly to a neighborhood of the fixed point solution for a constant stepsize $\alpha$ , with the variance error at the order of $\mathcal{O}(\alpha / M)$ , where $M$ is the batch size for variance reduction. To attain an $\epsilon$ -accurate solution, the overall computational complexity (i.e., the total number of pseudo-gradient computations) of VRTD outperforms the vanilla TD algorithm Bhandari et al. (2018) if the condition number is small. + +For Markovian sampling, we show that VRTD has the same linear convergence and the same variance error reduction over the vanilla TD Dalal et al. (2018a); Bhandari et al. (2018) as i.i.d. sampling. More importantly, the variance reduction in VRTD also attains a substantially reduced bias error at the order of $\mathcal{O}(1 / M)$ over the vanilla TD Bhandari et al. (2018), where the bias error is at the order of $\mathcal{O}(\alpha)$ . As a result, VRTD outperforms vanilla TD in terms of the total computational complexity by a factor of $\log \frac{1}{\epsilon}$ . + +At the technical level, our analysis of bias error for Markovian sampling takes a different path from how the existing analysis of TD handles Markovian samples in Bhandari et al. (2018); Wang et al. (2017); Srikant and Ying (2019). Due to the batch average of stochastic pseudo-gradients adopted by VRTD to reduce the variance, the correlation among samples in different epochs is eliminated. Such an analysis explicitly explains why the variance reduction step helps to further reduce the bias error. + +Table 1: Comparison of performance of TD and VRTD algorithms. + +
AlgorithmVariance ErrorBias ErrorOverall Complexity
i.i.d. sampleTDO(α)NAO(1/ελ2A log (1/ε))
VRTDO(α/M)NAO(max{1/ε, 1/λ2A} log (1/ε))
Markovian sampleTDO(α)O(α)O(1/ελ2A log2 (1/ε))
VRTDO(α/M)O(1/M)O(max{1/ε, 1/ελ2A} log (1/ε))
+ +Note: The results on the performance of TD are due to Bhandari et al. (2018) and the results on the performance of VRTD (which are highlighted by the red color) are characterized by this work. + +# 1.2 RELATED WORK + +On-policy TD learning and variance reduction. On-policy TD learning aims to minimize the Mean Squared Bellman Error (MSBE) Sutton (1988) when samples are drawn independently from the stationary distribution of the corresponding MDP. The non-asymptotic convergence under i.i.d. sampling has been established in Dalal et al. (2018a) for TD with linear function approximation and for TD with overparameterized neural network approximation Cai et al. (2019). The convergence of averaged linear SA with constant stepsize has been studied in Lakshminarayanan and Szepesvari (2018). In the Markovian setting, the non-asymptotic convergence has been studied for on-policy TD in Bhandari et al. (2018); Karmakar and Bhatnagar (2016); Wang et al. (2019); Srikant and Ying (2019). Korda and La (2015) proposed a variance reduced CTD algorithm (called VRTD in this paper), which directly applies variance reduction technique to the TD algorithm. The analysis of VRTD provided in Korda and La (2015) has technical errors. The aim of this paper is to provide a technically solid analysis for VRTD to characterize the advantage of variance reduction. + +Variance reduced batch TD learning. Batch TD Lange et al. (2012) algorithms are generally designed for policy evaluation by solving an optimization problem on a fixed dataset. In Du et al. (2017), the empirical MSPBE is first transformed into a quadratic convex-concave saddle-point optimization problem and variance reduction methods of SVRG Johnson and Zhang (2013) and SAGA Defazio et al. (2014) were then incorporated into a primal-dual batch gradient method. Furthermore, Peng et al. (2019) applied two variants of variance reduction methods to solve the same saddle point problems, and showed that those two methods can save pseudo-gradient computation cost. + +We note that due to the extensive research in TD learning, we include here only studies that are highly related to our work, and cannot cover many other interesting topics on TD learning such as asymptotic convergence of TD learning Tadic (2001); Hu and Syed (2019), off-policy TD learning Sutton et al. (2008; 2009); Liu et al. (2015); Wang et al. (2017); Karmakar and Bhatnagar (2017), two time-scale TD algorithms Xu et al. (2019); Dalal et al. (2018b); Yu (2017), fitted TD algorithms Lee and He (2019), SARSA Zou et al. (2019) etc. The idea of the variance reduction algorithm proposed in Korda and La (2015) as well as the analysis techniques that we develop in this paper can potentially be useful for these algorithms. + +# 2 PROBLEM FORMULATION AND PRELIMINARIES + +# 2.1 ON-POLICY VALUE FUNCTION EVALUATION + +We describe the problem of value function evaluation over a Markov decision process (MDP) $(\mathcal{S},\mathcal{A},\mathsf{P},r,\gamma)$ , where each component is explained in the sequel. Suppose $\mathcal{S}\subset \mathbb{R}^d$ is a compact state space, and $\mathcal{A}$ is a finite action set. Consider a stationary policy $\pi$ , which maps a state $s\in S$ to the actions in $\mathcal{A}$ via a probability distribution $\pi (\cdot |s)$ . At time-step $t$ , suppose the process is in some state $s_t\in S$ , and an action $a_{t}\in \mathcal{A}$ is taken based on the policy $\pi (\cdot |s_t)$ . Then the transition kernel $\mathsf{P} = \mathsf{P}(s_{t + 1}|s_t,a_t)$ determines the probability of being at state $s_{t + 1}\in S$ in the next time-step, and the reward $r_t = r(s_t,a_t,s_{t + 1})$ is received, which is assumed to be bounded by $r_{\mathrm{max}}$ . We denote the associated Markov chain by $p(s^{\prime}|s) = \sum_{a\in \mathcal{A}}p(s^{\prime}|s,a)\pi (a|s)$ , and assume that it is ergodic. Let $\mu_{\pi}$ be the induced stationary distribution, i.e., $\sum_{s}p(s^{\prime}|s)\mu_{\pi}(s) = \mu_{\pi}(s^{\prime})$ . We define the value function for a policy $\pi$ as $v^{\pi}(s) = \mathbb{E}[\sum_{t = 0}^{\infty}\gamma^{t}r(s_{t},a_{t},s_{t + 1})|s_{0} = s,\pi ]$ , where $\gamma \in (0,1)$ is the discount + +factor. Define the Bellman operator $T^{\pi}$ for any function $\xi(s)$ as $T^{\pi}\xi(s) \coloneqq r^{\pi}(s) + \gamma \mathbb{E}_{s'|s}\xi(s')$ , where $r^{\pi}(s) = \mathbb{E}_{a,s'|s}r(s,a,s')$ is the expected reward of the Markov chain induced by the policy $\pi$ . It is known that $v^{\pi}(s)$ is the unique fixed point of the Bellman operator $T^{\pi}$ , i.e., $v^{\pi}(s) = T^{\pi}v^{\pi}(s)$ . In practice, since the MDP is unknown, the value function $v^{\pi}(s)$ cannot be directly obtained. The goal of policy evaluation is to find the value function $v^{\pi}(s)$ via sampling the MDP. + +# 2.2 TD LEARNING WITH LINEAR FUNCTION APPROXIMATION + +In order to find the value function efficiently particularly for large or infinite state space $S$ , we take the standard linear function approximation $\hat{v}(s,\theta) = \phi(s)^{\top}\theta$ of the value function, where $\phi(s)^{\top} = [\phi_1(s),\dots,\phi_d(s)]$ with $\phi_i(s)$ for $i = 1,2,\dots,d$ denoting the fixed basis feature functions of state $s$ , and $\theta \in \mathbb{R}^d$ is a parameter vector. Let $\Phi$ be the $|S|\times d$ feature matrix (with rows indexed by the state and columns corresponding to components of $\theta$ ). The linear function approximation can be written in the vector form as $\hat{v}(\theta) = \Phi\theta$ . Our goal is to find the fixed-point parameter $\theta^{*} \in \mathbb{R}^{d}$ that satisfies $\mathbb{E}_{\mu_{\pi}}\hat{v}(s,\theta^{*}) = \mathbb{E}_{\mu_{\pi}}T^{\pi}\hat{v}(s,\theta^{*})$ . The TD learning algorithm performs the following fixed-point iterative update to find such $\theta^{*}$ . + +$$ +\theta_ {t + 1} = \theta_ {t} + \alpha_ {t} g _ {x _ {t}} (\theta_ {t}) = \theta_ {t} + \alpha_ {t} \left(A _ {x _ {t}} \theta_ {t} + b _ {x _ {t}}\right), \tag {1} +$$ + +where $\alpha_{t} > 0$ is the stepsize, and $A_{x_t}$ and $b_{x_t}$ are specified below. For i.i.d. samples generated from the distribution $\mu_{\pi}$ , we denote the sample as $x_{t} = (s_{t},r_{t},s_{t}^{\prime})$ , and $A_{x_t} = \phi (s_t)(\gamma \phi (s_t^{\prime}) - \phi (s_t))^{\top}$ and $b_{x_t} = r(s_t)\phi (s_t)$ . For Markovian samples generated sequentially from a trajectory, we denote the sample as $x_{t} = (s_{t},r_{t},s_{t + 1})$ , and in this case $A_{x_t} = \phi (s_t)(\gamma \phi (s_{t + 1}) - \phi (s_t))^{\top}$ and $b_{x_t} = r(s_t)\phi (s_t)$ . We further define the mean pseudo-gradient $g(\theta) = A\theta +b$ where $A = \mathbb{E}_{\mu_{\pi}}[\phi (s)(\gamma \phi (s^{\prime}) - \phi (s))^{\top}]$ and $b = \mathbb{E}_{\mu_{\pi}}[r(s)\phi (s)]$ . We call $g(\theta)$ as pseudo-gradient for convenience due to its analogous role as in the gradient descent algorithm. It has been shown that the iteration in eq. (1) converges to the fix point $\theta^{*} = -A^{-1}b$ at a sublinear rate $\mathcal{O}(1 / t)$ with diminishing stepsize $\alpha_{t} = \mathcal{O}(1 / t)$ using both Markovian and i.i.d. samples Bhandari et al. (2018); Dalal et al. (2018a). Throughout the paper, we make the following standard assumptions Wang et al. (2017); Korda and La (2015); Tsitsiklis and Van Roy (1997); Bhandari et al. (2018). + +Assumption 1 (Problem solvability). The matrix $A$ is non-singular. + +Assumption 2 (Bounded feature). $\| \phi(s) \|_2 \leq 1$ for all $s \in S$ . + +Assumption 3 (Geometric ergodicity). The considered MDP is irreducible and aperiodic, and there exist constants $\kappa >0$ and $\rho \in (0,1)$ such that + +$$ +\sup _ {s \in \mathcal {S}} d _ {T V} (\mathbb {P} (s _ {t} \in \cdot | s _ {0} = s), \mu_ {\pi} (s)) \leq \kappa \rho^ {t}, \quad \forall t \geq 0, +$$ + +where $d_{TV}(P, Q)$ denotes the total-variation distance between the probability measures $P$ and $Q$ . + +Assumption 1 requires the matrix $A$ to be non-singular so that the optimal parameter $\theta^{*} = -A^{-1}b$ is well defined. Assumption 2 can be ensured by normalizing the basis functions $\{\phi_i\}_{i=1}^d$ . Assumption 3 holds for any time-homogeneous Markov chain with finite state-space and any uniformly ergodic Markov chains with general state space. + +# 3 THE VARIANCE REDUCED TD ALGORITHM + +In this section, we first introduce the variance-reduced TD (VRTD) algorithm proposed in Korda and La (2015) for Markovian sampling and then discuss the technical errors in the analysis of VRTD in Korda and La (2015). + +# 3.1 VRTD ALGORITHM KORDA AND LA (2015) + +Since the standard TD learning takes only one sample in each update as can be seen in eq. (1), it typically suffers from a large variance. This motivates the development of the VRTD algorithm in Korda and La (2015) (named as CTD in Korda and La (2015)). VRTD is formally presented in Algorithm 2, and we briefly introduce the idea below. The algorithm runs in a nested fashion with each inner-loop (i.e., each epoch) consists of $M$ updates. At the beginning of the $m$ -th epoch, a batch of $M$ samples are acquired and a batch pseudo-gradient $g_{m}(\tilde{\theta}_{m-1})$ is computed based on these samples as an estimator of the mean pseudo-gradient. Then, each inner-loop update randomly takes + +Algorithm 1 Variance Reduced TD with iid samples + +Input: batch size $M$ , learning rate $\alpha$ and initialization $\tilde{\theta}_0$ + +1: for $m = 1,2,\ldots ,S$ do + +2: $\theta_{m,0} = \tilde{\theta}_{m - 1}$ + +3: Sample a set $B_{m}$ with $M$ samples independently from the distribution $\mu_{\pi}$ + +4: $g_{m}(\tilde{\theta}_{m - 1}) = \frac{1}{M}\sum_{x_{i}\in B_{m}}g_{x_{i}}(\tilde{\theta}_{m - 1})$ + +5: for $t = 0,1,\dots,M - 1$ do + +6: Sample $x_{j_m,t}$ independently from the distribution $\mu_{\pi}$ + +7: $\theta_{m,t + 1} = \theta_{m,t} + \alpha \big(g_{x_{j_m,t}}(\theta_{m,t})$ + +8: $-g_{x_{j_{m,t}}}(\tilde{\theta}_{m-1}) + g_{m}(\tilde{\theta}_{m-1})$ + +9: end for + +10: set $\tilde{\theta}_m = \theta_{m,t}$ for randomly chosen $t\in$ $\{1,2,\dots,M\}$ + +11: end for + +Output: $\tilde{\theta}_{S}$ + +Algorithm 2 Variance Reduced TD with Markovian samples Korda and La (2015) + +Input: batch size $M$ , learning rate $\alpha$ and initialization $\tilde{\theta}_0$ + +1: for $m = 1,2,\dots,S$ do + +2: $\theta_{m,0} = \tilde{\theta}_{m - 1}$ + +3: $g_{m}(\tilde{\theta}_{m - 1}) = \frac{1}{M}\sum_{i = (m - 1)M}^{mM - 1}g_{x_i}(\tilde{\theta}_{m - 1})$ + +4: for $t = 0,1,\dots,M - 1$ do + +5: Sample $j_{m,t}$ uniformly at random in $\{(m - 1)M, \dots, mM - 1\}$ from trajectory + +6: $\theta_{m,t + 1} = \Pi_{R_{\theta}}\Big(\theta_{m,t} + \alpha \big(g_{x_{j_{m},t}}(\theta_{m,t})$ + +7: $-g_{x_{j_{m,t}}}\big(\tilde{\theta}_{m - 1}\big) + g_m(\tilde{\theta}_{m - 1})\big)\Big)$ + +8: end for + +9: set $\theta_{m} = \theta_{m,t}$ for randomly chosen $t\in$ $\{1,2,\dots,M\}$ + +10: end for + +Output: $\theta_{S}$ + +one sample from the batch, and updates the corresponding component in $g_{m}(\tilde{\theta}_{m-1})$ . Here, $\Pi_{R_{\theta}}$ in Algorithm 2 denotes the projection operator onto a norm ball with the radius $R_{\theta}$ . The idea is similar to the SVRG algorithm proposed in Johnson and Zhang (2013) for conventional optimization. Since a batch pseudo-gradient is used at each inner-loop update, the variance of the pseudo-gradient is expected to be reduced. + +# 3.2 TECHNICAL ERRORS IN KORDA AND LA (2015) + +In this subsection, we point out the technical errors in the analysis of VRTD in Korda and La (2015), which thus fails to provide the correct variance reduction performance for VRTD. + +At the high level, the batch pseudo-gradient $g_{m}(\tilde{\theta}_{m-1})$ computed at the beginning of each epoch $m$ should necessarily introduce a non-vanishing variance error for a fixed stepsize, because it cannot exactly equal the mean (i.e. population) pseudo-gradient $g(\tilde{\theta}_{m-1})$ . Furthermore, due to the correlation among samples, the pseudo-gradient estimator in expectation (with regard to the randomness of the sample trajectory) does not equal to the mean pseudo-gradient, which should further cause a non-vanishing bias error in the convergence bound. Unfortunately, the convergence bound in Korda and La (2015) indicates an exact convergence to the fixed point, which contradicts the aforementioned general understanding. More specifically, if the batch size $M = 1$ (with properly chosen $\lambda_{A}$ defined as $\lambda_{A} := 2|\lambda_{\max}(A + A^{\top})|$ ), VRTD reduces to the vanilla TD. However, the exact convergence result in Theorem 3 in Korda and La (2015) does not agree with that of vanilla TD characterized in the recent studies Bhandari et al. (2018), which has variance and bias errors. + +In Appendix B, we further provide a counter-example to show that one major technical step for characterizing the convergence bound in Korda and La (2015) does not hold. The goal of this paper is to provide a rigorous analysis of VRTD to characterize its variance reduction performance. + +# 4 MAIN RESULTS + +As aforementioned, the convergence of VRTD consists of two types of errors: the variance error due to inexact estimation of the mean pseudo-gradient and the bias error due to Markovian sampling. In this section, we first focus on the first type of error and study the convergence of VRTD under i.i.d. sampling. We then study the Markovian case to further analyze the bias. In both cases, we compare the performance of VRTD to that of the vanilla TD described in eq. (1) to demonstrate its advantage. + +# 4.1 CONVERGENCE ANALYSIS OF VRTD WITH I.I.D. SAMPLES + +For i.i.d. samples, it is expected that the bias error due to the time correlation among samples does not exist. However, if we directly apply VRTD (Algorithm 2) originally designed for Markovian samples, there would be a bias term due to the correlation between the batch pseudo-gradient estimate and every inner-loop updates. Thus, we slightly modify Algorithm 2 to Algorithm 1 to avoid the bias error in the convergence analysis with i.i.d. samples. Namely, at each inner-loop iteration, we draw a new sample from the stationary distribution $\mu_{\pi}$ for the update rather than randomly selecting one from the batch of samples drawn at the beginning of the epoch as in Algorithm 2. In this way, the new independent samples avoid the correlation with the batch pseudo-gradient evaluated at the beginning of the epoch. Hence, Algorithm 1 does not suffer from an extra bias error. + +To understand the convergence of Algorithm 1 at the high level, we first note that the sample batch pseudo-gradient cannot estimate the mean pseudo-gradient $g(\tilde{\theta}_{m-1})$ exactly due to its population nature. Then, we define $e_m(\tilde{\theta}_m) = g_m(\tilde{\theta}_{m-1}) - g(\tilde{\theta}_{m-1})$ as such a pseudo-gradient estimation error, our analysis (see Appendix D) shows that after each epoch update, we have + +$$ +\begin{array}{l} \mathbb {E} \left[ \left\| \tilde {\theta} _ {m} - \theta^ {*} \right\| _ {2} ^ {2} \mid F _ {m, 0} \right] \\ \leq \frac {1 / M + 4 \alpha^ {2} (1 + \gamma) ^ {2}}{\alpha \lambda_ {A} - 4 \alpha^ {2} (1 + \gamma) ^ {2}} \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {2 \alpha}{\lambda_ {A} - 4 \alpha (1 + \gamma) ^ {2}} \mathbb {E} \left[ \left\| e _ {m} (\tilde {\theta} _ {m - 1}) \right\| _ {2} ^ {2} \mid F _ {m, 0} \right], \tag {2} \\ \end{array} +$$ + +where $F_{m,0}$ denotes the $\sigma$ -field that includes all the randomness in sampling and updates before the $m$ -th epoch. The first term in the right-hand side of eq. (2) captures the contraction property of Algorithm 1 and the second term corresponds to the variance of the pseudo-gradient estimation error. It can be seen that due to such an error term, Algorithm 1 is expected to have guaranteed convergence only to a neighborhood of $\theta^{*}$ , when applying eq. (2) iteratively. Our further analysis shows that such an error term can still be well controlled (to be small) by choosing an appropriate value for the batch size $M$ , which captures the advantage of the variance reduction. The following theorem precisely characterizes the non-asymptotic convergence of Algorithm 1. + +Theorem 1. Consider the VRTD algorithm in Algorithm 1. Suppose Assumptions 1-3 hold. Set a constant stepsize $\alpha < \frac{\lambda_A}{8(1 + \gamma)^2}$ and the batch size $M > \frac{4(1 + \gamma)^2\alpha^2 + 1}{\alpha[\lambda_A - 8\alpha(1 + \gamma)^2]}$ . Then, for all $m \in \mathbb{N}$ , + +$$ +\mathbb {E} \left[ \left\| \tilde {\theta} _ {m} - \theta^ {*} \right\| _ {2} ^ {2} \right] \leq C _ {1} ^ {m} \left\| \tilde {\theta} _ {0} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {2 D _ {2} \alpha}{(1 - C _ {1}) (\lambda_ {A} - 4 \alpha (1 + \gamma) ^ {2}) M}, \tag {3} +$$ + +where $C_1 \coloneqq \left(4\alpha (1 + \gamma)^2 + \frac{4(1 + \gamma)^2\alpha^2 + 1}{\alpha M}\right)\frac{1}{\lambda_A - 4\alpha(1 + \gamma)^2}$ (with $C_1 < 1$ due to the choices of $\alpha$ and $M$ ), and $D_2 = 4((1 + \gamma)^2 R_\theta^2 + r_{\max}^2)$ . + +We note that the convergence rate in eq. (3) can be written in a simpler form as $\mathbb{E}[||\tilde{\theta}_m - \theta^* ||^2 ]\leq$ $C_1^m ||\tilde{\theta}_0 - \theta^* ||^2 +\mathcal{O}(\alpha /M)$ + +Theorem 1 shows that Algorithm 1 converges linearly (under a properly chosen constant stepsize) to a neighborhood of the fixed point solution, and the size of the neighborhood (i.e., the error term) has the order of $\mathcal{O}\left(\frac{\alpha}{M}\right)$ , which can be made as small as possible by properly increasing the batch size $M$ . This is in contrast to the convergence result of the vanilla TD, which suffers from the constant error term with order $\mathcal{O}(\alpha)$ Bhandari et al. (2018) for a fixed stepsize. Thus, a small stepsize $\alpha$ is required in vanilla TD to reduce the variance error, which, however, slows down the practical convergence significantly. In contrast, this is not a problem for VRTD, which can attain a high accuracy solution while still maintaining fast convergence at a desirable stepsize. + +We further note that if we have access to the mean pseudo-gradient $g(\tilde{\theta}_{m-1})$ in each epoch $m$ , then the error term $||\theta_m - \theta^*||_2^2$ becomes zero, and Algorithm 1 converges linearly to the exact fixed point solution, as the iteration number $m$ goes to infinity with respect to the conditional number $C_1$ , which is a positive constant and less than 1. This is similar to the conventional convergence of SVRG for strongly convex optimization Johnson and Zhang (2013). However, the proof here is very different. In Johnson and Zhang (2013), the convergence proof relies on the relationship between the gradient and the value of the objective function, but there is not such an objective function in the TD learning problem. Thus, the convergence of the parameter $\theta$ needs to be developed by exploiting the structure of the Bellman operator. + +Based on the convergence rate of VRTD characterized in Theorem 1 under i.i.d. sampling, we obtain the following bound on the overall computational complexity. + +Corollary 1. Suppose Assumptions 1-3 hold. Let $\alpha = \frac{\lambda_A}{16(1 + \gamma)^2}$ , $M = \lceil \max \left\{\frac{D_2}{3(1 - C_1)}\frac{1}{\epsilon},\frac{33(1 + \gamma)^2}{\lambda_A^2}\right\} \rceil$ . Then, for any $\epsilon >0$ , an $\epsilon$ -accuracy solution (i.e., $\mathbb{E}||\tilde{\theta}_m - \theta^* ||^2\leq \epsilon$ ) can be attained with at most $m = \lceil \log \frac{2\|\tilde{\theta}_0 - \theta^*\|_2^2}{\epsilon}\big{/}\log \frac{1}{C_1}\rceil$ iterations. Correspondingly, the total number of pseudo-gradient computations required by VRTD (i.e., Algorithm 1) under i.i.d. sampling to attain such an $\epsilon$ -accuracy solution is at most + +$$ +\mathcal {O} \left(\max \left\{\frac {1}{\epsilon}, \frac {1}{\lambda_ {A} ^ {2}} \right\} \log \left(\frac {1}{\epsilon}\right)\right). +$$ + +Proof. Given the values of $\alpha$ and $M$ in the theorem, it can be easily checked that $\mathbb{E}||\tilde{\theta}_m - \theta^*\| ^2\leq \epsilon$ for $m = \lceil \log \frac{2\|\tilde{\theta}_0 - \theta^*\|_2^2}{\epsilon}\big / \log \frac{1}{C_1}\rceil$ Then the total number of pseudo-gradient computations is given by $2mM$ that yields the desired order given in the theorem. + +As a comparison, consider the vanilla TD algorithm studied in Bhandari et al. (2018) with the constant stepsize $\alpha = O(\epsilon)$ . If the samples are i.i.d. generated, it can be shown (see Appendix F.1) that the vanilla TD requires $\mathcal{O}\left(\frac{1}{\epsilon\lambda_A^2}\log \left(\frac{1}{\epsilon}\right)\right)$ pseudo-gradient computations in total to obtain an $\epsilon$ -accuracy solution. Clearly, VRTD has lower computational complexity than vanilla TD if $\lambda_{A}$ is small. Such a comparison is similar in nature to the comparison between SVRG Johnson and Zhang (2013) and SGD in traditional optimization, where SVRG achieves better computational complexity than SGD for strongly convex objectives if the conditional number of the loss is small. + +# 4.2 CONVERGENCE ANALYSIS OF VRTD WITH MAKOVIAN SAMPLES + +In this section, we study the VRTD algorithm (i.e., Algorithm 2) with Markovian samples, in which samples are generated from one single MDP path. In such a case, we expect that the convergence of VRTD to have both the variance error due to the pseudo-gradient estimation (similar to the case with i.i.d. samples) and the bias error due to the correlation among samples. To understand this at the high level, we define the bias at each iteration as $\xi_{m}(\theta) = (\theta -\theta^{*})^{\top}(g_{m}(\theta) - g(\theta))$ . Then our analysis (see Appendix E) shows that after the update of each epoch, we have + +$$ +\begin{array}{l} \mathbb {E} \left[ \left\| \tilde {\theta} _ {m} - \theta^ {*} \right\| _ {2} ^ {2} \mid F _ {m, 0} \right] \\ \leq \frac {1 / M + 3 \alpha^ {2} (1 + \gamma) ^ {2}}{\alpha \lambda_ {A} - 3 \alpha^ {2} (1 + \gamma) ^ {2}} \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {3 \alpha}{\lambda_ {A} - 3 \alpha (1 + \gamma) ^ {2}} \mathbb {E} \left[ \| g _ {m} (\theta^ {*}) \| _ {2} ^ {2} \mid F _ {m, 0} \right] \\ + \frac {2}{\left[ \lambda_ {A} - 3 \alpha (1 + \gamma) ^ {2} \right] M} \sum_ {i = 0} ^ {M - 1} \mathbb {E} \left[ \xi_ {m} \left(\theta_ {m, i}\right) \mid F _ {m, 0} \right] \tag {4} \\ \end{array} +$$ + +The first term on the right-hand side of eq. (4) captures the epochwise contraction property of Algorithm 2. The second term is due to the variance of the pseudo-gradient estimation, which captures how well the batch pseudo-gradient $g_{m}(\theta^{*})$ approximates the mean pseudo-gradient $g(\theta^{*})$ (note that $g(\theta^{*}) = 0$ ). Such a variance term can be shown to decay to zero as the batch size gets large similarly to the i.i.d. case. The third term captures the bias introduced by the correlation among samples in the $m$ -th epoch. To quantitatively understand this error term, we provide the following lemma that characterizes how the bias error is controlled by the batch size $M$ . + +Lemma 1. For any $m > 0$ and any $\theta \in B_{\theta}$ , which is a ball with the radius $R_{\theta}$ , we have + +$$ +\mathbb {E} [ \xi_ {m} (\theta) ] \leq \frac {\lambda_ {A}}{4} \mathbb {E} [ \| \theta - \theta^ {*} \| _ {2} ^ {2} | \mathcal {F} _ {n, 0} ] + \frac {8 [ 1 + (\kappa - 1) \rho ]}{\lambda_ {A} (1 - \rho) M} [ R _ {\theta} ^ {2} (1 + \gamma) ^ {2} + r _ {\max} ^ {2} ], +$$ + +where the expectation is over the random trajectory, $\theta$ is treated as a fixed variable, and $0 < C_0 < \infty$ is a constant depending only on the MDP. + +Lemma 1 shows that the bias error diminishes as the batch size $M$ increases and the algorithm approaches to the fixed point $\theta^{*}$ . To explain why this happens, the definition of $\xi_{m}(\theta)$ immediately yields the following bound: + +$$ +\xi_ {m} (\theta) \leq \frac {1}{\lambda_ {A}} \| g _ {n} (\theta) - g (\theta) \| _ {2} ^ {2} + \frac {\lambda_ {A}}{4} \| \theta - \theta^ {*} \| _ {2} ^ {2}. \tag {5} +$$ + +The first term on the right-hand-side of eq. (5) can be bounded by the concentration property for the ergodic process as $g_{m}(\theta) = \frac{1}{M}\sum_{i = (m - 1)M}^{mM - 1}g_{x_{i}}(\theta)\stackrel {a.s.}{\rightarrow}g(\theta)$ . As $M$ increases, the randomness due to the pseudo-gradient estimation is essentially averaged out due to the variance reduction step in VRTD, which implicitly eliminates its correlation from samples in the previous epochs. + +As a comparison, the bias error in vanilla TD has been shown to be bounded by $\mathbb{E}[\xi_n(\theta)] = \mathcal{O}(\alpha \log (1 / \alpha))$ Bhandari et al. (2018). In order to reduce the bias and achieve a high convergence accuracy, the stepsize $\alpha$ is required to be small, which causes the algorithm to run very slowly. The advantage of VRTD is that the bias can be reduced by choosing a sufficiently large batch size $M$ so that the stepsize can still be kept at a desirable constant to guarantee fast convergence. + +Theorem 2. Consider the VRTD algorithm in Algorithm 2. Suppose Assumptions 1-3 hold. Set the constant stepsize $\alpha < \frac{\lambda_A}{12(1 + \gamma)^2}$ and the batch size $M > \frac{1}{0.5\alpha\lambda_A - 6\alpha^2(1 + \gamma)^2}$ . Then, we have + +$$ +\mathbb {E} \left[ \left\| \tilde {\theta} _ {m} - \theta^ {*} \right\| _ {2} ^ {2} \right] \leq C _ {1} ^ {m} \left\| \tilde {\theta} _ {0} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {3 C _ {4} \alpha + C _ {2} / \lambda_ {A}}{\left(1 - C _ {1}\right) \left[ 0 . 5 \lambda_ {A} - 3 \alpha (1 + \gamma) ^ {2} \right] M}, \tag {6} +$$ + +where $C_1 = \frac{1 / M + 3\alpha^2(1 + \gamma)^2}{0.5\alpha\lambda_A - 3\alpha^2(1 + \gamma)^2}$ (with $C_1 < 1$ due to the choices for $\alpha$ and $M$ ), $C_2 = \frac{16[1 + (\kappa - 1)\rho][R_\theta^2(1 + \gamma)^2 + r_{\mathrm{max}}^2]}{1 - \rho}$ and $C_4 = [(1 + \gamma)R_\theta +r_{\mathrm{max}}]^2 +\frac{2\rho\kappa G[(1 + \gamma)R_\theta + r_{\mathrm{max}}]}{1 - \rho}$ . + +We note that the convergence rate in eq. (6) can be written in a simpler form as $\mathbb{E}[||\tilde{\theta}_m - \theta^* ||^2 ]\leq$ $C_1^m ||\tilde{\theta}_0 - \theta^* ||^2 +\mathcal{O}(1 / M)$ + +Theorem 2 shows that VRTD (i.e., Algorithm 2) with Markovian samples converges to a neighborhood of $\theta^{*}$ at a linear rate, and the size of the neighborhood (i.e., the convergence error) decays sublinearly with the batch size $M$ . More specifically, the first term in the right-hand side of eq. (6) captures the linear convergence of the algorithm, the second term corresponds to the sum of the cumulative pseudogradient estimation error and the cumulative bias error. For the fixed stepsize, the total convergence error is dominated by the sum of those two error terms with the order $\mathcal{O}(1 / M)$ . Therefore, the variance reduction in Algorithm 2 reduces both the variance and the bias of the pseudo-gradient estimator. + +Based on the convergence rate of VRTD characterized in Theorem 2 under Markovian sampling, we obtain the following bound on the corresponding computational complexity. + +Corollary 2. Suppose Assumptions 1-3 hold. Let $\alpha = \frac{\lambda_A}{24(1 + \gamma)^2}$ and $M = \lceil (\frac{32C_2 + 4C_4}{3(1 - C_1)} +100(1+$ $\gamma)^2)\max \{\frac{1}{\epsilon},\frac{1}{\epsilon\lambda_A^2}\} \rceil$ . Then, for any $\epsilon >0$ , an $\mathcal{E}$ -accuracy solution (i.e., $\mathbb{E}||\tilde{\theta}_m - \theta^* ||^2\leq \epsilon)$ can be attained with at most $m = \lceil \log \frac{2\|\tilde{\theta}_0 - \theta^*\|_2^2}{\epsilon} /\log \frac{1}{C_1}\rceil$ iterations. Correspondingly, the total number of pseudo-gradient computations required by VRTD (i.e., Algorithm 2) under Markovian sampling to attain such an $\mathcal{E}$ -accuracy solution is at most + +$$ +\mathcal {O} \left(\max \left\{\frac {1}{\epsilon}, \frac {1}{\epsilon \lambda_ {A} ^ {2}} \right\} \log \frac {1}{\epsilon}\right). +$$ + +Proof. Given the values of $\alpha$ and $M$ in the theorem, it can be easily checked that $\mathbb{E}||\tilde{\theta}_m - \theta^*\| ^2\leq \epsilon$ for $m = \lceil \log \frac{2\|\tilde{\theta}_0 - \theta^*\|_2^2}{\epsilon} /\log \frac{1}{C_1}\rceil$ . Then the total number of pseudo-gradient computations is given by $2mM$ that yields the desired order given in the theorem. + +As a comparison, consider the vanilla TD algorithm studied in Bhandari et al. (2018) with the constant stepsize $\alpha = O(\epsilon / \log(1/\epsilon))$ . Under Markovian sampling, it can be shown (see Appendix F.2) that vanilla TD requires $\mathcal{O}\left(\frac{1}{\epsilon \lambda_A^2} \log^2\left(\frac{1}{\epsilon}\right)\right)$ pseudo-gradient computations in total to obtain an $\epsilon$ -accuracy + +solution. Hence, in the Markovian setting, VRTD outperforms vanilla TD in terms of the total computational complexity by a factor of $\log \frac{1}{\epsilon}$ . To intuitively explain, we first note that the correlation among data samples in the Markovian case also causes a bias error in addition to the variance error. For VRTD, due to the variance reduction scheme, the bias and variance errors are kept at the same level (with respect to the batch size) so that the bias error does not cause order-level increase in the computational complexity for VRTD. However, for vanilla TD, the bias error dominates the variance error, which turns out to require more iterations to attain an $\epsilon$ -accurate solution, and yields an additional $\log \frac{1}{\epsilon}$ factor in the total complexity compared to VRTD. + +# 5 EXPERIMENTS + +In this section, we provide numerical results to verify our theoretical results. Note that in Appendix A, we provide further experiments on two problems in OpenAI Gym Brockman et al. (2016) and one experiment to demonstrate that VRTD is more sample-efficient than vanilla TD. + +We consider an MDP with $\gamma = 0.95$ and $|S| = 50$ . Each transition probability is randomly sampled from [0,1] and the transitions were normalized to one. The expected reward for each transition is also generated randomly in [0,1] and the reward on each transition was sampled without noise. Each component of the feature matrix $\Phi \in \mathbb{R}^{50\times 4}$ is randomly and uniformly sampled between 0 and 1. The baseline for comparison is the vanilla TD algorithm, which corresponds to the case with $M = 1$ in our figure. We conduct two experiments to investigate how the batch size $M$ for variance reduction affects the performance of VRTD with i.i.d. and Markovian samples. In the Markovian setting, we sample the data from a MDP trajectory. In the i.i.d. setting, we sample the data independently from the corresponding stationary distribution. In both experiments, we set the constant stepsize to be $\alpha = 0.1$ and we run the experiments for five different batch sizes: $M = 1,50,500,1000,2000$ . Our results are reported in Figure 1 and 2. All the plots report the square error over 1000 independent runs. In each case, the left figure illustrates the convergence process over the number of pseudo-gradient computations and the right figure shows the convergence errors averaged over the last 10000 iterations for different batch size values. It can be seen that in both i.i.d. and Markovian settings, the averaged error decreases as the batch size increases, which corroborates both Theorem 1 and Theorem 2. We also observe that increased batch size substantially reduces the error without much slowing down the convergence, demonstrating the desired advantage of variance reduction. Moreover, we observe that the error of VRTD with i.i.d samples is smaller than that of VRTD with Markovian samples under all batch size settings, which indicates that the correlation among Markovian samples introduces additional errors. + +![](images/28ebaa3db3c879368b05f60275480d9b299d5b0af39942f7a3aedf601c8f1d7c.jpg) +(a) left: iteration process; right: averaged convergence error + +![](images/d66ebb52a6aac15deae6c9ebcee58e02bc2d087dee5b7b7239d7155da4d6dea2.jpg) +Figure 1: Error decay of VRTD with i.i.d. sample + +# 6 CONCLUSION + +In this paper, we provided the convergence analysis for VRTD with both i.i.d. and Markovian samples. We developed a novel technique to bound the bias of the VRTD pseudo-gradient estimator. Our result demonstrates the advantage of VRTD over vanilla TD on the reduced variance and bias errors by the batch size. We anticipate that such a variance reduction technique and our analysis tools can be further applied to other RL algorithms. + +![](images/6d573902cc3f2a8564cb857ea622f333619aaef00ee6459b50339933482ac9ca.jpg) +(a) left: iteration process; right: averaged convergence error + +![](images/5df1f97f29436b647148d54502c6b6fe5c91a6afb7a2c36f90327b3a4bba96b9.jpg) +Figure 2: Error decay of VRTD with Markovian sample + +# ACKNOWLEDGMENTS + +The work was supported in part by US National Science Foundation under the grants CCF-1801855, ECCS-1818904, and CCF-1909291. The authors would like to thank Bowen Weng at the Ohio State University for the helpful discussions on the experiments. The authors would also like to thank a few anonymous reviewers for their suggestions on the analysis of the overall computational complexity as well as additional experiments, which significantly help to improve the quality of the paper. + +# REFERENCES + +Bertsekas, D. P. and Tsitsiklis, J. N. (1995). Neuro-dynamic programming: An overview. In Proceedings of 34th IEEE Conference on Decision and Control, volume 1, pages 560-564. +Bhandari, J., Russo, D., and Singal, R. (2018). A finite time analysis of temporal difference learning with linear function approximation. In Proc. Conference on Learning Theory (COLT), pages 1691-1692. +Brockman, G., Cheung, V., Pettersson, L., Schneider, J., Schulman, J., Tang, J., and Zaremba, W. (2016). OpenAI Gym. +Cai, Q., Yang, Z., Lee, J. D., and Wang, Z. (2019). Neural temporal-difference learning converges to global optima. arXiv preprint arXiv:1905.10027. +Dalal, G., Szörényi, B., Thoppe, G., and Mannor, S. (2018a). Finite sample analyses for TD (0) with function approximation. In Proc. AAAI Conference on Artificial Intelligence (AAAI). +Dalal, G., Szorenyi, B., Thoppe, G., and Mannor, S. (2018b). Finite sample analysis of two-timescale stochastic approximation with applications to reinforcement learning. In Proc. Conference on Learning Theory (COLT). +Dayan, P. and Watkins, C. (1992). Q-learning. Machine Learning, 8(3):279-292. +Dedecker, J. and Gouëzel, S. (2015). Subgaussian concentration inequalities for geometrically ergodic Markov chains. Electronic Communications in Probability, 20. +Defazio, A., Bach, F., and Lacoste-Julien, S. (2014). SAGA: A fast incremental gradient method with support for non-strongly convex composite objectives. In Advances in Neural Information Processing Systems (NIPS), pages 1646-1654. +Du, S. S., Chen, J., Li, L., Xiao, L., and Zhou, D. (2017). Stochastic variance reduction methods for policy evaluation. In Proceedings of the 34th International Conference on Machine Learning (ICML), pages 1049-1058. +Hu, B. and Syed, U. A. (2019). Characterizing the exact behaviors of temporal difference learning algorithms using Markov jump linear system theory. arXiv preprint arXiv:1906.06781. + +Johnson, R. and Zhang, T. (2013). Accelerating stochastic gradient descent using predictive variance reduction. In Proc. Advances in Neural Information Processing Systems (NIPS), pages 315-323. +Karmakar, P. and Bhatnagar, S. (2016). Dynamics of stochastic approximation with Markov iteratedependent noise with the stability of the iterates not ensured. arXiv preprint arXiv:1601.02217. +Karmakar, P. and Bhatnagar, S. (2017). Two time-scale stochastic approximation with controlled Markov noise and off-policy temporal-difference learning. Mathematics of Operations Research, 43(1):130-151. +Korda, N. and La, P. (2015). On TD (0) with function approximation: Concentration bounds and a centered variant with exponential convergence. In Proc. International Conference on Machine Learning (ICML), pages 626-634. +Lakshminarayanan, C. and Szepesvari, C. (2018). Linear stochastic approximation: How far does constant step-size and iterate averaging go? In International Conference on Artificial Intelligence and Statistics, pages 1347-1355. +Lange, S., Gabel, T., and Riedmiller, M. (2012). Batch reinforcement learning. In Reinforcement learning, pages 45-73. Springer. +Lee, D. and He, N. (2019). Target-based temporal difference learning. In International Conference on Machine Learning (ICML). +Liu, B., Liu, J., Ghavamzadeh, M., Mahadevan, S., and Petrik, M. (2015). Finite-sample analysis of proximal gradient td algorithms. In Proc. Uncertainty in Artificial Intelligence (UAI), pages 504-513. AUAI Press. +Maei, H. R. (2011). Gradient temporal-difference learning algorithms. PhD thesis, University of Alberta. +Narayanan, C. and Szepesvári, C. (2017). Finite time bounds for temporal difference learning with function approximation: Problems with some "state-of-the-art" results. Technical report. +Peng, Z., Touati, A., Vincent, P., and Precup, D. (2019). SVRG for policy evaluation with fewer gradient evaluations. arXiv preprint arXiv:1906.03704. +Rummery, G. A. and Niranjan, M. (1994). On-line $Q$ -learning Using Connectionist Systems, volume 37. University of Cambridge, Department of Engineering Cambridge, England. +Srikant, R. and Ying, L. (2019). Finite-time error bounds for linear stochastic approximation and TD learning. In Proc. Conference on Learning Theory (COLT). +Sutton, R. S. (1988). Learning to predict by the methods of temporal differences. Machine Learning, 3(1):9-44. +Sutton, R. S., Maei, H. R., Precup, D., Bhatnagar, S., Silver, D., Szepesvári, C., and Wiewiora, E. (2009). Fast gradient-descent methods for temporal-difference learning with linear function approximation. In Proc. International Conference on Machine Learning (ICML), pages 993-1000. +Sutton, R. S., Szepesvári, C., and Maei, H. R. (2008). A convergent o(n) algorithm for off-policy temporal-difference learning with linear function approximation. Advances in Neural Information Processing Systems (NIPS), 21(21):1609-1616. +Tadic, V. (2001). On the convergence of temporal-difference learning with linear function approximation. Machine Learning, 42(3):241-267. +Tsitsiklis, J. N. and Van Roy, B. (1997). Analysis of temporal-difference learning with function approximation. In Proc. Advances in Neural Information Processing Systems (NIPS), pages 1075-1081. +Wang, G., Li, B., and Giannakis, G. B. (2019). A multistep Lyapunov approach for finite-time analysis of biased stochastic approximation. arXiv preprint arXiv:1909.04299. + +Wang, Y., Chen, W., Liu, Y., Ma, Z.-M., and Liu, T.-Y. (2017). Finite sample analysis of the GTD policy evaluation algorithms in Markov setting. In Proc. Advances in Neural Information Processing Systems (NIPS), pages 5504-5513. +Xu, T., Zou, S., and Liang, Y. (2019). Two time-scale off-policy td learning: Non-asymptotic analysis over markovian samples. In Proc. Advances in Neural Information Processing Systems (NIPS), pages 10633-10643. +Yu, H. (2017). On convergence of some gradient-based temporal-differences algorithms for off-policy learning. arXiv preprint arXiv:1712.09652. +Zou, S., Xu, T., and Liang, Y. (2019). Finite-sample analysis for sarsa with linear function approximation. In Proc. Advances in Neural Information Processing Systems (NIPS), pages 8665-8675. + +# Supplementary Materials + +# A ADDITIONAL EXPERIMENTS + +In this section, we assess the practical performance of VRTD (Algorithm 2) on two problems in OpenAI Gym Brockman et al. (2016), which are Frozen Lake $(4\times 4)$ and Mountain Car. We also provide an additional experiment to demonstrate that VRTD is more sample-efficient than vanilla TD. + +# A.1 FROZEN LAKE + +Frozen Lake is a game in OpenAI Gym, which is designed by an MDP with a finite state and action space. An agent starts from the starting point at $t = 0$ and can only transport to the neighbor blocks. It returns to the start-point every time it reaches a "hole" or the "goal". The agent receives a reward 1 only when it reaches the goal and 0 otherwise. Each transition probability is randomly sampled from [0, 1] and normalized to one, and each component of the feature matrix $\varPhi \in \mathbb{R}^{16 \times 4}$ is also randomly sampled from [0, 1]. Given the feature matrix and the transition probability, the ground truth value of $\theta^*$ can be calculated, which is used to evaluate the error in the experiments. We set the stepsize to be $\alpha = 0.1$ and run vanilla TD ( $M = 1$ ) and VRTD with the batch sizes $M = 50, 500, 1000, 2000$ . Note that $M = 1$ corresponds to the base line vanilla TD. We compute the squared error over 1000 independent runs. The left plot in Figure 3 shows the convergence process over the number of pseudo-gradient computations and the right plot in Figure 3 shows the convergence error averaged over the last 10000 iterations. It can be observed that VRTD achieves much smaller error than TD, and increasing the batch size for VRTD substantially reduces the error without much slowing down the convergence. + +![](images/9e55b9b8d5e1896b884ca229513288d7ddf036f9c8df6b0920854358ffe1d267.jpg) +(a) left: iteration process; right: averaged convergence error + +![](images/baca83d386e8befab1396f8e5dd8790555a838d37194a17a24e47956d01170c5.jpg) +Figure 3: Error decay of VRTD in Frozen Lake problem + +# A.2 MOUNTAIN CAR + +Mountain Car is a game in OpenAI Gym, which is driven by an MDP with an infinite state space and a finite action space. At each time step, an agent randomly chooses an action $\in$ {push left, push right, no push}. In this problem, the ground truth value of $\theta^{*}$ is not known. In order to quantify the performance of VRTD, we apply the error metric known as the norm of the expected TD update given by $\mathrm{NEU} = \|\mathbb{E}[\delta \phi]\|_2^2$ , where $\delta$ is the temporal difference Sutton et al. (2009); Maei (2011). The state sample is transformed into a feature vector with the dimension 20 using an approximation of a RBF kernel. The agent follows a random policy in our experiment and we initialize $\theta_0 = 0$ . At $t = 0$ , the agent starts from the lowest point, receives a reward of $-1$ at each time step, and returns to the starting point every time it reaches the goal. We set the stepsize to be $\alpha = 0.2$ and run vanilla TD ( $M = 1$ ) and VRTD with batch size $M = 1000$ . After every 10000 pseudo-gradient computations, learning is paused and the NEU is computed by averaging over 1000 test samples. We conduct 1000 independent runs and the results are reported by averaging over these + +runs. Figure 4 shows the convergence process of the NEU versus the number of pseudo-gradient computations. It can be seen that VRTD achieves smaller NEU than vanilla TD. + +![](images/a1dcca46770d2af2f7eb829867a4839ecbaeb9d488fd1268d56bd99131668c10.jpg) +Figure 4: NEU decay of VRTD in Mountain Car problem + +# A.3 COMPARISON BETWEEN VRTD AND TD WITH A CHANGING STEPSIZE + +In this subsection, we provide an additional experiment to compare the performance of VRTD given in Algorithm 2 (under constant stepsize) with the TD algorithm (under a changing stepsize as suggested by the reviewer). We adopt the same setting of Frozen Lake as in Appendix A.1. Let VRTD take a batch size $M = 5000$ and stepsize $\alpha = 0.1$ . For a fair comparison, we start TD with the same constant stepsize $\alpha = 0.1$ and then reduce the stepsize by half whenever the error stops decrease. The comparison is reported in Figure 5, where both curves are averaged over 1000 independent runs. The two algorithms are compared in terms of the squared error versus the total number of pseudo-gradient computations (equivalently, the total number of samples being used). It can be seen that VRTD reaches the required accuracy much faster than TD. + +![](images/74fd710c95372215841863ef4f7f7705e7fc72260f4c3576f117e82aed463047.jpg) +Figure 5: Comparison of error decay of VRTD and TD with changing stepsize in Frozen Lake problem + +# B A COUNTER EXAMPLE + +In this section, we use a counter-example to show that one major technical step for characterizing the convergence bound in Korda and La (2015) does not hold. Consider Step 4 in the proof of Theorem 3 in Korda and La (2015). For the following defined $\epsilon(\theta)$ + +$$ +\epsilon (\theta) = \left(\theta - \theta^ {*}\right) ^ {\top} \left[ \mathbb {E} \left(v ^ {\top} v \mid \mathcal {F} _ {n}\right) - \mathbb {E} _ {\Psi , \theta_ {n}} \left(v ^ {\top} v\right) \right] \left(\theta - \theta^ {*}\right), \tag {7} +$$ + +where $\varPsi$ denotes the stationary distribution of the corresponding Markov chain, Korda and La (2015) claimed that the following inequality holds + +$$ +\left\| \epsilon (\theta) \right\| _ {2} \leq 2 H \left\| \mathbb {E} (v | \mathcal {F} _ {n}) - \mathbb {E} _ {\Psi , \theta_ {n}} (v) \right\| _ {2}. \tag {8} +$$ + +This is not correct. Consider the following counter-example. Let the batch size $M = 3$ and the dimension of the feature vector be one, i.e., $\varPhi \in \mathbb{R}^{|S| \times 1}$ . Hence, all variables in eq. (8) and eq. (7) are scalars. Since the steps for proving eq. (8) in Korda and La (2015) do not have specific requirements for the transition kernel, eq. (8) should hold for any distribution of $v$ . Thus, suppose $v$ follows the uniform distribution over $[-3, 3]$ . Further assume that in the $n$ -th epoch, the samples of $v$ are given by $\{1, 2, -3\}$ . Recall that $\mathbb{E}(\cdot | \mathcal{F}_n)$ is the average over the batch samples in the $n$ -th epoch. We have: + +$$ +\mathbb {E} _ {\Psi , \theta_ {n}} (v) = 0, \quad \mathbb {E} _ {\Psi , \theta_ {n}} (v ^ {2}) = 3, \quad \mathbb {E} (v | \mathcal {F} _ {n}) = 0, \quad \mathbb {E} (v ^ {2} | \mathcal {F} _ {n}) = \frac {1 4}{3}. +$$ + +Substituting the above values into eq. (8) yields + +$$ +\left\| \epsilon (\theta) \right\| _ {2} = \left(\frac {1 4}{3} - 3\right) \left(\theta - \theta^ {*}\right) ^ {2} \leq 2 H \times 0 = 0, \tag {9} +$$ + +which obviously does not hold in general when $\theta \neq \theta^{*}$ . Consequently the second statement in Theorem 3 of Korda and La (2015), which is critically based on the above erroneous steps, does not hold. Hence, the first statement in the same theorem whose proof is based on the second statement cannot hold either. + +# C USEFUL LEMMAS + +In the rest of the paper, for any matrix $W \in \mathbb{R}^{d \times d}$ , we denote $\| W \|_2$ as the spectral norm of $W$ and $\| W \|_F$ as the Frobenius norm of $W$ . + +Lemma 2. For any $x_{i} = (s_{i}, r_{i}, s_{i}^{\prime})$ (i.i.d. sample) or $x_{i} = (s_{i}, r_{i}, s_{i+1})$ (Markovian sample), we have $\| A_{x_{i}} \|_{2} \leq 1 + \gamma$ and $\| b_{x_{i}} \|_{2} \leq r_{\max}$ . + +Proof. First consider the case when samples are i.i.d. Due to the definition of $A_{x_i}$ , we have + +$$ +\begin{array}{l} \left\| A _ {x _ {i}} \right\| _ {2} = \left\| \phi \left(s _ {i}\right) \left(\gamma \phi \left(s _ {i} ^ {\prime}\right) - \phi \left(s _ {i}\right)\right) ^ {\top} \right\| _ {2} \\ \leq \left\| \phi (s _ {i}) \left(\gamma \phi \left(s _ {i} ^ {\prime}\right) - \phi (s _ {i})\right) ^ {\top} \right\| _ {F} \\ \leq \gamma \left\| \phi (s _ {i}) \phi (s _ {i} ^ {\prime}) ^ {\top} \right\| _ {F} + \left\| \phi (s _ {i}) \phi (s _ {i}) ^ {\top} \right\| _ {F} \\ \leq 1 + \gamma . \\ \end{array} +$$ + +Then, consider $b_{x_i}$ : + +$$ +\left\| b _ {x _ {i}} \right\| _ {2} = \left\| r _ {x _ {i}} \phi (s _ {i}) \right\| _ {2} \leq r _ {\max } \left\| \phi (s _ {i}) \right\| _ {2} \leq r _ {\max }. +$$ + +Following similar steps, we can obtain the same upper bounds for the case with Markovian samples. + +Lemma 3. Let $G = (1 + \gamma)R_{\theta} + r_{\max}$ . Consider Algorithm 2. For any $m > 0$ and $0 \leq t \leq M - 1$ , we have $\left\| g_{x_{j_m,t}}(\theta_{m,t}) \right\|_2$ , $\left\| g_{x_{j_m,t}}(\tilde{\theta}_{m-1}) \right\|_2$ , $\left\| g_m(\tilde{\theta}_{m-1}) \right\|_2 \leq G$ . + +Proof. First, we bound $\left\| g_{x_{j_m,t}}(\theta_{m,t})\right\|_2$ as follows. + +$$ +\begin{array}{l} \left\| g _ {x _ {j _ {m}, t}} \left(\theta_ {m, t}\right) \right\| _ {2} = \left\| A _ {x _ {j _ {m}, t}} \theta_ {m, t} + b _ {\theta_ {m, t}} \right\| _ {2} \\ \leq \left\| A _ {x _ {j _ {m}, t}} \right\| _ {2} \left\| \theta_ {m, t} \right\| _ {2} + \left\| b _ {\theta_ {m, t}} \right\| _ {2} \\ \leq (1 + \gamma) R _ {\theta} + r _ {\max}. \\ \end{array} +$$ + +Following the steps similar to the above, we have $\left\| g_{x_{j_m,t}}(\tilde{\theta}_{m - 1})\right\| _2\leq G.$ Finally for $\left\| g_{x_{j_m,t}}(\tilde{\theta}_{m - 1})\right\| _2$ , we have + +$$ +\left\| g _ {x _ {j _ {m}, t}} (\tilde {\theta} _ {m - 1}) \right\| _ {2} = \left\| \frac {1}{M} \sum_ {i = (m - 1) M} ^ {m M - 1} g _ {x _ {i}} (\tilde {\theta} _ {m - 1}) \right\| _ {2} +$$ + +$$ +\begin{array}{l} \leq \frac {1}{M} \sum_ {i = (m - 1) M} ^ {m M - 1} \left\| g _ {x _ {i}} (\tilde {\theta} _ {m - 1}) \right\| _ {2} \\ \leq G, \tag {10} \\ \end{array} +$$ + +where eq. (10) follows from the last fact $\left\| g_{x_{j_m,t}}(\tilde{\theta}_{m - 1})\right\| _2\leq G.$ + +Lemma 4. Define $D_{1} = 2(1 + \gamma)^{2}$ and $D_{2} = 4((1 + \gamma)^{2}R_{\theta}^{2} + r_{\max}^{2})$ . For any $\theta \in \mathbb{R}^d$ , we have $\| g_{x_i}(\theta)\| _2^2\leq D_1\| \theta -\theta^*\| _2^2 +D_2$ . + +Proof. Recalling the definition of $g_{x_i}$ , and applying Lemma 2, we have + +$$ +\begin{array}{l} \left\| g _ {x _ {i}} (\theta) \right\| _ {2} ^ {2} = \left\| A _ {x _ {i}} \theta + b _ {x _ {i}} \right\| _ {2} ^ {2} \\ = \| A _ {x _ {i}} \left(\theta - \theta^ {*}\right) + \left(A _ {x _ {i}} \theta^ {*} + b _ {x _ {i}}\right) \| _ {2} ^ {2} \\ \leq 2 \left\| A _ {x _ {i}} \left(\theta - \theta^ {*}\right) \right\| _ {2} ^ {2} + 2 \left\| A _ {x _ {i}} \theta^ {*} + b _ {x _ {i}} \right\| _ {2} ^ {2} \\ \leq 2 \left\| A _ {x _ {i}} \right\| _ {2} ^ {2} \left\| \theta - \theta^ {*} \right\| _ {2} ^ {2} + 4 \left(\left\| A _ {x _ {i}} \right\| _ {2} ^ {2} \left\| \theta^ {*} \right\| _ {2} ^ {2} + \left\| b _ {x _ {i}} \right\| _ {2} ^ {2}\right) \\ \leq 2 (1 + \gamma) ^ {2} \| \theta - \theta^ {*} \| _ {2} ^ {2} + 4 ((1 + \gamma) ^ {2} R _ {\theta} ^ {2} + r _ {\max } ^ {2}) \\ = D _ {1} \left\| \theta - \theta^ {*} \right\| _ {2} ^ {2} + D _ {2}. \\ \end{array} +$$ + +![](images/19afaa1c58ac5a589697b88779c7e375cd347778a186bf1e2e8a116e3518c286.jpg) + +Lemma 5. Considering Algorithm 2 with Markovian samples. We have $\| \mathbb{E}[A_j|P_i] - A\| _F\leq (1 + \gamma)\kappa \rho^{j - i}$ and $\| \mathbb{E}[b_j|P_i] - b\| _2\leq r_{\max}\kappa \rho^{j - i}$ for $0 < i < j$ + +Proof. We first derive + +$$ +\begin{array}{l} \left\| \mathbb {E} \left[ A _ {j} \mid P _ {i} \right] - A \right\| _ {F} = \left\| \int A _ {x _ {i}} d P (x _ {i} \mid P _ {j}) - \int A _ {x _ {i}} d \mu_ {\pi} \right\| _ {F} \\ \leq \int \left\| A _ {x _ {i}} d P \left(x _ {i} \mid P _ {j}\right) - A _ {x _ {i}} d \mu_ {\pi} \right\| _ {F} \\ \leq \int \| A _ {x _ {i}} \| _ {F} | d P (x _ {i} | P _ {j}) - d \mu_ {\pi} | \\ \leq (1 + \gamma) \| P (x _ {i} | P _ {j}), \mu_ {\pi} \| _ {T V} \\ \leq (1 + \gamma) \kappa \rho^ {j - i}. \\ \end{array} +$$ + +Following the steps similar to the above, we can derive $\| \mathbb{E}[b_j | P_i] - b \|_2 \leq 2r_{\max} \kappa \rho^{j-i}$ . + +![](images/dd9d0e1a0b7ec5d4f7180024ae34fd766d80215c7b0147e236030d30cb7a74cb.jpg) + +# D PROOF OF THEOREM 1: CONVERGENCE OF VRTD WITH I.I.D. SAMPLES + +Recall that $B_{m}$ is the sample batch drawn at the beginning of each $m$ -th epoch and $x_{i,j}$ denotes the sample picked at the $j$ -th iteration in the $i$ -th epoch in Algorithm 1. We denote $\sigma(\tilde{\theta}_{0})$ as a trivial $\sigma$ -field when $\tilde{\theta}_{0}$ is a deterministic vector. Let $\sigma(A \cup B)$ indicate the smallest $\sigma$ -field that contains both $A$ and $B$ . Then, we construct a set of $\sigma$ -fields in the following incremental way. + +$$ +F _ {1, 0} = \sigma (\tilde {\theta} _ {0}), F _ {1, 1} = \sigma \left(F _ {1, 0} \cup \sigma \left(B _ {1}\right) \cup \sigma \left(x _ {1, 1}\right)\right), \dots , F _ {1, M} = \sigma \left(F _ {1, (M - 1)} \cup \sigma \left(x _ {1, M}\right)\right), +$$ + +$$ +F _ {2, 0} = \sigma (F _ {1, M} \cup \sigma (\tilde {\theta} _ {1})), F _ {2 1} = \sigma (F _ {2, 0} \cup \sigma (B _ {2}) \cup \sigma (x _ {2, 1})), \dots , F _ {2, m} = \sigma (F _ {2, (M - 1)} \cup \sigma (x _ {2, M})), +$$ + +中 + +$$ +F _ {m, 0} = \sigma \big (F _ {(m - 1), M} \cup \sigma (\tilde {\theta} _ {m - 1}) \big), F _ {m 1} = \sigma \big (F _ {m, 0} \cup \sigma (B _ {m}) \cup \sigma (x _ {m, 1}) \big), \dots , F _ {m, M} = \sigma \big (F _ {m, (M - 1)} \cup \sigma (x _ {m, M}) \big). +$$ + +The proof of Theorem 1 proceeds along the following steps. + +Step 1: Iteration within the $m$ -th epoch + +For the $m$ -th epoch, we consider the last update (i.e., the $M$ -th iteration in the epoch), and decompose its error into the following form. + +$$ +\begin{array}{l} \| \theta_ {m, M} - \theta^ {*} \| _ {2} ^ {2} = \left\| \theta_ {m, M - 1} + \alpha \Big (g _ {x _ {j _ {m}, M}} (\theta_ {m, M - 1}) - g _ {x _ {j _ {m}, M}} (\tilde {\theta} _ {m - 1}) + g _ {m} (\tilde {\theta} _ {m - 1}) \Big) - \theta^ {*} \right\| _ {2} ^ {2} \\ = \| \theta_ {m, M - 1} - \theta^ {*} \| _ {2} ^ {2} + 2 \alpha (\theta_ {m, M - 1} - \theta^ {*}) ^ {\top} \left(g _ {x _ {j _ {m}, M}} (\theta_ {m, M - 1}) - g _ {x _ {j _ {m}, M}} (\tilde {\theta} _ {m - 1}) + g _ {m} (\tilde {\theta} _ {m - 1})\right) \\ + \alpha^ {2} \left\| g _ {x _ {j _ {m}, M}} \left(\theta_ {m, M - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\tilde {\theta} _ {m - 1}\right) + g _ {m} \left(\tilde {\theta} _ {m - 1}\right) \right\| _ {2} ^ {2}. \tag {11} \\ \end{array} +$$ + +First, consider the third term in the right-hand side of eq. (11), we have + +$$ +\begin{array}{l} \left\| g _ {x _ {j _ {m}, M}} \left(\theta_ {m, M - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\tilde {\theta} _ {m - 1}\right) + g _ {m} \left(\tilde {\theta} _ {m - 1}\right) \right\| _ {2} ^ {2} \\ \leq 2 \left\| g _ {x _ {j _ {m}, M}} \left(\theta_ {m, M - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\tilde {\theta} _ {m - 1}\right) + g \left(\tilde {\theta} _ {m - 1}\right) \right\| _ {2} ^ {2} + 2 \left\| g _ {m} \left(\tilde {\theta} _ {m - 1}\right) - g \left(\tilde {\theta} _ {m - 1}\right) \right\| _ {2} ^ {2} \\ = 2 \left\| g _ {x _ {j _ {m}, M}} \left(\theta_ {m, M - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\theta^ {*}\right) - \left[ \left(g _ {x _ {j _ {m}, M}} \left(\tilde {\theta} _ {m - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\theta^ {*}\right)\right) - \left(g \left(\tilde {\theta} _ {m - 1}\right) - g \left(\theta^ {*}\right)\right) \right] \right\| _ {2} ^ {2} \\ + 2 \left\| g _ {m} \left(\tilde {\theta} _ {m - 1}\right) - g \left(\tilde {\theta} _ {m - 1}\right) \right\| _ {2} ^ {2} \\ \leq 4 \left\| g _ {x _ {j _ {m}, M}} \left(\theta_ {m, M - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\theta^ {*}\right) \right\| _ {2} ^ {2} + 4 \left\| \left(g _ {x _ {j _ {m}, M}} \left(\tilde {\theta} _ {m - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\theta^ {*}\right)\right) - \left(g \left(\tilde {\theta} _ {m - 1}\right) - g \left(\theta^ {*}\right)\right) \right\| _ {2} ^ {2} \\ + 2 \left\| g _ {m} \left(\tilde {\theta} _ {m - 1}\right) - g \left(\tilde {\theta} _ {m - 1}\right) \right\| _ {2} ^ {2}. \tag {12} \\ \end{array} +$$ + +Then, by taking the expectation conditioned on $F_{m,M - 1}$ on both sides of eq. (12), we have + +$$ +\mathbb {E} \left[ \left\| g _ {x _ {j _ {m}, M}} \left(\theta_ {m, M - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\tilde {\theta} _ {m - 1}\right) + g _ {m} \left(\tilde {\theta} _ {m - 1}\right) \right\| _ {2} ^ {2} \mid F _ {m, M - 1} \right] +$$ + +$$ +\begin{array}{l} \stackrel {(i)} {\leq} 4 \mathbb {E} \left[ \left\| g _ {x _ {j _ {m}, M}} \left(\theta_ {m, M - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\theta^ {*}\right) \right\| _ {2} ^ {2} \mid F _ {m, M - 1} \right] \\ + 4 \mathbb {E} \left[ \left\| \left(g _ {x _ {j _ {m}, M}} \left(\tilde {\theta} _ {m - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\theta^ {*}\right)\right) - \mathbb {E} \left[ g _ {x _ {j _ {m}, M}} \left(\tilde {\theta} _ {m - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\theta^ {*}\right) \mid F _ {m, M - 1} \right] \right\| _ {2} ^ {2} \mid F _ {m, M - 1} \right] \\ + 2 \mathbb {E} \left[ \left\| g _ {m} (\tilde {\theta} _ {m - 1}) - g (\tilde {\theta} _ {m - 1}) \right\| _ {2} ^ {2} \mid F _ {m, M - 1} \right] \\ \end{array} +$$ + +$$ +\begin{array}{l} \stackrel {(i i)} {\leq} 4 (1 + \gamma) ^ {2} \mathbb {E} \left[ \| \theta_ {m, M - 1} - \theta^ {*} \| _ {2} ^ {2} | F _ {m, M - 1} \right] + 4 (1 + \gamma) ^ {2} \mathbb {E} \left[ \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} | F _ {m, M - 1} \right] \\ + 2 \mathbb {E} \left[ \left\| g _ {m} \left(\tilde {\theta} _ {m - 1}\right) - g \left(\tilde {\theta} _ {m - 1}\right) \right\| _ {2} ^ {2} \mid F _ {m, M - 1} \right] \\ \end{array} +$$ + +where $(i)$ follows from the fact that $\mathbb{E}[(g_{x_{j_m,M}}(\tilde{\theta}_{m-1}) - g_{x_{j_m,M}}(\theta^*))|F_{m,M-1}] = g(\tilde{\theta}_{m-1}) - g(\theta^*)$ , and $(ii)$ follows from the inequality $\mathbb{E}[(X - \mathbb{E}X)^2] \leq \mathbb{E}X^2$ and Lemma 2. Then, taking the expectation conditioned on $F_{m,M-1}$ on both sides of eq. (11) yields + +$$ +\mathbb {E} \left[ \left\| \theta_ {m, M} - \theta^ {*} \right\| _ {2} ^ {2} \mid F _ {m, M - 1} \right] +$$ + +$$ +\begin{array}{l} = \| \theta_ {m, M - 1} - \theta^ {*} \| _ {2} ^ {2} + 2 \alpha \left(\theta_ {m, M - 1} - \theta^ {*}\right) ^ {\top} \mathbb {E} \left[ g _ {x _ {j _ {m}, M}} \left(\theta_ {m, M - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\tilde {\theta} _ {m - 1}\right) + g _ {m} \left(\tilde {\theta} _ {m - 1}\right) \Big | F _ {m, M - 1} \right] \\ + \alpha^ {2} \mathbb {E} \left[ \left\| g _ {x _ {j _ {m}, M}} \left(\theta_ {m, M - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\tilde {\theta} _ {m - 1}\right) + g _ {m} \left(\tilde {\theta} _ {m - 1}\right) \right\| _ {2} ^ {2} \mid F _ {m, M - 1} \right] \\ \end{array} +$$ + +$$ +\begin{array}{l} \stackrel {(i)} {\leq} \left\| \theta_ {m, M - 1} - \theta^ {*} \right\| _ {2} ^ {2} + 2 \alpha \left(\theta_ {m, M - 1} - \theta^ {*}\right) ^ {\top} g \left(\theta_ {m, M - 1}\right) \\ + 2 \alpha \left(\theta_ {m, M - 1} - \theta^ {*}\right) ^ {\top} \left(\mathbb {E} \left[ g _ {m} \left(\tilde {\theta} _ {m - 1}\right) \mid F _ {m, M - 1} \right] - g \left(\tilde {\theta} _ {m - 1}\right)\right) \\ + 4 \alpha^ {2} (1 + \gamma) ^ {2} \| \theta_ {m, M - 1} - \theta^ {*} \| _ {2} ^ {2} + 4 \alpha^ {2} (1 + \gamma) ^ {2} \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} \\ \end{array} +$$ + +$$ +\begin{array}{l} + 2 \alpha^ {2} \mathbb {E} \left[ \left\| g _ {m} \left(\tilde {\theta} _ {m - 1}\right) - g \left(\tilde {\theta} _ {m - 1}\right) \right\| _ {2} ^ {2} \mid F _ {m, M - 1} \right] \\ \stackrel {(i i)} {\leq} \left\| \theta_ {m, M - 1} - \theta^ {*} \right\| _ {2} ^ {2} - \alpha \lambda_ {A} \left\| \theta_ {m, M - 1} - \theta^ {*} \right\| _ {2} ^ {2} + 2 \alpha \mathbb {E} \left[ \xi_ {m} (\tilde {\theta} _ {m - 1}) \Big | F _ {m, M - 1} \right] \\ + 4 \alpha^ {2} (1 + \gamma) ^ {2} \| \theta_ {m, M - 1} - \theta^ {*} \| _ {2} ^ {2} + 4 \alpha^ {2} (1 + \gamma) ^ {2} \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} \\ + 2 \alpha^ {2} \mathbb {E} \left[ \left\| g _ {m} \left(\tilde {\theta} _ {m - 1}\right) - g \left(\tilde {\theta} _ {m - 1}\right) \right\| _ {2} ^ {2} \mid F _ {m, M - 1} \right] \\ \end{array} +$$ + +$$ +\begin{array}{l} \stackrel {(i i i)} {\leq} \left\| \theta_ {m, M - 1} - \theta^ {*} \right\| _ {2} ^ {2} - \left[ \alpha \lambda_ {A} - 4 \alpha^ {2} (1 + \gamma) ^ {2} \right] \left\| \theta_ {m, M - 1} - \theta^ {*} \right\| _ {2} ^ {2} + 4 \alpha^ {2} (1 + \gamma) ^ {2} \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} \\ + 2 \alpha \mathbb {E} \left[ \xi_ {m} \left(\tilde {\theta} _ {m - 1}\right) \mid F _ {m, M - 1} \right] + 2 \alpha^ {2} \mathbb {E} \left[ \left\| g _ {m} \left(\tilde {\theta} _ {m - 1}\right) - g \left(\tilde {\theta} _ {m - 1}\right) \right\| _ {2} ^ {2} \mid F _ {m, M - 1} \right], \tag {13} \\ \end{array} +$$ + +where $(i)$ follows from the fact that $\mathbb{E}\left[g_{x_{j_{m,M}}}(\tilde{\theta}_{m - 1})\big|F_{m,M - 1}\right] = g(\tilde{\theta}_{m - 1})$ . In (ii) we define $\lambda_{A}$ as the absolute value of the largest eigenvalue of matrix $(A^T + A)$ , which is negative definite according to Tsitsiklis and Van Roy (1997). In (iii) we define $\xi_{m}(\theta) = (\theta - \theta^{*})^{\top}(g_{m}(\theta) - g(\theta))$ for $\theta \in \mathbb{R}^d$ . Then, by applying eq. (13) iteratively, we have + +$$ +\begin{array}{l} \mathbb {E} \left[ \left\| \theta_ {m, 1} - \theta^ {*} \right\| _ {2} ^ {2} \mid F _ {m, 0} \right] \\ \leq \| \theta_ {m, 0} - \theta^ {*} \| _ {2} ^ {2} - [ \alpha \lambda_ {A} - 4 \alpha^ {2} (1 + \gamma) ^ {2} ] \sum_ {i = 0} ^ {M - 1} \mathbb {E} \left[ \| \theta_ {m, i} - \theta^ {*} \| _ {2} ^ {2} | F _ {m, 0} \right] + 4 M \alpha^ {2} (1 + \gamma) ^ {2} \| \tilde {\theta} _ {m - 1} - \theta^ {*} \| _ {2} ^ {2} \\ + 2 \alpha M \mathbb {E} \left[ \xi_ {m} \left(\tilde {\theta} _ {m - 1}\right) \mid F _ {m, 0} \right] + 2 M \alpha^ {2} \mathbb {E} \left[ \left\| g _ {m} \left(\tilde {\theta} _ {m - 1}\right) - g \left(\tilde {\theta} _ {m - 1}\right) \right\| _ {2} ^ {2} \mid F _ {m, 0} \right]. \tag {14} \\ \end{array} +$$ + +For all $1 \leq i \leq M$ , we have + +$$ +\begin{array}{l} \mathbb {E} \left[ \xi_ {m} (\tilde {\theta} _ {m - 1}) \mid F _ {m, 0} \right] = \mathbb {E} \left[ g _ {m} (\tilde {\theta} _ {m - 1}) \mid F _ {m, 0} \right] - g (\tilde {\theta} _ {m - 1}) \\ = \frac {1}{M} \sum_ {i \in B _ {m}} \mathbb {E} \left[ A _ {x _ {i}} \tilde {\theta} _ {m} + b _ {x _ {i}} \mid F _ {m, 0} \right] - (A \tilde {\theta} _ {m} + b) \\ = \left[ \left(\frac {1}{M} \sum_ {i \in B _ {m}} \mathbb {E} [ A _ {x _ {i}} | F _ {m, 0} ]\right) - A \right] \tilde {\theta} _ {m} + \left[ \left(\frac {1}{M} \sum_ {i \in B _ {m}} \mathbb {E} [ b _ {x _ {i}} | F _ {m, 0} ]\right) - b \right] \\ = 0. \\ \end{array} +$$ + +Then, arranging terms in eq. (14) and using the above fact yield + +$$ +\begin{array}{l} \left[ \alpha \lambda_ {A} - 4 \alpha^ {2} (1 + \gamma) ^ {2} \right] \sum_ {i = 0} ^ {M - 1} \mathbb {E} \left[ \| \theta_ {m, i} - \theta^ {*} \| _ {2} ^ {2} \mid F _ {m, 0} \right] \\ \leq \left[ 1 + 4 M \alpha^ {2} (1 + \gamma) ^ {2} \right] \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} + 2 M \alpha^ {2} \mathbb {E} \left[ \left\| g _ {m} (\tilde {\theta} _ {m - 1}) - g (\tilde {\theta} _ {m - 1}) \right\| _ {2} ^ {2} \mid F _ {m, 0} \right]. \tag {15} \\ \end{array} +$$ + +Finally, dividing eq. (15) by $[\alpha \lambda_A - 4\alpha^2 (1 + \gamma)^2 ]M$ on both sides yields + +$$ +\begin{array}{l} \mathbb {E} \left[ \left\| \tilde {\theta} _ {m} - \theta^ {*} \right\| _ {2} ^ {2} \mid F _ {m, 0} \right] \\ \leq \frac {1 / M + 4 \alpha^ {2} (1 + \gamma) ^ {2}}{\alpha \lambda_ {A} - 4 \alpha^ {2} (1 + \gamma) ^ {2}} \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {2 \alpha}{\lambda_ {A} - 4 \alpha (1 + \gamma) ^ {2}} \mathbb {E} \left[ \left\| g _ {m} (\tilde {\theta} _ {m - 1}) - g (\tilde {\theta} _ {m - 1}) \right\| _ {2} ^ {2} \mid F _ {m, 0} \right]. \tag {16} \\ \end{array} +$$ + +# Step 2: Bounding the variance error + +For any $0 \leq k \leq m - 1$ , we have + +$$ +\mathbb {E} \left[ \left\| g _ {m} \left(\tilde {\theta} _ {m - 1}\right) - g \left(\tilde {\theta} _ {m - 1}\right) \right\| _ {2} ^ {2} \mid F _ {m, 0} \right] \tag {17} +$$ + +$$ +\begin{array}{l} = \mathbb {E} \left[ \left\| \frac {1}{M} \sum_ {i \in B _ {m}} g _ {x _ {i}} (\tilde {\theta} _ {m - 1}) - g (\tilde {\theta} _ {m - 1}) \right\| _ {2} ^ {2} \Big | F _ {m, 0} \right] = \frac {1}{M ^ {2}} \mathbb {E} \left[ \left\| \sum_ {i \in B _ {m}} g _ {x _ {i}} (\tilde {\theta} _ {m - 1}) - g (\tilde {\theta} _ {m - 1}) \right\| _ {2} ^ {2} \Big | F _ {m, 0} \right] \\ = \frac {1}{M ^ {2}} \mathbb {E} \left[ \left(\sum_ {i \in B _ {m}} g _ {x _ {i}} (\tilde {\theta} _ {m - 1}) - g (\tilde {\theta} _ {m - 1})\right) ^ {\top} \left(\sum_ {j \in B _ {m}} g _ {x _ {j}} (\tilde {\theta} _ {m - 1}) - g (\tilde {\theta} _ {m - 1})\right) \Big | F _ {m, 0} \right] \\ = \frac {1}{M ^ {2}} \sum_ {i \in B _ {m}} \sum_ {j \in B _ {m}} \mathbb {E} \left[ \left\langle g _ {x _ {i}} (\tilde {\theta} _ {m - 1}) - g (\tilde {\theta} _ {m - 1}), g _ {x _ {j}} (\tilde {\theta} _ {m - 1}) - g (\tilde {\theta} _ {m - 1}) \right\rangle \mid F _ {m, 0} \right] \\ = \frac {1}{M ^ {2}} \sum_ {i = j} \mathbb {E} \left[ \left\| g _ {x _ {i}} (\tilde {\theta} _ {m - 1}) - g (\tilde {\theta} _ {m - 1}) \right\| _ {2} ^ {2} \Big | F _ {m, 0} \right] \\ = \frac {1}{M ^ {2}} \sum_ {i = j} \mathbb {E} \left[ \left\| g _ {x _ {i}} (\tilde {\theta} _ {m - 1}) - \mathbb {E} \left[ g _ {x _ {i}} (\tilde {\theta} _ {m - 1}) \right\rvert F _ {m, 0} \right] \right\| _ {2} \left| F _ {m, 0} \right] \\ \leq \frac {1}{M ^ {2}} \sum_ {i = j} \mathbb {E} \left[ \left\| g _ {x _ {i}} \left(\tilde {\theta} _ {m - 1}\right) \right\| _ {2} ^ {2} \mid F _ {m, 0} \right] \leq \frac {1}{M} \left(D _ {1} \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} + D _ {2}\right), \tag {18} \\ \end{array} +$$ + +where eq. (18) follows from Lemma 4. + +# Step 3: Iteration over $m$ epochs + +First, we substitute eq. (18) into eq. (16) to obtain + +$$ +\mathbb {E} \left[ \left\| \tilde {\theta} _ {m} - \theta^ {*} \right\| _ {2} ^ {2} \mid F _ {m, 0} \right] \leq C _ {1} \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {2 D _ {2} \alpha}{\left(\lambda_ {A} - 4 \alpha (1 + \gamma) ^ {2}\right) M}, \tag {19} +$$ + +where we define $C_1 = \left(4\alpha (1 + \gamma)^2 +\frac{2D_1\alpha^2 + 1}{\alpha M}\right)\frac{1}{\lambda_A - 4\alpha(1 + \gamma)^2}.$ + +Taking the expectation of eq. (19) conditioned on $F_{m - 1,0}$ and following the steps similar to those in step 1 to upper bound $\mathbb{E}\left[\left\| \tilde{\theta}_{m - 1} - \theta^{*}\right\|_{2}^{2}\big|F_{m - 1,0}\right]$ , we obtain + +$$ +\begin{array}{l} \mathbb {E} \left[ \left\| \tilde {\theta} _ {m} - \theta^ {*} \right\| _ {2} ^ {2} \mid F _ {m - 1, 0} \right] \leq C _ {1} \mathbb {E} \left[ \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} \mid F _ {m - 1, 0} \right] + \frac {2 D _ {2} \alpha}{(\lambda_ {A} - 4 \alpha (1 + \gamma) ^ {2}) M} \\ \leq C _ {1} ^ {2} \left\| \tilde {\theta} _ {m - 2} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {2 D _ {2} \alpha}{(\lambda_ {A} - 4 \alpha (1 + \gamma) ^ {2}) M} \sum_ {k = 0} ^ {1} C _ {1} ^ {k}. \\ \end{array} +$$ + +Then, by following the above steps for $(m - 1)$ times, we have + +$$ +\begin{array}{l} \mathbb {E} \left[ \left\| \tilde {\theta} _ {m} - \theta^ {*} \right\| _ {2} ^ {2} \right] \leq C _ {1} ^ {m} \left\| \tilde {\theta} _ {0} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {2 D _ {2} \alpha}{(\lambda_ {A} - 4 \alpha (1 + \gamma) ^ {2}) M} \sum_ {k = 0} ^ {m - 1} C _ {1} ^ {k} \\ \leq C _ {1} ^ {m} \left\| \tilde {\theta} _ {0} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {2 D _ {2} \alpha}{(1 - C _ {1}) (\lambda_ {A} - 4 \alpha (1 + \gamma) ^ {2}) M}, \\ \end{array} +$$ + +which yields the desirable result. + +# E PROOF OF THEOREM 2: CONVERGENCE OF VRTD WITH MARKOVIAN SAMPLES + +We define $\sigma(S_i)$ to be the $\sigma$ -field of all samples up to the $i$ -th epoch and recall that $j_{m,t}$ is the index of the sample picked at the $t$ -th iteration in the $m$ -th epoch in Algorithm 2. Then we define a set of $\sigma$ -fields in the following incremental way: + +$$ +F _ {1, 0} = \sigma (S _ {0}), F _ {1, 1} = \sigma \left(F _ {1, 0} \cup \sigma \left(j _ {1, 1}\right)\right), \dots , F _ {1, M} = \sigma \left(F _ {1, (M - 1)} \cup \sigma \left(j _ {1, M}\right)\right), +$$ + +$$ +F _ {2, 0} = \sigma \left(\sigma \left(S _ {1}\right) \cup F _ {1, M} \cup \sigma \left(\tilde {\theta} _ {1}\right)\right), F _ {2 1} = \sigma \left(F _ {2, 0} \cup \sigma \left(j _ {2, 1}\right),..., F _ {2, m} = \sigma \left(F _ {2, (M - 1)} \cup \sigma \left(j _ {2, M}\right)\right), \right. +$$ + +: + +$$ +F _ {m, 0} = \sigma (\sigma (S _ {m - 1}) \cup F _ {(m - 1), M} \cup \sigma (\tilde {\theta} _ {m - 1})), F _ {m, 1} = \sigma (F _ {m, 0} \cup \sigma (j _ {m, 1})), \dots , F _ {m, M} = \sigma (F _ {m, (M - 1)} \cup \sigma (j _ {m, M})). +$$ + +# E.1 PROOF OF LEMMA 1 + +We first prove Lemma 1, which is useful for step 4 in the main proof in Theorem 2 provided in Section E.2. + +Proof. Recall the definition of the bias term: $\xi_n(\theta) = (\theta - \theta^*)^\top (g_n(\theta) - g(\theta))$ . We have + +$$ +\begin{array}{l} \mathbb {E} \left[ \xi_ {n} (\theta) | \mathcal {F} _ {n, 0} \right] \\ = \mathbb {E} \left[ \left(\theta - \theta^ {*}\right) ^ {\top} \left(g _ {n} (\theta) - g (\theta)\right) | \mathcal {F} _ {n, 0} \right] \\ = \mathbb {E} \left[ \left(\theta - \theta^ {*}\right) ^ {\top} \left[ \left(\frac {1}{M} \sum_ {i = (n - 1) M} ^ {n M - 1} A _ {x _ {i}} - A\right) \theta + \left(\frac {1}{M} \sum_ {i = (n - 1) M} ^ {n M - 1} b _ {x _ {i}} - b\right) \right] \mid \mathcal {F} _ {n, 0} \right] \\ \leq \frac {\lambda_ {A}}{4} \mathbb {E} [ \| \theta - \theta^ {*} \| _ {2} ^ {2} | \mathcal {F} _ {n, 0} ] + \frac {1}{\lambda_ {A}} \mathbb {E} \left[ \left\| \left(\frac {1}{M} \sum_ {i = (n - 1) M} ^ {n M - 1} A _ {x _ {i}} - A\right) \theta + \left(\frac {1}{M} \sum_ {i = (n - 1) M} ^ {n M - 1} b _ {x _ {i}} - b\right) \right\| _ {2} ^ {2} \middle | \mathcal {F} _ {n, 0} \right] \\ \leq \frac {\lambda_ {A}}{4} \mathbb {E} [ \| \theta - \theta^ {*} \| _ {2} ^ {2} | \mathcal {F} _ {n, 0} ] + \frac {2}{\lambda_ {A}} \mathbb {E} \left[ \left\| \left(\frac {1}{M} \sum_ {i = (n - 1) M} ^ {n M - 1} A _ {x _ {i}} - A\right) \theta \right\| _ {2} ^ {2} \middle | \mathcal {F} _ {n, 0} \right] \\ + \frac {2}{\lambda_ {A}} \mathbb {E} \left[ \left\| \frac {1}{M} \sum_ {i = (n - 1) M} ^ {n M - 1} b _ {x _ {i}} - b \right\| _ {2} ^ {2} \middle | \mathcal {F} _ {n, 0} \right] \\ \leq \frac {\lambda_ {A}}{4} \mathbb {E} [ \| \theta - \theta^ {*} \| _ {2} ^ {2} | \mathcal {F} _ {n, 0} ] + \frac {2 R _ {\theta} ^ {2}}{\lambda_ {A}} \mathbb {E} \left[ \left\| \frac {1}{M} \sum_ {i = (n - 1) M} ^ {n M - 1} A _ {x _ {i}} - A \right\| _ {2} ^ {2} \Bigg | \mathcal {F} _ {n, 0} \right] \\ + \frac {2}{\lambda_ {A}} \mathbb {E} \left[ \left| \left| \frac {1}{M} \sum_ {i = (n - 1) M} ^ {n M - 1} b _ {x _ {i}} - b \right| \right| _ {2} ^ {2} \middle | \mathcal {F} _ {n, 0} \right] \\ \stackrel {(i)} {\leq} \frac {\lambda_ {A}}{4} \mathbb {E} [ \| \theta - \theta^ {*} \| _ {2} ^ {2} | \mathcal {F} _ {n, 0} ] + \frac {2 R _ {\theta} ^ {2}}{\lambda_ {A}} \mathbb {E} \left[ \left\| \frac {1}{M} \sum_ {i = (n - 1) M} ^ {n M - 1} A _ {x _ {i}} - A \right\| _ {F} ^ {2} \Bigg | \mathcal {F} _ {n, 0} \right] \\ + \frac {2}{\lambda_ {A}} \mathbb {E} \left[ \left\| \frac {1}{M} \sum_ {i = (n - 1) M} ^ {n M - 1} b _ {x _ {i}} - b \right\| _ {2} ^ {2} \mid \mathcal {F} _ {n, 0} \right], \tag {20} \\ \end{array} +$$ + +where $(i)$ follows from the fact that $\| W\| _2\leq \| W\| _F$ for all matrices $W\in \mathbb{R}^{d\times d}$ . We define the interproduct between two matrices $W,V\in \mathbb{R}^{d\times d}$ as $\langle W,V\rangle = \sum_{ij}\sum_{ij}W_{ij}V_{ij}$ . Consider the second term in eq. (20): $\mathbb{E}\left[\left\| \frac{1}{M}\sum_{i = (n - 1)M}^{nM - 1}A_{x_i} - A\right\| _F^2\big|\mathcal{F}_{n,0}\right]$ , we have + +$$ +\begin{array}{l} \mathbb {E} \left[ \left\| \frac {1}{M} \sum_ {i = (n - 1) M} ^ {n M - 1} A _ {x _ {i}} - A \right\| _ {F} ^ {2} \mid \mathcal {F} _ {n, 0} \right] \\ = \frac {1}{M ^ {2}} \sum_ {i = (n - 1) M} ^ {n M - 1} \sum_ {j = (n - 1) M} ^ {n M - 1} \mathbb {E} [ \langle A _ {x _ {i}} - A, A _ {x _ {j}} - A \rangle | \mathcal {F} _ {n, 0} ] \\ = \frac {1}{M ^ {2}} \Big [ \sum_ {i = j} \mathbb {E} [ \| A _ {x _ {i}} - A \| _ {F} ^ {2} | \mathcal {F} _ {n, 0} ] + \sum_ {i \neq j} \mathbb {E} [ \langle A _ {x _ {i}} - A, A _ {x _ {j}} - A \rangle | \mathcal {F} _ {n, 0} ] \Big ] \\ \end{array} +$$ + +$$ +\begin{array}{l} \leq \frac {1}{M ^ {2}} \Big [ \sum_ {i = j} \mathbb {E} [ (\| A _ {x _ {i}} \| _ {F} + \| A \| _ {F}) ^ {2} | \mathcal {F} _ {n, 0} ] + \sum_ {i \neq j} \mathbb {E} [ \langle A _ {x _ {i}} - A, A _ {x _ {j}} - A \rangle | \mathcal {F} _ {n, 0} ] \Big ] \\ \leq \frac {1}{M ^ {2}} \left[ 4 (1 + \gamma) ^ {2} M + \sum_ {i \neq j} \mathbb {E} [ \langle A _ {x _ {i}} - A, A _ {x _ {j}} - A \rangle | \mathcal {F} _ {n, 0} ]. \right] \tag {21} \\ \end{array} +$$ + +Now consider upper bound the term $\mathbb{E}[\langle A_{x_i} - A,A_{x_j} - A\rangle |\mathcal{F}_{n,0}]$ in eq. (21). Without loss of generality, we consider the case when $i > j$ as follows: + +$$ +\begin{array}{l} \mathbb {E} [ \langle A _ {x _ {i}} - A, A _ {x _ {j}} - A \rangle | \mathcal {F} _ {n, 0} ] \\ = \mathbb {E} \left[ \mathbb {E} \left[ \langle A _ {x _ {i}} - A, A _ {x _ {j}} - A \rangle | x _ {j} \right] \mid \mathcal {F} _ {n, 0} \right] \\ = \mathbb {E} \left[ \left\langle \mathbb {E} \left[ A _ {x _ {i}} \mid x _ {j} \right] - A, A _ {x _ {j}} - A \right\rangle \middle | \mathcal {F} _ {n, 0} \right] \\ \leq \mathbb {E} \left[ \left\| \mathbb {E} \left[ A _ {x _ {i}} \mid x _ {j} \right] - A \right\| _ {F} \left\| A _ {x _ {j}} - A \right\| _ {F} \middle | \mathcal {F} _ {n, 0} \right] \\ \leq \mathbb {E} \left[ \left\| \mathbb {E} \left[ A _ {x _ {i}} \mid x _ {j} \right] - A \right\| _ {F} \left(\left\| A _ {x _ {j}} \right\| _ {F} + \| A \| _ {F}\right) \Big | \mathcal {F} _ {n, 0} \right] \\ \leq 2 (1 + \gamma) \mathbb {E} \left[ \left\| \mathbb {E} \left[ A _ {x _ {i}} \mid x _ {j} \right] - A \right\| _ {F} \mid \mathcal {F} _ {n, 0} \right] \\ \leq 2 \kappa (1 + \gamma) ^ {2} \rho^ {i - j}. \\ \end{array} +$$ + +We can further obtain + +$$ +\begin{array}{l} \sum_ {i \neq j} \mathbb {E} [ \langle A _ {x _ {i}} - A, A _ {x _ {j}} - A \rangle | \mathcal {F} _ {n, 0} ] \leq 2 \kappa (1 + \gamma) ^ {2} \sum_ {i \neq j} \rho^ {| i - j |} \leq 2 \kappa (1 + \gamma) ^ {2} \sum_ {k = 1} ^ {M - 1} \sum_ {l = 1} ^ {k} \rho^ {l} \\ \leq 2 \kappa (1 + \gamma) ^ {2} \frac {2 \rho}{1 - \rho} \sum_ {k = 1} ^ {M - 1} \left(1 - \rho^ {k}\right) \leq \frac {4 (1 + \gamma) ^ {2} M \kappa \rho}{1 - \rho}. \tag {22} \\ \end{array} +$$ + +Then substituting eq. (22) into eq. (21) yields + +$$ +\mathbb {E} \left[ \left\| \frac {1}{M} \sum_ {i = (n - 1) M} ^ {n M - 1} A _ {x _ {i}} - A \right\| _ {F} ^ {2} \Bigg | \mathcal {F} _ {n, 0} \right] \leq \frac {1}{M} \left[ 4 (1 + \gamma) ^ {2} + \frac {4 (1 + \gamma) ^ {2} \kappa \rho}{1 - \rho} \right]. +$$ + +Then consider the third term in eq. (20): $\mathbb{E}\left[\left\| \frac{1}{M}\sum_{i = (n - 1)M}^{nM - 1}b_{x_i} - b\right\| _2^2\bigg|\mathcal{F}_{n,0}\right]$ , similarly we have + +$$ +\begin{array}{l} \mathbb {E} \left[ \left\| \frac {1}{M} \sum_ {i = (n - 1) M} ^ {n M - 1} b _ {x _ {i}} - b \right\| _ {2} ^ {2} \middle | \mathcal {F} _ {n, 0} \right] \\ = \frac {1}{M ^ {2}} \sum_ {i = (n - 1) M} ^ {n M - 1} \sum_ {j = (n - 1) M} ^ {n M - 1} \mathbb {E} \left[ \left(b _ {x _ {i}} - b\right) ^ {\top} \left(b _ {x _ {j}} - b\right) \mid \mathcal {F} _ {n, 0} \right] \\ = \frac {1}{M ^ {2}} \left[ \sum_ {i = j} \mathbb {E} [ \| b _ {x _ {i}} - b \| _ {2} ^ {2} | \mathcal {F} _ {n, 0} ] + \sum_ {i \neq j} \mathbb {E} [ (b _ {x _ {i}} - b) ^ {\top} (b _ {x _ {j}} - b) | \mathcal {F} _ {n, 0} ] \right] \\ \leq \frac {1}{M ^ {2}} \left[ \sum_ {i = j} \mathbb {E} \left[ \left(\| b _ {x _ {i}} \| _ {2} + \| b \| _ {2}\right) ^ {2} | \mathcal {F} _ {n, 0} \right] + \sum_ {i \neq j} \mathbb {E} \left[ \left(b _ {x _ {i}} - b\right) ^ {\top} \left(b _ {x _ {j}} - b\right) | \mathcal {F} _ {n, 0} \right] \right] \\ \leq \frac {1}{M ^ {2}} \left[ 4 r _ {\max } ^ {2} M + \sum_ {i \neq j} \mathbb {E} \left[ \left(b _ {x _ {i}} - b\right) ^ {\top} \left(b _ {x _ {j}} - b\right) \mid \mathcal {F} _ {n, 0} \right] \right. \tag {23} \\ \end{array} +$$ + +Now to upper-bound the term $\mathbb{E}[(b_{x_i} - b)^\top (b_{x_j} - b)|\mathcal{F}_{n,0}]$ , without loss of generality, we assume $i > j$ + +$$ +\mathbb {E} \left[ \left(b _ {x _ {i}} - b\right) ^ {\top} \left(b _ {x _ {j}} - b\right) \mid \mathcal {F} _ {n, 0} \right] +$$ + +$$ +\begin{array}{l} = \mathbb {E} \left[ \mathbb {E} \left[ \left(b _ {x _ {i}} - b\right) ^ {\top} \left(b _ {x _ {j}} - b\right) | x _ {j} \right] \mid \mathcal {F} _ {n, 0} \right] \\ = \mathbb {E} \left[ \left(\mathbb {E} \left[ b _ {x _ {i}} \mid x _ {j} \right] - b\right) ^ {\top} \left(b _ {x _ {j}} - b\right) \Big | \mathcal {F} _ {n, 0} \right] \\ \leq \mathbb {E} \left[ \left| \left| \mathbb {E} \left[ b _ {x _ {i}} \mid x _ {j} \right] - b \right| \right| _ {2} \left| \left| b _ {x _ {j}} - b \right| \right| _ {2} \middle | \mathcal {F} _ {n, 0} \right] \\ \leq \mathbb {E} \left[ \left| \left| \mathbb {E} \left[ b _ {x _ {i}} \mid x _ {j} \right] - b \right| \right| _ {2} \left(\left| \left| b _ {x _ {j}} \right| \right| _ {2} - \| b \| _ {2}\right) \right| \mathcal {F} _ {n, 0} \Bigg ] \\ \leq 2 r _ {\max } \mathbb {E} \left[ \left| \left| \mathbb {E} \left[ b _ {x _ {i}} \mid x _ {j} \right] - b \right| \right| _ {2} \middle | \mathcal {F} _ {n, 0} \right] \\ \leq 2 \kappa r _ {\max } ^ {2} \rho^ {i - j}. \\ \end{array} +$$ + +Thus, we have + +$$ +\begin{array}{l} \sum_ {i \neq j} \mathbb {E} [ (b _ {x _ {i}} - b) ^ {\top} (b _ {x _ {j}} - b) | \mathcal {F} _ {n, 0} ] \leq 2 \kappa r _ {\max } ^ {2} \sum_ {i \neq j} \rho^ {| i - j |} \leq 2 \kappa r _ {\max } ^ {2} \sum_ {k = 1} ^ {M - 1} \sum_ {l = 1} ^ {k} \rho^ {l} \\ \leq 2 \kappa r _ {\max } ^ {2} \frac {2 \rho}{1 - \rho} \sum_ {k = 1} ^ {M - 1} \left(1 - \rho^ {k}\right) \leq \frac {4 r _ {\max } ^ {2} M \kappa \rho}{1 - \rho}. \tag {24} \\ \end{array} +$$ + +Combing all of the above pieces together yields the following final bound + +$$ +\mathbb {E} \left[ \xi_ {n} (\theta) \mid \mathcal {F} _ {n, 0} \right] \leq \frac {\lambda_ {A}}{4} \mathbb {E} [ \| \theta - \theta^ {*} \| _ {2} ^ {2} \mid \mathcal {F} _ {n, 0} ] + \frac {8 [ 1 + (\kappa - 1) \rho ]}{\lambda_ {A} (1 - \rho) M} \left[ R _ {\theta} ^ {2} (1 + \gamma) ^ {2} + r _ {\max } ^ {2} \right]. \tag {25} +$$ + +![](images/9ee0090c2657622c23bdc4bb14540f57d09004bc1b82592820999609c19f0820.jpg) + +# E.2 PROOF OF THEOREM 2 + +# Step 1: Iteration within the $m$ -th inner loop + +For the $m$ -th inner loop, we consider the last update (i.e., the $M$ -th iteration in the epoch), and decompose its error into the following form. + +$$ +\begin{array}{l} \left\| \theta_ {m, M} - \theta^ {*} \right\| _ {2} ^ {2} = \left\| \Pi_ {R _ {\theta}} \left(\theta_ {m, M - 1} + \alpha \left(g _ {x _ {j _ {m}, M}} \left(\theta_ {m, M - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\tilde {\theta} _ {m - 1}\right) + g _ {m} \left(\tilde {\theta} _ {m - 1}\right)\right)\right) - \theta^ {*} \right\| _ {2} ^ {2} \\ \leq \left\| \theta_ {m, M - 1} + \alpha \left(g _ {x _ {j _ {m}, M}} \left(\theta_ {m, M - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\tilde {\theta} _ {m - 1}\right) + g _ {m} \left(\tilde {\theta} _ {m - 1}\right)\right) - \theta^ {*} \right\| _ {2} ^ {2} \\ = \| \theta_ {m, M - 1} - \theta^ {*} \| _ {2} ^ {2} + 2 \alpha (\theta_ {m, M - 1} - \theta^ {*}) ^ {\top} \left(g _ {x _ {j _ {m}, M}} (\theta_ {m, M - 1}) - g _ {x _ {j _ {m}, M}} (\tilde {\theta} _ {m - 1}) + g _ {m} (\tilde {\theta} _ {m - 1})\right) \\ + \alpha^ {2} \left\| g _ {x _ {j _ {m}, M}} \left(\theta_ {m, M - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\tilde {\theta} _ {m - 1}\right) + g _ {m} \left(\tilde {\theta} _ {m - 1}\right) \right\| _ {2} ^ {2}. \tag {26} \\ \end{array} +$$ + +First, consider the third term in the right-hand side of eq. (26). + +$$ +\begin{array}{l} \left\| g _ {x _ {j _ {m}, M}} \left(\theta_ {m, M - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\tilde {\theta} _ {m - 1}\right) + g _ {m} \left(\tilde {\theta} _ {m - 1}\right) \right\| _ {2} ^ {2} \\ = \left\| g _ {x _ {j _ {m}, M}} \left(\theta_ {m, M - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\theta^ {*}\right) - \left[ \left(g _ {x _ {j _ {m}, M}} \left(\tilde {\theta} _ {m - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\theta^ {*}\right)\right) - \left(g _ {m} \left(\tilde {\theta} _ {m - 1}\right) - g _ {m} \left(\theta^ {*}\right)\right) \right] + g _ {m} \left(\theta^ {*}\right) \right\| _ {2} ^ {2} \\ \leq 3 \left\| g _ {x _ {j _ {m}, M}} \left(\theta_ {m, M - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\theta^ {*}\right) \right\| _ {2} ^ {2} + 3 \left\| \left(g _ {x _ {j _ {m}, M}} \left(\tilde {\theta} _ {m - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\theta^ {*}\right)\right) - \left(g _ {m} \left(\tilde {\theta} _ {m - 1}\right) - g _ {m} \left(\theta^ {*}\right)\right) \right\| _ {2} ^ {2} \\ + 3 \left\| g _ {m} \left(\theta^ {*}\right) \right\| _ {2} ^ {2}. \tag {27} \\ \end{array} +$$ + +Then, by taking the expectation conditioned on $F_{m,(M - 1)}$ on both sides of eq. (27), we have + +$$ +\begin{array}{l} \mathbb {E} \left[ \left\| g _ {x _ {j _ {m, M}}} \left(\theta_ {m, M - 1}\right) - g _ {x _ {j _ {m, M}}} \left(\tilde {\theta} _ {m - 1}\right) + g _ {m} \left(\tilde {\theta} _ {m - 1}\right) \right\| _ {2} ^ {2} \mid F _ {m, M - 1} \right] \\ \stackrel {(i)} {\leq} 3 \mathbb {E} \left[ \left\| g _ {x _ {j _ {m}, M}} \left(\theta_ {m, M - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\theta^ {*}\right) \right\| _ {2} ^ {2} \mid F _ {m, M - 1} \right] \\ + 3 \mathbb {E} \left[ \left\| \left(g _ {x _ {j _ {m}, M}} (\tilde {\theta} _ {m - 1}) - g _ {x _ {j _ {m}, M}} (\theta^ {*})\right) - \mathbb {E} \left[ g _ {x _ {j _ {m}, M}} (\tilde {\theta} _ {m - 1}) - g _ {x _ {j _ {m}, M}} (\theta^ {*}) | F _ {m, M - 1} \right] \right\| _ {2} ^ {2} \middle | F _ {m, M - 1} \right] \\ \end{array} +$$ + +$$ ++ 3 \mathbb {E} \left[ \| g _ {m} \left(\theta^ {*}\right) \| _ {2} ^ {2} \mid F _ {m, M - 1} \right] +$$ + +$$ +\leq 3 \mathbb {E} \left[ \left\| g _ {x _ {j _ {m}, M}} (\theta_ {m, M - 1}) - g _ {x _ {j _ {m}, M}} (\theta^ {*}) \right\| _ {2} ^ {2} \Big | F _ {m, M - 1} \right] + 3 \mathbb {E} \left[ \left\| g _ {x _ {j _ {m}, M}} (\tilde {\theta} _ {m - 1}) - g _ {x _ {j _ {m}, M}} (\theta^ {*}) \right\| _ {2} ^ {2} \Big | F _ {m, M - 1} \right] +$$ + +$$ +\begin{array}{l} \stackrel {(i i)} {\leq} 3 \mathbb {E} \left[ \| A _ {m, M} \| _ {2} ^ {2} \| \theta_ {m, M - 1} - \theta^ {*} \| _ {2} ^ {2} \Big | F _ {m, M - 1} \right] + 3 \mathbb {E} \left[ \| A _ {m, M} \| _ {2} ^ {2} \Big \| \tilde {\theta} _ {m - 1} - \theta^ {*} \Big \| _ {2} ^ {2} \Big | F _ {m, M - 1} \right] \\ + 3 \mathbb {E} \left[ \| g _ {m} \left(\theta^ {*}\right) \| _ {2} ^ {2} \mid F _ {1, 0} \right] \\ \end{array} +$$ + +$$ +\leq 3 (1 + \gamma) ^ {2} \| \theta_ {m, M - 1} - \theta^ {*} \| _ {2} ^ {2} + 3 (1 + \gamma) ^ {2} \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} + 3 \mathbb {E} \left[ \| g _ {m} (\theta^ {*}) \| _ {2} ^ {2} \mid F _ {1, 0} \right] \tag {28} +$$ + +where $(i)$ follows from the fact that $\mathbb{E}[(g_{x_{j_m,M}}(\tilde{\theta}_{m-1}) - g_{x_{j_m,M}}(\theta^*))|F_{m,M-1}] = g_m(\tilde{\theta}_{m-1}) - g_m(\theta^*)$ , $(ii)$ follows from the inequality $\mathbb{E}[(X - \mathbb{E}X)^2] \leq \mathbb{E}X^2$ , and $(iii)$ follows from Lemma 2. We further consider the last term in eq. (28): + +$$ +\mathbb {E} \left[ \| g _ {m} (\theta^ {*}) \| _ {2} ^ {2} \mid F _ {1, 0} \right] = \left\| \left(\frac {1}{M} \sum_ {i = (m - 1) M} ^ {m M - 1} A _ {i}\right) \theta^ {*} + \left(\frac {1}{M} \sum_ {i = (m - 1) M} ^ {m M - 1} b _ {i}\right) \right\| _ {2} ^ {2}. +$$ + +Then, taking the expectation conditioned on $F_{m,M - 1}$ on both sides of eq. (26) yields + +$$ +\mathbb {E} \left[ \| \theta_ {m, M} - \theta^ {*} \| _ {2} ^ {2} \mid F _ {m, M - 1} \right] +$$ + +$$ +\begin{array}{l} \leq \| \theta_ {m, M - 1} - \theta^ {*} \| _ {2} ^ {2} + 2 \alpha (\theta_ {m, M - 1} - \theta^ {*}) ^ {\top} \mathbb {E} \left[ g _ {x _ {j _ {m}, M}} (\theta_ {m, M - 1}) - g _ {x _ {j _ {m}, M}} (\tilde {\theta} _ {m - 1}) + g _ {m} (\tilde {\theta} _ {m - 1}) \Big | F _ {m, M - 1} \right] \\ + \alpha^ {2} \mathbb {E} \left[ \left\| g _ {x _ {j _ {m}, M}} \left(\theta_ {m, M - 1}\right) - g _ {x _ {j _ {m}, M}} \left(\tilde {\theta} _ {m - 1}\right) + \tilde {g} _ {m} \right\| _ {2} ^ {2} \mid F _ {m, M - 1} \right] \\ \end{array} +$$ + +$$ +\begin{array}{l} \stackrel {(i)} {\leq} \| \theta_ {m, M - 1} - \theta^ {*} \| _ {2} ^ {2} + 2 \alpha (\theta_ {m, M - 1} - \theta^ {*}) ^ {\top} \mathbb {E} \left[ g _ {x _ {j _ {m}, M}} (\theta_ {m, M - 1}) \Big | F _ {m, M - 1} \right] + 3 \alpha^ {2} (1 + \gamma) ^ {2} \| \theta_ {m, M - 1} - \theta^ {*} \| _ {2} ^ {2} \\ + 3 \alpha^ {2} (1 + \gamma) ^ {2} \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} + 3 \alpha^ {2} \mathbb {E} \left[ \| g _ {m} (\theta^ {*}) \| _ {2} ^ {2} \mid F _ {1, 0} \right] \\ \end{array} +$$ + +$$ +\begin{array}{l} \stackrel {(i i)} {=} \| \theta_ {m, M - 1} - \theta^ {*} \| _ {2} ^ {2} + 2 \alpha (\theta_ {m, M - 1} - \theta^ {*}) ^ {\top} g (\theta_ {m, M - 1}) + 2 \alpha \mathbb {E} \left[ \xi_ {m} (\theta_ {m, M - 1}) \Big | F _ {m, M - 1} \right] \\ + 3 \alpha^ {2} (1 + \gamma) ^ {2} \| \theta_ {m, M - 1} - \theta^ {*} \| _ {2} ^ {2} + 3 \alpha^ {2} (1 + \gamma) ^ {2} \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} + 3 \alpha^ {2} \mathbb {E} \left[ \| g _ {m} (\theta^ {*}) \| _ {2} ^ {2} \mid F _ {1, 0} \right] \\ \end{array} +$$ + +$$ +\begin{array}{l} \leq \left\| \theta_ {m, M - 1} - \theta^ {*} \right\| _ {2} ^ {2} - \left[ \alpha \lambda_ {A} - 3 \alpha^ {2} (1 + \gamma) ^ {2} \right] \left\| \theta_ {m, M - 1} - \theta^ {*} \right\| _ {2} ^ {2} + 3 \alpha^ {2} (1 + \gamma) ^ {2} \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} \\ + 2 \alpha \mathbb {E} \left[ \xi_ {m} \left(\theta_ {m, M - 1}\right) \mid F _ {m, M - 1} \right] + 3 \alpha^ {2} \mathbb {E} \left[ \| g _ {m} \left(\theta^ {*}\right) \| _ {2} ^ {2} \mid F _ {1, 0} \right], \tag {29} \\ \end{array} +$$ + +where $(i)$ follows by plugging eq. (28) into its preceding step and from the fact that $\mathbb{E}\left[g_{x_{j_m,M}}(\tilde{\theta}_{m-1}) - g_m(\tilde{\theta}_{m-1})\Big|F_{m,M-1}\right] = 0$ . In $(ii)$ we define $\xi_m(\theta) = (\theta - \theta^*)^\top(g_m(\theta) - g(\theta))$ for $\theta \in \mathbb{R}^d$ . Then, by applying eq. (29) iteratively, we have + +$$ +\begin{array}{l} \mathbb {E} \left[ \left\| \theta_ {m, 1} - \theta^ {*} \right\| _ {2} ^ {2} \Big | F _ {m, 0} \right] \\ \leq \| \theta_ {m, 0} - \theta^ {*} \| _ {2} ^ {2} - [ \alpha \lambda_ {A} - 3 \alpha^ {2} (1 + \gamma) ^ {2} ] \sum_ {i = 0} ^ {M - 1} \mathbb {E} \left[ \| \theta_ {m, i} - \theta^ {*} \| _ {2} ^ {2} | F _ {m, 0} \right] + 3 M \alpha^ {2} (1 + \gamma) ^ {2} \| \tilde {\theta} _ {m - 1} - \theta^ {*} \| _ {2} ^ {2} \\ + 2 \alpha \sum_ {i = 0} ^ {M - 1} \mathbb {E} \left[ \xi_ {m} \left(\theta_ {m, i}\right) \mid F _ {m, 0} \right] + 3 M \alpha^ {2} \mathbb {E} \left[ \| g _ {m} \left(\theta^ {*}\right) \| _ {2} ^ {2} \mid F _ {1, 0} \right]. \tag {30} \\ \end{array} +$$ + +Arranging the terms in eq. (30) yields + +$$ +\left[ \alpha \lambda_ {A} - 3 \alpha^ {2} (1 + \gamma) ^ {2} \right] \sum_ {i = 0} ^ {M - 1} \mathbb {E} \left[ \| \theta_ {m, i} - \theta^ {*} \| _ {2} ^ {2} \mid F _ {m, 0} \right] +$$ + +$$ +\leq \left[ 1 + 3 M \alpha^ {2} (1 + \gamma) ^ {2} \right] \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} + 2 \alpha \sum_ {i = 0} ^ {M - 1} \mathbb {E} \left[ \xi_ {m} \left(\theta_ {m, i}\right) \mid F _ {m, 0} \right] + 3 M \alpha^ {2} \mathbb {E} \left[ \| g _ {m} \left(\theta^ {*}\right) \| _ {2} ^ {2} \mid F _ {1, 0} \right]. \tag {31} +$$ + +Then, substituting eq. (25) into eq. (31), we obtain + +$$ +\begin{array}{l} [ \alpha \lambda_ {A} - 3 \alpha^ {2} (1 + \gamma) ^ {2} ] \sum_ {i = 0} ^ {M - 1} \mathbb {E} \left[ \| \theta_ {m, i} - \theta^ {*} \| _ {2} ^ {2} \Big | F _ {m, 0} \right] \\ \leq \left[ 1 + 3 M \alpha^ {2} (1 + \gamma) ^ {2} \right] \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {\lambda_ {A} \alpha}{2} \sum_ {i = 0} ^ {M - 1} \mathbb {E} \left[ \| \theta_ {m, i} - \theta^ {*} \| _ {2} ^ {2} | F _ {m, 0} \right] \\ + \frac {1 6 [ 1 + (\kappa - 1) \rho ] \alpha}{\lambda_ {A} (1 - \rho)} \left[ R _ {\theta} ^ {2} (1 + \gamma) ^ {2} + r _ {\max } ^ {2} \right] + 3 M \alpha^ {2} \mathbb {E} \left[ \| g _ {m} \left(\theta^ {*}\right) \| _ {2} ^ {2} \mid F _ {1, 0} \right]. \tag {32} \\ \end{array} +$$ + +Subtracting $0.5\lambda_{A}\alpha \sum_{i = 0}^{M - 1}\mathbb{E}[\| \theta_{m,i} - \theta^{*}\|_{2}^{2}|F_{m,0}]$ on both sides of eq. (32) yields + +$$ +\begin{array}{l} [ 0. 5 \alpha \lambda_ {A} - 3 \alpha^ {2} (1 + \gamma) ^ {2} ] \sum_ {i = 0} ^ {M - 1} \mathbb {E} \left[ \| \theta_ {m, i} - \theta^ {*} \| _ {2} ^ {2} \mid F _ {m, 0} \right] \\ \leq \left[ 1 + 3 M \alpha^ {2} (1 + \gamma) ^ {2} \right] \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {1 6 [ 1 + (\kappa - 1) \rho ] \alpha}{\lambda_ {A} (1 - \rho)} \left[ R _ {\theta} ^ {2} (1 + \gamma) ^ {2} + r _ {\max} ^ {2} \right] \\ + 3 M \alpha^ {2} \mathbb {E} \left[ \| g _ {m} \left(\theta^ {*}\right) \| _ {2} ^ {2} \mid F _ {1, 0} \right]. \tag {33} \\ \end{array} +$$ + +Then, dividing eq. (31) by $[0.5\alpha \lambda_A - 3\alpha^2 (1 + \gamma)^2 ]M$ on both sides, we obtain + +$$ +\begin{array}{l} \mathbb {E} \left[ \left| \left| \tilde {\theta} _ {m} - \theta^ {*} \right| \right| _ {2} ^ {2} \Big | F _ {m, 0} \right] \\ \leq \frac {1 / M + 3 \alpha^ {2} (1 + \gamma) ^ {2}}{0 . 5 \alpha \lambda_ {A} - 3 \alpha^ {2} (1 + \gamma) ^ {2}} \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {1 6 [ 1 + (\kappa - 1) \rho ] [ R _ {\theta} ^ {2} (1 + \gamma) ^ {2} + r _ {\max} ^ {2} ] \alpha}{\lambda_ {A} (1 - \rho) [ 0 . 5 \alpha \lambda_ {A} - 3 \alpha^ {2} (1 + \gamma) ^ {2} ] M} \\ + \frac {3 \alpha}{0 . 5 \lambda_ {A} - 3 \alpha (1 + \gamma) ^ {2}} \mathbb {E} \left[ \| g _ {m} \left(\theta^ {*}\right) \| _ {2} ^ {2} \mid F _ {1, 0} \right]. \tag {34} \\ \end{array} +$$ + +For simplicity, let $C_1 = \frac{1 / M + 3\alpha^2(1 + \gamma)^2}{0.5\alpha\lambda_A - 3\alpha^2(1 + \gamma)^2}$ , $C_2 = \frac{16[1 + (\kappa - 1)\rho][R_\theta^2(1 + \gamma)^2 + r_{\max}^2]}{1 - \rho}$ and $C_3 = \frac{3\alpha}{0.5\lambda_A - 3\alpha(1 + \gamma)^2}$ . Then we rewrite eq. (34): + +$$ +\mathbb {E} \left[ \left\| \tilde {\theta} _ {m} - \theta^ {*} \right\| _ {2} ^ {2} \mid F _ {m, 0} \right] \leq C _ {1} \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {C _ {2}}{\left[ 0 . 5 \lambda_ {A} - 3 \alpha (1 + \gamma) ^ {2} \right] \lambda_ {A} M} + C _ {3} \mathbb {E} \left[ \| g _ {m} (\theta^ {*}) \| _ {2} ^ {2} \mid F _ {1, 0} \right]. \tag {35} +$$ + +# Step 2: Iteration over $m$ epochs + +Taking the expectation of eq. (35) conditioned on $F_{m - 1,0}$ and upper-bounding $\mathbb{E}\left[\left\| \tilde{\theta}_{m - 1} - \theta^{*}\right\|_{2}^{2}\right]$ by following similar steps in the previous steps, we obtained + +$$ +\mathbb {E} \left[ \left\| \tilde {\theta} _ {m} - \theta^ {*} \right\| _ {2} ^ {2} \Big | F _ {m - 1, 0} \right] +$$ + +$$ +\begin{array}{l} \leq C _ {1} \left\| \tilde {\theta} _ {m - 1} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {C _ {2}}{[ 0 . 5 \lambda_ {A} - 3 \alpha (1 + \gamma) ^ {2} ] \lambda_ {A} M} + C _ {3} \mathbb {E} \left[ \| g _ {m} (\theta^ {*}) \| _ {2} ^ {2} \Big | F _ {1, 0} \right] \\ \leq C _ {1} ^ {2} \left\| \tilde {\theta} _ {m - 2} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {C _ {2}}{\left[ 0 . 5 \lambda_ {A} - 3 \alpha (1 + \gamma) ^ {2} \right] \lambda_ {A} M} \sum_ {k = 0} ^ {1} C _ {1} ^ {k} + C _ {3} \sum_ {k = 0} ^ {1} C _ {1} ^ {k} \mathbb {E} \left[ \| g _ {m - k} (\theta^ {*}) \| _ {2} ^ {2} \Big | F _ {1, 0} \right]. \\ \end{array} +$$ + +By following the above steps for $(m - 1)$ times, we have + +$$ +\mathbb {E} \left[ \left\| \tilde {\theta} _ {m} - \theta^ {*} \right\| _ {2} ^ {2} \Big | F _ {1, 0} \right] +$$ + +$$ +\leq C _ {1} ^ {m} \left\| \tilde {\theta} _ {0} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {C _ {2}}{\left[ 0 . 5 \lambda_ {A} - 3 \alpha (1 + \gamma) ^ {2} \right] \lambda_ {A} M} \sum_ {k = 0} ^ {m - 1} C _ {1} ^ {k} + C _ {3} \sum_ {k = 0} ^ {m - 1} C _ {1} ^ {k} \mathbb {E} \left[ \| g _ {m - k} (\theta^ {*}) \| _ {2} ^ {2} \mid F _ {1, 0} \right]. \tag {36} +$$ + +Then taking the expectation of $\sigma(S)$ (which contains the randomness of the entire sample trajectory) on both sides of eq. (36) yields + +$$ +\begin{array}{l} \mathbb {E} \left[ \left\| \tilde {\theta} _ {m} - \theta^ {*} \right\| _ {2} ^ {2} \right] \\ \leq C _ {1} ^ {m} \left\| \tilde {\theta} _ {0} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {C _ {2}}{[ 0 . 5 \lambda_ {A} - 3 \alpha (1 + \gamma) ^ {2} ] \lambda_ {A} M} \sum_ {k = 0} ^ {m - 1} C _ {1} ^ {k} + C _ {3} \sum_ {k = 0} ^ {m - 1} C _ {1} ^ {k} \mathbb {E} \left[ \| g _ {m - k} (\theta^ {*}) \| _ {2} ^ {2} \right], \tag {37} \\ \end{array} +$$ + +where the second term in the right hand side of eq. (37) corresponds to the bias error and the third term corresponds to the variance error. + +# Step 3: Bounding the variance error + +For any $0 \leq k \leq m - 1$ , we have + +$$ +\begin{array}{l} \left\| g _ {m - k} \left(\theta^ {*}\right) \right\| _ {2} ^ {2} = \left\| \frac {1}{M} \sum_ {i = (m - k - 1) M} ^ {(m - k) M - 1} g _ {x _ {i}} \left(\theta^ {*}\right) \right\| _ {2} ^ {2} \\ = \frac {1}{M ^ {2}} \Big (\sum_ {i = (m - k - 1) M} ^ {(m - k) M - 1} g _ {x _ {i}} ^ {\top} \left(\theta^ {*}\right) \Big) \Big (\sum_ {j = (m - k - 1) M} ^ {(m - k) M - 1} g _ {x _ {j}} \left(\theta^ {*}\right) \Big) \\ = \frac {1}{M ^ {2}} \sum_ {i = (m - k - 1) M} ^ {(m - k) M - 1} \sum_ {j = (m - k - 1) M} ^ {(m - k) M - 1} g _ {x _ {i}} ^ {\top} (\theta^ {*}) g _ {x _ {j}} (\theta^ {*}) \\ = \frac {1}{M ^ {2}} \sum_ {i = j} \| g _ {x _ {i}} (\theta^ {*}) \| _ {2} ^ {2} + \frac {1}{M ^ {2}} \sum_ {i \neq j} g _ {x _ {i}} ^ {\top} (\theta^ {*}) g _ {x _ {j}} (\theta^ {*}) \\ \stackrel {(i)} {\leq} \frac {G ^ {2}}{M} + \frac {1}{M ^ {2}} \sum_ {i \neq j} g _ {x _ {i}} ^ {\top} \left(\theta^ {*}\right) g _ {x _ {j}} \left(\theta^ {*}\right), \tag {38} \\ \end{array} +$$ + +where $(i)$ follows from Lemma 3. Consider the expectation of the second term in eq. (38), which is given by + +$$ +\frac {1}{M ^ {2}} \sum_ {i \neq j} \mathbb {E} \left[ g _ {x _ {i}} ^ {\top} \left(\theta^ {*}\right) g _ {x _ {j}} \left(\theta^ {*}\right) \right]. \tag {39} +$$ + +Without loss of generality, we consider the case when $j > i$ as follows: + +$$ +\begin{array}{l} \mathbb {E} \left[ g _ {x _ {i}} ^ {\top} \left(\theta^ {*}\right) g _ {x _ {j}} \left(\theta^ {*}\right) \right] = \mathbb {E} \left[ \mathbb {E} \left[ g _ {x _ {j}} \left(\theta^ {*}\right) \mid P _ {i} \right] ^ {\top} g _ {x _ {i}} \left(\theta^ {*}\right) \right] \\ \leq \mathbb {E} [ \| \mathbb {E} [ g _ {x _ {j}} (\theta^ {*}) | P _ {i} ] \| _ {2} \| g _ {x _ {i}} (\theta^ {*}) \| _ {2} ] \\ \leq G \mathbb {E} [ \| \mathbb {E} [ g _ {x _ {j}} (\theta^ {*}) | P _ {i} ] \| _ {2} ] \\ = G \mathbb {E} [ \| \mathbb {E} [ (A _ {j} \theta^ {*} + b _ {j}) | P _ {i} ] \| _ {2} ] \\ \leq G \mathbb {E} [ \| \mathbb {E} [ A _ {j} | P _ {i} ] \theta^ {*} + \mathbb {E} [ b _ {j} | P _ {i} ] \| _ {2} ] \\ = G \mathbb {E} [ \| (\mathbb {E} [ A _ {j} | P _ {i} ] - A) \theta^ {*} + (\mathbb {E} [ b _ {j} | P _ {i} ] - b) \| _ {2} ] \\ \leq G \mathbb {E} [ \| (\mathbb {E} [ A _ {j} | P _ {i} ] - A) \theta^ {*} \| _ {2} + \| \mathbb {E} [ b _ {j} | P _ {i} ] - b \| _ {2} ] \\ \leq G \mathbb {E} [ \| \mathbb {E} [ A _ {j} | P _ {i} ] - A \| _ {2} \| \theta^ {*} \| _ {2} + \| \mathbb {E} [ b _ {j} | P _ {i} ] - b \| _ {2} ] \\ \leq \kappa G [ (1 + \gamma) R _ {\theta} + r _ {\max } ] \rho^ {j - i}. \tag {40} \\ \end{array} +$$ + +Substituting eq. (40) into eq. (39), we obtain + +$$ +\frac {1}{M ^ {2}} \sum_ {i \neq j} \mathbb {E} \left[ g _ {x _ {i}} ^ {\top} \left(\theta^ {*}\right) g _ {x _ {j}} \left(\theta^ {*}\right) \right] \leq \frac {\kappa G \left[ (1 + \gamma) R _ {\theta} + r _ {\max } \right]}{M ^ {2}} \sum_ {i \neq j} \rho^ {| i - j |} +$$ + +$$ +\begin{array}{l} \leq \frac {\kappa G [ (1 + \gamma) R _ {\theta} + r _ {\max} ]}{M ^ {2}} (2 M \sum_ {k = 1} ^ {\lceil \frac {M}{2} \rceil} \rho^ {k}) \\ \leq \frac {2 \rho \kappa G [ (1 + \gamma) R _ {\theta} + r _ {\max} ]}{(1 - \rho) M}. \tag {41} \\ \end{array} +$$ + +Then substituting eq. (41) into eq. (38) yields + +$$ +\mathbb {E} \left[ \| g _ {m - k} \left(\theta^ {*}\right) \| _ {2} ^ {2} \right] \leq \frac {1}{M} \left(G ^ {2} + \frac {2 \rho \kappa G [ (1 + \gamma) R _ {\theta} + r _ {\max } ]}{(1 - \rho)}\right) \leq \frac {C _ {4}}{M}, \tag {42} +$$ + +where $C_4 = G^2 + \frac{2\rho\kappa G[(1 + \gamma)R_\theta + r_{\max}]}{(1 - \rho)}$ . Finally, substituting eq. (42) into the accumulated residual variance term in eq. (37), we have + +$$ +C _ {3} \sum_ {k = 0} ^ {m - 1} C _ {1} ^ {k} \mathbb {E} \left[ \| g _ {m - k} \left(\theta^ {*}\right) \| _ {2} ^ {2} \right] \leq \frac {C _ {3} C _ {4}}{M} \sum_ {k = 0} ^ {m - 1} C _ {1} ^ {k} \leq \frac {C _ {3} C _ {4}}{(1 - C _ {1}) M}. \tag {43} +$$ + +# Step 4: Combining all error terms + +Finally, substituting eq. (43) and substituting the values of $C_2$ and $C_3$ into eq. (37), we have + +$$ +\mathbb {E} \left[ \left\| \tilde {\theta} _ {m} - \theta^ {*} \right\| _ {2} ^ {2} \right] \leq C _ {1} ^ {m} \left\| \tilde {\theta} _ {0} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {3 C _ {4} \alpha + C _ {2} / \lambda_ {A}}{(1 - C _ {1}) [ 0 . 5 \lambda_ {A} - 3 \alpha (1 + \gamma) ^ {2} ] M}, +$$ + +which yields the desired result. + +# F SAMPLE COMPLEXITY OF TD + +The finite-time convergence rate of vanilla TD under i.i.d. and Markovian sampling has been characterized in Bhandari et al. (2018); Srikant and Ying (2019). However, these studies did not provide the overall computational complexity, i.e., the total number of pseudo-gradient computations to achieve an $\epsilon$ -accuracy solution. This section provides such an analysis based on their convergence results for completeness. + +# F.1 TD WITH I.I.D. SAMPLES + +Consider the vanilla TD update in Bhandari et al. (2018). Following the steps similar to those in Bhandari et al. (2018) for proving Theorem 2, and letting the constant stepsize $\alpha \leq \min \left\{\frac{\lambda_A}{4(1 + \gamma)^2}, \frac{2}{\lambda_A}\right\}$ , we have + +$$ +\begin{array}{l} \mathbb {E} \left\| \theta_ {t} - \theta^ {*} \right\| _ {2} ^ {2} \leq \left(1 - \frac {1}{2} \lambda_ {A} \alpha\right) ^ {t} \left\| \theta_ {0} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {2 C _ {5} \alpha}{\lambda_ {A}} \\ \leq e ^ {- \frac {1}{2} \lambda_ {A} \alpha t} \| \theta_ {0} - \theta^ {*} \| _ {2} ^ {2} + \frac {2 C _ {5} \alpha}{\lambda_ {A}}, \\ \end{array} +$$ + +where $0 < C_5 < \infty$ is a constant. Let $\alpha = \min \left\{\frac{\lambda_A}{4(1 + \gamma)^2}, \frac{2}{\lambda_A}, \frac{\epsilon \lambda_A}{4C_5}\right\}$ . It can be checked easily that with the total number of iterations at most + +$$ +\begin{array}{l} t = \lceil \frac {2}{\lambda_ {A} \alpha} \log (\frac {2 \| \theta_ {0} - \theta^ {*} \| _ {2} ^ {2}}{\epsilon}) \rceil = \lceil 2 \max \{\frac {4 (1 + \gamma) ^ {2}}{\lambda_ {A} ^ {2}}, 1, \frac {4 C _ {5}}{\epsilon \lambda_ {A} ^ {2}} \} \log (\frac {2 \| \theta_ {0} - \theta^ {*} \| _ {2} ^ {2}}{\epsilon}) \rceil \\ = \mathcal {O} \left(\left(\frac {1}{\epsilon \lambda_ {A} ^ {2}}\right) \log \left(\frac {1}{\epsilon}\right)\right), \tag {44} \\ \end{array} +$$ + +an $\epsilon$ -accurate solution can be attained, i.e., $\mathbb{E}\left\| \theta_t - \theta^*\right\|_2^2 \leq \epsilon$ . Since each iteration requires one pseudo-gradient computation, the total number of pseudo-gradient computations is also given by eq. (44). + +# F.2 TD WITH MARKOVIAN SAMPLES + +Consider the vanilla TD update in Bhandari et al. (2018). Following the steps similar to those in Bhandari et al. (2018) for proving Theorem 3, and letting the constant stepsize $\alpha \leq \frac{1}{\lambda_A}$ , we have + +$$ +\begin{array}{l} \mathbb {E} \left\| \theta_ {t} - \theta^ {*} \right\| _ {2} ^ {2} \leq \left(1 - \lambda_ {A} \alpha\right) ^ {t} \left\| \theta_ {0} - \theta^ {*} \right\| _ {2} ^ {2} + \frac {C _ {6} \alpha}{\lambda_ {A}} + \frac {C _ {7} \alpha \log \left(\frac {1}{\alpha}\right)}{\lambda_ {A}} \\ \leq e ^ {- \lambda_ {A} \alpha t} \| \theta_ {0} - \theta^ {*} \| _ {2} ^ {2} + \frac {C _ {6} \alpha}{\lambda_ {A}} + \frac {C _ {7} \alpha \log (\frac {1}{\alpha})}{\lambda_ {A}} \\ \end{array} +$$ + +where $0 < C_6 < \infty$ and $0 < C_7 < \infty$ are constants. Now let $\alpha = \min \left\{\frac{C_8\epsilon}{\log(1 / C_8\epsilon)},\frac{1}{\lambda_A}\right\}$ where $C_8 = \lambda_A\min \left\{\frac{1}{C_6},\frac{1}{6C_7}\right\}$ , it can be checked easily that with the total number of iterations at most + +$$ +\begin{array}{l} t = \lceil \frac {2}{\lambda_ {A} \alpha} \log (\frac {3 \| \theta_ {0} - \theta^ {*} \| _ {2} ^ {2}}{\epsilon}) \rceil \\ = \lceil \max \{\frac {2}{\min \{\frac {1}{C _ {6}} , \frac {1}{6 C _ {7}} \} \lambda_ {A} ^ {2} \epsilon}, 2 \} \log \left(\frac {1}{C _ {8} \epsilon}\right) \log (\frac {3 \| \theta_ {0} - \theta^ {*} \| _ {2} ^ {2}}{\epsilon}) \rceil \\ = \mathcal {O} \left(\left(\frac {1}{\epsilon \lambda_ {A} ^ {2}}\right) \log^ {2} \left(\frac {1}{\epsilon}\right)\right), \tag {45} \\ \end{array} +$$ + +an $\epsilon$ -accurate solution can be attained, i.e., $\mathbb{E}\left\| \theta_t - \theta^*\right\|_2^2 \leq \epsilon$ . Since each iteration requires one pseudo-gradient computation, the total number of pseudo-gradient computations is also given by eq. (45). \ No newline at end of file