Overview
LLM-grounded Video Diffusion (LVD) is a training-free, two-stage pipeline that leverages Large Language Models (LLMs) as spatiotemporal planners for video generation. By first generating dynamic bounding box layouts and subsequently using them to guide a diffusion model's attention maps, LVD enables the creation of videos that faithfully follow complex prompts—such as specific object counts, movements, and physical interactions—far better than standard models.
The Challenge of Complex Prompts
While text-to-video (T2V) diffusion models have made massive leaps in visual quality, they frequently fail at "prompt following." For instance, if prompted with "a raccoon walking from left to right while a barrel drifts down a river," a standard model might merge the objects, misinterpret the directions, or ignore the barrel entirely.
This limitation arises because diffusion models, while excellent at capturing local textures, struggle with high-level structural planning and long-term temporal consistency. They lack an explicit understanding of spatial relationships and the "common sense" physics (like gravity or perspective) required to execute complex, multi-object scripts.
The LVD Approach
To address these shortcomings, the authors propose a two-stage approach that decouples planning from rendering:
- Stage 1: LLM Spatiotemporal Planner. The user's text prompt is sent to an LLM (such as GPT-4). Using a few in-context examples, the LLM generates a Dynamic Scene Layout (DSL)—a sequence of bounding boxes defining the position of each object across the video's frames.
- Stage 2: DSL-Grounded Video Generator. This stage employs a pre-trained, off-the-shelf video diffusion model. Crucially, LVD is training-free and does not require fine-tuning the base model. Instead, it uses "attention guidance." During the denoising process, an energy function is calculated based on the model's internal cross-attention maps. This function rewards the model when attention for a specific word (e.g., "raccoon") is concentrated inside its assigned bounding box and penalizes it otherwise.
To ensure smooth motion, the authors also introduce a Center-of-Mass (CoM) energy function. This ensures that the "weight" of the attention map tracks the bounding box's center and velocity, preventing objects from appearing stuck or flickering between frames.
Key Insights: LLMs as "Zero-Shot" Physicists
One of the most striking findings of this research is that LLMs already possess an internal model of world physics.
- Gravity and Elasticity: When prompted to generate a layout for a "falling rock," the LLM knows it should accelerate downwards. If asked for a "bouncing ball," it correctly reverses the trajectory upon hitting the ground coordinate.
- Perspective Awareness: Without explicit instructions, LLMs correctly adjust bounding box sizes to simulate perspective, making objects smaller as they move "away" from the camera.
- Training-Free Flexibility: Because LVD doesn't require training, it is entirely plug-and-play. As LLMs become more advanced or diffusion models yield higher realism, LVD can be upgraded by simply swapping out its underlying components.
Results and Performance
The researchers evaluated LVD using standard benchmarks (UCF-101, MSR-VTT) and a newly introduced benchmark of 500 programmatically generated prompts designed to test generative numeracy, attribute binding, visibility, spatial dynamics, and sequential actions.
LVD significantly outperformed its base models in prompt alignment:
- Accuracy: On the complex prompt benchmark, LVD (using GPT-4) achieved a 98% average success rate in generating correct layouts, compared to just 14% for retrieval-based baselines.
- Human Preference: In human evaluations, LVD was preferred over the baseline ModelScope model 85.8% of the time for prompt alignment and 66% of the time for overall video quality.
- Video Quality: LVD improved Frechet Video Distance (FVD) scores on UCF-101 (828 vs. 984), indicating that the spatial guidance helps the model produce more coherent, realistic videos rather than just forcing objects into unnatural boxes.
Limitations and Future Work
While highly effective, LVD acts as a "grounding" layer and remains dependent on the base diffusion model's capabilities. If the underlying model cannot generate a specific rare object, LVD will place a box in the correct location, but the rendered pixels may still be inaccurate. Additionally, while LLMs excel at short sequences, they can struggle with multi-step "long-horizon" planning for extended videos. Future work may extend this framework beyond bounding boxes to more detailed control signals, such as human skeletal poses or depth maps generated directly by the LLM.
Summary updated