TL;DR
Tune-A-Video introduces "One-Shot Video Tuning," a novel paradigm that trains a text-to-video generator using only a single text-video pair. By inflating a pre-trained text-to-image (T2I) diffusion model and employing sparse spatio-temporal attention, it enables high-quality video editing and style transfer without the massive computational burden of training on large-scale video datasets.
What Problem Does This Paper Address?
While text-to-image (T2I) generation has seen massive success, text-to-video (T2V) generation lags behind. The standard approach to T2V requires training massive models on millions of captioned videos (e.g., WebVid-10M), which demands enormous computational power and time.
Furthermore, humans can easily look at a single video—say, a man skiing—and imagine a panda doing the same thing. The authors ask: Can we enable AI to infer novel videos from a single video example? The core challenge is leveraging the rich, open-domain knowledge already locked inside pre-trained T2I models and extending it to generate temporally consistent, continuous motion without destroying those pre-trained priors.
Methods
The authors present Tune-A-Video, which adapts a pre-trained Latent Diffusion Model (LDM) to the video domain through three key technical innovations:
- Network Inflation: The 2D convolutional layers of the T2I model are inflated into pseudo-3D convolutions (replacing $3 \times 3$ kernels with $1 \times 3 \times 3$ kernels). Additionally, a temporal self-attention layer is appended to each transformer block.
- Sparse Spatio-Temporal Attention (ST-Attn): Standard spatio-temporal attention suffers from quadratic computational complexity $O((mN)^2)$ as the number of frames ($m$) increases. To solve this, Tune-A-Video introduces a sparse attention mechanism. Instead of attending to all frames, a frame only queries the first frame ($v_1$) and the immediately preceding frame ($v_{i-1}$). This drops the complexity to a manageable $O(2mN^2)$.
- Efficient Fine-Tuning: To prevent the model from forgetting its original image generation capabilities, Tune-A-Video does not update the entire network. It only trains the newly added temporal attention layers and the query projection matrices ($W^Q$) within the spatio-temporal and cross-attention blocks.
- Structure Guidance via DDIM Inversion: During inference, a naive sampling process can lead to pixel drift or stagnant motion. To ensure smooth, continuous movement, the model performs DDIM inversion on the source video to obtain a latent noise starting point, ensuring the structural motion of the original video is preserved.
Datasets
The authors evaluated their method using:
- DAVIS Dataset: 42 representative videos covering categories like animals, vehicles, and humans.
- BLIP-2: Used to automatically generate the source captions for the training videos.
- Custom Benchmark: 140 manually designed edited prompts spanning object editing, background changes, and style transfers.
Key Insights and Ideas
- T2I Models Understand Statically-Driven Verbs: The authors noticed that if you prompt a standard T2I model with "a man is running on the beach," it successfully generates a snapshot of a running man (not walking or jumping). The cross-modal attention mechanism already understands verbs statically.
- Spatial Self-Attention Drives Content Consistency: Simply extending spatial self-attention across multiple frames concurrently yields surprisingly consistent objects and backgrounds, even if the motion isn't smooth yet. This implies T2I self-attention layers are driven by spatial similarities rather than pixel positions.
- Query-Only Tuning Preserves Priors: Updating only the query projection matrices ($W^Q$) acts as an effective regularizer, allowing the model to learn temporal dynamics from the single video while retaining its ability to synthesize completely new concepts (like turning a man into an astronaut or Spider-Man).
Key Results
Tune-A-Video demonstrates remarkable versatility across applications like object editing, background modification, style transfer, and pose-controlled generation.
Quantitative Performance
Compared to baselines like CogVideo (a heavy T2V model) and Plug-and-Play (a frame-by-frame image editing method), Tune-A-Video achieves state-of-the-art results:
- Frame Consistency (CLIP Score): Achieved 92.40, outperforming CogVideo (90.64) and Plug-and-Play (88.89).
- Textual Alignment (CLIP Score): Achieved 27.58, showing superior alignment with edited prompts compared to baselines.
- User Study: In human evaluations, Tune-A-Video was heavily preferred for temporal consistency (winning 87.86% of votes against CogVideo and 62.14% against Plug-and-Play).
Efficiency
While training a full T2V model or generating neural atlases can take hours or days, Tune-A-Video requires only ~10 minutes for fine-tuning and ~1 minute for sampling on a single NVIDIA A100 GPU.
Limitations and Future Work
The primary limitation of Tune-A-Video is handling videos with multiple objects or complex object interactions and occlusions (e.g., two pandas moving past each other can cause tracking errors or visual blending).
As a direction for future work, the authors suggest incorporating additional conditional control signals—such as depth maps or optical flow—to help the model better differentiate between distinct objects and their spatial interactions.
Summary updated