Abstract: Text-guided generative diffusion models unlock powerful image creation and editing tools. Recent approaches that edit the content of footage while retaining structure require expensive re-training for every input or rely on error-prone propagation of image edits across frames. In this work, we present a structure and content-guided video diffusion model that edits videos based on descriptions of the desired output. Conflicts between user-provided content edits and structure representations occur due to insufficient disentanglement between the two aspects. As a solution, we show that training on monocular depth estimates with varying levels of detail provides control over structure and content fidelity. A novel guidance method, enabled by joint video and image training, exposes explicit control over temporal consistency. Our experiments demonstrate a wide variety of successes; fine-grained control over output characteristics, customization based on a few reference images, and a strong user preference towards results by our model.
Introduction
While image generation has seen a "Cambrian explosion" thanks to models like Stable Diffusion, video remains a difficult frontier. The primary challenge is temporal consistency: if you edit a video frame-by-frame using an image model, the result usually "flickers" because the model makes slightly different creative choices for every frame.
Existing solutions generally fall into two camps, both with flaws:
- Propagation methods: These try to "warp" edits from one frame to the next, but they struggle with occlusions and fast motion.
- Per-video fine-tuning: Models like Tune-A-Video can produce great results but require minutes or hours of training for every single new video you want to edit.
Researchers at Runway have unveiled a structure and content-guided video diffusion model (often referred to as Gen-1) that transforms existing videos based on text or image prompts. The authors sought a "zero-shot" approach—a single model that can take any video and any prompt and produce a consistent, high-quality edit instantly at inference time.
Methodology
The model builds upon the Latent Diffusion Model (LDM) framework, introducing several key architectural and procedural innovations to handle temporal dynamics.
Spatio-Temporal Extension and Joint Training
The authors took a pre-trained image UNet and "inflated" it by adding temporal layers—specifically 1D convolutions and 1D self-attention blocks that operate across the time axis. Crucially, the model was trained simultaneously on both massive image datasets (240 million images) and video datasets (6.4 million video clips). This allows the model to retain the high aesthetic quality of image generators while learning the dynamics of motion.
Dual Conditioning
Dual conditioning inputs: a text prompt for style and a reference image for content. Source, p. 1
The system achieves control through two primary conditioning mechanisms:
- Structure: The model uses monocular depth maps (generated via MiDaS) to understand the geometry of the scene. The authors found that depth maps are superior to edge maps (like Canny edges) because edges often capture too much texture from the original video, making it hard to change the style. By training the model with varying levels of "structure detail" (via blurred depth maps), users can choose how strictly the output should follow the original video's shapes.
- Content: The model uses CLIP embeddings to understand the desired style or subject, whether provided via a text prompt or a reference image.
Temporal Guidance
A novel guidance method adjusts the model's predictions during inference. By comparing the output of the "video" version of the model with the "image" version, the system can explicitly dial up or down the temporal consistency, effectively "anchoring" the frames together.
Key Results
In a large-scale user study, the proposed model was preferred roughly 3 out of 4 times over competitive baselines like SDEdit, Text2Live, and Deforum. It achieved the best balance between "Frame Consistency" (minimizing flicker) and "Prompt Consistency" (adherence to instructions).
The model demonstrates a wide range of applications:
- Stylization: Turning a video of a man into an anime character or a claymation figure.
- Character Replacement: Turning a hiker into an alien explorer.
- Environment Changes: Changing a sunny road into a snowy one or a "cyberpunk" city.
- Customization: By fine-tuning the model on just a few images of a specific person or object (using a technique like DreamBooth), the model can accurately insert that specific subject into a driving video.
Discussion and Limitations
While depth maps are more flexible than edges, they still reveal the silhouette of the original subject, which can lead to "structural leakage." This makes it difficult to perform edits that require massive changes in shape (e.g., turning a thin person into a very wide one). Additionally, while much better than previous methods, very long or complex videos can still exhibit some "drift" or artifacts over time.
Future work may explore other forms of conditioning, such as facial landmarks or human pose estimates, to provide even more granular control for character-centric video editing.
Summary updated