atlas

Research map / Reinforcement learning / Visual and representation RL

Code as Reward: Empowering Reinforcement Learning with VLMs

ICML 2024 · Reinforcement learning › Visual and representation RL · approach: Probabilistic and autonomous RL · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes VLM-CaR, which prompts a VLM (GPT-4 web interface) to decompose a task into sub-tasks and generate code reward functions, verifies them with expert and random trajectories, and uses them as dense auxiliary rewards for RL.

Problem

Defining dense, reliable reward functions for RL in image-based environments is costly, and directly querying VLMs for rewards at every step is computationally expensive, unreliable, and not interpretable.

Approach

Use a VLM once, zero-shot and via sequential prompting, to generate executable Python programs for sub-task completion checks and reward functions from initial and goal images; verify them automatically with expert and random trajectories; then use them as auxiliary dense rewards during RL training, framed as option termination conditions.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use VLM-CaR-generated auxiliary rewards instead of only sparse environment rewardsPPO · MiniGrid tasksepisodic mean rewardHelped
Use VLM-CaR-generated auxiliary rewards instead of only sparse environment rewardsPPO · MiniGrid DoorKey8x8task completionHelped
Use VLM-CaR-generated dense rewards instead of sparse environment rewardsTQC · PandasGym PandasPush and PandasSlidesuccess rateHelped
Use VLM-CaR-generated dense rewards instead of sparse environment rewardsTQC · PandasGym PandasPush and PandasSlidesample efficiencyHelped
Evaluate policies using VLM-CaR-generated reward functionsCLIPort policies · CLIPort separating-piles, put-blocks-in-bowls, and packing-shapesreward separation by policy skillMixed

Surprising findings

Limitations

Experimental setup

Datasets: Gym-MiniGrid PandasGym CLIPort simulated environments (separating-piles, put-blocks-in-bowls, packing-shapes)

Benchmarks: Gym-MiniGrid DoorKey and Unlock PandasGym PandasPush and PandasSlide CLIPort separating-piles, put-blocks-in-bowls, packing-shapes

Metrics: episodic mean reward success rate sample efficiency number of failed VLM attempts regenerations

Baselines: sparse environment reward PPO with sparse reward TQC with sparse reward

Builds on: options framework proximal policy optimization CLIPort Code as Policies

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy