Diffusion Reward: Learning Rewards via Conditional Video Diffusion
Tao Huang, Guangqi Jiang, Yanjie Ze, Huazhe Xu
TL;DR
This work tackles the challenge of specifying dense rewards for vision-based reinforcement learning by learning from expert videos. It introduces Diffusion Reward, which trains a conditional video diffusion model on expert trajectories and uses the negative of the history-conditioned entropy as a reward, augmented with a novelty-based exploration term and the environment's sparse reward. Empirical results across ten robotic manipulation tasks in simulation and on real robots show strong gains over baselines and good zero-shot generalization to unseen tasks, with favorable offline RL performance. The approach leverages large-scale diffusion modeling to extract informative, generalizable reward signals from unlabeled videos, highlighting a promising direction for reward pretraining in robotics and beyond.
Abstract
Learning rewards from expert videos offers an affordable and effective solution to specify the intended behaviors for reinforcement learning (RL) tasks. In this work, we propose Diffusion Reward, a novel framework that learns rewards from expert videos via conditional video diffusion models for solving complex visual RL problems. Our key insight is that lower generative diversity is exhibited when conditioning diffusion on expert trajectories. Diffusion Reward is accordingly formalized by the negative of conditional entropy that encourages productive exploration of expert behaviors. We show the efficacy of our method over robotic manipulation tasks in both simulation platforms and the real world with visual input. Moreover, Diffusion Reward can even solve unseen tasks successfully and effectively, largely surpassing baseline methods. Project page and code: https://diffusion-reward.github.io.
