Stable and Efficient Policy Evaluation

Daoming Lyu, Bo Liu, Matthieu Geist, Wen Dong, Saad Biaz, Qi Wang

TL;DR

Reinforcement learning relies heavily on policy evaluation, but existing methods force a frustrating tradeoff: standard Temporal Difference (TD) learning is fast on-policy but can diverge off-policy, while gradient-based methods are stable off-policy but sluggish on-policy. This paper introduces the Stable and Efficient TD (SETD) algorithm, leveraging a novel "oblique projection" framework to achieve the best of both worlds: guaranteed off-policy stability alongside highly efficient on-policy performance, all while maintaining linear computational complexity.

What Problem Does This Paper Address?

In Reinforcement Learning (RL), policy evaluation is the process of estimating the value function (expected long-term return) of a specific policy. The workhorse for this is Temporal Difference (TD) learning.

However, TD learning suffers from a well-known flaw when combined with linear function approximation: off-policy instability. If the agent learns from data generated by a different policy than the one it is evaluating (off-policy learning), standard TD can literally diverge to infinity.

To fix this, researchers previously developed algorithms like Gradient TD (GTD/TDC) and Emphatic TD (ETD). While these algorithms guarantee off-policy stability, they introduce a new problem: on-policy inefficiency. In standard, on-policy settings, they tend to learn slowly and exhibit high variance compared to vanilla TD. The authors of this paper tackle this gap, seeking a model-free algorithm that is both stable when learning off-policy and fast/efficient when learning on-policy.

Methods

The authors step away from the standard orthogonal projection used in vanilla TD and instead frame the problem using weighted oblique projection.

  1. The Ideal (but impossible) Solution: The authors mathematically define an optimal oblique projection matrix ($X^*$) that would yield the "best" approximation of the true value function, guaranteeing stability. However, computing $X^*$ requires knowing the environment's underlying transition dynamics, which is impossible in model-free RL.
  2. The SETD Algorithm: To bridge this gap, the authors propose a computationally tractable way to approximate this optimal matrix. They restrict the approximation to a diagonal matrix and use a relaxed, sample-separable objective function to minimize the error.
  3. The Update Rule: This math boils down to a surprisingly elegant closed-form update. SETD modifies the standard TD update by scaling the step size with a newly derived per-sample weight ($\omega_i$) and a standard importance sampling ratio.
  4. Extensions: The authors also extend the base SETD algorithm to incorporate eligibility traces—creating SETD($\lambda$)—allowing the algorithm to balance bias and variance over multi-step returns.

Crucially, because the new weight $\omega_i$ can be calculated using simple vector operations, SETD maintains a linear computational complexity of $O(d)$ per step, making it highly scalable.

Datasets

The authors evaluate SETD on several standard RL Markov Decision Process (MDP) benchmarks:

  • On-policy evaluation:
    • 14-state Boyan Chain: A classic benchmark for value function approximation.
  • Mountain Car: A continuous state-space control problem (evaluated using a Fourier basis representation).
  • Off-policy evaluation:
    • Baird’s Star Domain: The standard "torture test" designed specifically to cause standard TD to diverge.
  • 400-State Random MDP: A randomly generated, larger-scale environment used to test scalability and sensitivity to hyperparameters.

Key Insights and Ideas

  • A Unifying Geometric Lens: By viewing TD and Residual Gradient methods as special cases of oblique projection, the authors found a mathematical "sweet spot." SETD forces the value function update to stay closer to the true, stable approximation without requiring a model of the environment.
  • Overcoming ETD's Limitations: Emphatic TD (ETD) also uses a form of oblique projection, but it strictly requires sequential sampling (data must come from unbroken trajectories). SETD's mathematical formulation bypasses this, allowing it to learn from randomly sampled transitions (e.g., from an experience replay buffer).
  • Tractable Approximations Work: The paper proves that you don't need the perfect projection matrix to achieve stability. A clever, diagonalized approximation of the projection matrix is enough to prevent off-policy divergence while keeping the algorithm fast.

Key Results

  • On-Policy Speed: On the Boyan Chain and Mountain Car domains, SETD matched the fast convergence speed of standard TD, significantly outperforming the sluggish GTD2, TDC, and ETD algorithms.
  • Off-Policy Stability: On the Baird domain, standard TD diverged as expected, but SETD remained completely stable.
  • Lower Variance: In off-policy settings, SETD showed a massive reduction in variance compared to TDC, and converged much faster than GTD2.
  • Hyperparameter Robustness: On the 400-state random MDP, SETD proved much less sensitive to step-size tuning than ETD. (ETD tends to diverge if the step size is even slightly too large, whereas SETD remained stable).

Limitations and Future Work

  • Initial Variance: The authors note that while SETD converges quickly, it can exhibit relatively large variance during the very initial phases of learning.
  • Theoretical Bounds: While the paper proves the existence of the fixed-point solution, the authors acknowledge the need for future sample complexity analysis (e.g., establishing high-probability error bounds) to fully understand its theoretical limits.
  • Future Directions: The authors suggest exploring alternative, computationally tractable criteria for approximating the optimal projection matrix $X^*$. They also propose developing a "true-online" version of SETD($\lambda$) to further improve performance and compare it against existing true-online algorithms.

Summary updated

BibTeX
@article{lyu2019stable,
  author = {Daoming Lyu and Bo Liu and Matthieu Geist and Wen Dong and Saad Biaz and Qi Wang},
  title = {{Stable and Efficient Policy Evaluation}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2019},
  doi = {10.1109/tnnls.2018.2871361},
}
Figure