Learning Long-form Video Prior via Generative Pre-Training
Jinheng Xie, Jiajun Feng, Zhaoxu Tian, Kevin Qinghong Lin, Yawen Huang, Xi Xia, Nanxu Gong, Xu Zuo, Jiaqi Yang, Yefeng Zheng, Mike Zheng Shou
TL;DR
The paper investigates learning the long-form video prior by framing movies as sequences of tokenized visual locations and text, enabling generative pre-training with a GPT-like transformer. It introduces Storyboard20K, a large, richly annotated dataset of storyboards (synopses, bounding boxes, and whole-body keypoints with consistent IDs) to support token-based modeling beyond pixel-space. The method tokenizes coordinates and keypoints into discrete tokens, designs JSON-style prompts, and trains a GPT-2 base decoder to maximize the next-token likelihood $L = \sum_i \log p(u_i | u_{i-k}, \ldots, u_{i-1}; \Theta)$. Experiments show superior textual coherence and layout realism compared with GPT-3.5 baselines, and demonstrate the potential of long-form video prior to guide controllable diffusion processes and assist filmmaking, highlighting Storyboard20K as a valuable resource for future multi-modal video generation research.
Abstract
Concepts involved in long-form videos such as people, objects, and their interactions, can be viewed as following an implicit prior. They are notably complex and continue to pose challenges to be comprehensively learned. In recent years, generative pre-training (GPT) has exhibited versatile capacities in modeling any kind of text content even visual locations. Can this manner work for learning long-form video prior? Instead of operating on pixel space, it is efficient to employ visual locations like bounding boxes and keypoints to represent key information in videos, which can be simply discretized and then tokenized for consumption by GPT. Due to the scarcity of suitable data, we create a new dataset called \textbf{Storyboard20K} from movies to serve as a representative. It includes synopses, shot-by-shot keyframes, and fine-grained annotations of film sets and characters with consistent IDs, bounding boxes, and whole body keypoints. In this way, long-form videos can be represented by a set of tokens and be learned via generative pre-training. Experimental results validate that our approach has great potential for learning long-form video prior. Code and data will be released at \url{https://github.com/showlab/Long-form-Video-Prior}.
