Abstract
Using a model of the environment and a value function, an agent can construct many estimates of a state's value, by unrolling the model for different lengths and bootstrapping with its value function. Our key insight is that one can treat this set of value estimates as a type of ensemble, which we call an implicit value ensemble (IVE). Consequently, the discrepancy between these estimates can be used as a proxy for the agent's epistemic uncertainty; we term this signal model-value inconsistency or self-inconsistency for short. Unlike prior work which estimates uncertainty by training an ensemble of many models and/or value functions, this approach requires only the single model and value function which are already being learned in most model-based reinforcement learning algorithms. We provide empirical evidence in both tabular and function approximation settings from pixels that self-inconsistency is useful (i) as a signal for exploration, (ii) for acting safely under distribution shifts, and (iii) for robustifying value-based planning with a learned model.
Introduction
In reinforcement learning (RL), epistemic uncertainty—the agent's awareness of its own lack of knowledge—is critical for efficient exploration and safe deployment. Traditionally, quantifying this uncertainty requires "explicit ensembles," where multiple neural networks are trained in parallel to observe where their predictions diverge. While effective, this approach imposes significant computational overhead, often multiplying memory and processing requirements by the size of the ensemble.
This work introduces a method to derive a reliable uncertainty signal from a single model and value function, which are already present in most model-based RL architectures. By leveraging the inherent structure of temporal difference learning, we can generate an "implicit" ensemble without additional parameters.
The Implicit Value Ensemble (IVE)
The core of our approach is the Implicit Value Ensemble (IVE). In a model-based setting, an agent possesses a learned world model $\mathcal{T}_{\hat{m}}$ and a value function $\hat{v}$. For any given state $s$, the agent can generate multiple value estimates by "imagining" the future for different horizons $k$.
We define the k-step Model-Predicted Value (k-MPV) as the sum of predicted rewards over $k$ steps, followed by a bootstrap estimate from the value function at the final imagined state. By varying the look-ahead horizon $k$ (e.g., $k \in \{0, 1, \dots, n\}$), we obtain a set of estimates for the same state's value.
If the model and value function are perfectly consistent (i.e., they satisfy the Bellman equation), these estimates should converge. Disagreement among these estimates—model-value inconsistency—serves as a proxy for epistemic uncertainty. This signal is essentially "free," requiring only a few extra forward passes through existing components.
Experimental Evaluation
We evaluated the utility of model-value inconsistency across several benchmarks:
- Tabular Gridworld: Used for visualizing out-of-distribution (OOD) behavior in a controlled setting.
- Procgen: Testing generalization to unseen levels in visually complex environments.
- MinAtar: Evaluating value-based planning in simplified Atari-like games.
- DeepMind Control Suite (Walker): Testing exploration in continuous control tasks with sparse rewards.
Results and Discussion
Our experiments demonstrate that model-value inconsistency is a robust signal for several downstream tasks. In Procgen, the inconsistency signal was significantly higher on unseen test levels than on training levels, effectively flagging OOD states. In the Walker task, using IVE as an exploration bonus allowed agents to solve sparse-reward challenges that standard model-based agents failed to learn.
Furthermore, by averaging the members of the implicit ensemble (a form of Bayesian Model Averaging), we improved planning performance in MinAtar. The diversity in the IVE arises because different horizons are regressed against different temporal targets during training, providing a "secret" ensemble that performs competitively with explicit ensembles using 5x more parameters.
Conclusion
Model-value inconsistency provides a computationally efficient path to uncertainty estimation in RL. By treating different look-ahead horizons as an implicit ensemble, agents can identify regions of the state space where their internal models are inconsistent. Future work will explore architectural modifications to further enhance the diversity of these implicit estimates and integrate the signal more deeply into search algorithms like MCTS.
Summary updated