Binary Reward Labeling: Bridging Offline Preference and Reward-Based Reinforcement Learning

Yinglun Xu, David Zhu, Rohan Gumaste, Gagandeep Singh

This paper introduces Binary Reward Labeling (BRL), a simple yet powerful framework that bridges the gap between preference-based feedback and standard reward-based offline reinforcement learning (RL). By transforming trajectory preferences into binary scalar rewards ($+1$ for "chosen" and $-1$ for "rejected"), the authors demonstrate that we can leverage state-of-the-art offline RL algorithms to achieve high performance without the need for complex reward modeling.

TL;DR

BRL converts preference data into binary rewards, allowing any standard offline RL algorithm to be applied directly to preference-based datasets. This approach minimizes information loss and consistently outperforms complex reward-modeling baselines, often rivaling the performance of agents trained on true environment rewards.

What Problem Does This Paper Address?

Reinforcement learning typically relies on scalar rewards (e.g., +10 for reaching a goal). However, in many real-world scenarios—like training Large Language Models (LLMs)—it is much easier for humans to provide preferences (e.g., "Trajectory A is better than Trajectory B") than to design a precise reward function. This is known as Preference-Based RL (PBRL).

While offline RL (learning from a fixed dataset) has seen massive algorithmic improvements recently (e.g., CQL, IQL), most of these advancements assume the existence of scalar rewards. Existing PBRL methods often rely on "reward modeling"—training a separate neural network to guess the rewards—which can be computationally expensive and introduce errors. The authors identify a critical gap: how can we universally apply the latest, most efficient offline RL algorithms to preference-based data?

Methods

The core of the paper is the Binary Reward Labeling (BRL) framework. Instead of trying to reconstruct the exact underlying reward function, the authors propose a "labeling" approach:

  1. Labeling: For every pair of trajectories in the dataset where $\tau_1$ is preferred over $\tau_2$, assign a reward of $+1$ to every state-action pair in $\tau_1$ and $-1$ to every state-action pair in $\tau_2$.
  2. Training: Treat this newly labeled dataset as a standard offline RL dataset and train any off-the-shelf algorithm (like IQL or CQL).
Figure 1: Illustration of the binary reward labeling (BRL) framework. Given a dataset consisting of preference feedback as input, the BRL framework labels the dataset with the rewards that best explain the preference signals from the dataset. With a dataset of reward labels, the learning agent can train on the dataset with any efficient offline RL algorithms such as IQL (Kostrikov et al., 2021) or CQL (Kumar et al., 2020) and enjoy high learning efficiency.

The authors provide a theoretical justification for this simplicity. They prove that in the common case where state-action pairs are unique (no overlap between trajectories), binary labeling is the optimal way to minimize the loss between predicted and actual preferences.

Datasets

The researchers evaluated BRL using the D4RL benchmark, a standard for offline RL featuring continuous control tasks like:

  • HalfCheetah, Hopper, and Walker2d: Across various data quality levels (Medium, Medium-Replay, and Medium-Expert).
  • Synthetic Preferences: Since D4RL provides true rewards, the authors generated synthetic preference labels using the Bradley-Terry model to simulate human-like feedback.

Key Insights and Ideas

  • Labeling vs. Modeling: The most significant "aha moment" is that we don't need a complex neural network to model rewards. Simple binary labeling preserves enough information for the RL agent to find the optimal policy.
  • Minimizing Information Loss: The authors show that BRL is mathematically connected to existing PBRL techniques but is more direct. By avoiding the intermediate step of training a reward model, BRL avoids the "distribution shift" issues that often plague reward models.
  • Pessimism is Handled by the RL Algorithm: A key challenge in offline learning is "pessimism"—not overestimating the value of actions not seen in the data. BRL allows the RL algorithm (like CQL) to handle pessimism, rather than forcing the reward model to do it.

Key Results

BRL was compared against several baselines: an Oracle (trained on true rewards), RM (standard Reward Modeling), and IPL (Inverse Preference Learning).

  • Superior Performance: As shown in the table below, BRL achieved a total score of 586.86 across tasks, significantly higher than RM (506.04) and IPL (350.79).
  • Competitive with Oracle: In several instances, such as the "HalfCheetah Medium-Expert" task, BRL actually outperformed the Oracle (92.17 vs 87.12).
  • Efficiency: BRL requires no additional training for reward approximation, making it more computationally efficient than standard reward modeling.
Performance comparison across D4RL tasks. BRL consistently outperforms RM and IPL baselines.

Limitations and Future Work

  • Continuous Control Focus: The experiments were limited to continuous control benchmarks. The authors note that testing on other domains, like LLM fine-tuning, is a natural next step.
  • Trajectory Overlap: While BRL performs well empirically even with overlapping trajectories (where the same state-action pair appears in both "good" and "bad" examples), the binary strategy is theoretically sub-optimal in those specific cases.
  • Active Learning: The paper focuses on the offline setting. It does not address the "active" question of which trajectory pairs are most useful to have labeled by a human.

Summary updated

BibTeX
@misc{xu2024binary,
  author = {Yinglun Xu and David Zhu and Rohan Gumaste and Gagandeep Singh},
  title = {{Binary Reward Labeling: Bridging Offline Preference and Reward-Based Reinforcement Learning}},
  year = {2024},
  eprint = {2406.10445},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.10445},
}
Figure