TL;DR
The paper introduces GenReward, a novel framework that leverages the rich world knowledge embedded in pretrained video diffusion models to automatically generate reward signals for reinforcement learning (RL) agents. By combining coarse video-level trajectory alignment with fine-grained, action-aware frame-level goals, GenReward eliminates the need for manual reward engineering and significantly outperforms existing baselines on complex robotic manipulation tasks.
What Problem Does This Paper Address?
Designing effective reward functions is one of the most notorious bottlenecks in reinforcement learning. Programmatic or handcrafted rewards require extensive domain expertise, are prone to exploitation (reward hacking), and rarely generalize across different tasks.
While recent approaches try to bypass this by using pretrained vision-language models (VLMs) or image diffusion models to compute rewards based on text or static images, they suffer from a major limitation: they fail to capture the temporal dynamics of a task. Static goals don't tell an agent how to transition between states. Furthermore, existing generative reward models are rarely "action-aware"—they evaluate the state of the environment but ignore whether the agent's specific actions are actively driving it toward the goal.
Methods
GenReward addresses these challenges through a three-stage pipeline that extracts both macro-level (video) and micro-level (frame/action) guidance from a generative visual prior.
- Video Diffusion Model (VDM) Adaptation: The authors finetune a pretrained image-to-video diffusion model (CogVideoX) on domain-specific manipulation videos. Given a text prompt (e.g., "pick up the blue fork"), this model generates a video showing an expert-level execution of the task.
- Video-Level Goal as Reward: To ensure the agent's overall trajectory aligns with the generated expert behavior, GenReward uses CogVideoX's internal 3D causal VAE encoder. It embeds both the agent's historical observations and the generated video into a latent space and computes their cosine similarity. This acts as a global trajectory-matching reward.
- Frame-Level Goal as Reward (Action-Aware): To provide fine-grained guidance, the framework uses OpenCLIP to identify the most task-relevant "key frame" from the generated video, establishing it as the ultimate goal state. Crucially, instead of just measuring visual similarity to this frame, GenReward learns a Forward-Backward (FB) representation. This representation models the long-term state occupancy probability, effectively quantifying how likely a specific state-action pair is to lead to the goal frame.
The final reward is a weighted combination of the video-level similarity, the action-aware FB reward, and the raw environment reward.
Datasets
The authors utilized separate datasets for training the generative model and evaluating the RL agent:
- Video Generation Source Domains: Videos were sourced from real-world and simulated robotic manipulation datasets, including RT-1, the Bridge dataset, and the Robot Learning Benchmark (RLBench).
- RL Evaluation Benchmarks: The downstream RL agents were evaluated on five medium-to-hard manipulation tasks from Meta-World (Pick Place, Pick Out of Hole, Bin Picking, Shelf Place, Disassemble) and the Distracting Control Suite (DCS), which introduces heavy visual distractions like shifting backgrounds.
Key Insights and Ideas
- Generative Models as World Simulators: Instead of using diffusion models purely to evaluate static agent states, GenReward uses them to imagine the ideal trajectory. This transfers rich, structural world knowledge directly into the RL reward loop.
- The Power of Action-Awareness: Visual similarity alone can mislead an agent (e.g., an arm hovering near an object looks similar to an arm grasping it). By incorporating the Forward-Backward representation, the reward function explicitly incentivizes actions that increase the mathematical probability of reaching the goal state.
- Coarse-to-Fine Guidance: Relying solely on video-level rewards can cause sparse signal issues in long-horizon tasks, while relying solely on frame-level rewards can lead to short-sighted behavior. Combining both creates a smoother optimization landscape.
Key Results
Evaluated on top of the model-based RL algorithm DreamerV3, GenReward demonstrated substantial performance gains over standard dense rewards and competitive baselines like RoboCLIP, Diffusion Reward, and TADPoLe.
- Substantial Margin Over Raw Rewards: On Meta-World, GenReward drastically improved the episode returns of DreamerV3. For instance, in Pick Out of Hole, returns jumped from 193 to 582; in Bin Picking, they rose from 398 to 822; and in Shelf Place, they surged from 154 to 814.
- Qualitative Efficiency: Qualitative evaluations on the Bin Picking task revealed that GenReward enabled the robotic policy to successfully complete the grasp in significantly fewer steps than baseline methods, which often failed to make contact with the object or moved it away from the target.
Limitations and Future Work
The primary limitation acknowledged by the authors is computational overhead. Computing video-level embeddings and optimizing the forward-backward representation online during training adds significant processing time.
Future research directions could explore optimizing the efficiency of these representations or deploying frozen, highly compressed versions of the video encoders to mitigate training bottlenecks.
Summary updated