Benchmarks and Algorithms for Offline Preference-Based Reward Learning

Daniel Shin, Anca Dragan, Daniel S. Brown · DOI

TL;DR

This paper introduces Offline Preference-Based Reward Learning (OPRL), a novel framework that learns reward functions from human preferences using only pre-collected offline data, eliminating the need for real-world interactions or simulators. OPRL leverages active learning to efficiently query human preferences on trajectory segments from the offline dataset, enabling agents to learn complex behaviors not present in the original data.

What Problem Does This Paper Address?

Learning reward functions, especially from human preferences, is typically a data-intensive and potentially unsafe process. It often requires either expensive real-world robot interactions or high-fidelity simulators to generate data for preference queries. This paper addresses the challenge of learning reward functions and subsequently policies in an offline setting, meaning all data is collected beforehand and no further interactions with the environment are allowed during training. This is crucial for applications where real-world exploration is costly, dangerous, or impossible. The authors also highlight that many existing offline RL benchmarks are not suitable for evaluating reward learning methods because simple, uninformative reward functions often suffice for good performance.

Methods

The core of the paper is the Offline Preference-Based Reward Learning (OPRL) framework. It consists of two main stages:

  1. Offline Reward Learning:
    • Active Learning for Preferences: Instead of querying preferences in a simulator or real-world, OPRL samples trajectory snippets from an existing offline dataset. It then uses active learning strategies to select the most informative pairs of snippets for human preference labeling.
  2. Uncertainty Representation: The framework explores two methods for representing uncertainty in reward predictions: Ensembles (training multiple reward models) and Bayesian Dropout (using dropout during inference to approximate posterior uncertainty).
  3. Query Acquisition: Two strategies are employed to select informative queries: Disagreement (selecting pairs where ensemble models disagree the most) and Information Gain (selecting pairs that maximize the expected reduction in uncertainty about the reward function).
  4. Reward Model: A neural network is trained to predict reward functions based on the collected preference labels, using a Bradley-Terry pairwise preference model.
  5. Offline Policy Optimization:
    • Once a reward function is learned, any standard offline RL algorithm (like AWR or CQL) is used to train a policy using the learned reward function and the original offline dataset.

Datasets

The paper evaluates OPRL on several existing offline RL benchmarks from the D4RL (Datasets for Deep Data-Driven Reinforcement Learning) suite. They specifically identify and propose new benchmarks that are more suitable for evaluating reward learning, characterized by:

  • High Data Variability: Datasets containing a mix of data from different policies (e.g., random, expert, suboptimal).
  • Multi-task Data: Datasets where the agent has performed various tasks or navigated to different goals.

They also introduce new tasks like "Constrained Goal Navigation" and "Open Maze Behaviors" (e.g., learning specific orbit shapes) to better test the capabilities of preference-based reward learning.

Key Insights and Ideas

  • Offline Data is Rich for Preference Learning: The paper's central observation is that readily available offline datasets, often collected for other purposes, can be a surprisingly effective source for learning reward functions from human preferences.
  • Active Learning is Crucial: Simply using random pairs of trajectories for preference queries is less effective than active learning strategies that intelligently select informative pairs. Ensemble disagreement emerged as a particularly strong strategy.
  • Many Existing RL Benchmarks Are Too Easy for Reward Learning: The surprising finding that trivial reward functions (all zeros or constants) often lead to good performance in many D4RL environments suggests these benchmarks are not ideal for evaluating reward learning methods. This highlights the need for carefully curated or new benchmarks.
  • Learning Novel Behaviors: OPRL can enable agents to learn behaviors that are not explicitly present in the offline dataset, by combining learned preferences with the ability to stitch together trajectory segments. This is a significant step towards more flexible and adaptable agents.
  • Human Preferences are Powerful: Even a small number of human preference queries can significantly improve policy performance compared to using uninformative rewards or random queries, demonstrating the value of human guidance.

Key Results

  • Outperforming Baselines: OPRL, particularly with ensemble disagreement as the query strategy, consistently outperformed random query baselines and other methods like T-REX across various D4RL environments.
  • Efficiency: The framework achieved performance comparable to policies trained with ground-truth rewards using only a small number of preference queries (e.g., 10-15 queries for Maze2D).
  • Novel Behavior Learning: In new benchmarks, OPRL successfully learned behaviors like constrained navigation and specific trajectory shapes (e.g., counter-clockwise orbits) that were not present in the offline data.
  • Human Study Validation: A pilot user study showed that human preferences collected through OPRL could lead to policies that closely matched desired behaviors, with pooled user preferences yielding better results than individual users.

Limitations and Future Work

  • Benchmark Suitability: The paper identifies that many standard offline RL benchmarks are not challenging enough for evaluating reward learning methods, necessitating the use of curated or new benchmarks.
  • Computational Cost: Training ensembles of reward models can be computationally intensive.
  • Interaction with Policy Algorithms: The paper notes that the effectiveness of different query mechanisms can interact with specific offline RL algorithms, suggesting a need for further research into these interactions.
  • Future Work: The authors suggest developing more complex and realistic datasets and benchmarks, as well as exploring new offline RL algorithms and active query strategies tailored for reward inference. They also envision OPRL's applicability in domains like healthcare, finance, and robotics, where learning human intent is crucial.

Summary updated

BibTeX
@article{shin2023benchmarks,
  author = {Daniel Shin and Anca Dragan and Daniel S. Brown},
  title = {{Benchmarks and Algorithms for Offline Preference-Based Reward Learning}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2023},
}
Figure