Abstract
Preference-based reinforcement learning (PbRL) aligns robot behavior with human preferences via a reward function learned from binary feedback over agent behaviors. We show that encoding environment dynamics in the reward function improves the sample efficiency of PbRL by an order of magnitude. In our experiments, we iterate between: (1) encoding environment dynamics in a state-action representation $z^{sa}$ via a self-supervised temporal consistency task, and (2) bootstrapping the preference-based reward function from $z^{sa}$, which results in faster policy learning and better final policy performance. For example, on quadruped-walk, walker-walk, and cheetah-run, with 50 preference labels we achieve the same performance as existing approaches with 500 preference labels, and we recover 83% and 66% of ground truth reward policy performance versus only 38% and 21% without environment dynamics. The performance gains demonstrate that explicitly encoding environment dynamics improves preference-learned reward functions.
Introduction
Reinforcement Learning (RL) typically requires a mathematically defined reward function, but designing these is notoriously difficult and prone to "reward hacking." Preference-based RL (PbRL) addresses this by asking humans to choose between two behaviors. However, PbRL has a major bottleneck: it is incredibly data-hungry, often requiring thousands of human labels to learn simple tasks.
Standard PbRL treats reward learning as a simple classification task, ignoring the underlying dynamics of the environment. We hypothesize that if a reward model doesn't understand that a specific action leads to a specific outcome, it struggles to generalize from limited examples. By imbuing reward functions with an understanding of environment physics, we can significantly reduce the human feedback required.
The REED Framework
The core contribution of this work is REED (Rewards Encoding Environment Dynamics), a method that integrates a self-supervised temporal consistency task into the reward learning process.
As illustrated in Figure 1, REED utilizes Self-Predictive Representations (SPR). Instead of mapping a state-action pair directly to a reward, the model is trained to predict the latent representation of the next state ($s_{t+1}$) given the current state and action. The reward function is then built on top of these dynamics-aware features ($z^{sa}$). Because these features already "understand" the relationship between actions and outcomes, the reward model learns much faster from limited feedback. REED leverages all unlabeled transitions collected during exploration to refine these representations, even if those transitions are never shown to a human.
Experimental Evaluation
We evaluated REED using the B-Pref benchmark across two major simulation environments:
- DeepMind Control Suite (DMC): Locomotion tasks like
walker-walk,quadruped-walk, andcheetah-run. - MetaWorld: Robotic manipulation tasks like
button-pressandsweep-into.
The researchers tested two variants: Distillation REED (using a SimSiam-style objective, denoted as +dist.) and Contrastive REED (using a SimCLR-style objective, denoted as +contr.). These were compared against state-of-the-art baselines including PEBBLE, SURF, RUNE, and MRN.
Results and Discussion
REED demonstrates a 10x efficiency gain over standard methods. On tasks like quadruped-walk, REED achieved the same performance with 50 labels that the baseline (PEBBLE) required 500 labels to reach.
As shown in Figure 2, REED variants consistently outperform baselines, particularly in low-data regimes. With only 50 labels, REED recovered 83% and 66% of ground-truth reward performance on walker-walk and cheetah-run, respectively, while the baseline only managed 38% and 21%. Furthermore, REED proved remarkably resilient to noisy labels, significantly outperforming baselines even when the "teacher" made mistakes 10% of the time.
Conclusion
By explicitly encoding environment dynamics, REED significantly improves the sample efficiency of preference-based reinforcement learning. While adding a self-supervised dynamics task requires more computational overhead, the reduction in required human feedback is substantial. Future work will explore scaling REED to more complex, multi-stage tasks and real-world robotic hardware where human time is at its most expensive.
Summary updated