Data Driven Reward Initialization for Preference based Reinforcement Learning

Mudit Verma, Subbarao KambhampatiarXiv 2023 · DOI

Abstract

Preference-based Reinforcement Learning (PbRL) allows agents to learn complex behaviors from human feedback, bypassing the need for manually engineered reward functions. However, PbRL often suffers from inconsistent performance and high variance due to the "patchy" nature of initial reward landscapes generated by standard neural network weight initializations. We propose a simple, data-driven initialization technique that pre-trains the reward model to predict a uniform constant value across unsupervised trajectories. This "blank slate" approach ensures unbiased initial exploration, significantly reducing performance variance and improving learning efficiency at zero additional cost to the human teacher.

Introduction

In PbRL, an agent learns a reward function by querying a human to choose between trajectory snippets. While effective for tasks where defining a mathematical reward is difficult, PbRL is plagued by initialization instability. Standard weight initializations (e.g., Xavier or Kaiming) are designed for gradient stability but often create "patchy" reward landscapes in the state space. These random peaks and valleys bias the agent's initial exploration toward unhelpful areas, making final performance highly sensitive to random seeds.

Methodology

The proposed Data-Driven Reward Initialization ensures the reward model starts as a neutral observer. The process involves three steps:

  1. Unsupervised Exploration: The agent collects a set of trajectories using a random or unsupervised policy.
  2. Regression Pre-training: The reward model is trained to minimize a loss function ($\mathcal{L}_P$) that forces it to predict a fixed constant value ($\epsilon$) for every state visited during pre-training.
  3. Standard PbRL: The flattened reward model then undergoes standard PbRL, where human feedback warps this neutral landscape into the true reward function.
Comparison of standard patchy initialization (left) vs. the proposed data-driven flat initialization (right).

Key Insights

A critical finding of this work is that uniformity in parameter space (random weights) does not translate to uniformity in state space. Even "uniform" weight initializations result in highly non-uniform reward predictions across an environment. By enforcing a uniform starting point, we enable systematic, unbiased exploration. Unlike setting all weights to zero—which can hinder neural network training dynamics—the regression-based approach maintains the network in a trainable regime while providing the benefits of a flat landscape.

Experimental Results

The method was evaluated on 7x7 and 15x15 Gridworld benchmarks using oracular feedback.

  • Visual Uniformity: Heatmaps demonstrate that while standard initializations (Xavier, Orthonormal) produce erratic peaks and valleys, the proposed method creates a nearly perfectly flat surface.
  • Performance and Stability: In the 15x15 Gridworld, the data-driven approach consistently outperformed Kaiming-Uniform baselines. Agents reached higher returns faster because they were not distracted by "ghost" rewards created by random initialization. Furthermore, the variance across multiple runs was significantly reduced.
A comparison of reward landscapes across different initialization schemes, showing the progression from patchy to uniform surfaces.

Conclusion

Data-driven reward initialization provides a "free" win for PbRL stability. By utilizing data already collected during unsupervised pre-training, the method eliminates random exploration bias without increasing human workload. Future work will explore the efficacy of this initialization in high-dimensional continuous control tasks and its interaction with advanced intrinsic motivation strategies.

Summary updated

BibTeX
@misc{verma2023data,
  author = {Mudit Verma and Subbarao Kambhampati},
  title = {{Data Driven Reward Initialization for Preference based Reinforcement Learning}},
  year = {2023},
  eprint = {2302.08733},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.08733},
}
Figure