Tell Me What Happened: Unifying Text-guided Video Completion via Multimodal Masked Video Generation

Tsu-Jui Fu, Licheng Yu, Ning Zhang, Cheng-Yang Fu, Jong-Chyi Su, William Yang Wang, Sean BellCVPR 2022 · DOI

Abstract: Generating a video given the first several static frames is challenging as it anticipates reasonable future frames with temporal coherence. Besides video prediction, the ability to rewind from the last frame or infilling between the head and tail is also crucial, but they have rarely been explored for video completion. Since there could be different outcomes from the hints of just a few frames, a system that can follow natural language to perform video completion may significantly improve controllability. Inspired by this, we introduce a novel task, text-guided video completion (TVC), which requests the model to generate a video from partial frames guided by an instruction. We then propose Multimodal Masked Video Generation (MMVG) to address this TVC task. During training, MMVG discretizes the video frames into visual tokens and masks most of them to perform video completion from any time point. At inference time, a single MMVG model can address all 3 cases of TVC, including video prediction, rewind, and infilling, by applying corresponding masking conditions. We evaluate MMVG in various video scenarios, including egocentric, animation, and gaming. Extensive experimental results indicate that MMVG is effective in generating high-quality visual appearances with text guidance for TVC.

Introduction: The Challenge of Video Completion

Traditional video prediction is an "ill-posed" problem. Given a single starting frame, there are infinite possible futures. For instance, a character in a platformer game might jump, run, or stay still. Without additional context, models often struggle to produce a single coherent outcome, frequently resulting in blurry averages of multiple possibilities.

Overview of Text-guided Video Completion (TVC) tasks: prediction, rewind, and infilling.

To address this, researchers from UC Santa Barbara, Meta, and NEC Labs have introduced Text-guided Video Completion (TVC). This framework uses natural language instructions to resolve ambiguity and guide the generation process. Their model, Multimodal Masked Video Generation (MMVG), is a unified architecture capable of predicting the future, "rewinding" to the past, or "infilling" missing segments between frames.

Methodology: Multimodal Masked Video Generation

MMVG treats video completion as a masking and recovery task, similar to masked language modeling in NLP. The system is built on three core pillars:

  1. Temporal-aware VQGAN (T-VQ): To prevent the "flickering" common in frame-by-frame generation, the authors developed T-VQ. It incorporates a contrastive temporal reasoning loss that encourages the model to learn the chronological relationship between discrete visual tokens, ensuring smoother temporal transitions.
  2. Multimodal Encoder-Decoder: The architecture uses a Transformer that processes both text instructions (via a CLIP tokenizer) and visual tokens. Missing frames are represented by a special [SPAN] token, which the model learns to fill based on the provided text and available frames.
  3. Adaptive Masking Strategy: During training, the model is exposed to various masking patterns (start, middle, or end of a sequence). An adaptive probability mechanism focuses training on more challenging segments where reconstruction loss is higher, improving the model's robustness across different completion tasks.

Datasets and Evaluation

The versatility of MMVG was tested across several distinct domains:

  • Kitchen: 22,000 egocentric videos of cooking with narrations.
  • Flintstones: 25,000 animation clips with detailed character and action descriptions.
  • MUGEN: A large-scale gaming dataset (375,000 videos) featuring complex platforming in CoinRun.
  • General Benchmarks: Standard datasets including UCF-101, BAIR, and MSRVTT were used to evaluate broader action recognition and text-to-video capabilities.

Key Insights

  • Text as a Constraint: Natural language acts as a powerful control knob, collapsing the probability space of possible video outcomes. This leads to significantly higher visual quality and lower Fréchet Video Distance (FVD) scores.
  • Unified Temporal Understanding: By training on prediction, rewind, and infilling simultaneously, the model develops a more holistic understanding of temporal dynamics. Learning what precedes a frame actually improves the model's ability to predict what follows it.
  • Efficiency and Versatility: Unlike previous state-of-the-art models that require task-specific fine-tuning, a single MMVG model handles all completion types with the same set of weights, maintaining high performance and a lower memory footprint than many diffusion-based alternatives.

Experimental Results

MMVG consistently outperformed strong baselines like VideoMAE and TATS. On the MUGEN dataset, MMVG achieved an FVD of 83.3, compared to 90.1 for TATS. Human evaluations also favored MMVG for its instruction relevance and similarity to ground-truth videos.

Furthermore, the model demonstrated impressive zero-shot capabilities. When pre-trained on the WebVid dataset, it outperformed specialized text-to-video models like CogVideo on the MSRVTT benchmark, despite being trained on less data.

Limitations and Future Directions

While a significant step forward, the authors note that MMVG still faces challenges with "common sense" gaps—such as knowing what is inside a closed fridge. Additionally, while it excels at short 16-frame clips, maintaining long-term consistency in very long sequences remains a challenge for autoregressive transformers. Future work may involve integrating broader world knowledge and improving high-resolution texture details.

Summary updated

BibTeX
@inproceedings{fu2022tell,
  author = {Tsu-Jui Fu and Licheng Yu and Ning Zhang and Cheng-Yang Fu and Jong-Chyi Su and William Yang Wang and Sean Bell},
  title = {{Tell Me What Happened: Unifying Text-guided Video Completion via Multimodal Masked Video Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  doi = {10.1109/cvpr52729.2023.01029},
}
Figure