Abstract
Controllable video generation has traditionally been bifurcated into structure-based and semantic-based approaches. While structural control is well-established, semantic control—encompassing style, complex motion, and camera dynamics—remains challenging due to the lack of pixel-level alignment. We present Video-As-Prompt (VAP), a unified framework that treats semantic control as an in-context generation task. By leveraging a frozen Video Diffusion Transformer (DiT) augmented with a parallel "Expert" branch and Temporally Biased Rotary Position Embeddings (RoPE), VAP enables high-fidelity semantic guidance without task-specific architectures. Our model, trained on the newly curated VAP-Data dataset, achieves state-of-the-art performance, rivaling leading commercial systems in user preference.
Introduction
In the world of controllable video generation, a significant divide exists between structure-based control (e.g., depth maps or poses) and semantic-based control (e.g., artistic styles or specific character motions). Structural control is well-understood because the pixels align perfectly between the signal and the output. In contrast, semantic control is much harder because there is no pixel-to-pixel mapping. Previous solutions often relied on condition-specific fine-tuning or task-specific designs, which lack generalization. VAP addresses this by introducing a general-purpose model that interprets a reference video as a high-dimensional semantic prompt.
Methodology: In-Context Video Generation
VAP redefines semantic control as an in-context learning problem. The architecture introduces two key innovations to a standard Video Diffusion Transformer:
Plug-and-Play Mixture-of-Transformers (MoT)
To preserve the generative quality of the base model while enabling control, VAP adds a trainable "Expert" branch that runs parallel to the frozen DiT backbone. This expert branch processes the reference video prompt, while the frozen backbone handles the target video generation. The two branches communicate via full attention at every layer, allowing for precise guidance without altering the base model's weights.
Temporally Biased RoPE
A common failure mode in video-prompted generation is "spatial leakage," where the model erroneously replicates the spatial layout of the reference video. VAP solves this with Temporally Biased Rotary Position Embeddings (RoPE). By introducing a temporal offset ($\Delta$), the model perceives the reference prompt as occurring "before" the target video in time. This breaks the false spatial-mapping prior, forcing the model to focus on semantic extraction rather than pixel-wise imitation.
The VAP-Data Dataset
The researchers identified a lack of high-quality data for this task and built VAP-Data, currently the largest dataset for semantic-controlled video generation. It comprises over 100,000 curated video pairs covering 100 semantic conditions across four primary categories:
- Concept: Transformations and complex interactions.
- Style: Artistic aesthetics like Ghibli style.
- Motion: Human and non-human movements.
- Camera: Advanced maneuvers such as Hitchcock zooms.
Experimental Results
VAP sets a new benchmark for open-source controllable video generation. Qualitative results demonstrate its ability to handle diverse and unseen semantic prompts with high fidelity.
Quantitative Performance
In a blind user preference study, VAP achieved a 38.7% preference rate, outperforming other open-source methods and effectively tying with leading closed-source commercial models like Kling and Vidu. Furthermore, the model exhibits impressive zero-shot generalization, successfully executing prompts it was never trained on, such as "crumble into clods," proving it has learned the underlying concept of following a video prompt.
Conclusion
Video-As-Prompt offers a scalable, unified solution for semantic video control. By treating reference videos as prompts and employing a dual-branch MoT architecture with temporal biasing, VAP overcomes the limitations of task-specific models. While the parallel expert branch increases inference overhead, the gains in generalization and control precision represent a significant advancement in controllable video synthesis.
Summary updated