Abstract
Preference-based Reinforcement Learning (PbRL) has emerged as a powerful paradigm for training agents in environments where reward functions are difficult to specify manually. However, standard model-free PbRL approaches often require extensive real-world interaction, which is both time-consuming and potentially hazardous. This paper presents MoP-RL (Model-based Preference-based Reinforcement Learning), a framework that integrates learned dynamics models into the preference learning pipeline. By utilizing a learned model to "imagine" trajectories, MoP-RL enables efficient reward pre-training and diverse query generation without requiring exhaustive physical rollouts. Our results demonstrate that MoP-RL significantly outperforms state-of-the-art model-free methods in sample efficiency and success rates across a variety of tasks, including pixel-based navigation and complex robotic manipulation.
Introduction
Reinforcement Learning (RL) typically relies on a well-defined reward function to guide agent behavior. In complex, real-world scenarios—such as teaching a robot to perform a natural-looking backflip or providing assistive care—designing these functions is notoriously difficult and prone to reward hacking. Preference-based RL (PbRL) addresses this by allowing humans to rank pairs of trajectories, effectively teaching the agent what is desirable through qualitative feedback.
Despite its promise, PbRL faces a significant hurdle: sample inefficiency. Most existing methods are model-free, requiring thousands of interactions with the environment to learn both the task dynamics and the reward model. This is particularly problematic in physical robotics where every rollout carries a cost and a risk of hardware damage. MoP-RL addresses these challenges by learning a dynamics model of the environment, allowing the agent to perform the bulk of its learning and "query generation" in a safe, simulated sandbox.
Methodology
The MoP-RL framework consists of four primary components designed to maximize data efficiency and feedback utility:
1. Dynamics Learning and Exploration
The agent begins by exploring the environment to learn a transition model—a predictive map of how its actions influence the state of the world. To ensure the model covers a wide range of possible states, MoP-RL employs Random Network Distillation (RND), which encourages the agent to visit novel areas of the state space.
2. Model-based Reward Pre-training (D-REX)
If a small number of suboptimal demonstrations are available, MoP-RL uses the learned dynamics model to perform Model-based D-REX. The system simulates various "noisier" versions of these demonstrations. By automatically ranking these simulated trajectories (assuming the original demo is better than the noisy versions), the agent can pre-train a baseline reward model before a human ever provides a single label.
3. CEM-based Query Generation
To refine the reward model, the agent must present the human with informative pairs of trajectories. MoP-RL leverages the Cross Entropy Method (CEM), a common planning algorithm. While CEM typically focuses on finding the single best trajectory, MoP-RL saves the "non-elite" trajectories generated during the optimization process. These trajectories represent a spectrum of behaviors—from clumsy attempts to refined successes—providing a naturally diverse set of queries for the human labeler.
4. Active Learning via Information Gain
Rather than presenting random pairs to the user, MoP-RL uses an active learning strategy. It selects pairs that maximize Information Gain, specifically targeting trajectories where the current reward model is most uncertain. This ensures that every human interaction provides the maximum possible benefit to the learning process.
Experimental Results
The researchers evaluated MoP-RL against PEBBLE, a leading model-free PbRL algorithm, across four distinct environments: Maze-LowDim, Maze-Image (pixel-based), Assistive-Gym (robotic scratching task), and Hopper (backflip task).
Sample Efficiency and Success Rates
MoP-RL demonstrated a drastic reduction in the number of real-world rollouts required to achieve high performance:
- Maze-LowDim: MoP-RL reached a 100% success rate with only 30 rollouts, compared to the 200 rollouts required by PEBBLE.
- Maze-Image: In this high-dimensional visual task, PEBBLE failed to achieve any success (0%), whereas MoP-RL achieved a 68.8% success rate by leveraging its learned dynamics and pre-training.
- Assistive-Gym: In a task requiring precise force for human-robot interaction, MoP-RL achieved superior average rewards with only 8 rollouts, while PEBBLE required 100 rollouts to reach a comparable level.
Complex Behavior Synthesis
The framework successfully trained a Hopper agent to perform a backflip. Notably, the preference queries were generated entirely within the learned dynamics model. This proves that the method can scale to high-dimensional tasks where human intuition is the only viable source of reward information.
Discussion and Future Work
MoP-RL highlights the power of using a dynamics model as a "query factory." By hallucinating potential behaviors, the agent can learn the boundaries of human preference without the risks associated with physical trial-and-error. Furthermore, the dynamics model is task-agnostic; once learned, it can be reused to learn different reward functions for different users, amortizing the initial cost of exploration.
However, the approach is not without limitations. The system's performance is inherently tied to the accuracy of the learned dynamics model; a "delusional" model will generate nonsensical queries. Additionally, while synthetic labelers were used for consistency in this study, real-world application will require handling the noise and fatigue associated with actual human feedback. Future research will focus on deploying MoP-RL in physical, safety-critical environments and testing with human subjects to further validate its robustness.
Summary updated