Learning from Preferences and Mixed Demonstrations in General Settings

Jason Ross Brown, Carl Henrik Ek, Robert D. Mullins · DOI

Abstract

Reward engineering is a central challenge in reinforcement learning, often leading to unintended agent behaviors. While Inverse Reinforcement Learning (IRL) and RL from Human Feedback (RLHF) provide frameworks for learning from human input, they are typically applied in isolation or sequentially, which can lead to information loss and "forgetting." We introduce LEOPARD (Learning Estimated Objectives from Preferences And Ranked Demonstrations), a novel framework that unifies diverse feedback types—including positive and negative demonstrations, rankings, and pairwise preferences—into a single mathematical objective based on Reward-Rational Partial Orderings (RRPO). Our evaluation across multiple Gymnasium environments demonstrates that LEOPARD significantly outperforms existing sequential baselines, offering a more efficient and robust approach to learning from complex human feedback.

Introduction

The "Reward Engineering" bottleneck remains a primary obstacle in deploying reinforcement learning (RL) to real-world scenarios. Specifying a reward function mathematically is notoriously difficult and prone to misalignment. While IRL allows agents to mimic expert behavior and RLHF enables learning from human preferences, these approaches are often treated as separate silos. A common practice is a sequential pipeline: first training on demonstrations via IRL, then fine-tuning with preferences via RLHF. However, this approach often leads to "catastrophic forgetting" of the initial demonstration nuances and fails to incorporate highly informative "negative demonstrations"—examples of what the agent should avoid.

The LEOPARD Framework

LEOPARD addresses these limitations by unifying all forms of human feedback into a single objective. The core theoretical contribution is Reward-Rational Partial Orderings (RRPO). Instead of assuming demonstrations are optimal, RRPO interprets them as statements of relative preference. For instance, a positive demonstration is implicitly preferred over the agent's current behavior, while the agent's behavior is preferred over a negative demonstration.

The LEOPARD framework: Feedback from mixed demonstrations, preferences, and agent trajectories are encoded into partial orderings to train a reward model via RRPO loss minimization.

As shown in Figure 1, the algorithm operates in an iterative loop:

  1. Encoding: Mixed demonstrations (positive and negative), pairwise preferences, and agent trajectories are translated into a unified set of partial orderings.
  2. Reward Learning: A reward model is trained by minimizing the RRPO loss. This loss uses a probabilistic Boltzmann-rational choice model to maximize the likelihood of the observed orderings. A smoothness regularization term is included to ensure the learned reward function is amenable to RL optimization.
  3. Policy Optimization: The agent is trained via standard RL using the learned reward model, and new trajectories are sampled to solicit further feedback.

Experimental Evaluation

The authors evaluated LEOPARD on four diverse environments from the Gymnasium suite: Half Cheetah, Ant, Lunar Lander, and Cliff Walking. These tasks range from continuous robotic control to discrete grid-worlds. LEOPARD was compared against two major baselines: Adversarial Imitation Learning with Preferences (AILP) and a sequential DeepIRL followed by RLHF pipeline.

Results and Discussion

LEOPARD consistently outperformed both baselines across all environments by a considerable margin. A key insight from the study is the significant value of negative demonstrations; by explicitly showing the agent what not to do, the search space is pruned more effectively than with positive examples alone.

Mean ground truth reward over training iterations for Half Cheetah (left) and Ant (right). LEOPARD shows superior performance and faster convergence compared to AILP and sequential DeepIRL+RLHF.

Furthermore, the unified training approach prevents the information loss seen in sequential pipelines. LEOPARD's ability to extract information from every data point—whether it's a ranking of multiple demonstrations or a single pairwise preference—leads to significantly higher sample efficiency. The results indicate that combining different feedback types is almost always beneficial, yielding better performance than using a larger amount of any single type individually.

Conclusion

LEOPARD provides a robust and mathematically grounded framework for learning from a realistic, "messy" mix of human feedback. By unifying demonstrations and preferences, it overcomes the limitations of sequential training and highlights the utility of negative examples. While current experiments used synthetic feedback, future work will involve testing with real human subjects and scaling the framework to high-dimensional domains such as Large Language Model (LLM) fine-tuning.

Summary updated

BibTeX
@misc{brown2025learning,
  author = {Jason Ross Brown and Carl Henrik Ek and Robert D. Mullins},
  title = {{Learning from Preferences and Mixed Demonstrations in General Settings}},
  year = {2025},
  eprint = {2508.14027},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.14027},
}
Figure