Exploiting Unlabeled Data for Feedback Efficient Human Preference based Reinforcement Learning

Mudit Verma · DOI

Abstract

Preference-based Reinforcement Learning (PbRL) enables agents to learn complex tasks from human feedback rather than hand-crafted reward functions. However, the high cost of human labeling often limits the efficiency of these systems. This paper introduces two novel loss functions—Triplet Loss and Action Distance Loss—designed to leverage unlabeled trajectories collected during training. By treating unlabeled data as pseudo-preferred and structuring the reward model based on temporal state distances, the proposed method achieves near-expert performance with significantly reduced human feedback across locomotion and manipulation tasks.

Introduction

Reinforcement Learning (RL) traditionally relies on meticulously designed reward functions. These functions are often difficult to specify and susceptible to "reward hacking," where agents exploit unintended shortcuts. Preference-based RL (PbRL) mitigates this by using human comparisons of trajectory pairs to infer rewards. Despite its advantages, PbRL faces a significant bottleneck: human time is expensive and scarce. Most trajectories generated during agent exploration are discarded if they are not selected for human labeling. This work addresses the challenge of maximizing the utility of every experienced trajectory, including those never seen by a human evaluator.

Methodology

The authors extend the state-of-the-art PEBBLE framework by incorporating two auxiliary loss components into the reward learning process:

  1. Triplet Loss ($L^t$): This loss operates on a "paternalistic" heuristic, assuming that any unlabeled trajectory (the "anchor") is likely superior to a trajectory previously labeled as "dis-preferred" (the "negative") by a human. By enforcing this ranking, the model gains additional training signals from the agent's general exploration.
  2. Action Distance Loss ($L^a$): This component structures the reward model's internal representations by enforcing a temporal constraint. It ensures that the distance between two states in the embedding space reflects the number of action steps separating them. This helps the reward function respect the physical and temporal continuity of the environment.

The final reward model is optimized using a weighted combination of standard cross-entropy (from human labels), the triplet loss, and the action distance loss.

Experimental Setup

The method was evaluated on two continuous control benchmarks:

  • Quadruped-Walk: A locomotion task where a four-legged robot learns to walk.
  • Sweep-Into: A robotic manipulation task requiring precise object interaction.

A "synthetic oracle" (the environment's ground-truth reward) was used to provide binary preferences, ensuring a systematic evaluation of feedback efficiency.

Key Results and Insights

The proposed method demonstrates significant improvements in both sample efficiency and final performance compared to the PEBBLE baseline and other semi-supervised approaches like SURF.

Success rate comparison on the Sweep-Into manipulation task.

In the Sweep-Into task (Figure 2), the integrated approach achieved nearly 100% success, substantially outperforming competitors given the same feedback budget. Similarly, in the Quadruped-Walk domain (Figure 4), the method reached a return of approximately 980, matching the performance of a standard SAC agent trained with perfect hand-coded rewards, while the PEBBLE baseline plateaued around 400.

True episode reward on the Quadruped locomotion task.

The results suggest a powerful synergy between the two losses: the action distance loss provides a structural "map" of the environment, while the triplet loss provides the "direction" for improvement. This allows the agent to shape a meaningful reward landscape long before a large volume of human labels is available.

Limitations and Future Work

While effective, the "paternalistic" assumption of the triplet loss carries risks; if the agent's exploration is consistently poor, unlabeled data may not actually be better than known failures. Future research should explore automated hyperparameter tuning for loss weights and evaluate the method on discrete tasks requiring explicit knowledge, such as Montezuma’s Revenge.

Summary updated

BibTeX
@misc{verma2023exploiting,
  author = {Mudit Verma},
  title = {{Exploiting Unlabeled Data for Feedback Efficient Human Preference based Reinforcement Learning}},
  year = {2023},
  eprint = {2302.08738},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.08738},
}
Figure