In-Dataset Trajectory Return Regularization for Offline Preference-based Reinforcement Learning

Songjun Tu, Jingbo Sun, Qichao Zhang, Yaocheng Zhang, Jia Liu, Ke Chen, Dongbin Zhao

Introduction

Offline preference-based reinforcement learning (PbRL) has emerged as a powerful paradigm for training agents when explicit reward functions are difficult to define. The process typically involves two stages: learning a reward model from human preferences and then using this model to label an offline dataset for policy training. However, a significant challenge in this workflow is reward bias. Because human feedback is often sparse, reward models frequently overestimate rewards for state-action pairs that are underrepresented in the training data (out-of-distribution).

Standard offline RL algorithms, particularly those based on Temporal Difference (TD) learning, exacerbate this issue through "optimistic stitching." These algorithms attempt to combine fragments of different trajectories to discover an optimal path. While stitching is generally a strength of RL, in the presence of biased reward models, it often leads the agent to pursue "fake" high rewards—paths that appear optimal according to the biased model but are physically unrealistic or perform poorly in the actual environment.

Comparison of TDL and CSM agents illustrating the reward bias and optimistic stitching problem. TDL agents often choose out-of-dataset trajectories with overestimated rewards, whereas CSM agents remain grounded in real data.

Methodology: In-Dataset Trajectory Return Regularization (DTR)

To address these challenges, the authors propose In-Dataset Trajectory Return Regularization (DTR). This framework integrates Conditional Sequence Modeling (CSM), specifically the Decision Transformer (DT) architecture, with traditional TD-learning to create a pessimistic safeguard against reward overestimation.

Decision Transformer as a Regularizer

Unlike pure TD-learning, which maximizes a value function across all possible state-action transitions, DTR leverages the sequence-modeling capabilities of the Decision Transformer. DTs are inherently conservative because they learn to map specific target returns to actions actually present in the dataset. By using the DT as a regularizer, DTR ensures the agent stays grounded in realistic, in-dataset trajectories, effectively preventing the pursuit of "hallucinated" high-reward paths.

Dynamic Policy Optimization

DTR employs a "learn to walk before you run" strategy through a dynamic coefficient, $\lambda(step)$. Early in training, $\lambda$ is kept low, prioritizing the imitation of high-return trajectories within the dataset via supervised learning. As training progresses and the policy stabilizes, $\lambda$ increases, allowing the TD-learning component (the Q-function) to take more control and refine the policy.

Ensemble Reward Normalization and Inference

To improve the quality of the reward signal, DTR utilizes an ensemble of reward models. The outputs of these models are individually normalized before being averaged. This technique, termed ensemble normalization, balances the need to differentiate between states while mitigating the noise and bias inherent in any single model. For inference, DTR simplifies the process by using a linear decay for the "Return-to-Go" based on the maximum return observed in the dataset, reducing computational costs during deployment.

The DTR framework architecture, showing the reward modeling pipeline from preference data and the integrated training loop involving Decision Transformers and Q-updates.

Experimental Results

The DTR framework was evaluated on standard benchmarks, including Gym-MuJoCo locomotion tasks and complex Adroit robotic manipulation tasks.

  • State-of-the-Art Performance: DTR consistently outperformed existing methods like FTB and Pb-IQL. On MuJoCo tasks, it achieved an average performance boost of 7.1%, with some tasks seeing improvements as high as 11%.
  • Robotic Manipulation: In the challenging Adroit suite (Pen, Door, Hammer), DTR reached an average score of 49.11, significantly surpassing the 38.10 achieved by Pb-IQL.
  • Sample Efficiency: DTR demonstrated superior robustness when human preference labels were limited, maintaining high performance even with reduced feedback compared to traditional TD-based approaches.
  • Ablation Success: Removing key components like the dynamic coefficient or ensemble normalization resulted in a 3-4% performance drop, highlighting their critical role in the system's stability and success.

Conclusion

DTR introduces a novel way to handle the pitfalls of offline PbRL by using architectural pessimism. By regularizing TD-learning with a Decision Transformer, the framework successfully navigates the trade-off between trajectory stitching and reward bias. While the reliance on in-dataset returns may impose a theoretical performance ceiling, the practical gains in stability and reliability make DTR a significant advancement for real-world RL applications where human feedback is the primary source of truth. Future work may explore integrating more advanced generative models, such as Diffusion models, to further enhance the framework's capabilities.

Summary updated

BibTeX
@inproceedings{tu2025dataset,
  author = {Songjun Tu and Jingbo Sun and Qichao Zhang and Yaocheng Zhang and Jia Liu and Ke Chen and Dongbin Zhao},
  title = {{In-Dataset Trajectory Return Regularization for Offline Preference-based Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i20.35388},
}
Figure