Introduction
Temporal Difference (TD) learning is a foundational technique in reinforcement learning for policy evaluation—estimating the expected return of a specific strategy. However, vanilla TD learning suffers from two major drawbacks:
- High Variance: Updates based on single samples or small batches produce noisy "pseudo-gradients," making the learning path erratic.
- Markovian Bias: Real-world sequential data is highly correlated. This correlation along a trajectory introduces a bias error that significantly slows down convergence.
To address these issues, a "Variance Reduced" version of TD (VRTD) was introduced in 2015. Unfortunately, the original theoretical analysis contained technical flaws, incorrectly claiming exact convergence with a constant stepsize. This paper provides a mathematically rigorous reanalysis of VRTD, correcting previous literature and proving that VRTD achieves superior computational complexity by drastically reducing both optimization noise (variance) and errors caused by correlated data (bias).
The VRTD Algorithm
The authors analyze the VRTD algorithm, which adapts the "centering" concept from optimization techniques like Stochastic Variance Reduced Gradient (SVRG).
The algorithm operates in a nested loop structure:
- Outer Loop (Epochs): At the beginning of each epoch, the algorithm computes a "batch pseudo-gradient" using a large set of samples. This serves as a stable anchor.
- Inner Loop: The algorithm executes $M$ rapid updates. Each update uses a single sample but corrects its direction using the anchor computed in the outer loop.
The paper evaluates this structure under two distinct settings: i.i.d. Sampling (samples drawn independently from a stationary distribution) and Markovian Sampling (samples drawn sequentially from a single trajectory, representing a more realistic and challenging scenario).
Key Insights and Theoretical Results
The reanalysis reveals a "bias-variance double win" for VRTD, particularly in Markovian environments. While variance reduction techniques typically only reduce noise, VRTD's batching mechanism effectively averages out the correlations between sequential samples.
Key theoretical findings include:
- Variance and Bias Reduction: Under i.i.d. sampling, VRTD reduces the variance error from $\mathcal{O}(\alpha)$ (vanilla TD) to $\mathcal{O}(\alpha/M)$. Crucially, in the Markovian setting, it also reduces the bias error from $\mathcal{O}(\alpha)$ to $\mathcal{O}(1/M)$, where $M$ is the batch size.
- Linear Convergence: VRTD converges to a neighborhood of the optimal solution at a linear rate. In contrast, vanilla TD often requires diminishing stepsizes, resulting in much slower sublinear convergence.
- Complexity Gains: For Markovian samples, VRTD reaches an $\epsilon$-accurate solution with an overall complexity of $\mathcal{O}(\max\{\frac{1}{\epsilon}, \frac{1}{\lambda_A^2}\} \log \frac{1}{\epsilon})$. Vanilla TD requires $\mathcal{O}(\frac{1}{\lambda_A^2} \log^2 \frac{1}{\epsilon})$. As the demand for accuracy ($\epsilon$) increases, VRTD becomes exponentially more efficient.
Empirical Validation
The authors validated their theoretical findings across three environments: a Synthetic MDP, Frozen Lake ($4 \times 4$), and Mountain Car. In all experiments, increasing the batch size $M$ significantly lowered the final convergence error without compromising the initial learning speed, perfectly aligning with the theoretical predictions regarding neighborhood convergence.
Limitations and Future Directions
The current analysis is restricted to TD learning with linear function approximation. Adapting these proofs for non-linear approximations, such as deep neural networks, remains an open challenge. Additionally, in the i.i.d. setting, VRTD's superiority over vanilla TD is sensitive to the problem's condition number.
However, the novel techniques introduced for bounding the bias of the VRTD pseudo-gradient estimator hold promise for broader applications. Future work could apply these analytical tools to other reinforcement learning algorithms, such as Q-learning or Actor-Critic methods, to enhance their stability and convergence speed.
Summary updated