TL;DR
ERL-VLM is a novel framework that trains reinforcement learning (RL) agents using absolute trajectory ratings from Vision-Language Models (VLMs) rather than expensive human feedback or inefficient pairwise AI comparisons. By introducing stratified sampling and a noise-robust loss function, it successfully mitigates the data imbalance and hallucinations inherent to AI feedback, setting a new standard for autonomous reward learning.
What Problem Does This Paper Address?
Designing effective reward functions is one of the most notorious bottlenecks in reinforcement learning. While Reinforcement Learning from Human Feedback (RLHF) has helped align agents with human intent, gathering human data is expensive, slow, and unscalable.
Recently, researchers have turned to large Vision-Language Models (VLMs) to act as automated reward proxies by asking them to compare pairs of agent trajectories and state a preference. However, this preference-based approach has major drawbacks:
- Informativeness: A simple binary preference ("A is better than B") conveys very little information per query, leading to poor sample efficiency.
- Computational Cost: Comparing two trajectories doubles the number of tokens the VLM must process, driving up API costs and latency.
- Ambiguity & Hallucination: When two trajectories are of similar quality (e.g., both are completely failing early in training), the VLM often hallucinates a false preference.
The authors address these limitations by shifting from pairwise preferences to absolute ratings (e.g., "Bad", "Average", "Good") on individual trajectories, while fixing the core stability issues that typically break rating-based RL.
Methods
The proposed framework, ERL-VLM (Enhancing Rating-Based Reinforcement Learning), queries a VLM (Gemini 1.5 Pro) to evaluate individual trajectory segments using a discrete Likert scale.
The process operates in two main stages:
- Two-Stage Prompting: The VLM is first prompted to explicitly analyze the visual differences between consecutive timesteps of an agent's trajectory segment before outputting a final rating. This reasoning step significantly improves rating accuracy.
- Algorithmic Enhancements for Rating-Based RL: Standard rating-based RL is notoriously unstable. ERL-VLM introduces two critical fixes to stabilize training:
- Stratified Sampling & Weighted Loss: Early in training, the agent fails constantly, causing the dataset to be flooded with "Bad" ratings. To prevent the reward model from collapsing and only predicting "Bad", the authors use stratified sampling to ensure every training batch contains an equal representation of all rating classes.
- Mean Absolute Error (MAE) Loss: VLMs occasionally suffer from hallucinations or noisy labeling. Instead of standard Cross-Entropy loss, ERL-VLM optimizes the reward model using MAE loss, which is mathematically proven to be more robust against label noise.
Datasets
The authors evaluated ERL-VLM across three distinct domains:
- MetaWorld: A simulated environment for low-level continuous robotic control. Testing included three tasks: Sweep Into, Drawer Open, and Soccer.
- ALFRED: A challenging benchmark for high-level vision-language navigation and multi-step object manipulation. The authors evaluated 20 tasks across 4 categories (PickupObject, PutObject, CoolObject, CleanObject) in a virtual kitchen.
- Real-World Sawyer Robot: Tabletop manipulation tasks (Sweep Bowl, Drawer Open, Pickup Banana) evaluated using offline RL from 50 human teleoperated demonstrations.
Key Insights and Ideas
- Absolute vs. Relative Feedback: Absolute ratings provide a global anchor of performance. Knowing a trajectory is "Good" is far more valuable than simply knowing Trajectory A is slightly better than an equally terrible Trajectory B.
- The "All-Bad" Trap: Rating-based RL inherently suffers from extreme data imbalance early in training. Without stratified sampling, the reward model fails to learn the boundaries between rating classes, causing policy optimization to completely stall.
- Task-Dependent Granularity: More rating classes are not always better. For unambiguous tasks (like Sweep Into), a binary ($n=2$) rating scale performs best. For subjective tasks (like Drawer Open, where the drawer can be partially open), a three-class ($n=3$) scale yields superior results.
Key Results
- Simulation Performance: ERL-VLM outperformed all major baselines—including CLIP Score, RoboCLIP, and the preference-based RL-VLM-F—in 6 out of 7 simulated tasks.
- Query Efficiency: In the ALFRED benchmark, under a strict query budget, the preference-based baseline (RL-VLM-F) failed to learn meaningful policies because preferences yielded too little information. ERL-VLM achieved high success rates under the exact same budget constraints.
- Real-World Success: ERL-VLM successfully trained a physical Sawyer robotic arm using offline VLM ratings, significantly outperforming Behavior Cloning and Sparse Reward baselines on complex manipulation tasks like grasping and lifting a banana.
Limitations and Future Work
Despite its success, ERL-VLM inherits the foundational limitations of its underlying VLM teacher. Large models can still exhibit stochastic behavior, occasionally returning different ratings for identical trajectory segments even at a temperature setting of zero. Furthermore, the current framework relies entirely on visual observations and textual action descriptions. The authors note that integrating additional sensing modalities (like tactile or force feedback) represents a promising avenue for making automated AI feedback even more reliable.
Summary updated