NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Model-Based Uncertainty in Value Functions

Carlos E. Luis, Alessandro G. Bottero, Julia Vinogradska, Felix Berkenkamp, Jan Peters

Abstract

We consider the problem of quantifying uncertainty over expected cumulative rewards in model-based reinforcement learning. In particular, we focus on characterizing the variance over values induced by a distribution over MDPs. Previous work upper bounds the posterior variance over values by solving a so-called uncertainty Bellman equation, but the over-approximation may result in inefficient exploration. We propose a new uncertainty Bellman equation whose solution converges to the true posterior variance over values and explicitly characterizes the gap in previous work. Moreover, our uncertainty quantification technique is easily integrated into common exploration strategies and scales naturally beyond the tabular setting by using standard deep reinforcement learning architectures. Experiments in difficult exploration tasks, both in tabular and continuous control settings, show that our sharper uncertainty estimates improve sample-efficiency.

Introduction

In Reinforcement Learning (RL), agents must navigate the fundamental trade-off between exploiting known rewards and exploring unknown states. A principled approach to this challenge is "optimism in the face of uncertainty," where an uncertainty bonus is added to expected rewards to encourage exploration of poorly understood regions. In Model-Based RL, this requires quantifying uncertainty about long-term policy performance, typically represented by the value function.

While previous research introduced the "Uncertainty Bellman Equation" (UBE) to estimate this variance, these formulations often provide only an upper bound. This over-approximation stems from a failure to distinguish between epistemic uncertainty (lack of data) and aleatoric uncertainty (inherent environmental noise). Consequently, agents may over-explore noisy but well-understood regions. This paper introduces a new UBE that isolates epistemic uncertainty to provide exact posterior variance estimates.

Methodology

The core contribution is a mathematically derived UBE whose fixed-point solution converges exactly to the true posterior variance of the value function, assuming independent transitions and acyclic environments.

Isolating Epistemic Uncertainty

The authors redefine the "local uncertainty" reward propagated through the Bellman equation. By explicitly subtracting the average aleatoric noise from the total uncertainty, the formulation isolates pure epistemic uncertainty. This characterization reveals that the gap in previous upper bounds is exactly the expected aleatoric uncertainty of subsequent states.

Implementation

  • Tabular RL: The exact variance calculation is integrated into a standard Upper Confidence Bound (UCB) policy iteration loop.
  • Deep RL: The method scales using the Model-Based Policy Optimization (MBPO) architecture. An ensemble of probabilistic neural networks models environment dynamics. A dedicated "U-net" is trained to approximate the solution to the new UBE, providing scalable variance estimates for exploration.

Experimental Results

Tabular Exploration: DeepSea

The method was evaluated on the DeepSea benchmark, a challenging grid-world task requiring deep exploration. The exact-UBE approach significantly outperformed strong baselines, including PSRL and previous UBE formulations, showing superior scaling as the grid size increased.

Performance on the DeepSea benchmark across various sizes.

Robustness to Aleatoric Noise

To test robustness against inherent noise, the authors used a Sparse Inverted Pendulum task with injected Gaussian noise. While standard ensemble-based methods often over-explore this noise, the exact-UBE method successfully ignored it, maintaining high sample efficiency even as noise levels increased.

Learning curves on the Sparse Pendulum task with varying levels of injected angle noise.

Discussion and Limitations

A key insight is that calculating exact variance may require "negative uncertainty rewards" to offset downstream variance accumulation. However, in Deep RL, where neural networks generalize across states, the assumption of independent transitions is violated. This can occasionally lead to impossible negative variance estimates. To address this, the authors introduced a practical workaround by clipping uncertainty rewards to a minimum value (umin). Bridging the gap between tabular theory and deep RL function approximation remains a primary area for future research.

Conclusion

By providing sharper uncertainty estimates that distinguish between what an agent doesn't know and what is inherently unpredictable, the proposed UBE enables more efficient exploration. The method's success in both tabular benchmarks and continuous control tasks demonstrates the practical value of exact variance quantification in reinforcement learning.

Summary updated

BibTeX
@inproceedings{luis2023model,
  author = {Carlos E. Luis and Alessandro G. Bottero and Julia Vinogradska and Felix Berkenkamp and Jan Peters},
  title = {{Model-Based Uncertainty in Value Functions}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
  url = {https://openreview.net/forum?id=P1oywKNwsF},
}
Figure