Preference-based Policy Optimization from Sparse-reward Offline Dataset

Wenjie Qiu, Guofeng Cui, Shicheng Liu, Yuanlin Duan, He ZhuICLR 2026

TL;DR

PREFORL is a novel offline reinforcement learning framework that bypasses the pitfalls of value function estimation by using contrastive preference learning. By "sandwiching" successful demonstrations between real failures and synthetically generated "degraded" behaviors, the method prevents policies from becoming overly optimistic about unknown actions. This approach leads to state-of-the-art performance in challenging, sparse-reward environments.

The Challenge of Offline Reinforcement Learning

Offline Reinforcement Learning (RL) is the art of training an agent using a fixed, pre-collected dataset—without allowing any "trial and error" in a live environment. This paradigm is vital for real-world applications like robotics or healthcare, where mistakes during training are costly or dangerous.

However, offline RL suffers from a major "ego" problem: extrapolation error. When an agent encounters a state-action pair it hasn't seen much in the data, it often becomes overly optimistic, assigning it a high value simply because it doesn't know any better. In sparse-reward settings—where the agent only gets a "good job" signal at the very end of a long task—this problem is magnified. Standard methods try to fix this with "pessimism" (penalizing unknown regions) or "regularization" (forcing the agent to stay close to the dataset), but these are notoriously difficult to tune and often fail to generalize.

Methods: Contrastive Preference Learning and Degradation

To tackle extrapolation error, the authors introduce PREFORL (PREFerence-based Optimization for Offline RL). Instead of trying to estimate exactly how "valuable" a state is, PREFORL treats the problem as a comparison. It builds on Contrastive Preference Learning (CPL), which optimizes a policy by making it prefer "good" trajectories over "bad" ones.

The "secret sauce" of PREFORL is Degradation. If a dataset is sparse, it might not contain enough examples of what not to do. To fix this, PREFORL synthetically creates "counter-examples" through two methods:

  1. Action-based Degradation: It takes a successful action and adds a small amount of Gaussian noise to it to create a synthetic failure.
  2. State-based Degradation: It looks at a successful state and swaps the expert action for an action taken in a nearby state from a failed trajectory (using a nearest-neighbor search).
Action-based degradation adds noise to an expert action to create a synthetic sub-optimal behavior.

By training the policy to prefer the original expert demonstrations over these synthetic and real failures, the algorithm "squeezes" the policy toward the successful distribution and safely away from the unknown boundaries of the dataset.

Datasets and Benchmarks

The authors evaluated PREFORL across a wide battery of challenging benchmarks:

  • Adroit: Complex 24-degree-of-freedom robotic hand manipulation tasks (Pen, Hammer, Door, Relocate).
  • Sparse-MuJoCo: Standard locomotion tasks (HalfCheetah, Walker2d, Hopper) modified to have sparse rewards.
  • Maze2D & AntMaze: Navigation tasks requiring the agent to reach a goal in various maze layouts, testing long-horizon reasoning.
  • MetaWorld: 16 diverse robotic manipulation tasks (e.g., "Peg Insert," "Window Open") using high-dimensional RGB image observations.
The Adroit benchmark features complex 24-degree-of-freedom robotic hand manipulation tasks like Pen, Hammer, Door, and Relocate.

Key Insights and Results

PREFORL consistently outperformed state-of-the-art baselines like CQL, IQL, and TD3+BC across multiple domains:

  • Bypassing the Value Function: By using a preference-based objective, PREFORL avoids the "over-optimism" inherent in Q-learning. It doesn't need to know how much better an action is, only that it is better.
  • Robustness and Efficiency: Unlike many offline RL algorithms that require surgical precision in tuning "pessimism" constants, PREFORL proved remarkably stable across different noise levels and dataset sizes. It also converges quickly, often requiring ten times fewer gradient steps than other offline RL methods.
  • Adroit Performance: In the "Hammer-Cloned" task, PREFORL achieved a score of 28.4, while the next best baseline (CPL) trailed at 13.2.
  • Sparse-MuJoCo Success: PREFORL achieved a 100% success rate in several categories (like Hopper-Medium and HalfCheetah-Expert) where traditional methods often fluctuated between 0% and 90%.
  • Learning from Images: The method successfully scaled to image-based tasks in MetaWorld by using a pre-trained ResNet-50 encoder. In the "Soccer" task, PREFORL hit a 67.7% success rate compared to Behavior Cloning's 25.0%.

Limitations and Future Work

While powerful, PREFORL has a few hurdles to overcome. The state-based degradation requires a nearest-neighbor search; although the authors used the FAISS library to speed this up, it still adds computational overhead to data preprocessing. Additionally, tuning the noise for action-based degradation is necessary: if the Gaussian noise is too small, the agent can't tell the difference, but if it's too large, it breaks the "logic" of the trajectory.

Looking forward, the authors suggest applying this "synthetic negative" approach to Large Language Models (LLMs) to help regularize output distributions and prevent "reward hacking" without needing massive amounts of human-labeled preference data.

Summary updated

BibTeX
@inproceedings{qiu2026preference,
  author = {Wenjie Qiu and Guofeng Cui and Shicheng Liu and Yuanlin Duan and He Zhu},
  title = {{Preference-based Policy Optimization from Sparse-reward Offline Dataset}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=zyLI9LEmry},
}
Figure