Abstract
Reinforcement Learning has suffered from poor reward specification, and issues for reward hacking even in simple enough domains. Preference Based Reinforcement Learning attempts to solve the issue by utilizing binary feedbacks on queried trajectory pairs by a human in the loop indicating their preferences about the agent's behavior to learn a reward model. In this work, we present a state augmentation technique that allows the agent's reward model to be robust and follow an invariance consistency that significantly improved performance, i.e. the reward recovery and subsequent return computed using the learned policy over our baseline PEBBLE. We validate our method on three domains, Mountain Car, a locomotion task of Quadruped-Walk, and a robotic manipulation task of Sweep-Into, and find that using the proposed augmentation the agent not only benefits in the overall performance but does so, quite early in the agent's training phase.
Introduction: The Challenge of Reward Specification
Reinforcement Learning (RL) is notoriously difficult because of reward specification. It is incredibly hard to write a mathematical formula that perfectly captures a desired behavior without the agent finding "hacks"—for instance, a robot arm vibrating rapidly to gain points instead of actually moving an object. Preference-Based Reinforcement Learning (PbRL) addresses this by allowing humans to provide binary feedback on video clips of an agent's behavior. However, when these clips are image-based, AI agents often get distracted by "style" (background textures or lighting) rather than focusing on the "content" (the actual movement of the robot). This leads to poor generalization and high human feedback requirements.
Proposed Method: State Augmentation via Motion Masks
To address visual distractions in PbRL, we introduce a tailored data augmentation strategy based on three pillars:
- Motion-based Importance: We argue that the "content" of an image—what actually matters for the reward—is found in the pixels that change between frames. We create a binary mask by comparing the current frame ($I_t$) with the previous frame ($I_{t-1}$).
- State Augmentation: Using this mask, we apply Gaussian perturbations (blurring) to the "style" pixels (the background) while keeping the "content" pixels (the moving parts) intact. This creates augmented versions of the trajectories already labeled by the human.
- Invariance Consistency: We modify the reward model's loss function to include an invariance loss. This forces the reward model to output the same reward value for both the original sharp image and the blurred augmented version, teaching the agent that background details are irrelevant to the task reward.
Experimental Evaluation
We evaluated our method on three distinct continuous control domains using pixel-based inputs:
- Mountain Car (Continuous): A classic control problem requiring momentum to climb a hill.
- Quadruped-Walk (DeepMind Control Suite): A complex locomotion task involving a four-legged robot.
- Sweep-Into (MetaWorld): A robotic manipulation task where an arm must sweep a puck into a goal.
Results and Discussion
Our method was compared against PEBBLE, a state-of-the-art PbRL baseline. In all three domains, the proposed state augmentation achieved higher "true" rewards and demonstrated superior efficiency.
As shown in the Quadruped-Walk results, our approach consistently maintains a higher return throughout the training process compared to the baseline. A similar trend is observed in more complex manipulation tasks.
Key insights from our experiments include:
- Early Training Boost: The augmentation technique provides significant performance gains early in the training phase, which is critical for reducing the total number of queries a human must answer.
- Robustness: The invariance loss successfully prevented the reward model from overfitting to visual noise, a common failure mode in deep RL from pixels.
- Efficiency: The agent learned effectively with only 1,000 human feedbacks for locomotion and 10,000 for the complex Sweep-Into task.
Conclusion and Future Work
By using simple frame differencing as a proxy for importance, we avoid the need for expensive human-annotated masks or complex object detection. While the current method assumes only moving objects are relevant, future work will explore ways to include vital static objects (like goals or obstacles) and test a wider variety of domain-dependent perturbations to further improve robustness.
Summary updated