Abstract
Reinforcement Learning (RL) often struggles with the manual design of reward functions for complex tasks. While preference-based RL offers a solution by leveraging human feedback, traditional online methods are often impractical due to safety and cost constraints. This paper explores Offline Preference-Based Reward Learning (OPRL), a framework that learns reward functions from static datasets and limited human preferences. We demonstrate that OPRL can effectively "stitch" together offline data fragments to perform novel tasks and introduce new benchmarks to evaluate reward learning independently of imitation.
1. Introduction
Standard Reinforcement Learning relies on well-defined reward functions, which are notoriously difficult to specify for nuanced human preferences. Preference-based RL (PbRL) addresses this by allowing humans to rank trajectory segments (e.g., "Do you prefer A or B?"). However, online PbRL requires real-time execution in a simulator or physical environment, which is often dangerous, computationally expensive, or physically impossible.
Offline RL offers a safer alternative by using pre-collected datasets. However, the authors identify a major flaw in current research: many standard benchmarks (like D4RL) are "too easy" for reward learning. In these cases, agents often succeed via simple imitation of expert data rather than true reward inference. This work formalizes the OPRL framework and provides a rigorous evaluation of its components and benchmarks.
2. The OPRL Framework
The OPRL process operates in three distinct phases:
- Active Query Selection: To maximize the utility of limited human feedback, the system identifies the most informative trajectory pairs from the offline dataset. The authors evaluate two uncertainty-estimation techniques—Ensembles and Bayesian Dropout—to guide this selection by finding segments where the model is most uncertain.
- Reward Inference: Using the Bradley-Terry model, binary preferences provided by a human (or an oracle) are transformed into a continuous reward function represented by a neural network.
- Policy Optimization: The learned reward function is used to relabel the entire offline dataset. Subsequently, a standard offline RL algorithm—such as Advantage Weighted Regression (AWR) or Conservative Q-Learning (CQL)—is applied to train the final policy.
A key advantage of this framework is "stitching." The reward model can recognize preferred behaviors across disparate, short fragments of data. This allows the RL agent to execute complex sequences—such as a full continuous orbit in a maze—even if those sequences never appeared in their entirety in the original dataset.
3. Benchmarking Reward Learning
A significant contribution of this research is the identification of the "Trivial Reward" problem. The authors developed a "degradation percentage" metric to prove that many RL benchmarks are unsuitable for testing reward learning; if an agent performs well with a reward of zero, the benchmark is testing imitation, not inference. To address this, the authors introduced new "Open-Ended" benchmarks:
- Constrained Maze: Reaching a goal while avoiding a specific "forbidden" zone.
- Open Maze Behaviors: Learning to patrol in specific shapes (orbits, "2" shapes, or "Z" shapes).
- Open-Ended CartPole: A modified version where the pole can swing 360 degrees, requiring the agent to learn "windmilling" or balancing from scratch.
4. Key Results and Insights
Our experiments yield several critical findings:
- Query Efficiency: In the Maze2D-Umaze task, OPRL achieved 93.5% of the performance of an agent trained with ground-truth rewards using only 15 human queries.
- Emergent Behaviors: OPRL successfully trained agents to perform continuous counter-clockwise orbits in an open maze, despite the training data containing zero examples of a full orbit.
- Active Learning Superiority: Selecting queries based on "Ensemble Disagreement" significantly outperformed random sampling, focusing human attention on the most ambiguous state-space regions.
- Algorithm Coupling: The choice of uncertainty quantification and offline RL algorithm are coupled; Ensembles paired most effectively with AWR, while Bayesian Dropout was more compatible with CQL.
- Human Feasibility: A pilot study with six participants confirmed that non-experts could successfully use OPRL to teach robots complex navigation and patrolling behaviors.
5. Limitations and Conclusion
While OPRL is powerful, it is constrained by the coverage of the offline dataset. If the robot never visited a certain region in the offline data, it cannot learn what to do there, regardless of the reward quality. Additionally, the computational cost of maintaining ensembles and searching for queries remains a hurdle for real-time human interaction. Future work will focus on scaling OPRL to high-dimensional robotic manipulation and further investigating the algorithmic interactions between reward learning and policy optimization.
Summary updated