[Paper Review] Video Prediction Models as Rewards for Reinforcement Learning
VIPER uses the log-likelihoods from a pretrained video prediction model as reward signals for reinforcement learning, enabling expert-level control from pixels across multiple benchmarks and enabling cross-embodiment generalization without task rewards.
Specifying reward signals that allow agents to learn complex behaviors is a long-standing challenge in reinforcement learning. A promising approach is to extract preferences for behaviors from unlabeled videos, which are widely available on the internet. We present Video Prediction Rewards (VIPER), an algorithm that leverages pretrained video prediction models as action-free reward signals for reinforcement learning. Specifically, we first train an autoregressive transformer on expert videos and then use the video prediction likelihoods as reward signals for a reinforcement learning agent. VIPER enables expert-level control without programmatic task rewards across a wide range of DMC, Atari, and RLBench tasks. Moreover, generalization of the video prediction model allows us to derive rewards for an out-of-distribution environment where no expert data is available, enabling cross-embodiment generalization for tabletop manipulation. We see our work as starting point for scalable reward specification from unlabeled videos that will benefit from the rapid advances in generative modeling. Source code and datasets are available on the project website: https://escontrela.me/viper
Motivation & Objective
- Motivate scalable reward specification for RL without manual reward engineering.
- Leverage unlabeled expert videos to define reward signals via video model likelihoods.
- Demonstrate that video-model-based rewards enable expert-level control across diverse benchmarks.
Proposed method
- Train an autoregressive video prediction model on expert videos using a VQ-GAN encoder/decoder and a transformer over discrete codes (Equations 3).
- Define rewards as the log-likelihood of the next frame given past frames (Equation 4, approximated with context k as in Equation 7).
- Improve learning by matching the agent’s trajectory distribution to the video model’s distribution via KL divergence (Equation 5) and adding an exploration term (Equation 6).
- Incorporate an entropy term to encourage diverse trajectories within high-probability regions (Equation 6).
- Use VIPER rewards with any RL algorithm (e.g., DrQ, DreamerV3) and compare to AMP baselines across tasks.
- Experiment with data augmentation and context length to enhance robustness.

Experimental results
Research questions
- RQ1Can VIPER provide adequate learning signals to solve diverse control tasks from pixels without ground-truth rewards?
- RQ2Do video models trained on varied tasks yield useful rewards for new tasks or out-of-distribution scenarios?
- RQ3Can VIPER generalize to novel environments or embodiments where no expert data is available?
- RQ4What implementation choices (video model, context length, exploration weight) most affect performance?
Key findings
- VIPER achieves near expert-level performance on 15 DMC tasks, 7 Atari games, and 6 RLBench tasks using video-prediction rewards alone.
- VIPER outperforms adversarial baselines (AMP) and demonstrates strong cross-embodiment generalization for tabletop manipulation.
- Video model likelihood rewards correlate with ground-truth rewards and enable effective RL with standard algorithms.
- Longer context and appropriate exploration weighting improve performance; MaskGIT underperforms VideoGPT-based likelihoods.
- The approach generalizes to out-of-distribution arms/tasks not seen during training, enabling cross-domain reward specification.
- Masking scoreboard in Atari improved policy stability by reducing noise in reward signals.

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.