Towards Multi-Task Multi-Modal Models: A Video Generative Perspective

Lijun YuarXiv 2024

Abstract

Advancements in language foundation models have primarily fueled the recent surge in artificial intelligence. In contrast, generative learning of non-textual modalities, especially videos, significantly trails behind language modeling. This research chronicles the development of multi-task models designed to generate video and other modalities under diverse conditions, while simultaneously addressing understanding and compression. By pursuing concise and accurate latent representations through video-native spatial-temporal tokenizers, this work demonstrates that language models can surpass diffusion models in visual synthesis and that video tokenizers can outperform industry-standard codecs. This achievement suggests significant potential for real-time, interactive experiences across various media forms.

The Challenge of Visual High-Dimensionality

While Large Language Models (LLMs) have revolutionized text processing, generative modeling for "signal" data—specifically video and audio—has faced a significant bottleneck: dimensionality. A single 16-frame video clip can contain nearly a million pixels, making direct processing computationally prohibitive.

Historically, the field has relied on fragmented, specialized models: one for object detection, another for image generation, and a third for data compression. This research argues that such fragmentation is inefficient. The core objective is to represent complex visual and auditory information in a unified "alphabet" that a single, scalable transformer architecture can interpret and generate across diverse tasks.

Methods: Building a Multi-Modal Latent Space

The transition from operating in "pixel space" to "latent space" is achieved through innovative tokenization—turning images and videos into discrete tokens that a transformer can process like words in a sentence.

MAGVIT and Lookup-Free Quantization (LFQ)

Unlike standard image tokenizers that process frames individually, MAGVIT (3D-VQ) utilizes 3D convolutions to capture both spatial details and temporal motion. This ensures high fidelity and temporal consistency. The evolution of this approach, MAGVIT-v2, introduces Lookup-Free Quantization (LFQ). By moving away from learned codebooks—which often become a bottleneck as they scale—LFQ uses binary latents. This allows the model to utilize massive vocabularies (up to 262k tokens), which improves the quality of visual synthesis significantly.

SPAE: Translating Pixels to Lexicons

The Semantic Pyramid AutoEncoder (SPAE) method allows a frozen LLM (such as PaLM 2) to "see" and "draw" without retraining the core model. It translates images directly into the existing lexical vocabulary of the LLM. By treating visual tokens as just another language, the model’s internal reasoning logic can be applied to visual tasks immediately.

VideoPoet: The Unified Generative Transformer

VideoPoet is a massive, decoder-only transformer that integrates these tokenization techniques. It is designed to perform text-to-video, image-to-video, and video-to-audio generation within a single framework. By training on a staggering 2 trillion tokens, including 1 billion image-text pairs and 270 million videos, VideoPoet achieves a level of multi-task versatility previously unseen in generative models.

Key Insights

  • The Tokenizer is the Ceiling: The quality of a generative model is strictly limited by its tokenizer. If the underlying "alphabet" cannot accurately describe motion, the model will fail to generate realistic video regardless of its scale.
  • LLMs vs. Diffusion: For years, diffusion models were the gold standard for image synthesis. This research provides the first evidence that a Masked Language Model (using MAGVIT-v2) can outperform diffusion models on benchmarks like ImageNet in both quality (FID score) and efficiency.
  • Causality and Continuity: By employing causal 3D convolutions, these models can generate videos of arbitrary length by predicting subsequent temporal chunks based on previous ones, mirroring the auto-regressive nature of text generation.

Empirical Results

The research yielded several state-of-the-art results across generation, compression, and speed:

  • Superior Quality: MAGVIT-v2 achieved a state-of-the-art Fréchet Inception Distance (FID) of 1.91 on ImageNet 512x512, surpassing previous diffusion-based leaders.
  • Inference Speed: MAGVIT is two orders of magnitude faster than diffusion models and 60x faster than previous autoregressive models. It can generate 128x128 video at 37 frames per second on a standard V100 GPU.
  • Compression Efficiency: In human rater studies, the proposed tokenizers performed on par with or better than industry-standard video codecs like HEVC and VVC, demonstrating their utility for data transmission and storage.

Limitations and Future Directions

While the breakthroughs are significant, challenges remain. The models still struggle with the finest emotional nuances required for high-end filmmaking. Furthermore, the "context window" of transformers remains a constraint; generating long-form HD video requires sequence lengths that currently challenge hardware capabilities.

Future work will focus on hardware-software co-design to optimize these video codecs and the development of Embodied AI, where these generative models serve as the visual and auditory "brain" for robotic systems, enabling real-time interaction with the physical world.

Summary updated

BibTeX
@misc{yu2024towards,
  author = {Lijun Yu},
  title = {{Towards Multi-Task Multi-Modal Models: A Video Generative Perspective}},
  year = {2024},
  eprint = {2405.16728},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.16728},
}
Figure