NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Language Model Beats Diffusion - Tokenizer is key to visual generation

Lijun Yu, Jose Lezama, Nitesh Bharadwaj Gundavarapu, Luca Versari, Kihyuk Sohn, David Minnen, Yong Cheng, Agrim Gupta, Xiuye Gu, Alexander G Hauptmann, Boqing Gong, Ming-Hsuan Yang, Irfan Essa, David A Ross, Lu Jiang

The reign of diffusion models in visual generation may be facing a serious challenger. A new visual tokenizer, MAGVIT-v2, allows Large Language Models (LLMs) to outperform state-of-the-art diffusion models on benchmark image and video generation tasks. By rethinking how pixels are converted into discrete "words," researchers have demonstrated that the transformer architecture—the same foundation powering models like GPT-4—is more than capable of dominating the visual domain.

The Core Problem: Why LLMs Lagged in Vision

While LLMs are the undisputed kings of natural language, they have historically lagged behind diffusion models (like Stable Diffusion or Midjourney) when generating images and videos.

The core issue isn't the transformer itself, but the visual tokenizer. To "read" an image, an LLM needs to convert continuous pixels into a sequence of discrete tokens, essentially creating a visual vocabulary. Previous tokenizers, such as VQ-VAE, often struggled with "codebook collapse" or limited vocabulary sizes. This led to blurry reconstructions or poor generation quality. Furthermore, most models were specialized for either images or videos, rarely handling both effectively in a single, unified framework.

Methodology: Rethinking the Tokenizer

To bridge the gap between LLMs and diffusion, the researchers introduced two primary innovations:

  1. Lookup-Free Quantization (LFQ): Traditional tokenizers use a "lookup table" of learned vectors. As the vocabulary grows, this table becomes incredibly hard to train. MAGVIT-v2 replaces this with LFQ, which decomposes tokens into independent binary dimensions. This architectural shift allows the model to support massive vocabularies (up to $2^{18}$ or ~262,000 tokens) with high stability and efficiency.
  2. Causal 3D CNN Architecture: To handle both images and videos seamlessly, the team designed a temporally causal 3D convolutional neural network. Unlike standard 3D CNNs that look "forward and backward" in time—which causes them to fail on single images—a causal model only looks at the past.
Architectural designs for visual tokenizers, highlighting the Causal 3D CNN approach.

This causal design allows a single tokenizer to treat an image simply as a one-frame video, creating a unified representation for all visual media. The team also implemented refinements like replacing average pooling with strided convolutions and adding adaptive group normalization to better control the generation process.

Key Insights: Scaling the Vocabulary

The most provocative insight from this research is that LLMs didn't "fail" at vision because of their architecture; they failed because their "alphabet" was poorly designed. With a better tokenizer, the same LLM logic used for text works remarkably well for pixels.

In the past, researchers believed smaller vocabularies were better for visual generation due to the instability of large lookup tables. This paper flips that logic.

Comparison of VQ and LFQ performance as vocabulary size increases.

As shown above, by utilizing LFQ, a much larger vocabulary actually improves the quality of the generated output, whereas traditional VQ methods degrade or plateau as the vocabulary scales.

Key Results: Beating Diffusion and Beyond

The model was trained and evaluated on several gold-standard benchmarks, yielding impressive results:

  • Beating Diffusion: On ImageNet 512x512, MAGVIT-v2 achieved a Fréchet Inception Distance (FID) of 1.91, significantly outperforming the leading diffusion model (ADM), which sits at 2.65.
  • Efficiency: The LLM approach requires far fewer steps to generate an image (e.g., 64 steps) compared to many diffusion models that often require 250 to 1000 steps to reach peak quality.
  • Human-Level Compression: Because the tokens are highly expressive, they excel beyond just generation. In subjective rater studies on the MCL-JCV dataset, MAGVIT-v2's video compression was found to be superior to the industry-standard HEVC (H.265) and comparable to the next-generation VVC (H.266) codec.
  • Action Recognition: Using these tokens as inputs for a classifier led to state-of-the-art performance in identifying actions in videos (on Kinetics-400 and SSv2), proving the tokens capture deep semantic information.

Limitations and Future Outlook

While the results are a massive leap forward, the authors acknowledge a few hurdles. Training these large-scale tokenizers and the subsequent LLMs requires massive GPU/TPU resources. Additionally, this specific paper focuses on "class-conditional" generation (e.g., "generate a dog"). While the authors are confident the method scales to complex text-to-image prompts, those specific results were excluded due to the immense training time required. Finally, unlike standard video codecs that run on smartphone CPUs, MAGVIT-v2 currently requires specialized AI hardware.

Ultimately, MAGVIT-v2 suggests that the future of Generative AI might not be a split ecosystem—LLMs for text and Diffusion for images—but rather a single, massive LLM that speaks both languages fluently.

Summary updated

BibTeX
@inproceedings{yu2024language,
  author = {Lijun Yu and Jose Lezama and Nitesh Bharadwaj Gundavarapu and Luca Versari and Kihyuk Sohn and David Minnen and Yong Cheng and Agrim Gupta and Xiuye Gu and Alexander G Hauptmann and Boqing Gong and Ming-Hsuan Yang and Irfan Essa and David A Ross and Lu Jiang},
  title = {{Language Model Beats Diffusion - Tokenizer is key to visual generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=gzqrANCF4g},
}
Figure