Abstract
This paper introduces DALL·E, a 12-billion parameter transformer designed to generate high-fidelity images from natural language descriptions. By scaling model capacity and training on a massive dataset of 250 million image-text pairs, the authors demonstrate that a simple autoregressive approach can achieve competitive zero-shot performance. DALL·E excels at complex compositional tasks, such as creating novel objects and performing image-to-image translations, without the need for task-specific fine-tuning.
Introduction
Traditional text-to-image synthesis has largely relied on domain-specific architectures like Generative Adversarial Networks (GANs). While effective on narrow, curated datasets like MS-COCO, these models often struggle with compositionality—the ability to combine disparate concepts into a coherent whole. DALL·E addresses this by treating text-to-image generation as a sequence-to-sequence modeling problem, leveraging the scalability of transformers to generalize across a vast array of visual concepts.
Methodology
DALL·E utilizes a two-stage training pipeline to manage the high dimensionality of visual data:
- Discrete VAE (dVAE): To reduce the computational burden of modeling raw pixels, the model first employs a discrete Variational Autoencoder. This compresses a $256 \times 256$ RGB image into a $32 \times 32$ grid of image tokens. Each token is selected from a learned vocabulary of 8,192 values, reducing the context size by a factor of 192 while maintaining the essential structural information of the image.
- Autoregressive Transformer: The model processes a concatenated sequence of up to 256 BPE-encoded text tokens and 1,024 image tokens. A 12-billion parameter sparse transformer is trained to predict the next token in this unified stream.
To ensure training stability at this scale, the authors implemented engineering solutions such as per-resblock gradient scaling and PowerSGD for distributed gradient compression. At inference, the model generates multiple candidates, which are then reranked using a pretrained CLIP (Contrastive Language-Image Pre-training) model to select the image that best aligns with the text prompt.
Datasets and Evaluation
The model was trained on a diverse dataset of 250 million image-text pairs collected from the internet. Evaluation focused on zero-shot performance on benchmarks like MS-COCO and CUB-200. Notably, the MS-COCO validation set was excluded from training to ensure the integrity of the zero-shot assessment.
Key Results and Insights
DALL·E demonstrates several emergent capabilities:
- Compositionality: The model can generate images for highly unusual prompts, such as "a tapir made of accordion," suggesting an abstract understanding of concepts.
- Zero-Shot Generalization: In human evaluations on MS-COCO, DALL·E's outputs were preferred over the previous state-of-the-art (DF-GAN) in 90% of cases for realism and 93.3% for caption matching.
- Image-to-Image Translation: Without explicit training, the model can perform style transfer and sketch-to-photo conversion by "completing" an image based on a partial visual input and a text prompt.
Limitations
Despite its success, DALL·E faces challenges with fine-grained details. The 8x8 compression factor of the dVAE often results in the loss of textures or small text, as seen in the blurred storefronts of the reconstruction samples. Additionally, the model occasionally struggles with "variable binding," where attributes (like color) are incorrectly assigned to objects in complex scenes. While DALL·E performs well generally, it still trails behind specialized models on niche domains like bird classification (CUB-200).
Conclusion
DALL·E represents a significant shift in generative modeling, showing that scale and simplicity can overcome the limitations of hand-engineered architectures. Future work will likely focus on improving the reconstruction quality of the dVAE and enhancing the model's ability to handle complex attribute bindings.
Summary updated