Conservative DDPG -- Pessimistic RL without Ensemble

Nitsan Soffair, Shie Mannor

TL;DR

This paper introduces Conservative DDPG (CDDPG), a novel reinforcement learning algorithm that tackles the overestimation bias in DDPG without relying on computationally expensive ensembles. By incorporating a behavioral cloning (BC) loss into the Q-target, CDDPG achieves superior or competitive performance across various robotic locomotion tasks compared to DDPG and TD3, while significantly reducing computational demands.

What Problem Does This Paper Address?

Reinforcement learning (RL) agents learn by interacting with an environment, aiming to maximize cumulative rewards. A core component of many RL algorithms, particularly actor-critic methods like Deep Deterministic Policy Gradient (DDPG), is the estimation of action-value functions (Q-values). However, DDPG suffers from a significant issue known as "overestimation bias," where the estimated Q-values tend to be higher than the true values. This bias can lead to suboptimal policies and hinder learning.

Existing solutions to this problem often involve using ensembles of Q-networks (e.g., TD3, TD7) to average out errors, or employing complex log-policy-based methods. While effective, ensemble methods demand substantial computational resources and can be difficult to implement. This paper aims to provide a simpler, more efficient solution to the overestimation bias problem in DDPG.

Methods

The core innovation of Conservative DDPG (CDDPG) lies in its modification of the Q-target calculation. Instead of directly using the standard DDPG Q-target, CDDPG subtracts a Behavioral Cloning (BC) loss term. This BC loss acts as an uncertainty measure, penalizing actions that deviate significantly from the agent's historical behavior.

The Q-target in CDDPG is formulated as: $y = r + \gamma Q(s, a) - \alpha \cdot \text{BC}_{\text{loss}}[\mathcal{B}]$

where:

  • $r$ is the immediate reward.
  • $\gamma$ is the discount factor.
  • $Q(s, a)$ is the Q-value estimate for state $s$ and action $a$.
  • $\alpha$ is a hyperparameter controlling the strength of the BC loss.
  • $\text{BC}_{\text{loss}}[\mathcal{B}]$ is the batch-based BC loss, calculated as the average difference between the current policy's action and the sampled action for a given state in a batch $\mathcal{B}$.

This approach effectively "conservatizes" the Q-value estimates, making them more pessimistic and less prone to overestimation. The algorithm retains the actor-critic structure of DDPG but modifies the critic's learning objective. Crucially, CDDPG achieves this without requiring an ensemble of Q-networks, simplifying implementation and reducing computational overhead.

Datasets

The paper evaluates CDDPG on standard robotic locomotion benchmarks:

  • MuJoCo: Humanoid-v2, HalfCheetah-v2, Ant-v2.
  • Bullet: HalfCheetahBullet Env-v0, Ant Bullet Env-v0, HumanoidStandup-v2.

These environments are commonly used for evaluating continuous control RL algorithms. The paper does not introduce new datasets or benchmarks.

Key Insights and Ideas

  • BC Loss as an Uncertainty Measure: The paper frames the BC loss not just as a regularization term, but as a direct indicator of how much the agent's current policy deviates from its past learned behavior. This deviation is interpreted as uncertainty.
  • Pessimism for Stability: By subtracting the BC loss, CDDPG adopts a more "pessimistic" view of Q-values. This pessimism helps to stabilize learning and prevent the propagation of overestimation errors.
  • Simplicity and Efficiency: The most significant insight is that a simple modification to the Q-target, incorporating a BC loss, can effectively mitigate overestimation bias without the complexity and computational cost of ensemble methods. This makes advanced RL more accessible.
  • Convergence to Optimal Policies: The theoretical analysis suggests that CDDPG converges to optimal Q-values under certain conditions, similar to other conservative RL approaches.

Key Results

  • Superior Performance over DDPG: CDDPG consistently outperforms DDPG across all tested MuJoCo and Bullet locomotion tasks, showing significant improvements in average rewards. For example, in Humanoid-v2, CDDPG achieved a +27.9% improvement over DDPG.
  • Competitive or Superior Performance to TD3/TD7: CDDPG demonstrates performance comparable to or better than TD3 and TD7, which are ensemble-based methods. This is achieved with significantly less computational power.
  • Reduced Computational Requirements: By avoiding ensembles, CDDPG requires fewer neural network parameters and computational operations, making it more efficient.
  • Improved Seed Robustness: In some tasks, like HalfCheetah Bullet, CDDPG also shows better seed robustness, indicated by a lower standard error across different random seeds.

Limitations and Future Work

  • Humanoid-v2 Performance: The paper notes that CDDPG, like DDPG, struggles to efficiently tackle complex problems such as Humanoid-v2 within a reasonable amount of computational power, especially compared to ensemble-based methods like TD3 and TD7. This is attributed to the single critic's uniform evaluation, lacking the diversity of ensemble critics.
  • Formal Proof of BC Loss Convergence: The authors suggest further investigation into formally proving that the Behavioral Cloning (BC) loss converges to zero based on their convergence assumptions.
  • Broader Applicability: While tested on locomotion tasks, exploring CDDPG's effectiveness in other domains of RL could be a future direction.

Summary updated

Abstract

DDPG is hindered by the overestimation bias problem, wherein its $Q$-estimates tend to overstate the actual $Q$-values. Traditional solutions to this bias involve ensemble-based methods, which require significant computational resources, or complex log-policy-based approaches, which are difficult to understand and implement. In contrast, we propose a straightforward solution using a $Q$-target and incorporating a behavioral cloning (BC) loss penalty. This solution, acting as an uncertainty measure, can be easily implemented with minimal code and without the need for an ensemble. Our empirical findings strongly support the superiority of Conservative DDPG over DDPG across various MuJoCo and Bullet tasks. We consistently observe better performance in all evaluated tasks and even competitive or superior performance compared to TD3 and TD7, all achieved with significantly reduced computational requirements.
BibTeX
@misc{soffair2024conservative,
  author = {Nitsan Soffair and Shie Mannor},
  title = {{Conservative DDPG -- Pessimistic RL without Ensemble}},
  year = {2024},
  eprint = {2403.05732},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.05732},
}
Figure