Illiterate DALL-E Learns to Compose

Gautam Singh, Fei Deng, Sungjin Ahn

In the world of AI image generation, models like DALL-E are famous for their "compositional" ability—the power to create novel concepts like a "hedgehog made of lettuce" even if they have never seen one. However, DALL-E is "literate"; it relies on massive datasets of text-image pairs, using text as the blueprint for how concepts should be composed.

On the other hand, "object-centric" models like Slot Attention attempt to learn these concepts directly from raw images without text. Unfortunately, they face two major hurdles:

  1. The Slot-Decoding Dilemma: To force these models to find individual objects, researchers typically use "weak" decoders (like simple MLPs). If the decoder is too strong (like a deep CNN), it "cheats" by letting a single slot represent the whole image, destroying the object-level breakdown. But weak decoders produce blurry, low-quality images.
  2. Pixel Independence: Most existing models assume pixels are independent. When swapping an object into a new scene, the model cannot handle global effects like shadows or reflections, resulting in "Frankenstein" images that look like poorly cut-and-pasted stickers.

To solve this, researchers have introduced SLATE (SLot Attention TransformEr), a novel architecture that achieves DALL-E-style "zero-shot imagination" without requiring any text labels.

The SLATE Architecture

SLATE combines the unsupervised object discovery of Slot Attention with the high-quality generation of a Transformer (specifically, an Image GPT-style decoder).

Comparison of DALL-E, Slot Attention, and SLATE architectures.

The pipeline works in three main stages:

  • Discrete VAE (dVAE): The image is first compressed into a grid of discrete "tokens," similar to how a sentence is a sequence of words.
  • Slot Attention Encoder: These tokens are fed into a Slot Attention module that groups them into a small number of abstract "slots." Each slot ideally represents one object or a background element.
  • Transformer Decoder: Instead of a simple MLP, SLATE uses a Transformer to predict the image tokens one by one, conditioned on the slots.

Crucially, because the Transformer is autoregressive (it predicts the next pixel based on all previous ones), it can model complex interactions. If a slot dictates "there is a red cube here," the Transformer knows to draw a shadow on the floor next to it to maintain global consistency.

Key Insights and Capabilities

By replacing traditional decoders with a Transformer, the authors discovered that the model doesn't lose object disentanglement. Unlike a CNN, the Transformer's attention mechanism naturally respects the boundaries provided by the slots, allowing for high-quality images and clear object separation.

Because the model has no text, it builds its own "vocabulary." By clustering the slots it learns across thousands of images (using K-means), the authors created a library of visual concepts (e.g., "this cluster is blonde hair," "this cluster is a blue cube").

Since the slots act as independent modules, users can "program" the model for zero-shot reconfiguration. You can take a "hair slot" from one person and a "face slot" from another, and the Transformer will realistically stitch them together, even handling gender-swapped features it never saw in training.

Experimental Results

The researchers evaluated SLATE on seven datasets ranging from synthetic benchmarks (3D Shapes, CLEVR) to complex real-world textures (Bitmoji, CelebA). SLATE significantly outperformed the standard Slot Attention baseline across the board:

  • Image Quality: In the Bitmoji dataset, the FID score (a measure of image realism where lower is better) dropped dramatically from 71.43 for the baseline to 15.83 for SLATE.
  • Human Preference: In side-by-side tests, humans preferred SLATE’s generated images over the baseline up to 99% of the time on complex datasets like CLEVRTex.
  • Global Consistency: The authors introduced a new benchmark, CLEVR-Mirror, to test if the model can learn the "physics" of a scene. SLATE successfully rendered clear reflections of objects when moved, whereas the baseline produced blurry blobs.

Limitations and Future Work

While SLATE is a major step forward for unsupervised composition, the authors note a few areas for improvement. First, the model exhibits disentanglement sensitivity; if the slots are given too much power (e.g., too many attention heads), they can sometimes start to overlap or capture multiple objects. Second, scaling this approach to completely unconstrained, "in-the-wild" photos remains a massive challenge. Finally, to generate a totally new image from scratch, the authors currently rely on a simple clustering method. Developing a more sophisticated "slot-level prior"—a model that inherently knows which objects usually go together—is the logical next step for fully autonomous AI imagination.

Summary updated

BibTeX
@inproceedings{singh2022illiterate,
  author = {Gautam Singh and Fei Deng and Sungjin Ahn},
  title = {{Illiterate DALL-E Learns to Compose}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=h0OYV0We3oh},
}
Figure