TD-regularized actor-critic methods

Simone Parisi, Voot Tangkaratt, Jan Peters, Mohammad Emtiyaz Khan

TL;DR

Actor-critic methods often suffer from instability because the actor blindly follows a critic that may be wildly inaccurate. This paper introduces a simple "plug-and-play" regularization term that penalizes the actor for updates where the critic’s temporal difference (TD) error is high, leading to significantly more stable and efficient learning across standard reinforcement learning benchmarks.

What Problem Does This Paper Address?

Reinforcement Learning (RL) researchers have long grappled with the instability of actor-critic (AC) methods. In these architectures, the actor (the policy) learns how to behave by listening to the critic (the value function), which estimates how good those behaviors are.

The problem is a classic "blind leading the blind" scenario: early in training, or when using complex neural networks, the critic is often highly inaccurate. If the actor takes a large update step based on a flawed critic estimate, it can be pushed into a "bad" region of the policy space from which it may never recover. While existing techniques like TRPO or PPO stabilize the actor, and target networks stabilize the critic, this paper addresses the interaction between the two.

Methods

The authors propose TD-Regularized Actor-Critic. The core idea is to modify the actor's objective function to include a penalty for the critic's inaccuracy.

  1. Bellman-Constrained Optimization: Ideally, we want to maximize expected returns subject to the Bellman equation being satisfied (meaning the critic is accurate).
  2. The Penalty Term: Since solving hard constraints is computationally expensive, the authors use a quadratic penalty method. They add the expected squared TD error of the critic as a regularization term to the actor’s loss function.
  3. Plug-and-Play Integration: This approach is remarkably simple to implement. The authors derive the necessary gradients to integrate this penalty into standard algorithms, including Stochastic Policy Gradient (SPG), Deterministic Policy Gradient (DPG), Trust Region Policy Optimization (TRPO), and Proximal Policy Optimization (PPO).
  4. GAE-Regularization: They further extend the idea to use Generalized Advantage Estimation (GAE) instead of simple 1-step TD errors, allowing for a better trade-off between bias and variance.

Datasets

The authors evaluated their method on a diverse set of control benchmarks:

  • 2D Linear Quadratic Regulator (LQR): A classic control problem where the true value function can be calculated exactly, allowing for clear visualization of how the algorithm behaves in the policy parameter space.
  • Pendulum Swing-up (Single and Double): Standard RL benchmarks that test an agent's ability to handle non-linear dynamics and underactuated systems.
  • MuJoCo (OpenAI Gym): A suite of high-dimensional continuous control tasks, including Ant-v2, HalfCheetah-v2, Walker-v2, Hopper-v2, and Humanoid-v2.

Key Insights and Ideas

  • TD Error as a Safety Signal: The squared TD error acts as a proxy for the critic's uncertainty. By penalizing it, the actor is forced to take smaller, more cautious steps in regions where the critic is "confused" and failing to satisfy the Bellman equation.
  • Stabilizing the Interaction: Most prior work tries to fix the actor or the critic in isolation. This paper shows that explicitly managing the relationship between them—ensuring the actor doesn't over-trust a struggling critic—is a powerful path to stability.
  • Visualizing the "Wrong Path": The LQR experiments provide a striking visual of the problem. As seen in Figure 1, vanilla DPG runs often veer off into unstable territory due to bad critic estimates. The TD-regularized version, however, follows a much more direct and stable path to the optimal policy.
Figure 1: Comparison of DPG and TD-Regularized DPG on LQR. The regularized version (middle) avoids the unstable paths taken by vanilla DPG (left) and maintains much lower TD error (right).

Key Results

  • Robustness to Divergence: In the LQR task with cubic features (which are prone to overfitting), vanilla DPG diverged in 24 out of 50 runs. The TD-regularized version never diverged and consistently found the optimal policy.
  • Superior Performance in Complex Tasks: On the MuJoCo Ant-v2 benchmark, PPO with TD-regularization significantly outperformed vanilla PPO, achieving higher returns with better sample efficiency.
  • Complementary Benefits: The method proved to be complementary to other state-of-the-art stabilization techniques like Retrace and double-critic learning. In the double-pendulum task, the combination of GAE-regularization and Retrace yielded the best overall results.

Limitations and Future Work

  • Hyperparameter Sensitivity: The regularization coefficient ($\eta$) and its decay rate ($\kappa$) are critical. The authors noted that the optimal values for these parameters can vary significantly between different tasks (e.g., Ant vs. HalfCheetah).
  • Automatic Tuning: A promising direction for future work is developing methods to automatically tune the regularization strength during training, perhaps based on the current magnitude of the TD error.
  • Extension to Residual Methods: The current work focuses on direct TD methods. The authors suggest that extending this regularization to residual gradient methods could provide even stronger convergence guarantees.

Summary updated

BibTeX
@article{parisi2019td,
  author = {Simone Parisi and Voot Tangkaratt and Jan Peters and Mohammad Emtiyaz Khan},
  title = {{TD-regularized actor-critic methods}},
  journal = {Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=d6gIp5-y6JS},
}
Figure