Revisiting Bellman Errors for Offline Model Selection

Joshua P Zitovsky, Daniel de Marchi, Rishabh Agarwal, Michael Rene Kosorok

Abstract

Offline Model Selection (OMS) is a critical bottleneck for deploying reinforcement learning (RL) in real-world applications where environment interaction is restricted. While Mean Squared Bellman Error (MSBE) was historically considered a natural metric for policy evaluation, it was largely dismissed due to its perceived unreliability in stochastic settings. This paper introduces Supervised Bellman Validation (SBV), a regression-based approach that rehabilitates Bellman errors for OMS. By training a dedicated "Bellman network" to estimate expected next-state values, SBV effectively mitigates the bias inherent in empirical Bellman errors. Experiments across diverse domains—including Atari games and healthcare simulations—demonstrate that SBV consistently identifies high-performing policies, often outperforming traditional Off-Policy Evaluation (OPE) methods.

Introduction

In Offline Reinforcement Learning, agents are trained using fixed, pre-collected datasets without the luxury of live interaction. This paradigm is essential for high-stakes fields like healthcare or robotics, where trial-and-error is either dangerous or prohibitively expensive. However, this creates a significant challenge: how do we identify the best-performing agent from a pool of candidates before deployment?

Historically, researchers looked to the Mean Squared Bellman Error (MSBE)—a measure of how consistent an agent's value predictions are with the rewards it receives. However, early experiments suggested that MSBE was a poor predictor of actual performance, leading the community to favor complex Off-Policy Evaluation (OPE) methods. This research argues that Bellman errors were not the problem; rather, the standard methods used to estimate them were mathematically biased.

The Method: Supervised Bellman Validation (SBV)

The authors identify that standard "empirical" Bellman errors (EMSBE) are inherently biased in any environment that is not perfectly deterministic. To resolve this, they propose Supervised Bellman Validation (SBV), which treats the estimation of the Bellman backup as a supervised regression problem.

The SBV workflow consists of four primary steps:

  1. Data Splitting: The offline dataset is divided into a training set and a validation set.
  2. Candidate Training: Multiple candidate agents (Q-functions) are trained on the training set using various hyperparameters.
  3. The Bellman Network: For each candidate agent, a separate "Bellman network" is trained. This network learns to predict the expected next-state value specifically for that agent's policy.
  4. Validation: The MSBE is calculated on the held-out validation set by comparing the agent's predictions to the Bellman network's smoothed predictions, effectively "averaging out" environmental noise.

Key Insights

The Importance of Architecture Parity

A practical insight from this work is that Bellman errors likely failed in previous studies because researchers used simple linear models to validate complex neural networks. The authors demonstrate that for SBV to be effective, the Bellman network must be just as powerful (in terms of architecture) as the agent it is validating.

Selection vs. Correlation

A common critique of Bellman errors is that they do not correlate perfectly with actual returns. However, the authors show that for the purpose of model selection, a perfect linear correlation is unnecessary. As long as the models with the lowest errors are among the highest performers, the metric is successful for OMS.

Experimental Results

The researchers evaluated SBV across several challenging benchmarks:

  • Robustness to Noise: In controlled toy MDP experiments, SBV remained stable and accurate as environmental stochasticity increased, while standard estimators failed.
  • Atari Benchmarks: On high-dimensional visual tasks like Pong and Seaquest, SBV consistently selected policies in the top 5% of available candidates, outperforming standard OPE baselines such as Importance Sampling (WIS) and Fitted Q-Evaluation (FQE).
  • Sparse Rewards and High Noise: In the mHealth (mobile health) and Bicycle Balancing tasks, SBV proved to be the most reliable method. Other methods, particularly WIS, failed significantly on the Bicycle task due to its sparse reward structure.

Limitations and Future Work

While SBV is highly effective, it does introduce additional computational overhead, as it requires training a separate validator network for every candidate model. Furthermore, the current formulation is optimized for discrete action spaces; extending this to continuous control (e.g., robotics) remains a challenge due to the difficulty of calculating the maximum value over infinite possible actions. Finally, like all offline methods, SBV is limited by "data coverage"—it cannot accurately evaluate a model's performance in regions of the environment not represented in the original dataset.

Conclusion

By addressing the fundamental bias in empirical Bellman errors through supervised regression, SBV provides a robust and scalable solution for Offline Model Selection. This work suggests that Bellman errors, when estimated correctly, are a powerful tool for identifying reliable AI agents before they are deployed in the real world.

Summary updated

BibTeX
@inproceedings{zitovsky2023revisiting,
  author = {Joshua P Zitovsky and Daniel de Marchi and Rishabh Agarwal and Michael Rene Kosorok},
  title = {{Revisiting Bellman Errors for Offline Model Selection}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=l3uttHb0YW},
}
Figure