Offline reinforcement learning (RL) presents a significant challenge: learning an optimal policy from a fixed dataset without further environment interaction. The primary obstacle is distribution shift, where the learning policy explores actions outside the dataset's coverage, leading to over-optimistic value estimates. This paper introduces State-Aware Proximal Pessimism (SA-PP), a framework that refines the application of pessimism by considering state occupancy ratios.
The Challenge of Uniform Pessimism
In offline RL, agents often "hallucinate" high rewards for out-of-distribution (OOD) actions. Standard approaches mitigate this using the pessimism principle, penalizing the agent for straying from the behavior policy. However, most methods apply a uniform penalty across all states. This can lead to over-pessimism in well-explored, safe states and under-pessimism in rare, risky states.
The authors argue that the intensity of pessimism should be modulated by how frequently a state appears in the dataset relative to how often the learning policy intends to visit it. If a state is well-represented, the agent can trust its estimates more; if it is rare, the agent should be more cautious.
State-Aware Proximal Pessimism (SA-PP)
The proposed SA-PP framework introduces a state-aware modulation term. Instead of a fixed regularization parameter, the penalty is scaled by the ratio $w^{\pi/D}(s) = d_\pi(s) / d_D(s)$, where $d_\pi(s)$ is the state distribution of the learning policy and $d_D(s)$ is the distribution in the offline dataset.
SA-CQL Algorithm
To implement this, the authors developed SA-CQL, which integrates state-aware re-weighting into the popular Conservative Q-Learning (CQL) algorithm. To estimate the unknown future state distribution ratios, they utilize DualDICE, a model-free density ratio estimator. Theoretical analysis confirms that this approach provides a tighter suboptimality upper bound compared to standard pessimistic methods, theoretically improving the likelihood of finding a near-optimal policy.
Experimental Results
The authors evaluated SA-CQL on the D4RL and Atari benchmarks. SA-CQL achieved state-of-the-art performance, outperforming baselines like CQL, F-BRC, and EDAC. Notably, it reached a highest average normalized score of 80.3 on D4RL tasks.
As shown in the training curves, SA-CQL demonstrates stable convergence in both expert and complex replay datasets. On Atari tasks, the improvements were particularly pronounced in games like Qbert, where SA-CQL significantly outperformed the original CQL.
Conclusion
SA-PP demonstrates that pessimism in offline RL is not "one size fits all." By accounting for state occupancy discrepancies, SA-CQL achieves superior performance and computational efficiency compared to ensemble-based methods. Future work aims to extend the theoretical proofs from tabular settings to continuous function approximation and explore more complex, high-dimensional environments.
Summary updated