TL;DR
State-of-the-art text-to-image (TTI) models don't actually need the rich, contextualized linguistic representations provided by massive text encoders. Instead, a simple "bag of position-tagged words"—which captures individual word meanings and their order but completely lacks prompt-level context—is sufficient to generate high-quality, prompt-adherent images. This reveals that modern generative models, rather than text encoders, do the heavy lifting when it comes to decoding complex linguistic structures.
What Problem Does This Problem Address?
The current trajectory of text-to-image generation relies on a clear trend: bigger text encoders mean better images. Early models used modest CLIP encoders, while recent architectures like Stable Diffusion 3 and FLUX incorporate massive large language models (LLMs) like T5 and Qwen. The implicit assumption is that the image generator exploits the rich contextual information—such as compositionality, attribute binding, and long-range dependencies—encoded by these LLMs.
However, the authors ask a fundamental question: Which aspects of text representation are actually essential for image generation? Do these models truly utilize complex linguistic context, or are they just looking for basic keywords and their positions?
Methods
To isolate what information matters, the authors designed a clever "eraser module" to strip contextual information from text embeddings, creating three types of contextless text embeddings:
- Bag of Tokens (BoT): Each token's embedding is replaced by its average embedding across a collection of completely unrelated sentences. This retains the token's core semantic meaning but completely erases any context from the prompt or its position.
- Bag of Words (BoW): Since tokenizers often split single words into multiple sub-tokens (e.g., "cube" into "cu" and "be"), BoW ensures sub-tokens are averaged only across sentences where they form that specific word, preserving word-level cohesion.
- Bag of Position-Tagged Words (BoPTW): This extends BoW by averaging word embeddings only across sentences where the word appears at the exact same absolute position as in the original prompt. This reintroduces word order without introducing any multi-word context.
Importantly, these contextless embeddings serve as drop-in replacements for the original text encoder outputs, requiring absolutely no modifications or retraining of the pretrained image models.
Datasets
The authors evaluated their approach using three prominent image-generation benchmarks:
- DrawBench: A challenge set designed to test fine-grained text-image alignment across semantic categories.
- GenEval: An object-focused framework evaluating compositionality, counting, and spatial relations.
- MS-COCO 2014 validation set: A standard large-scale dataset for general image captioning and generation quality.
Key Insights and Ideas
- The Image Model is the True Linguist: Contrary to popular belief, the text encoder isn't delivering a fully digested semantic map to the image model. Instead, modern transformer-based image models are entirely capable of reconstructing the necessary contextual relationships internally from just a bag of words and their positions.
- Word Order is the Secret Sauce: While simple prompts can succeed with just a Bag of Tokens, complex prompts involving spatial relations or attribute binding require word order. Reintroducing absolute position (BoPTW) allows the model to successfully disambiguate sentences containing identical word sets (e.g., "a white box on a black box" vs. "a black box on a white box").
- DiT vs. U-Net Paradigm Shift: This capability is unique to newer Diffusion Transformer (DiT) architectures (like SD3 and FLUX). When the authors tested older U-Net-based models (SD 2.1 and SDXL) with contextless embeddings, they completely failed. This suggests that the shift from U-Nets to Transformers has fundamentally altered where linguistic processing occurs in the TTI pipeline.
Key Results
To evaluate the generations, the authors used a Vision-Language Model (Gemma-3) as a blind judge to compare images generated with full embeddings against those generated with contextless embeddings.
- High Non-Inferiority: The BoPTW embedding achieved a non-inferiority rate of at least 65% compared to full text embeddings across most benchmarks and models. This means that in the vast majority of cases, removing all multi-word context resulted in images that were equal to or better than the baseline.
- Maintained Image Quality: Standard metrics like FID and KID confirmed that stripping context did not degrade the visual quality or realism of the generated images.
Limitations and Future Work
While contextless embeddings performed remarkably well across most categories, they struggled significantly with prompts requiring text rendering (the "Text" category in DrawBench). Generating accurate text overlays seems to require finer-grained token-level context that BoPTW erases.
For future work, the authors suggest that text-to-image frameworks could be trained directly on simplified, word-level embeddings augmented with explicit position tags. This would bypass the need for massive, compute-heavy text encoders entirely, paving the way for much more efficient and streamlined TTI architectures.
Summary updated