Hindsight Preference Learning for Offline Preference-based Reinforcement Learning

Chen-Xiao Gao, Shengjun Fang, Chenjun Xiao, Yang Yu, Zongzhang Zhang
7/5/2024
cs.LGcs.AI

Official code: typoverflow/WiseRL (22 stars, MIT, PyTorch, last commit 2025-03-24).

Abstract

Offline preference-based reinforcement learning (RL), which focuses on optimizing policies using human preferences between pairs of trajectory segments selected from an offline dataset, has emerged as a practical avenue for RL applications. Existing works rely on extracting step-wise reward signals from trajectory-wise preference annotations, assuming that preferences correlate with the cumulative Markovian rewards. However, such methods fail to capture the holistic perspective of data annotation: Humans often assess the desirability of a sequence of actions by considering the overall outcome rather than the immediate rewards. To address this challenge, we propose to model human preferences using rewards conditioned on future outcomes of the trajectory segments, i.e. the hindsight information. For downstream RL optimization, the reward of each step is calculated by marginalizing over possible future outcomes, the distribution of which is approximated by a variational auto-encoder trained using the offline dataset. Our proposed method, Hindsight Preference Learning (HPL), can facilitate credit assignment by taking full advantage of vast trajectory data available in massive unlabeled datasets. Comprehensive empirical studies demonstrate the benefits of HPL in delivering robust and advantageous rewards across various domains. Our code is publicly released at https://github.com/typoverflow/WiseRL.

View on arXivView PDF

Code Implementations(1)

typoverflow/WiseRLOfficial100%
PyTorchMIT

PyTorch implementations for Offline Preference-Based RL (PbRL) algorithms

223PythonJan 9, 20241 years agoMIT
preference-learningpytorchreinforcement-learning

Similar Papers

Cite this paper

@article{gao2024hindsight,
  title  = {Hindsight Preference Learning for Offline Preference-based Reinforcement Learning},
  author = {Chen-Xiao Gao and Shengjun Fang and Chenjun Xiao and Yang Yu and Zongzhang Zhang},
  year   = {2024},
  eprint = {2407.04451},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.04451v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.04451.svg)](https://codeofpaper.com/paper/2407.04451)

Discussion