Pre-trained Language Models Do Not Help Auto-regressive Text-to-Image Generation

Yuhui Zhang, Brandon McKinzie, Zhe Gan, Vaishaal Shankar, Alexander Toshev

Abstract

Recent advances in image tokenizers, such as VQ-VAE, have enabled text-to-image generation using auto-regressive methods, similar to language modeling. However, these methods have yet to leverage pre-trained language models, despite their adaptability to various downstream tasks. In this work, we explore this gap by adapting a pre-trained language model for auto-regressive text-to-image generation, and find that pre-trained language models offer limited help. We provide a two-fold explanation by analyzing tokens from each modality. First, we demonstrate that image tokens possess significantly different semantics compared to text tokens, rendering pre-trained language models no more effective in modeling them than randomly initialized ones. Second, the text tokens in the image-text datasets are too simple compared to normal language model pre-training data, which causes the catastrophic degradation of language models’ capability.

Introduction

In the landscape of multimodal AI, a common assumption is that "more pre-training is always better." Diffusion-based models like Stable Diffusion and Imagen have validated this by integrating powerful pre-trained text encoders (e.g., T5, CLIP) to achieve state-of-the-art results. However, the efficacy of this transfer learning remains unproven for auto-regressive (AR) models. AR models, such as DALL-E and Parti, treat images as sequences of discrete tokens, mirroring the structure of natural language. This structural similarity suggests that Large Language Models (LLMs) should serve as ideal backbones for image generation.

Zero-shot FID on COCO for various generative models over time.

This study, a collaboration between researchers at Stanford, OpenAI, and Apple, investigates whether initializing an AR image generator with a pre-trained LLM provides a performance boost. Surprisingly, the findings challenge conventional wisdom, showing that pre-trained weights offer negligible benefits for visual synthesis while incurring significant costs to the model's original linguistic capabilities.

Methodology

The researchers adapted a 1-billion parameter decoder-only Transformer (open_lm-1b) for text-to-image generation. The architecture was modified to handle a multimodal vocabulary.

Image Tokenization and Vocabulary Expansion

Images (256x256 pixels) were converted into a grid of 1,024 discrete tokens using a VQGAN (specifically SBER-MoVQGAN). To accommodate these new tokens, the LLM’s embedding and output layers were expanded. The model was then fine-tuned on the HQITP-134M dataset, which contains 134 million high-quality image-caption pairs.

The auto-regressive text-to-image generation pipeline using a pre-trained language model.

Experimental Setup

To isolate the impact of pre-training, the authors conducted a controlled comparison between two identical architectures:

  1. Pre-trained: Initialized with weights from a model trained on 1.6 trillion text tokens (RedPajama, The Pile).
  2. Random: Initialized with random weights.

Key Results

The experimental results indicate a surprising lack of transferability between the language and vision domains for auto-regressive models.

Performance Parity

The primary metric, Zero-shot FID on MS-COCO, revealed nearly identical performance between the two models. The pre-trained model achieved an FID of 12.21, while the randomly initialized model reached 12.27. Furthermore, the cross-entropy loss curves for image token prediction were virtually indistinguishable throughout the 100-billion-token training process.

Catastrophic Forgetting

While pre-training failed to improve image generation, the fine-tuning process actively harmed the model's language abilities. Within just 5 billion tokens of fine-tuning on image-caption data, the model's performance on standard benchmarks like MMLU plummeted to near-zero. The model effectively "unlearned" complex reasoning to adapt to the simpler task of image generation.

Discussion: Why Pre-training Fails

The authors identify two primary reasons for this failure:

  1. Semantic Mismatch: Text tokens represent abstract concepts, whereas VQGAN image tokens represent local visual patterns. The linguistic relationships learned during LLM pre-training do not translate to the spatial and structural dependencies of visual tokens.
  2. The "Simple Text" Trap: Image captions are typically linguistically simple (e.g., "a dog in a hat"). This "junk food" data lacks the complexity of the original pre-training corpora, leading to the rapid degradation of the model's sophisticated reasoning capabilities.

Conclusion

This research suggests that simply "plugging in" an LLM is insufficient for advancing auto-regressive image generation. The fundamental differences in token semantics and the simplicity of captioning data create a barrier to effective transfer learning. Future work may need to focus on semantic image tokenizers or parameter-efficient fine-tuning techniques to bridge the gap between sight and language without sacrificing the strengths of pre-trained models.

Summary updated

BibTeX
@inproceedings{zhang2024pre,
  author = {Yuhui Zhang and Brandon McKinzie and Zhe Gan and Vaishaal Shankar and Alexander Toshev},
  title = {{Pre-trained Language Models Do Not Help Auto-regressive Text-to-Image Generation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=rQidflh4pK},
}
Figure