Learning Pessimism for Robust and Efficient Off-Policy Reinforcement Learning

Edoardo Cetin, Oya Celiktutan

TL;DR

Generalized Pessimism Learning (GPL) introduces a learnable penalty to precisely counteract overestimation bias in reinforcement learning. By using a novel "dual TD-learning" procedure, GPL adaptively tunes its level of pessimism on the fly, achieving state-of-the-art sample efficiency and stability across both proprioceptive and pixel-based benchmarks.

What Problem Does This Paper Address?

In off-policy reinforcement learning (RL), agents learn from past experiences stored in a replay buffer. A core challenge here is overestimation bias: because agents typically choose actions that maximize predicted future rewards, any errors in the critic's predictions tend to be positive and accumulate over time. This leads to unstable learning and poor performance.

Standard solutions, like Clipped Double Q-learning (taking the minimum of two critics), apply a fixed amount of "pessimism" to counteract this. However, as the authors demonstrate, the amount of bias isn't constant—it varies wildly across different tasks, training stages, and even random seeds. Applying a fixed, "one-size-fits-all" penalty often results in underestimation bias, which makes the agent overly conservative and hinders exploration.

Figure 1: Recorded estimated bias showing how overestimation varies significantly across different environments and training stages.

Methods

The authors propose Generalized Pessimism Learning (GPL), which replaces fixed pessimism with a learnable uncertainty regularizer.

  1. Uncertainty Regularizer: Instead of a hard minimum, GPL subtracts a penalty from the target returns. This penalty is a weighted function of the epistemic uncertainty (the disagreement between ensemble members), measured using the expected Wasserstein distance between predicted return distributions.
  2. Dual TD-Learning: This is the "secret sauce." GPL learns the weight of the penalty ($\beta$) alongside the critic. It uses a dual optimization objective to keep the expected target bias at zero. It estimates current bias by comparing on-policy target returns with off-policy predictions—a process that adds almost zero computational cost.
  3. Pessimism Annealing: To boost early-stage exploration, the authors introduce a decay schedule for the penalty. This allows the agent to start with "optimism in the face of uncertainty" (seeking out high-uncertainty states) before settling into the learned, unbiased pessimism level.
Figure 2: Schematic overview of the GPL framework, where TD-errors drive both critic updates and the tuning of the uncertainty regularizer.

Datasets

The researchers evaluated GPL on two major sets of benchmarks:

  • OpenAI Gym MuJoCo: Five complex locomotion tasks (Hopper, HalfCheetah, Walker2d, Ant, Humanoid) using proprioceptive (internal state) observations.
  • DeepMind Control Suite (DMC): Twelve challenging tasks evaluated using pixel-based (visual) observations, which require the agent to learn directly from images.

Key Insights and Ideas

  • Bias is Dynamic: The most important "aha" moment is that bias is a moving target. Figure 1 clearly shows that a fixed penalty is destined to be either too weak or too strong at different points in time.
  • Wasserstein > Standard Deviation: While many ensemble methods use standard deviation to measure disagreement, the authors argue that Wasserstein distance is a more principled measure of uncertainty that generalizes better to distributional RL.
  • Efficiency through Architecture: To keep the computational cost low despite using ensembles, they implement the critic ensemble as a single neural network with split nodes. This allows GPL-SAC to run 2.4x faster than previous state-of-the-art ensemble methods like REDQ.

Key Results

GPL consistently outperformed both model-free and model-based baselines:

  • Humanoid-v2: GPL-SAC reached a score of 5000 in under 100k steps—9x faster than standard SAC and 2.5x faster than REDQ.
  • Pixel-based Control: On the DMC benchmark, GPL-DrQ (with pessimism annealing) achieved the highest scores on 11 out of 12 tasks, significantly outperforming DrQv2.
  • Statistical Robustness: Using the Rliable evaluation protocol, the authors showed that GPL's improvements are statistically significant and provide a much higher "probability of improvement" over baselines.
Figure 4: Aggregate performance metrics showing GPL's superior interquantile mean and lower optimality gap compared to state-of-the-art baselines.

Limitations and Future Work

The authors acknowledge that their "unbiasedness assumption" (used to derive the dual TD-learning update) might not hold perfectly in the complex, non-linear landscape of deep neural networks. While it works remarkably well in practice, a more rigorous formal analysis remains an open challenge.

Looking ahead, the authors suggest that GPL could be highly effective in Offline RL, where overestimation bias is even more severe because the agent cannot collect new data to correct its errors. They also see potential in combining GPL with more sophisticated Bayesian parameterizations to capture uncertainty even more efficiently.

Summary updated

BibTeX
@inproceedings{cetin2023learning,
  author = {Edoardo Cetin and Oya Celiktutan},
  title = {{Learning Pessimism for Robust and Efficient Off-Policy Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=EJZId41XXR},
}
Figure