← Latest papers
💻 computer science

TextAlign: Preference Alignment for Text Rendering with Hierarchical Rewards

The paper proposes TextAlign, a non-invasive post-training framework that leverages a hierarchical vision-language model-based reward to align large text-to-image models for improved text rendering accuracy without modifying their underlying architecture.

Original authors: Mingxuan Cui, Jingpu Yang, Fengxian Ji, Qian Jiang, Zhecheng Shi, Jiaming Wang, Zirui Song, Fajri Koto, Xiuying Chen

Published 2026-05-20
📖 4 min read☕ Coffee break read

Original authors: Mingxuan Cui, Jingpu Yang, Fengxian Ji, Qian Jiang, Zhecheng Shi, Jiaming Wang, Zirui Song, Fajri Koto, Xiuying Chen

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a master painter (a powerful AI) who is incredibly talented at creating beautiful landscapes, portraits, and abstract art. However, if you ask this painter to write a specific sentence on a sign within the painting, they often struggle. They might misspell words, scramble the letters, or make the text look like gibberish. This is the "text rendering" problem that the paper TextAlign aims to solve.

Here is a simple breakdown of how they fixed it, using everyday analogies:

The Problem: The Painter vs. The Sign

Current AI art generators are great at following general instructions like "paint a sunset." But when you say, "paint a sunset with the words 'Hello World' on a cloud," the AI often fails. It might write "Helo World" or turn the letters into strange shapes.

Previously, to fix this, scientists tried to rebuild the painter's brain. They added special tools or changed the AI's internal architecture to force it to pay attention to letters. The paper argues this is like trying to fix a bad writer by giving them a new set of hands—it's complicated, expensive, and doesn't work well if you switch to a different painter.

The Solution: A New "Teacher" (TextAlign)

Instead of rebuilding the painter, the authors of TextAlign decided to keep the painter exactly as they are. Instead, they introduced a smart teacher who watches the painter's work and gives them feedback after the painting is done. This is called "preference alignment."

Think of it like a coach watching an athlete. The coach doesn't change the athlete's muscles; they just give better feedback on how to improve.

The Secret Sauce: The Three-Level Scorecard

The real magic of this paper is how the teacher gives feedback. The authors realized that text errors happen at three different levels, and a simple "good job/bad job" score isn't enough. They created a hierarchical scorecard (like a video game grading system) that breaks mistakes down into three layers:

  1. The Global Level (The Big Picture):

    • The Question: "Is there any readable text at all?" or "Is the text so warped it looks like a melted candle?"
    • The Analogy: If the painter forgot to paint the sign entirely, or if the letters are so squashed they are unrecognizable, this level fails immediately.
  2. The Word Level (The Vocabulary):

    • The Question: "Did you get the right words, even if the spelling is slightly off?"
    • The Analogy: If the prompt was "Fresh Apples" and the painting says "Fresh Oranges," this level catches that you swapped the whole word. It also catches if you missed a word entirely or added an extra one.
  3. The Glyph Level (The Letters):

    • The Question: "Are the individual letters correct?"
    • The Analogy: If the prompt was "Apple" and the painting says "Appl," this level catches that you missed the last 'e'. Or if it says "Aplle," it catches that you swapped the 'p' and 'l'.

How It Works in Practice

The system uses a "Vision-Language Model" (a super-smart AI that can see and read) to act as this teacher.

  1. The painter (the image generator) makes a picture.
  2. The teacher looks at the picture and the original instruction.
  3. The teacher checks the Global, Word, and Glyph levels.
  4. The teacher converts these checks into a single score.
    • Example: If the text is perfect, the score is 100. If a letter is missing, the score drops. If the whole word is wrong, the score drops more.
  5. The painter uses this score to learn: "Okay, next time I try to write 'Apple', I need to make sure I don't drop that 'e'."

The Results: Better Text, Same Art

The authors tested this on two powerful AI models (FLUX and Z-Image).

  • Before: The AI struggled with long sentences, text in weird places, or complex backgrounds.
  • After: The AI started writing legible, correctly spelled text in all those difficult scenarios.

Crucially, because they didn't change the painter's brain, the AI didn't lose its ability to make beautiful art. The sunsets still looked great, the portraits were still pretty, and the text just became readable.

Why This Matters

The paper claims that you don't need to invent a new type of AI or add complicated hardware to fix text rendering. You just need a better way to grade the work. By breaking the grading down into "Is there text?", "Are the words right?", and "Are the letters right?", they taught existing AIs to become much better at writing without needing a total overhaul.

In short: TextAlign is a smart grading system that teaches AI artists to write correctly by pointing out exactly where they made a mistake, rather than trying to rebuild the artist from scratch.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →