A Variance Minimization Approach to Temporal-Difference Learning

Xingguo Chen, Yu Gong, Shangdong Yang, Wenhao WangarXiv 2024 · DOI

Abstract

Temporal-Difference (TD) learning with linear function approximation often faces instability when combining off-policy learning, bootstrapping, and function approximation—a phenomenon known as the "deadly triad." This paper proposes a shift from minimizing the magnitude of errors to minimizing their variance. By introducing the Variance of Bellman Error (VBE) and Variance of Projected Bellman Error (VPBE) objectives, the authors derive a suite of Variance Minimization (VM) algorithms. These methods demonstrate faster convergence and improved stability across several benchmarks, including Cliff Walking and Mountain Car, by improving the spectral properties of the system's key matrix.

Introduction: Addressing the Deadly Triad

In reinforcement learning (RL), specifically TD learning with linear function approximation, researchers have long struggled with the instability or divergence caused by off-policy learning and bootstrapping. Most existing solutions attempt to mitigate this by minimizing different forms of error, such as Mean Squared Bellman Error (MSBE). However, the convergence speed of these algorithms is mathematically tied to the "key matrix" of the system—specifically, the magnitude of its smallest eigenvalue. If this eigenvalue is small or negative, convergence is slow or non-existent.

This paper challenges the conventional wisdom that RL must focus solely on error minimization. The authors suggest that instead of just reducing error magnitude, we should focus on minimizing error variance, which naturally improves the properties of the key matrix and leads to more robust learning.

Methodology: From Error to Variance Minimization

The authors propose two new objective functions designed to stabilize updates:

  1. Variance of Bellman Error (VBE): Optimized for on-policy learning.
  2. Variance of Projected Bellman Error (VPBE): Optimized for off-policy learning.

From these objectives, they derive three primary algorithms: VMTD (on-policy), VMTDC (off-policy with gradient correction), and VMETD (off-policy based on Emphatic TD). The core mechanism involves an auxiliary parameter, $\omega$, which tracks the mean of the TD error. The main parameter, $\theta$, is then updated to minimize the variance around this mean. This "reward centering" effect stabilizes gradient updates while maintaining "optimal policy invariance," ensuring the variance-minimized solution still identifies the same optimal policy as the original MDP.

Experimental Evaluation

The algorithms were evaluated using standard RL benchmarks ranging from simple analytical models to complex control tasks:

  • 2-State Counterexample: A simple environment used to verify stability in off-policy scenarios where standard TD(0) typically diverges.
  • Maze and Cliff Walking: Tabular grid-world environments.
  • Mountain Car and Acrobot: Classic control problems utilizing linear function approximation (tile coding).
The 2-state counterexample used to analyze the stability of off-policy learning.

Key Results and Performance Analysis

The empirical results consistently favored the VM-based approach. In the 2-state evaluation, VM-based algorithms like VMTDC showed significantly faster convergence than traditional counterparts like TDC. Theoretical predictions regarding eigenvalues were validated: algorithms with larger minimum eigenvalues in their key matrices indeed converged faster.

Learning curves for Cliff Walking, Mountain Car, and Acrobot benchmarks.

As shown in the performance plots above, VM variants (such as VMEQ, VMGQ, and VMSarsa) consistently outperformed standard Sarsa, Q-learning, and Gradient TD methods. In the Cliff Walking task, VMEQ demonstrated the fastest convergence to the optimal policy. Similar trends were observed in the Mountain Car and Acrobot tasks, where VM-based methods reached lower step counts significantly earlier in the training process.

Conclusion and Future Work

This research demonstrates that minimizing variance is a powerful alternative to traditional error minimization in TD learning. By improving the numerical stability of the underlying system matrices, VM-based algorithms achieve faster and more reliable convergence. While this work focuses on linear function approximation, it lays the groundwork for several future directions, including extending VBE and VPBE to deep neural networks (non-linear extensions) and adapting the approach for multi-step returns ($n$-step or $\lambda$-returns).

Summary updated

BibTeX
@misc{chen2024variance,
  author = {Xingguo Chen and Yu Gong and Shangdong Yang and Wenhao Wang},
  title = {{A Variance Minimization Approach to Temporal-Difference Learning}},
  year = {2024},
  eprint = {2411.06396},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.06396},
}
Figure