Abstract
Selecting the optimal policy in offline reinforcement learning (OffRL) is a critical challenge because candidate policies cannot be validated in a simulator. We introduce Pessimistic Model Selection (PMS), a framework that leverages statistical uncertainty to identify policies with the highest "performance floor" (lower confidence bound). By employing sequential data splitting and doubly robust estimators, PMS provides theoretical safety guarantees and significantly outperforms traditional evaluation methods. Our experiments across diverse benchmarks, including Atari and MuJoCo, demonstrate that PMS effectively mitigates the risks of overfitting and overestimation in offline settings.
Introduction
In standard online Reinforcement Learning (RL), agents learn through direct interaction with a simulator, allowing for straightforward performance validation. However, in Offline RL (OffRL), agents must learn from a fixed dataset of logged experiences. This constraint introduces two primary hurdles:
- Overfitting: Models may appear to perform well on logged data by "hallucinating" high rewards in states poorly represented in the dataset.
- Lack of Ground Truth: Without a simulator, researchers must rely on Off-Policy Evaluation (OPE) to estimate policy performance. Existing OPE methods often suffer from high variance or systematic overestimation.
PMS addresses these issues by providing a mathematically grounded selection mechanism for hyperparameters and architectures in OffRL.
Methodology: The PMS Framework
The core principle of Pessimistic Model Selection (PMS) is to prioritize the "worst-case" performance. Instead of selecting a model based on its highest estimated value, PMS selects the one whose lower confidence interval bound is maximized.
Key Components
- Sequential Data Splitting: To respect the temporal and Markovian nature of RL data, the offline dataset is divided into $O$ non-overlapping chunks. Training occurs on initial chunks, while evaluation is performed on subsequent ones, preventing the data leakage common in standard cross-validation.
- Doubly Robust (DR) Estimators: PMS utilizes DR estimators, which combine a Q-function (reward prediction) and a density ratio (data correction). This approach is "doubly robust" because the estimate remains valid if either the Q-function or the density ratio model is correctly specified.
- Uncertainty Quantification: Through asymptotic analysis, the framework derives precise confidence intervals for each candidate policy's value.
- Refined Selection (R1 & R2): To account for potential biases in candidate models, the authors incorporate variants based on Lepski’s principle, ensuring robust selection even when no candidate is perfectly specified.
Experimental Setup
The researchers evaluated PMS against 70 candidate models (varying architectures and hyperparameters) across six distinct environments:
- Tabular & Navigation: FrozenLake-v0 and Banana Collector (3D Unity environment).
- Digital Gaming: Atari benchmarks (Pong and Breakout).
- Continuous Control: MuJoCo physics tasks (HalfCheetah and Walker2d).
Key Results
PMS consistently identified top-performing models where standard methods failed. In the Banana Collector task, for instance, traditional methods like Weighted Importance Sampling (WIS) and Fitted Q-Evaluation (FQE) were prone to selecting overfitted models.
As illustrated in the figure above, PMS achieves a higher correlation ($\rho = 0.895$) with the true policy value compared to baselines. The "Top 10%" candidates selected by PMS (dark blue dots) are tightly clustered near the diagonal, indicating highly accurate and reliable selection.
Discussion and Insights
- Pessimism as a Safety Mechanism: By focusing on the lower confidence limit, PMS ensures a high guaranteed performance floor, neutralizing the risk of deploying "lucky" but overfitted models.
- Theoretical Soundness: The paper provides "regret" bounds, mathematically limiting the gap between the chosen policy and the true optimum.
- Ease of Use: PMS is nearly tuning-free, requiring only two interpretable parameters: the number of data splits ($O$) and the confidence level ($\alpha$). Sensitivity analysis confirms that the method is robust to noise and varying training data sizes.
Conclusion and Future Work
While PMS offers a significant advancement in OffRL model selection, it introduces computational overhead due to the need for multiple training runs across data splits. Future research should focus on optimizing this cost and testing the framework on "messy" real-world datasets—such as those in healthcare or recommendation systems—where data noise and bias are more prevalent than in simulated benchmarks.
Summary updated