Abstract
Preference-based Reinforcement Learning (PbRL) enables robots to learn complex tasks from human feedback rather than manually engineered reward functions. However, existing preference models often struggle to capture the nuanced, multimodal nature of human judgment. We introduce PrefMMT, a hierarchical multimodal transformer architecture that treats robot trajectories as distinct streams of state and action data. By explicitly modeling the temporal context and the complex interplay between states and actions, PrefMMT achieves superior alignment with human preferences. Our evaluations across standard robotics benchmarks, including AntMaze and MetaWorld, demonstrate that PrefMMT significantly outperforms state-of-the-art baselines, often exceeding the performance of agents trained with ground-truth rewards.
Introduction
In PbRL, a robot learns a policy by querying a human to compare pairs of trajectory segments. The core of this process is the Preference Model (PM), which translates these binary judgments into a reward signal. Traditional PMs typically rely on two limiting assumptions:
- The Markovian Assumption: Rewards are assumed to depend solely on the current state and action, ignoring the broader temporal context of the trajectory.
- Unimodal Processing: Trajectories are often treated as a single data stream, failing to account for the distinct roles of states (environmental context) and actions (robot behavior).
Human judgment is inherently non-Markovian and multimodal. For instance, evaluating a robot's performance in a manipulation task requires understanding how its actions relate to the specific state of the objects it interacts with over time. PrefMMT addresses these limitations by leveraging a multimodal transformer architecture designed to capture these complex dependencies.
Methods: The PrefMMT Architecture
PrefMMT employs a hierarchical structure to process robot trajectories. The architecture is designed to disentangle different modalities before modeling their interactions.
The model follows a four-step pipeline:
- Modality Decoupling: The input trajectory is split into separate sequences for states ($s_{1:T}$) and actions ($a_{1:T}$).
- Intra-Modal Encoding: Independent 3-layer transformers process each sequence. This step captures temporal patterns unique to each modality, such as the trajectory of an object or the smoothness of robot joint movements.
- Inter-Modal Joint Encoding: A joint encoder utilizes causal cross-attention to model the dependencies between states and actions. This allows the model to learn how specific actions are conditioned on the current state and how the state evolves in response to those actions.
- Reward Generation: The model produces a sequence of non-Markovian rewards, which are aggregated using learned weights to compute an overall preference score for the trajectory.
Experimental Evaluation
We evaluated PrefMMT on three major robotics benchmarks:
- D4RL Locomotion: Standard tasks like Walker2d and Hopper.
- D4RL AntMaze: Challenging navigation tasks requiring an "Ant" robot to traverse complex mazes.
- MetaWorld Manipulation: Interaction tasks such as "Sweep Into," "Drawer Open," and "Window Close."
Crucially, our experiments utilized real human preference labels (100 queries per task) rather than synthetic labels from an oracle reward function. This ensures the model is tested against the actual nuances and inconsistencies of human judgment.
Key Results
PrefMMT consistently outperformed all baselines, including the popular Preference Transformer (PT) and Contrastive Preference Learning (CPL).
Performance Gains
In the "Antmaze-large-play-v2" task, PrefMMT achieved a score of 41.03, more than doubling the performance of the unimodal Preference Transformer (18.20). Across MetaWorld manipulation tasks, PrefMMT showed superior success rates, particularly in tasks requiring precise coordination between the robot arm and objects.
Human Alignment and Efficiency
Pearson correlation tests confirmed that PrefMMT’s predicted preferences align more closely with actual human labels than previous methods. Furthermore, PrefMMT demonstrated remarkable sample efficiency, achieving high performance with only 100 human queries. In several instances, PrefMMT-trained agents even outperformed "Oracle" agents trained with ground-truth rewards, suggesting that human preferences can provide a more effective shaping signal for complex tasks.
Conclusion
PrefMMT demonstrates that explicitly modeling the multimodal and temporal nature of robot trajectories is key to capturing human preferences. By disentangling states and actions and then modeling their interactions through a hierarchical transformer, we achieve significant improvements in policy performance and human alignment. Future work will explore extending this framework to online learning settings and incorporating additional modalities such as visual pixel data and natural language instructions.
Summary updated