Learning Reward Functions from Diverse Sources of Human Feedback: Optimally Integrating Demonstrations and Preferences

Erdem Biyik, Dylan P. Losey, Malayandi Palan, Nicholas C. Landolfi, Gleb Shevchuk, Dorsa Sadigh · DOI

Introduction

Teaching robots complex tasks requires a precise reward function—a mathematical objective that defines success. However, manually designing these functions is error-prone. This paper, published in The International Journal of Robotics Research, introduces DemPref, a framework that optimally integrates passive human demonstrations with active preference queries to learn robot reward functions more accurately and efficiently.

The Challenge of Reward Design

Designing reward functions is notoriously difficult. A missing constraint can lead to "reward hacking," where a robot finds a shortcut that maximizes the mathematical reward but fails the actual task. To mitigate this, researchers use Inverse Reinforcement Learning (IRL) to infer rewards from human feedback.

Feedback typically comes in two forms:

  1. Demonstrations: A human shows the robot how to perform a task. This provides rich information but is often noisy or biased.
  2. Preferences: The robot presents two options to a human and asks which is better. This is precise but provides very little information per query.
The two primary sources of human feedback: demonstrations (top) and preferences (bottom).

The central challenge is twofold: mathematically combining these disparate sources and ensuring the robot asks "easy" questions that humans can answer confidently.

The DemPref Framework

The authors propose the DemPref (Demonstrations + Preferences) algorithm to bridge this gap.

The DemPref framework integrates demonstrations and preferences to learn a reward function.

1. Bayesian Initialization

The process begins with a few human demonstrations. The robot uses these to build a "prior" belief about the reward function, modeling the human as "Boltzmann rational" (mostly optimal but prone to occasional errors).

2. Active Information Gain

Rather than asking random questions, the robot generates queries based on Information Gain (IG). The authors critique the standard "Volume Removal" method, proving it often generates queries where options are indistinguishable to humans. Their IG objective balances the robot's uncertainty with the human's ability to provide a clear answer.

3. Optimal Sequencing and Stopping

The paper provides a theoretical proof (Theorem 2) that robots should always collect passive demonstrations before active queries to maximize information efficiency. Furthermore, they derive an optimal stopping condition to determine when the cost of human time outweighs the expected benefit of additional queries.

Key Insights

  • The "Easy Question" Paradox: Robots often seek information where they are most uncertain. However, if the robot is uncertain because two options are equally good, the human will also struggle to choose, leading to noisy data. The IG approach favors questions with clear, confident human responses.
  • Passive-then-Active: Demonstrations provide a high-level initialization that makes subsequent active queries significantly more effective. Starting with queries is inefficient without a baseline understanding of the task.
  • Volume Removal Flaws: The authors prove that the popular "Volume Removal" method can mistakenly view "trivial queries" (where both options are identical) as optimal, a significant theoretical failure.

Evaluation and Results

The framework was evaluated in various environments, including highway driving simulators, robot tossing tasks (MuJoCo), and physical experiments with a 7-DoF Fetch mobile manipulator.

  • Efficiency: Initializing with just one demonstration was equivalent to 20–35 additional preference queries in several environments.
  • User Preference: In a study with 15 participants, users significantly preferred the DemPref-trained robot over standard IRL models, noting higher task success.
  • Query Quality: The IG method resulted in fewer "About Equal" or incorrect answers compared to Volume Removal, confirming that the queries were easier for humans to process.

Conclusion

DemPref demonstrates that combining demonstrations and preferences is more than just the sum of its parts. By using demonstrations to set the stage and carefully selected preference queries to fine-tune the details, robots can learn complex reward functions with minimal human effort. Future work may expand this to non-linear reward functions and richer feedback types like rankings.

Summary updated

BibTeX
@article{biyik2020learning,
  author = {Erdem Biyik and Dylan P. Losey and Malayandi Palan and Nicholas C. Landolfi and Gleb Shevchuk and Dorsa Sadigh},
  title = {{Learning Reward Functions from Diverse Sources of Human Feedback: Optimally Integrating Demonstrations and Preferences}},
  journal = {Int. J. Robotics Res.},
  year = {2020},
  doi = {10.1177/02783649211041652},
}
Figure