Video Diffusion Alignment via Reward Gradients

Mihir Prabhudesai, Russell Mendonca, Zheyang Qin, Katerina Fragkiadaki, Deepak PathakarXiv 2024

Abstract: We have made significant progress towards building foundational video diffusion models. As these models are trained using large-scale unsupervised data, it has become crucial to adapt these models to specific downstream tasks. Adapting these models via supervised fine-tuning requires collecting target datasets of videos, which is challenging and tedious. In this work, we utilize pre-trained reward models that are learned via preferences on top of powerful vision discriminative models to adapt video diffusion models. These models contain dense gradient information with respect to generated RGB pixels, which is critical to efficient learning in complex search spaces, such as videos. We show that backpropagating gradients from these reward models to a video diffusion model can allow for compute and sample efficient alignment of the video diffusion model. We show results across a variety of reward models and video diffusion models, demonstrating that our approach can learn much more efficiently in terms of reward queries and computation than prior gradient-free approaches.

TL;DR

VADER (Video Diffusion Alignment via Reward Gradients) is a framework for fine-tuning video diffusion models using the direct gradients of reward models. By leveraging dense gradient information instead of sparse scalar feedback, VADER achieves significantly better prompt alignment and visual quality with much higher compute and sample efficiency than traditional reinforcement learning approaches.

The Challenge: Aligning Foundational Video Models

Foundational video diffusion models are typically trained on massive, unfiltered web datasets. While powerful, these "base" models often produce videos with dull colors, poor camera angles, or a lack of "alignment"—where the video doesn't quite match the user's text prompt.

To fix this, researchers usually turn to fine-tuning. However, supervised fine-tuning (SFT) requires massive datasets of high-quality videos, which are incredibly expensive to curate. Alternatively, Reinforcement Learning (RL) methods like DDPO use "reward models" (AI models that score how good a video is). The problem is that RL usually treats the reward as a single scalar number (e.g., "this video is a 7/10"). In the high-dimensional space of video—where thousands of pixels change over time—a single number is a very weak signal. It’s like trying to find a needle in a haystack while someone only tells you "warmer" or "colder."

Methodology: VADER

The core innovation of VADER is treating the reward model as a differentiable function rather than a black box. Instead of just getting a score, VADER backpropagates the gradients of that score through the reward model and back into the diffusion model's weights. This provides a "dense" signal: it tells the model exactly how every pixel in every frame should change to increase the reward.

To make this computationally feasible, the authors employ several optimization strategies:

  • Truncated Backpropagation: They only backpropagate through a few denoising steps (often just the very last one, $K=1$), capturing enough signal to update the model without excessive memory usage.
  • Low-Rank Adaptation (LoRA): They update only a small subset of the model's parameters.
  • Frame Subsampling: They decode and calculate rewards on a random subset of video frames rather than the whole clip.
  • Differentiable Reward Models: They utilize existing vision models (like CLIP, HPSv2, or VideoMAE) as reward functions to ensure they can compute the necessary gradients.

Evaluation and Datasets

The authors evaluated VADER across several state-of-the-art base models, including VideoCrafter, OpenSora 1.2, ModelScope, and Stable Video Diffusion (SVD). They used a variety of reward models for training:

  • HPSv2 & PickScore: For text-to-image alignment.
  • Aesthetic Predictor V2: For visual beauty.
  • YOLOS: An object detector used as a "negative" reward to perform object removal.
  • VideoMAE & V-JEPA: For action-specific alignment and temporal consistency.

Key Insights and Ideas

  • The Dimensionality Gap: As the resolution and complexity of the output increase (moving from image to video), the gap between gradient-based methods and scalar-based RL grows. Gradients become exponentially more useful as the search space expands.
  • Efficiency: VADER can align a model in about 12 GPU-hours on consumer-grade hardware (like a single 16GB VRAM GPU). In contrast, scalar-based methods (DDPO/DPO) often show negligible improvement in the same timeframe.
  • Generalization: A model fine-tuned on a specific set of prompts (e.g., "dogs doing activities") generalizes remarkably well to unseen prompts and even different animal categories, suggesting the model learns a general "concept" of alignment.
Generalization to creative prompts: A raccoon playing drums under a starry sky.

Key Results

  • Quantitative Superiority: VADER significantly outperformed DDPO and DPO in reward maximization. For the Aesthetic (T2V) task, VADER achieved a reward score of 7.12 compared to the base model's 4.49.
  • Human Preference: In a blind study, humans preferred VADER-generated videos over the ModelScope base model 79% of the time for visual fidelity and 61% of the time for text alignment.
  • Qualitative Feats: The paper demonstrates VADER's ability to perform complex tasks like object removal and improving temporal consistency in long clips where standard models usually "drift."
Complex prompt alignment: A shark playing chess underwater.

Limitations and Future Work

While powerful, VADER requires the reward function to be differentiable. It cannot directly optimize for non-differentiable metrics without first training a proxy reward model. Additionally, like all reward-based optimization, there is a risk of "reward hacking," though the strong prior of the pre-trained diffusion model acts as a natural regularizer. Future work could explore even more efficient ways to handle the spatio-temporal gradients of high-resolution, long-form video.

Summary updated

BibTeX
@misc{prabhudesai2024video,
  author = {Mihir Prabhudesai and Russell Mendonca and Zheyang Qin and Katerina Fragkiadaki and Deepak Pathak},
  title = {{Video Diffusion Alignment via Reward Gradients}},
  year = {2024},
  eprint = {2407.08737},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.08737},
}
Figure