Most state-of-the-art text-to-image models suffer from a peculiar form of "dyslexia." While they can generate photorealistic landscapes and intricate portraits, they often struggle to spell even simple words, producing what researchers call "visual gibberish." This failure isn't a lack of artistic capacity in the generative network; rather, it is a fundamental limitation of how these models "read" text.
The Problem of Character-Blindness
The root of the spelling problem lies in the text encoders—like CLIP or T5—that provide the "instructions" to the image generator. These encoders typically use subword tokenization (such as Byte Pair Encoding), which breaks text into chunks of common letter sequences. For example, the word "apple" might be represented as a single discrete token ID.
As Adam Roberts, Mohammad Norouzi, and their colleagues point out in Character-Aware Models Improve Visual Text Rendering, these encoders are "character-blind." Because the model only sees the token ID for "apple," it has no inherent way of knowing that the word contains two 'p's or ends in an 'e'. This lack of orthographic structure makes it nearly impossible for the diffusion process to place individual letters in the correct sequence.
From Subwords to Bytes
To fix this, researchers have moved toward byte-level or character-level representations. Instead of aggregating letters into semantic chunks, these models process text as a sequence of raw UTF-8 bytes or individual characters.
In Character-Aware Models Improve Visual Text Rendering (ACL 2023), the authors demonstrated that replacing standard encoders with character-aware versions like ByT5 leads to massive gains in spelling accuracy—improving performance by over 30 points on rare words. By ensuring the model maintains access to the internal structure of words, the generative process can finally "see" the letters it is supposed to draw. This approach also makes models more robust to "noisy" text; Doan Nam Long Vu and colleagues found that byte-level models are far better at handling typos and slang because they don't rely on a fixed vocabulary of subwords that might fail when a single letter is changed.
Aligning Text with Visual Glyphs
Simply seeing the characters is often not enough for high-quality typography. Recent work has focused on "glyph alignment"—teaching the model not just what the letters are, but what they look like.
Zeyu Liu, Weicong Liang, and their team developed Glyph-ByT5, a customized encoder that explicitly aligns byte-level embeddings with visual glyph information. This shift moved the needle of text rendering accuracy from under 20% to nearly 90% on design benchmarks. By treating text as a sequence of discrete glyph units, the model gains precise control over typography. Similarly, Zhendong Wang and the DesignDiffusion team extended the encoder's vocabulary with dedicated tokens for every uppercase and lowercase letter, allowing the diffusion process to target individual characters with surgical precision.
Structural Cues and Dual Encoders
Beyond the raw characters, the structure of the prompt matters. Researchers have found that providing explicit markers helps the attention mechanism focus.
- Delimiters and Case Markers: In the Kinetic Typography Diffusion Model (KineTy), Inhwan Bae and colleagues used specific delimiters to separate characters in a prompt. This allows the model to distinguish the sequence of letters more effectively than standard tokenization.
- Dual Encoding: Some frameworks, like DiffSTE by Jiabao Ji and others, use a dual-encoder strategy. One encoder handles the high-level semantic meaning of the prompt, while a second, character-level encoder focuses purely on the spelling and structure of the text to be rendered.
Scaling to Multilingual Typography
The challenge intensifies with complex scripts and multiple languages. Standard subword tokenizers often have a "Western bias," performing poorly on non-Latin scripts.
To address this, Weicong Liang and the team behind Glyph-ByT5-v2 scaled character-aware rendering to 10 different languages. By using byte-level encoding, they bypassed the need for massive, language-specific vocabularies. Similarly, Lixue Gong and the Seedream 2.0 team integrated a dedicated character-level encoder to handle the intricate glyph structures of Chinese and English simultaneously. This ensures that rendered characters are linguistically accurate and visually correct, rather than just "plausible-looking" shapes.