Estimating the Maximum Expected Value in Continuous Reinforcement Learning Problems

Carlo D'Eramo, Alessandro Nuara, Matteo Pirotta, Marcello Restelli

Abstract

In Reinforcement Learning (RL), the "optimizer's curse"—a systematic overestimation of expected values—often leads to sub-optimal policies and algorithmic instability. This paper introduces a novel framework to estimate the maximum expected value of an infinite set of random variables. By integrating the Weighted Estimator (WE) framework with Gaussian Process (GP) regression and product integrals, we develop Weighted FQI∞. This algorithm natively handles continuous state and action spaces, mitigating overestimation bias without the need for inefficient discretization. Empirical evaluations on pricing and control tasks demonstrate that our approach provides more stable and accurate value estimates, leading to superior performance compared to standard and Double Q-Learning baselines.

Introduction

Reinforcement Learning agents frequently encounter the Bellman optimality equation, which involves a maximization over expected action values. However, true expected values are rarely known; agents must rely on noisy estimates. This discrepancy leads to the "optimizer’s curse": the maximum of a set of noisy estimates is systematically higher than the maximum of the true underlying values. In iterative algorithms like Q-Learning, this overestimation bias accumulates, often resulting in poor policies or divergence.

Problem Statement

While existing solutions like Double Q-Learning and the finite Weighted Estimator (WE) address this bias in discrete action spaces, they are difficult to apply to continuous domains. Practitioners often resort to discretization (binning), which introduces a fundamental trade-off: coarse binning loses precision, while fine binning increases the number of variables, thereby exacerbating the overestimation bias of standard estimators. This research proposes a method to handle infinitely many random variables natively.

Methodology

The authors extend the Weighted Estimator (WE) to the continuous case. The finite WE calculates a weighted average of all estimates, where each weight corresponds to the probability of that estimate being the maximum. Generalizing this to continuous spaces requires three key components:

  1. Gaussian Process (GP) Regression: Used to model the action-value function, providing both mean estimates and the uncertainty (variance) necessary for calculating WE weights.
  2. Product Integrals: A mathematical tool employed to compute the joint probability that a specific variable is the maximum among an infinite set.
  3. Weighted FQI∞: An implementation within the Fitted Q-Iteration framework that handles continuous states and actions natively without discretization.

Experimental Results

The proposed framework was evaluated on a synthetic Pricing Problem and the classic Pendulum Swing-up benchmark.

In the Pricing Problem, the continuous WE (WE∞) achieved significantly lower bias than the Maximum Estimator (ME) and more consistent results than the Double Estimator (DE). Crucially, WE∞ maintained this performance across various sample sizes without requiring the manual tuning of bin sizes.

Mean bias comparison across different sample sizes ($n_s$) and bin counts ($n_b$). The Weighted Estimator (WE) consistently maintains a lower absolute bias compared to the Maximum Estimator (ME) and Double Estimator (DE).

In the Pendulum Swing-up task, the Weighted FQI approach demonstrated superior performance and stability. As shown in the training curves, the Weighted approach consistently achieved higher average rewards than both standard FQI and Double FQI as the number of training episodes increased. For instance, with 20 training episodes, Weighted FQI∞ achieved an average reward of 0.823, compared to 0.793 for standard FQI and 0.767 for Double FQI.

Average reward comparison on the Pendulum Swing-up task. The Weighted FQI approach outperforms standard FQI and Double FQI as the number of episodes increases.

Discussion

The Weighted Estimator acts as a robust middle ground, staying between the positive bias of ME and the negative bias of DE. By leveraging spatial correlation through GPs, the agent can effectively "fill in the gaps" of the continuous action space. This avoids the "double-edged sword" of discretization, where increasing the number of bins to improve resolution typically worsens overestimation bias. Furthermore, the Weighted FQI showed much lower variance in performance across different dataset sizes, suggesting it is more stable than its counterparts.

Conclusion

The continuous Weighted Estimator provides a principled way to mitigate the optimizer's curse in continuous RL. Although Gaussian Processes and product integrals increase computational complexity, the gains in stability and performance are substantial. Future research will focus on scaling these methods to high-dimensional action spaces and integrating them with deep neural networks.

Summary updated

BibTeX
@inproceedings{deramo2017estimating,
  author = {Carlo D'Eramo and Alessandro Nuara and Matteo Pirotta and Marcello Restelli},
  title = {{Estimating the Maximum Expected Value in Continuous Reinforcement Learning Problems}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.10887},
}
Figure