Rating-Based Reinforcement Learning

Devin White, Mingkang Wu, Ellen R. Novoseller, Vernon J. Lawhern, Nicholas R. Waytowich, Yongcan Cao

Abstract

Designing effective reward functions in Deep Reinforcement Learning (RL) is a complex task often prone to "reward hacking." While Preference-based RL (PbRL) offers a solution by using human feedback, it suffers from sample inefficiency and high cognitive load. This paper introduces Rating-Based Reinforcement Learning (RbRL), a framework that learns reward functions from absolute human ratings of individual trajectories. By employing a multi-class cross-entropy loss and dynamic rating boundaries, RbRL demonstrates improved efficiency and performance over traditional preference-based methods.

Introduction

In the pursuit of aligning AI agents with human intent, researchers have turned to human-in-the-loop methods. Preference-based RL (PbRL) is the current standard, where a human compares two trajectories and selects the better one. However, PbRL is limited: each query provides only a single bit of information, it lacks absolute context (both trajectories could be poor), and it imposes a high cognitive burden on the teacher.

Rating-Based Reinforcement Learning (RbRL) addresses these issues by asking humans to rate single trajectories on a discrete scale (e.g., 1 to 5 stars). This approach provides more information per query and allows for a global quality assessment, reducing the frustration of comparing nearly identical, mediocre behaviors.

Methodology

RbRL utilizes a novel approach to map discrete human ratings to continuous reward signals:

  • Reward Modeling: The system predicts state-action rewards, calculating a cumulative return for each trajectory segment, normalized to a $[0, 1]$ range.
  • Dynamic Rating Boundaries: To account for the subjective nature of ratings, the model dynamically sets thresholds in the return space. It aligns the distribution of predicted rating classes with the observed distribution of human feedback.
  • Loss Function: A multi-class cross-entropy loss is used to optimize the reward model, ensuring that predicted returns correspond to the probability of a human selecting a specific rating category.

Experimental Setup

The framework was evaluated on MuJoCo continuous control tasks (Walker, Quadruped, Cheetah, Swimmer, and Hopper) using both synthetic oracles and human user studies. RbRL was benchmarked against the PEBBLE baseline, a state-of-the-art PbRL algorithm.

Results and Discussion

Experimental results indicate that RbRL is significantly more efficient than PbRL. In human trials, participants provided approximately 14.03 ratings per minute, compared to 8.7 preferences per minute—a 62% time saving per feedback instance.

Learning curves for the Walker task comparing preference-based RL with rating-based RL across different numbers of classes (n).

A key finding is the existence of an optimal number of rating classes ($n$). While too few classes lack nuance, too many increase cognitive load and inconsistency. The "Goldilocks" zone was found to be between 3 and 7 classes. As shown in the Walker task (Figure 1), RbRL with 5-6 classes outperforms the preference-based baseline.

Mean reward comparison between rating-based RL (n=2) and preference-based RL in human user studies.

In human user studies (Figure 2), RbRL consistently matched or exceeded the performance of PbRL. Users reported that rating trajectories was less mentally demanding and more rewarding than making pairwise comparisons.

Conclusion and Future Work

RbRL presents a compelling alternative to preference-based feedback, offering higher sample efficiency and a better user experience. However, challenges remain regarding data imbalance in early training and potential drift in human rating scales. Future research could explore hybrid strategies, using RbRL for rapid global learning followed by PbRL for fine-grained policy refinement.

Summary updated

BibTeX
@inproceedings{white2024rating,
  author = {Devin White and Mingkang Wu and Ellen R. Novoseller and Vernon J. Lawhern and Nicholas R. Waytowich and Yongcan Cao},
  title = {{Rating-Based Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i9.28886},
}
Figure