Regularized Off-Policy TD-Learning

Bo Liu, Sridhar Mahadevan, Ji Liu

TL;DR

The authors introduce RO-TD, a novel reinforcement learning algorithm that combines off-policy convergence with $l_1$ regularization. By reframing temporal-difference learning as a convex-concave saddle-point problem, they achieve sparse feature selection with linear computational complexity ($O(d)$), overcoming the heavy $O(d^3)$ cost of previous state-of-the-art methods.

What Problem Does This Paper Address?

Temporal-Difference (TD) learning is a cornerstone of reinforcement learning, but it has two major Achilles' heels:

  1. Off-Policy Divergence: When an agent learns from data generated by a different policy (e.g., learning from demonstrations or exploratory behavior), standard TD can diverge to infinity.
  2. The Curse of Dimensionality: In real-world problems with thousands of potential features, many of which are irrelevant, RL agents need a way to perform "feature selection" to remain robust and efficient.

While algorithms like TDC (TD with Gradient Correction) solved the off-policy convergence problem, and methods like LARS-TD added $l_1$ regularization for sparsity, no existing method did both efficiently. Previous regularized methods were "second-order," meaning their computational cost scaled cubically with the number of features—making them unusable for high-dimensional tasks.

Methods

The authors propose Regularized Off-Policy TD (RO-TD). Their approach rests on three pillars:

  • Saddle-Point Formulation: They re-interpret the linear equations underlying off-policy TD as a stochastic optimization problem. Specifically, they transform a non-smooth convex optimization (due to the $l_1$ penalty) into a convex-concave saddle-point problem. This allows them to use efficient first-order solvers.
  • Proximal Gradient Descent: To handle the $l_1$ regularization (which isn't differentiable at zero), they use a proximal mapping (soft-thresholding). This effectively "shrinks" irrelevant feature weights to exactly zero during learning.
  • The $O(d)$ Trick: A key contribution is a linear algebraic rearrangement. By avoiding the explicit calculation of large matrices and instead computing vector-product updates, they keep the per-step complexity at $O(d)$, where $d$ is the number of features.

They also extend this framework to include eligibility traces, resulting in the RO-GQ($\lambda$) algorithm.

Datasets

The researchers evaluated RO-TD and RO-GQ($\lambda$) across several classic and high-dimensional RL benchmarks:

  • Star MDP: A 7-state counterexample specifically designed to make standard TD diverge.
  • Random-Walk MDP: A 5-state Markov chain used to test convergence with different basis functions (tabular, inverted, and dependent).
  • Mountain Car: A continuous control task where they used 1,365 Radial Basis Function (RBF) features to test feature selection.
  • Triple-Link Inverted Pendulum: A highly nonlinear, 8-dimensional state space problem using 6,561 Fourier features to test performance in high-dimensional, under-actuated systems.

Key Insights and Ideas

  • Optimization over Iteration: Instead of trying to solve the Bellman equation directly (which is hard when regularized), the authors show that treating RL as a primal-dual optimization problem makes it much more manageable.
  • Sparsity as a Stabilizer: The $l_1$ regularization doesn't just save memory; it makes the learning process more robust to noisy or irrelevant features that would otherwise distract a standard TDC agent.
  • Efficiency is Possible: You don't need second-order methods (like LSTD) to get the benefits of regularization. First-order methods can achieve similar results much faster if the objective function is formulated correctly.

Key Results

  • Convergence: On the Star MDP, where standard TD fails, RO-TD converged reliably, matching the performance of the unregularized TDC algorithm.
Comparison of MSPBE showing TD divergence and RO-TD convergence
  • Feature Selection: In the Mountain Car task with over 1,300 features, RO-TD achieved a 100% success rate, whereas standard TDC and TD failed completely because they couldn't distinguish useful features from noise.
Table showing 100% success rate for RO-TD in Mountain Car
  • High-Dimensional Scaling: In the Triple-Link Inverted Pendulum task (6,561 features), RO-GQ($\lambda$) learned to balance the pendulum in significantly fewer episodes than the unregularized GQ($\lambda$).
  • Speed: Because RO-TD is $O(d)$, it is orders of magnitude faster than second-order methods like LARS-TD as the number of features grows.

Limitations and Future Work

  • Hyperparameter Sensitivity: The authors note that RO-TD requires careful tuning of the step size ($\alpha_t$) and the sparsity parameters ($\rho_1, \rho_2$). It is generally less "sample-efficient" than second-order methods in small domains where the $O(d^3)$ cost is acceptable.
  • Manual Tuning: Unlike some automated methods, the user must still provide a reasonable range for the regularization parameters.
  • Future Directions: The authors suggest exploring Mirror Descent and Mirror-Prox algorithms, which could further optimize the saddle-point solver and potentially handle even larger state spaces or Semi-Markov Decision Processes (SMDPs).

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