Boosting Offline Reinforcement Learning with Action Preference Query

Qisen Yang, Shenzhi Wang, Matthieu Gaetan Lin, Shiji Song, Gao Huang

TL;DR

This paper introduces Offline-with-Action-Preferences (OAP), a novel method to improve offline reinforcement learning (RL) without requiring any online interaction. OAP leverages action preferences, queried from a blackbox model, to adaptively constrain the policy, leading to significantly better performance than existing offline RL methods, especially in challenging environments.

What Problem Does This Paper Address?

Reinforcement learning agents typically learn by interacting with their environment. However, in many real-world scenarios like autonomous driving or healthcare, online interaction is either too expensive or too dangerous. This leads to the field of offline RL, where agents learn solely from a pre-collected dataset. A major challenge in offline RL is the "distributional shift" – the discrepancy between the data distribution in the dataset and the distribution of states and actions the learned policy might encounter. This can lead to overestimation of out-of-distribution (OOD) actions, causing performance degradation. While online fine-tuning can correct these errors, it reintroduces the problem of costly or risky interactions. This paper addresses the need for a safer and more effective way to boost offline RL performance without any online interaction.

Methods

The proposed method, Offline-with-Action-Preferences (OAP), tackles the OOD problem by introducing an "interaction-free" training scheme. OAP works in three main steps:

  1. Action Preference Query: A small subset of the offline dataset is selected. For these samples, preferences between the action taken in the dataset and the action suggested by the current policy are queried. This query is made using a "blackbox" model, which could be a proprietary expert model or, in this paper, an accurate state-action value function. The goal is to identify actions that are potentially better or worse than those in the dataset.
  2. Pseudo Query with RankNet: Since querying all samples is infeasible, a RankNet is trained on the queried samples to learn a preference model. This learned model then generates "pseudo queries" for the rest of the dataset, effectively expanding the scope of preference information.
  3. Adjusted Policy Constraint: The core idea is to adaptively adjust the policy's constraint based on the learned preferences. If the current policy's action is preferred over the dataset action, the constraint is loosened, encouraging exploration. Conversely, if the dataset action is preferred, the constraint is tightened, suppressing potentially erroneous OOD actions. This adaptive constraint mechanism is integrated into the policy optimization objective.

Datasets

The paper evaluates OAP on the D4RL (DeepMind Robot Learning Datasets) benchmark, which is a standard for offline RL research. Specifically, they use tasks from three domains:

  • Gym: Includes various environments like HalfCheetah, Hopper, and Walker2d with different data qualities (random, medium, medium-replay, medium-expert).
  • AntMaze: Navigation tasks requiring complex control, known for being challenging for offline RL.
  • Adroit: Tasks involving controlling a robotic hand.

Key Insights and Ideas

  • Action Preferences as a Safer Alternative: The paper argues that querying action preferences can be as, or even more, effective than online fine-tuning for correcting OOD errors, while completely avoiding online interactions.
  • Adaptive Policy Constraints: OAP's key innovation is adaptively adjusting policy constraints based on action preferences. This allows the agent to be more aggressive when preferences suggest improvement and more conservative when they indicate potential errors.
  • Robustness to Imperfect Preferences: Theoretical analysis suggests that OAP can still provide performance improvements even if the action preference queries are not perfectly accurate, making it practical for real-world scenarios where expert models might be sub-optimal.
  • RankNet for Scalability: Using RankNet to generate pseudo-queries is crucial for scaling the preference learning approach to large offline datasets, as direct querying of all samples is computationally prohibitive.

Key Results

  • OAP significantly outperforms existing offline RL methods, including the popular "Offline-to-Online" (O2O) scheme, across all tested domains.
  • On average, OAP achieves 29% higher scores than O2O.
  • In challenging AntMaze tasks, OAP shows a remarkable improvement of 98% higher scores.
  • OAP is demonstrated to be safer than O2O because it does not require any online interactions.
  • Experiments show that OAP can achieve substantial performance gains even when the blackbox policy providing preferences is sub-optimal.

Limitations and Future Work

  • Blackbox Model Quality: While OAP is shown to be robust to imperfect preferences, the performance still depends to some extent on the quality of the blackbox preference model.
  • Query Efficiency: Although OAP uses RankNet to scale, the number of direct queries is still limited. Future work could explore more efficient ways to select samples for direct querying or improve the RankNet's accuracy.
  • Future Directions: The authors suggest exploring OAP with weaker action preferences, more intricate policy constraints, state/trajectory preferences, revised Q-learning, and adaptive uncertainty estimation. They also highlight the potential for OAP to facilitate user-adaptive RL agents, while cautioning against potential misuse for biased agents.

Summary updated

BibTeX
@inproceedings{yang2023boosting,
  author = {Qisen Yang and Shenzhi Wang and Matthieu Gaetan Lin and Shiji Song and Gao Huang},
  title = {{Boosting Offline Reinforcement Learning with Action Preference Query}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=XiGijCSGjx},
}
Figure