Representation Alignment from Human Feedback for Cross-Embodiment Reward Learning from Mixed-Quality Demonstrations

Connor Mattson, Anurag Sidharth Aribandi, Daniel S. Brown

Abstract

Teaching robots to perform complex tasks through visual observation is a cornerstone of scalable robotics. However, real-world demonstrations are often "messy," featuring agents with different physical embodiments and varying levels of task proficiency. Traditional Inverse Reinforcement Learning (IRL) methods, such as Cross-Embodiment IRL (XIRL), rely on Temporal Cycle-Consistency (TCC) to align videos, but these methods frequently collapse when faced with suboptimal or failed demonstrations. This paper investigates how human feedback—ranging from pairwise preferences to categorical quality rankings—can be leveraged to learn robust reward functions from mixed-quality, cross-embodiment data. We introduce several strategies, including X-RLHF and XIRL-Buckets, demonstrating that minimal human intervention can prevent representation collapse and enable successful policy learning on unseen robot embodiments.

Introduction

Inverse Reinforcement Learning (IRL) seeks to recover an underlying reward function from expert demonstrations, allowing a robot to learn a task without a manually engineered reward signal. In practical scenarios, this process faces two significant challenges: cross-embodiment mismatch and mixed-quality data. Cross-embodiment mismatch occurs when the demonstrator (e.g., a human) and the learner (e.g., a robotic gripper) have different degrees of freedom or physical structures. Mixed-quality data refers to the reality that not all demonstrations are successful; they often include mistakes, inefficiencies, or total failures.

State-of-the-art methods like XIRL utilize Temporal Cycle-Consistency (TCC) to align the progression of different videos into a shared latent space. While effective for near-perfect demonstrations, TCC assumes a uniform progression toward a goal. When suboptimal data is introduced, TCC attempts to align failed states with successful ones, leading to a "collapsed" reward function that provides no meaningful guidance to the reinforcement learning agent. This research explores how human-in-the-loop feedback can mitigate these failures.

Methodology

To address the limitations of TCC in mixed-quality settings, we evaluate three distinct approaches that incorporate human supervision into the representation learning process:

1. X-RLHF (Cross-Embodiment RL from Human Feedback)

This approach adapts the standard Reinforcement Learning from Human Feedback (RLHF) pipeline to the cross-embodiment setting. A human observer is presented with pairs of video segments and indicates which demonstrates better task progress. A reward model is then trained directly on these preferences, bypassing the need for explicit temporal alignment or intermediate latent representations.

2. XTriplets

Building on the concept of preference learning, XTriplets utilizes ranked sets (e.g., Video A > Video B > Video C). This method attempts to organize a latent space where the L2 distance to a defined "goal state" serves as the reward signal. By structuring the latent space according to human-perceived quality, the model aims to create a smoother reward landscape.

3. XIRL-Buckets

Recognizing the high cost of human labeling, we propose XIRL-Buckets as a "light-touch" alternative. Instead of exhaustive pairwise comparisons, a human sorts demonstrations into discrete "buckets" based on quality (e.g., a 1-to-5 star rating). The algorithm then applies TCC alignment only to videos within the same bucket. This prevents the model from attempting to align a "1-star" failure with a "5-star" success, preserving the integrity of the learned representation.

Experimental Setup

Experiments were conducted using the X-MAGICAL benchmark, a multi-embodiment environment where agents (Shortstick, Mediumstick, Longstick, and Gripper) must move blocks into a target zone. We introduced the MQME (Mixed-Quality, Mixed-Embodiment) dataset, which contains a spectrum of performance levels generated by injecting noise into oracle policies.

Models were trained on demonstrations from three embodiments and evaluated on their ability to guide a fourth, previously unseen embodiment (the Mediumstick) to complete the task using Reinforcement Learning.

Key Insights and Results

Our findings highlight the fragility of unsupervised alignment and the efficacy of human-guided rewards:

  • The Failure of Vanilla XIRL: When trained on the MQME dataset, the standard XIRL baseline failed completely. The presence of suboptimal data caused the TCC-based representation to collapse, resulting in a reward signal that was indistinguishable from noise.
  • Success of Human Feedback: Both X-RLHF and XIRL-Buckets successfully enabled the robot to learn the task on the unseen embodiment. X-RLHF achieved the highest overall performance, nearly matching the performance of an "Oracle" XIRL model trained exclusively on perfect data.
  • Labeling Efficiency: XIRL-Buckets proved to be highly efficient. It achieved competitive results using only ~600 categorical labels, whereas X-RLHF required 5,000 pairwise comparisons to reach peak performance.
  • Alignment vs. Reward Density: We observed that high correlation with ground-truth rewards does not always guarantee RL success. A reward function must be "dense" enough to provide guidance during the early, exploratory phases of learning. Some models provided accurate rewards for final states but failed to guide the agent through the initial steps of the task.

Limitations and Future Work

While human feedback significantly improves robustness, challenges remain. X-RLHF models occasionally exhibited "greedy" behavior, where the agent prioritized immediate rewards (e.g., moving one block) at the expense of the long-term goal (e.g., moving all blocks). Additionally, the reliance on L2 distance in XTriplets may be too simplistic for complex transitions; future work could explore more sophisticated metrics like Sinkhorn distances or Optimal Transport.

Finally, this study utilized offline labels. Transitioning to an active learning framework, where the model queries humans for feedback on its most uncertain states, could further reduce the labeling burden and improve the precision of the learned reward functions.

Summary updated

Abstract

We study the problem of cross-embodiment inverse reinforcement learning, where we wish to learn a reward function from video demonstrations in one or more embodiments and then transfer the learned reward to a different embodiment (e.g., different action space, dynamics, size, shape, etc.). Learning reward functions that transfer across embodiments is important in settings such as teaching a robot a policy via human video demonstrations or teaching a robot to imitate a policy from another robot with a different embodiment. However, prior work has only focused on cases where near-optimal demonstrations are available, which is often difficult to ensure. By contrast, we study the setting of cross-embodiment reward learning from mixed-quality demonstrations. We demonstrate that prior work struggles to learn generalizable reward representations when learning from mixed-quality data. We then analyze several techniques that leverage human feedback for representation learning and alignment to enable effective cross-embodiment learning. Our results give insight into how different representation learning techniques lead to qualitatively different reward shaping behaviors and the importance of human feedback when learning from mixed-quality, mixed-embodiment data.
BibTeX
@inproceedings{mattson2024representation,
  author = {Connor Mattson and Anurag Sidharth Aribandi and Daniel S. Brown},
  title = {{Representation Alignment from Human Feedback for Cross-Embodiment Reward Learning from Mixed-Quality Demonstrations}},
  booktitle = {RLC},
  year = {2024},
  url = {https://openreview.net/forum?id=VhFxNVApE7},
}
Figure