Regularized Off-Policy TD-Learning

Bo Liu, Sridhar Mahadevan, Ji Liu

Introduction

Reinforcement learning (RL) often relies on Temporal-Difference (TD) learning, but this approach faces two significant hurdles: stability during off-policy learning and the "curse of dimensionality" in high-dimensional feature spaces. Off-policy learning allows an agent to learn about a target policy while following a different behavior policy, but it can lead to divergence. Meanwhile, real-world tasks often involve thousands of features, many of which are irrelevant, complicating the learning process.

The RO-TD (Regularized Off-policy TD) algorithm is the first first-order RL method to combine stable off-policy learning with $l_1$ regularization (sparsity). It enables agents to automatically ignore irrelevant features with a computational complexity that scales linearly ($O(d)$) with the number of features, offering a scalable alternative to previous second-order methods.

The RO-TD Algorithm

RO-TD bridges the gap between stability and sparsity by reformulating the Gradient TD (TDC) objective function as a convex-concave saddle-point problem.

Key Methodological Innovations:

  • Minimax Formulation: The TDC objective is treated as a "minimax" game between a primal variable (the value function) and a dual variable.
  • First-Order Optimization: By employing a primal-dual subgradient approach, the algorithm can use proximal operators like soft-thresholding to enforce $l_1$ regularization. This "zeros out" useless features without requiring expensive matrix inversions.
  • Linear Complexity: Clever linear algebraic techniques ensure that per-step computation remains $O(d)$, making it practical for high-dimensional tasks where previous $O(d^3)$ methods failed.
  • Eligibility Traces: The framework extends to RO-GQ($\lambda$), incorporating eligibility traces to accelerate learning by considering sequences of recent states.

Experimental Evaluation

The authors tested RO-TD against several benchmarks, including the 7-state Star MDP (a classic divergence case), Mountain Car with 1,365 features, and a Triple-Link Inverted Pendulum with over 6,600 features.

Stability and Convergence

On the Star MDP, standard TD diverges as expected. In contrast, RO-TD maintains stability. As shown in the comparison of Mean Squared Projected Bellman Error (MSPBE), RO-TD and TDC converge while standard TD's error grows exponentially.

Comparison of MSPBE showing RO-TD stability vs TD divergence

High-Dimensional Feature Selection

In the Mountain Car task, the algorithm was challenged with 1,365 Radial Basis Function (RBF) features. Standard TDC and TD failed to learn effectively due to the noise from irrelevant features. RO-TD, however, achieved a 100% success rate, matching the performance of the much more computationally expensive LARS-TD.

Success rates and steps for various algorithms on high-dimensional tasks

Key Insights and Results

  • Efficiency: RO-GQ($\lambda$) balanced the Triple-Link Inverted Pendulum in roughly half the episodes required by standard GQ($\lambda$) (14.7 vs 27.2 episodes in difficult configurations).
  • Saddle-Points for Sparsity: Viewing the non-smooth $l_1$ penalty through the lens of saddle-point stochastic approximation makes sparse RL computationally feasible.
  • Interpolation: The sparsity parameter $\rho_2$ allows the algorithm to transition between TDC and standard TD, potentially speeding up convergence by reducing the influence of the correction term when it is unnecessary.

Conclusion

RO-TD represents a significant step forward in making sparse reinforcement learning practical for large-scale engineering problems. By moving from second-order to first-order optimization, the authors have broken the complexity barrier, allowing for stable, sparse learning in environments with thousands of features. Future work may involve exploring more advanced solvers like Mirror Descent to further improve sample efficiency and convergence speed.

Summary updated

BibTeX
@inproceedings{liu2012regularized,
  author = {Bo Liu and Sridhar Mahadevan and Ji Liu},
  title = {{Regularized Off-Policy TD-Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2012},
  url = {https://openreview.net/forum?id=Byb4ZK-d-H},
}
Figure