Beyond Reward: Offline Preference-guided Policy Optimization

Yachen Kang, Diyuan Shi, Jinxin Liu, Li He, Donglin Wang

Introduction: The Problem with Scalar Rewards

Reinforcement Learning (RL) traditionally relies on two elements that are difficult to obtain in the real world: an environment where an agent can safely explore (online interaction) and a perfectly designed, mathematically specified reward function.

Offline Preference-based RL (PbRL) attempts to solve this by utilizing a fixed dataset of past actions and asking humans to simply pick which of two trajectories they prefer. However, most current methods employ a "two-step" approach: first, they train a model to condense those preferences into a single number (a scalar reward), and then they run a standard offline RL algorithm on that learned reward.

Comparison of traditional two-step offline PbRL versus OPPO's one-step framework.

The authors argue that this scalar reward acts as an information bottleneck. A single number struggles to capture the nuance of a complex task. If the reward model is slightly inaccurate, the agent will exploit those loopholes, leading to unintended or dangerous behavior. To address this, researchers have developed OPPO (Offline Preference-guided Policy Optimization), a "one-step" framework that trains RL agents using only fixed datasets and human preferences, bypassing the scalar reward bottleneck entirely.

Methods: The OPPO Framework

OPPO eliminates the separate reward-learning step by modeling offline trajectories and preferences in a unified, one-step process. It consists of two main components that are optimized iteratively:

  1. Hindsight Information Matching (HIM): Instead of learning a scalar reward, OPPO learns a high-dimensional latent space ($z$-space) that represents different "styles" or "outcomes" of trajectories. It trains a contextual policy $\pi(a|s, z)$ to mimic whatever trajectory is represented by the latent vector $z$.
  2. Preference Modeling (The Triplet Loss): To find the best behavior, the model leverages human preferences. It uses a triplet loss to move an "optimal context" vector ($z^*$) closer to the embeddings of preferred trajectories and further away from less-preferred ones.
The OPPO architecture, illustrating Hindsight Information Matching and Preference Modeling.

By the end of training, the system identifies an optimal context ($z^*$) that can be plugged into the policy to generate high-performing behavior. The architecture utilizes a BERT-like encoder for the trajectories and a GPT-style transformer (similar to Decision Transformer) for the policy.

Key Insights and Results

Moving from a 1D scalar reward to a high-dimensional latent context allows the model to capture significantly more task-relevant information. It doesn't just learn that a trajectory is "good"; it understands the underlying features that make it good. By optimizing the policy and the preference model together, the policy becomes aware of human preferences during the representation learning phase, leading to more stable and efficient training.

The researchers evaluated OPPO on several standard benchmarks, yielding impressive results:

  • Outperforming Baselines: In D4RL Gym-MuJoCo benchmarks (Hopper, Walker, HalfCheetah), OPPO achieved a total score of 717.7, outperforming two-step methods like DT+$r_\psi$ (683.0) and rivaling methods that had access to ground-truth reward functions.
  • Real Human Feedback: On complex Robomimic robot manipulation tasks ("Lift" and "Can"), OPPO significantly outperformed Implicit Q-Learning (IQL) variants, demonstrating its ability to handle the noise and inconsistency of real human labels.
  • Label Efficiency: The model proved robust even when preference feedback was drastically reduced from 50,000 labels down to just 500, maintaining highly competitive performance.
  • Visualizing Success: Using t-SNE visualizations, the authors demonstrated that their learned $z$-space naturally clusters trajectories by their actual performance, even though the model never saw a true reward score.

Limitations and Future Work

While OPPO represents a major step forward for preference-based learning, it has limitations. Like all offline RL methods, OPPO is fundamentally limited by the quality of the initial dataset; if optimal behavior is entirely absent from the offline data, the model cannot magically invent it. Additionally, training transformers on long trajectories remains computationally expensive.

Future work may explore applying this one-step approach to online settings, where the agent could actively query human preferences in real-time to refine its optimal context vector ($z^*$) even further.

Reference: Kang, Y., et al. (2023). Beyond Reward: Offline Preference-guided Policy Optimization. Proceedings of the 40th International Conference on Machine Learning (ICML).

Summary updated

BibTeX
@inproceedings{kang2023beyond,
  author = {Yachen Kang and Diyuan Shi and Jinxin Liu and Li He and Donglin Wang},
  title = {{Beyond Reward: Offline Preference-guided Policy Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=0BgDXE6vJJ},
}
Figure