Video Diffusion Transformers are In-Context Learners
Zhengcong Fei, Di Qiu, Debang Li, Changqian Yu, Mingyuan Fan
TL;DR
Video Diffusion Transformers are In-Context Learners investigates enabling in-context capabilities for video diffusion transformers with minimal tuning. The approach concatenates videos, uses a unified prompt, and applies task-specific LoRA fine-tuning while preserving the original architecture. It demonstrates that long, multi-scene videos (>30 seconds) can be generated with high fidelity and consistent identities, in both reference-free and reference-based settings. The work provides a practical, data-efficient pathway for controllable video generation and releases data, code, and weights to the community.
Abstract
This paper investigates a solution for enabling in-context capabilities of video diffusion transformers, with minimal tuning required for activation. Specifically, we propose a simple pipeline to leverage in-context generation: ($\textbf{i}$) concatenate videos along spacial or time dimension, ($\textbf{ii}$) jointly caption multi-scene video clips from one source, and ($\textbf{iii}$) apply task-specific fine-tuning using carefully curated small datasets. Through a series of diverse controllable tasks, we demonstrate qualitatively that existing advanced text-to-video models can effectively perform in-context generation. Notably, it allows for the creation of consistent multi-scene videos exceeding 30 seconds in duration, without additional computational overhead. Importantly, this method requires no modifications to the original models, results in high-fidelity video outputs that better align with prompt specifications and maintain role consistency. Our framework presents a valuable tool for the research community and offers critical insights for advancing product-level controllable video generation systems. The data, code, and model weights are publicly available at: https://github.com/feizc/Video-In-Context.
