Abstract
Batch Reinforcement Learning (RL) is crucial for real-world applications where online exploration is prohibited due to safety or cost constraints. While Safe Policy Improvement with Baseline Bootstrapping (SPIBB) provides theoretical safety guarantees, it traditionally requires prior knowledge of the baseline policy. This paper introduces a framework for safe policy improvement using an estimated baseline policy. We provide the first theoretical safety proofs for this "black-box" setting and demonstrate through extensive experiments that our approach maintains high reliability and superior performance across both discrete and continuous environments.
Introduction
In high-stakes environments such as healthcare or industrial control, RL agents must learn from fixed datasets of historical transitions rather than through trial and error. A significant challenge in this "Batch RL" setting is ensuring that the learned policy does not perform worse than the existing "baseline" policy that generated the data. SPIBB algorithms address this by restricting the agent's deviations from the baseline in states with insufficient data. However, the assumption that the baseline policy is known is often unrealistic. This work bridges the gap by enabling safe improvement using only the observed actions in the dataset.
Methodology
The proposed approach involves a two-stage process to handle unknown baselines:
- Baseline Estimation: For discrete state spaces, the baseline policy ($\hat{\pi}_b$) is estimated using a Maximum Likelihood Estimate (MLE) based on state-action counts. In continuous state spaces, where simple counting is infeasible, the authors employ Behavioral Cloning—training a neural network to mimic the behavior observed in the dataset.
- Safe Policy Improvement: The estimated baseline is integrated into the SPIBB and Soft-SPIBB frameworks. SPIBB uses a hard threshold to decide when to bootstrap the baseline, while Soft-SPIBB employs a cumulative error budget for more flexible policy adjustments.
A key contribution of this work is Theorem 3.2, which provides a formal proof that the resulting policy is safe with high probability, even when relying on an estimate rather than the true baseline.
Experimental Evaluation
Finite MDPs
The researchers first tested the framework on random finite Markov Decision Processes (MDPs) with 50 states and 4 actions. This setup allowed for rigorous testing across thousands of scenarios with varying dataset sizes.
As shown in the results, SPIBB methods using estimated baselines (e.g., $\hat{\Pi}_b$-Soft) significantly outperform standard RL. Notably, while "Basic RL" (dynamic programming) often produces policies with catastrophic worst-case performance (low 1%-quantile) when data is scarce, the SPIBB-based methods remain stable and safe.
Helicopter Domain
To evaluate the method's scalability, it was applied to the Helicopter domain, a continuous state-space task. Here, the baseline was estimated using a neural network.
In this complex environment, Soft-SPIBB with a neural-estimated baseline achieved a mean performance of 2.48. In contrast, Reward-adjusted MDPs (RaMDP) achieved only 0.37, and standard Double-DQN resulted in a disastrous performance of -0.77. These results underscore the practical utility of the method in high-dimensional tasks.
Key Insights
- The Variance Benefit: Interestingly, using an estimated baseline sometimes yields better results than the true baseline. The variance inherent in the estimation process can occasionally nudge the agent toward superior actions that the original baseline might have overlooked.
- Robustness to Small Data: The framework is particularly effective when data is limited. By falling back to the estimated baseline in uncertain regions, it avoids the "over-optimism" that leads standard RL algorithms to fail.
- Safety Without Oracles: The theoretical and empirical results confirm that a perfect "oracle" baseline is not required for safe improvement; a reliable estimate derived from the data is sufficient.
Conclusion
This research significantly advances the field of safe offline RL by removing the requirement for a known baseline policy. By combining baseline estimation with bootstrapping techniques, the authors provide a robust framework that is both theoretically grounded and practically effective. Future work will explore extending these methods to continuous action spaces and multi-batch update scenarios.
Summary updated