Skip to main content
QUICK REVIEW

[Paper Review] WorldDreamer: Towards General World Models for Video Generation via Predicting Masked Tokens

Xiaofeng Wang, Zheng Zhu|arXiv (Cornell University)|Jan 18, 2024
Generative Adversarial Networks and Image SynthesisComputer Science5 citations
TL;DR

WorldDreamer trains a general world model for video generation by predicting masked visual tokens within a transformer framework, enabling text-to-video, image-to-video, editing, and action-conditioned video generation across diverse scenes.

ABSTRACT

World models play a crucial role in understanding and predicting the dynamics of the world, which is essential for video generation. However, existing world models are confined to specific scenarios such as gaming or driving, limiting their ability to capture the complexity of general world dynamic environments. Therefore, we introduce WorldDreamer, a pioneering world model to foster a comprehensive comprehension of general world physics and motions, which significantly enhances the capabilities of video generation. Drawing inspiration from the success of large language models, WorldDreamer frames world modeling as an unsupervised visual sequence modeling challenge. This is achieved by mapping visual inputs to discrete tokens and predicting the masked ones. During this process, we incorporate multi-modal prompts to facilitate interaction within the world model. Our experiments show that WorldDreamer excels in generating videos across different scenarios, including natural scenes and driving environments. WorldDreamer showcases versatility in executing tasks such as text-to-video conversion, image-tovideo synthesis, and video editing. These results underscore WorldDreamer's effectiveness in capturing dynamic elements within diverse general world environments.

Motivation & Objective

  • Motivate the need for general world models that can handle diverse real-world dynamics beyond gaming/robotics.
  • Propose a token-prediction paradigm for video modeling inspired by large language models.
  • Develop a Spatial Temporal Patchwise Transformer (STPT) to efficiently learn motion and physics in videos.
  • Enable multimodal prompts (text and action) to guide video generation and editing.
  • Demonstrate versatility across natural scenes, driving scenarios, and multiple generation/editing tasks.

Proposed method

  • Encode visuals into discrete tokens with VQGAN and model masked token prediction.
  • Represent text with T5 embeddings and actions with an MLP, forming multimodal prompts.
  • Use Spatial Temporal Patchwise Transformer (STPT) to attend within localized spatio-temporal patches and apply cross-attention with multimodal prompts.
  • Train with a cosine-scheduled dynamic masking strategy to enable parallel token prediction and reduce information leakage.
  • Optimize with cross-entropy loss to predict masked tokens conditioned on unmasked tokens and multimodal prompts.
  • Finetune on self-collected data and nuScenes with full STPT parameters for improved temporal-spatial understanding.

Experimental results

Research questions

  • RQ1Can a general world model learned from visual tokens predict dynamics and physics across varied real-world scenes?
  • RQ2How effective is STPT in capturing spatio-temporal dynamics while integrating multimodal prompts (text and actions) for video tasks?
  • RQ3Can the model support multiple generation/editing tasks such as text-to-video, image-to-video, inpainting, stylization, and action-to-video?
  • RQ4Does parallel masked-token prediction provide speed and quality advantages over diffusion/autoregressive approaches?

Key findings

  • WorldDreamer generates videos across natural and driving scenarios.
  • The model supports text-to-video, image-to-video, video editing, and action-to-video generation.
  • Training with joint image/video data and multimodal prompts improves temporal-spatial understanding.
  • Inference uses parallel masked-token prediction, achieving ~3x faster decoding than diffusion-based methods.
  • CFG guidance improves generation quality during inference.
  • 3-second generation for 24 frames at 192x320 on a single A800 GPU.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.