Inference-Time Text-to-Video Alignment with Diffusion Latent Beam Search

Yuta Oshima, Masahiro Suzuki, Yutaka Matsuo, Hiroki Furuta

Introduction

The remarkable progress in text-to-video (T2V) diffusion models has enabled the generation of stunning, photorealistic videos. However, aligning these models with human preferences—ensuring natural motion, logical temporal progression, and strict adherence to prompts—remains a significant challenge. To address this, researchers have introduced Diffusion Latent Beam Search (DLBS) paired with a lookahead estimator. This training-free, inference-time method steers the generation process toward higher-quality outputs, producing videos with more natural motion and better prompt alignment than standard sampling, all while remaining highly computationally efficient.

The Alignment Problem in Video Generation

While modern T2V models excel at generating high-quality individual frames, they frequently struggle with "temporal logic." Common artifacts include subjects deforming as they move, videos playing in reverse, or scenes remaining eerily motionless despite highly dynamic text prompts.

Aligning these models typically requires expensive fine-tuning, such as Reinforcement Learning from Human Feedback (RLHF). As an alternative, researchers have explored "inference-time" steering to nudge the model toward better outputs during generation. However, existing methods have major drawbacks:

  • Greedy Search: Picks the best immediate next step, but is often "short-sighted" and misled by the heavy noise present in early diffusion steps.
  • Best-of-N Sampling: Generates $N$ complete videos and selects the best one, which is incredibly computationally wasteful.

The core problem is finding a smarter, more efficient way to navigate the diffusion generation process to ensure the final video is both visually appealing and faithful to the prompt.

Proposed Methodology

To solve the inefficiencies of existing search methods, the authors propose a novel search architecture combined with a calibrated reward system.

Diagram illustrating the Diffusion Latent Beam Search and Lookahead Estimator processes.
  1. Diffusion Latent Beam Search (DLBS): Instead of following a single path (Greedy) or generating entirely independent paths (Best-of-N), DLBS maintains $B$ "beams" (promising candidate trajectories). At each denoising step, it samples $K$ possible next latents for each beam and retains only the top $B$ overall based on a reward function. This allows the model to explore multiple potential futures and recover from local sub-optimalities.
  2. Lookahead Estimator (LA): Evaluating the "goodness" of a video while it is still mostly noise is notoriously difficult. The LA estimator takes a noisy intermediate latent and runs a few fast, deterministic steps (using DDIM) to "peek" at what the final video might look like. This provides a much cleaner, more accurate signal for the reward function to evaluate.
  3. Reward Calibration: The authors found that single metrics (like a basic "aesthetic score") are poor proxies for human preference. They combined six existing metrics—Subject Consistency, Motion Smoothness, Dynamic Degree, Aesthetic Quality, Imaging Quality, and Text-Video Consistency—into a single weighted reward. These weights were "calibrated" by maximizing their correlation with feedback from advanced Vision Language Models (VLMs) like Gemini 1.5 Pro and GPT-4o.

Experimental Setup

The study evaluated DLBS across several diverse benchmarks, including DEVIL (categorized by High, Medium, and Static dynamics), MSRVTT-test, Movie Gen Video Bench, and TVGE. The method was tested on state-of-the-art open-source models, including Latte, CogVideoX (2B/5B), and Wan 2.1 (1.3B/14B).

Key Findings and Results

Graph showing DLBS-LA achieving higher Gemini Calibrated Reward at lower inference times compared to Best-of-N sampling.
  • Superior Efficiency: DLBS-LA achieved higher performance gains than Best-of-N sampling while using significantly less computation. For example, DLBS-LA with a small search budget often outperformed Best-of-64 sampling, proving that guided beam search is far more effective than brute-force generation.
  • Search Over Denoising Steps: A major practical takeaway is resource allocation. If you have a fixed compute budget at inference time, it is better spent on enabling the lookahead estimator and increasing search breadth (beam size) rather than simply increasing the number of standard denoising steps.
  • Dynamic Reward Importance: The importance of different reward metrics shifts based on the prompt. For a "High Dynamics" prompt (e.g., a car chase), the Dynamic Degree metric is crucial. For a static scene, Aesthetic Quality takes the lead. Calibrating these weights dynamically is key to alignment.
  • VLM & Human Preference: In head-to-head human evaluations, videos generated via DLBS-LA were consistently preferred over those from base models or greedy search across all tested T2V models.
  • Scalability: The method proved highly effective even when scaled up to massive 14-billion parameter models like Wan 2.1, demonstrating its viability as a "plug-and-play" enhancement for future generative models.

Limitations and Future Directions

While highly effective, the authors note that VLMs acting as reward oracles are not perfect; they can occasionally be misled by distracting backgrounds or exhibit different sensitivities than humans on specific tasks like text rendering. Additionally, while more efficient than Best-of-N, DLBS still requires more compute than a single standard generation pass, making it best suited for "high-quality" offline generation rather than real-time applications. Future work may integrate specialized reward models trained explicitly on physical laws to further eliminate unnatural deformations in generated videos.

Summary updated

BibTeX
@inproceedings{oshima2025inference,
  author = {Yuta Oshima and Masahiro Suzuki and Yutaka Matsuo and Hiroki Furuta},
  title = {{Inference-Time Text-to-Video Alignment with Diffusion Latent Beam Search}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=c9EAmyYPOv},
}
Figure