[Paper Review] RL-VLM-F: Reinforcement Learning from Vision Language Foundation Model Feedback
RL-VLM-F automatically generates reward functions for RL by querying vision-language foundation models to compare agent observations against a text task description, enabling autonomous learning without human-crafted rewards and achieving strong performance across diverse manipulation tasks.
Reward engineering has long been a challenge in Reinforcement Learning (RL) research, as it often requires extensive human effort and iterative processes of trial-and-error to design effective reward functions. In this paper, we propose RL-VLM-F, a method that automatically generates reward functions for agents to learn new tasks, using only a text description of the task goal and the agent's visual observations, by leveraging feedbacks from vision language foundation models (VLMs). The key to our approach is to query these models to give preferences over pairs of the agent's image observations based on the text description of the task goal, and then learn a reward function from the preference labels, rather than directly prompting these models to output a raw reward score, which can be noisy and inconsistent. We demonstrate that RL-VLM-F successfully produces effective rewards and policies across various domains - including classic control, as well as manipulation of rigid, articulated, and deformable objects - without the need for human supervision, outperforming prior methods that use large pretrained models for reward generation under the same assumptions. Videos can be found on our project website: https://rlvlmf2024.github.io/
Motivation & Objective
- Eliminate manual reward engineering by leveraging a text task description and visual observations.
- Automate reward function learning through preferences provided by vision-language foundation models (VLMs).
- Demonstrate applicability across classic control, rigid/ articulated, and deformable object manipulation tasks.
- Analyze the impact of VLM-based preferences on reward learning and policy performance.
Proposed method
- Use a two-stage VLM prompting process to obtain image-pair preferences based on a task description.
- Learn a reward function rψ from VLM-provided preferences via a Bradley-Terry-based likelihood (Eq. 1).
- Optimize the reward function by minimizing the standard preference loss (Eq. 2) and update the policy with off-policy RL.
- Employ SAC as the underlying RL algorithm and relabel the replay buffer when the reward function is updated.
- Iteratively collect rollouts, sample image pairs, query the VLM for preferences, and update both policy and reward model (Algorithm 1).
Experimental results
Research questions
- RQ1Can a vision-language foundation model provide reliable preference labels to learn a task reward from raw image observations?
- RQ2How does VLM-based reward learning compare to raw VLM scores or other baselines in diverse robotic tasks?
- RQ3To what extent does automatic reward learning from task descriptions generalize across classic control, rigid/ articulated, and deformable object manipulation?
- RQ4What is the impact of a two-stage prompting strategy for VLMs versus a single-stage approach?
Key findings
- RL-VLM-F outperforms baselines that rely on VLM scores, CLIP/BLIP-2 similarities, and RoboCLIP-style rewards across seven tasks.
- RL-VLM-F matches or surpasses GT (ground-truth) preference performance on six of seven tasks, demonstrating strong automatic reward learning.
- The two-stage VLM prompting strategy yields better performance than a single-stage prompt in most tasks.
- VLM-generated preference labels are generally correct more often than incorrect, with accuracy increasing as the visual progress difference between image pairs grows.
- Learned rewards align with task progress and enable effective policies, despite noise and local minima in the reward signal.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.