NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Diffusion Classifier-Driven Reward for Offline Preference-based Reinforcement Learning

Teng Pang, Bingzheng Wang, Guoqiang Wu, Yilong Yin

TL;DR

This paper introduces Diffusion Preference-based Reward (DPR) and Conditional Diffusion Preference-based Reward (C-DPR), novel methods that leverage diffusion models to infer step-wise rewards from trajectory-level human preferences in offline Reinforcement Learning (RL). These methods significantly outperform traditional approaches, offering a more robust and accurate reward signal for training RL agents without direct environment interaction.

What Problem Does This Paper Address?

Reinforcement Learning (RL) agents learn by optimizing a reward function. However, defining an accurate reward function can be challenging, especially in real-world scenarios. Preference-based Reinforcement Learning (PbRL) offers a solution by learning rewards from human preferences, typically expressed as which of two trajectories is better. While effective, existing PbRL methods often rely on trajectory-level preferences to infer step-wise rewards, which can be imprecise and lead to suboptimal agent performance. This is particularly problematic in offline RL, where agents learn from pre-collected datasets without further interaction, making accurate reward inference crucial. The paper addresses this gap by proposing a diffusion model-based approach to directly infer step-wise rewards from preference data, aiming to improve the accuracy and robustness of reward signals in offline PbRL.

Methods

The core innovation lies in using diffusion models, typically used for generative tasks, as discriminative classifiers for reward inference.

  • Diffusion Preference-based Reward (DPR): This method treats step-wise reward acquisition as a binary classification problem. It trains a diffusion classifier to distinguish between "high-reward" and "low-reward" state-action pairs, directly inferring step-wise rewards from preference labels. This approach leverages the robustness of diffusion classifiers to handle the inherent uncertainty in trajectory-wise preference labels.
  • Conditional Diffusion Preference-based Reward (C-DPR): To further enhance reward inference, C-DPR conditions the diffusion classifier on the trajectory-level preference labels. This allows the model to better utilize the richer information contained within these labels, leading to more accurate step-wise reward predictions.

Both DPR and C-DPR are designed to be seamlessly integrated with existing offline RL algorithms, providing a more informative reward signal for policy learning.

Datasets

The experiments were conducted using the Uni-RLHF dataset, which is an extension of the D4RL dataset. Uni-RLHF includes both crowd-sourced (CS) human labels and scripted teacher (ST) labels based on ground truth rewards. The environments used were from Gym-MuJoCo (HalfCheetah, Hopper, Walker2D) and Adroit (Hammer, Door, Pen).

Key Insights and Ideas

  • Diffusion Models as Reward Inferrers: The paper demonstrates that diffusion models, traditionally used for generation, can be effectively repurposed as powerful discriminative models for inferring rewards from preference data. This opens up new avenues for leveraging generative models in RL.
  • Step-wise Reward from Trajectory Preferences: Directly inferring step-wise rewards from trajectory-level preferences is challenging but crucial for effective offline RL. DPR and C-DPR show that diffusion models can bridge this gap more effectively than traditional methods like the Bradley-Terry model.
  • Conditional Information is Key: C-DPR's superior performance over DPR highlights the importance of conditioning the reward inference on the full trajectory preference information, rather than just treating step-wise pairs in isolation.
  • Outperforming Oracle Rewards: In some cases, the diffusion-based rewards even outperformed "oracle" (manually designed) rewards, suggesting that human-designed rewards might not always be optimal for offline policy learning.

Key Results

  • Significant Performance Gains: DPR and C-DPR consistently outperformed baseline reward acquisition methods (MLP-based and Transformer-based Markovian rewards) across various offline RL algorithms (CQL, IQL, TD3BC) on both CS and ST labels. For instance, in Table 1, DPR and C-DPR achieved notable improvements over previous methods on MuJoCo tasks.
  • C-DPR Outperforms DPR: The conditional version, C-DPR, generally showed better performance than DPR, underscoring the benefit of incorporating trajectory-level preference information.
  • Robustness to Dataset Size: Ablation studies showed that competitive performance could be achieved with as few as 2 preference pairs, and performance plateaued with 50 pairs, suggesting that the diffusion model is data-efficient.
  • Generalization: The diffusion rewards also showed good performance when applied to an online RL algorithm (PPO), indicating their generalizability.

Limitations and Future Work

  • Potential for Bias: The authors acknowledge that naively dividing data by quality can introduce bias into the reward inference.
  • Unclear Reasons for Outperformance: The exact reasons why diffusion-based rewards outperform traditional methods like the Bradley-Terry model remain an area for further investigation.
  • Future Directions: The paper suggests exploring a potential combination of diffusion models and the Bradley-Terry model as a promising future research direction.

Summary updated

BibTeX
@misc{pang2025diffusion,
  author = {Teng Pang and Bingzheng Wang and Guoqiang Wu and Yilong Yin},
  title = {{Diffusion Classifier-Driven Reward for Offline Preference-based Reinforcement Learning}},
  year = {2025},
  eprint = {2503.01143},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.01143},
}
Figure