TL;DR
TextInVision is a massive new benchmark containing over 50,000 prompts designed to systematically evaluate how text-to-image (T2I) diffusion models handle embedded visual text. By isolating prompt complexity from text attributes, the paper reveals that text rendering failures are heavily driven by word length and prompt context, and identifies the Variational Autoencoder (VAE) as a major architectural bottleneck that degrades text before diffusion even happens.
What Problem Does This Paper Address?
State-of-the-art text-to-image models like FLUX and Stable Diffusion 3 can generate breathtakingly realistic images, but they consistently stumble when asked to write text within those images. Whether it's a simple store sign or a complex infographic, these models frequently suffer from spelling errors, gibberish characters, and contextual mismatches.
Diagnosing why this happens has been difficult due to a lack of comprehensive, structured benchmarks. Existing evaluation sets are often small, unstructured, or fail to separate the complexity of the image background prompt from the characteristics of the text itself (such as word length, rarity, or character types). This paper introduces a systematic framework to pinpoint exactly where and why T2I models fail at visual text generation.
Methods
The authors developed TextInVision by decoupling the evaluation into two distinct dimensions:
- Prompt Complexity: Categorized into Simple Prompts (e.g., "a paper with the word 'text' written on it") and Complex Prompts containing rich environmental descriptions and actions. They also curated Real-World Prompts spanning six practical domains like Advertisements, Posters, and Logos.
- Text Attributes: Systematically varied by length (3 to 16+ characters), linguistic difficulty (Oxford CEFR levels A1 to C1), dataset frequency (COCO/LAION), and special types (numbers, special characters, gibberish, and intentional misspellings).
To evaluate performance, the authors built an automated pipeline using EasyOCR to extract text from generated images, calculating accuracy via Levenshtein edit distance, Longest Common Subsequence (LCS), and Longest Ordered Match (LOM). They validated this automated metric with a human evaluation study involving 66 participants across 1,000 images.
Crucially, they also isolated the VAE (Variational Autoencoder) component by running an independent experiment: encoding and decoding 1,000 real-world text images through various VAEs without any diffusion process to measure the baseline text degradation caused purely by image compression.
Datasets
- TextInVision Benchmark: A newly introduced dataset featuring over 50,000 methodically generated prompts across simple, complex, and real-world scenarios.
- TextInVision VAE Image Set: A new evaluation set of 1,000 real-world, high-resolution text-embedded images (sourced from Unsplash and Pixabay) used to test VAE reconstruction fidelity.
- Linguistic/Frequency Sources: Text strings were pulled from the Oxford 5000 wordlist, COCO, and LAION caption datasets to ensure realistic distributions of word frequency and complexity.
Key Insights and Ideas
- The VAE is a Silent Killer: We often blame the diffusion process or text encoders for bad spelling, but this paper proves that standard VAE architectures act as a severe bottleneck. The lossy compression of the VAE inherently blurs and distorts fine textual details, making text unreadable before the diffusion model even attempts to generate it.
- Linguistic Complexity Doesn't Matter, but Length Does: A model's ability to spell a word is barely affected by whether it is a basic "A1" word or an advanced "C1" academic word. However, character length is critical: models degrade rapidly as word length increases, performing significantly better on multiple short words than a single long word of equivalent length.
- Context Overload Destroys Text: As prompts become more detailed (complex prompts), text rendering accuracy plummets. Interestingly, CLIP scores remain high, meaning the model successfully generates the scene but sacrifices the precision of the text under the weight of competing prompt instructions.
- The Gibberish Paradox: Models perform significantly better at rendering gibberish text than rare real words. The authors hypothesize that rare words exert "semantic pressure" on the text encoder, confusing the model, whereas gibberish allows the model to treat the characters purely as visual shapes without semantic interference.
Key Results
- Real-World Scenarios: Across the evaluated models (FLUX, SD 3, SD 3.5), the Advertisements category proved to be the most challenging due to prompt complexity, yielding the highest average edit distances, while Logos and Branding was the easiest.
- VAE Bottleneck Quantified: In the diffusion-free VAE reconstruction test, the Stable Diffusion 1.5 VAE retained a meager 39% of whole words exactly. Stable Diffusion 2.1 improved slightly to 42%, while the FLUX VAE led with 51% word retention. Even the best VAE still destroys half of the words it processes at a character level.
Limitations and Future Work
While TextInVision provides an incredibly granular diagnostic tool, the authors note that current evaluation metrics still rely heavily on OCR models, which can introduce their own biases or fail to detect highly stylized or artistic text.
The clear takeaway for future work is that simply scaling up diffusion transformers or text encoders (like T5 or CLIP) will not fully solve the visual text problem. The community must focus on developing text-aware or higher-fidelity VAE architectures capable of preserving high-frequency character details during latent space compression.
Summary updated