TextAlign: Preference Alignment for Text Rendering with Hierarchical Rewards

Mingxuan Cui, Jingpu Yang, Fengxian Ji, Qian Jiang, Zhecheng Shi +5 more
5/19/2026
cs.CVcs.DB
rlhf-rlvr-dpo

No confident code implementation found for this paper.

Abstract

Faithful text rendering remains a persistent weakness of large text-to-image generative models, as it requires both semantic instruction following and fine-grained glyph-level structure. Prior methods often improve this ability through architecture-specific modules or encoder modifications, which complicate deployment across foundation models.

Show full abstract

We study text rendering as a post-training preference-alignment problem and propose TextAlign, a non-invasive framework that keeps the generator architecture unchanged. The key component is a hierarchical vision-language model (VLM)-based reward that decomposes rendering errors into global, word, and glyph levels, then converts binary defect judgments into a scalar preference signal. The resulting signal supports both Group Relative Policy Optimization (GRPO) and Direct Preference Optimization (DPO). Experiments on FLUX.1-dev and Z-Image-Turbo show consistent gains in OCR-based text accuracy without degrading general generation quality. Compared with strong foundation and text-rendering baselines, including SD3.5, Qwen-Image, AnyText, and TextDiffuser, these results indicate that reward design offers a scalable alternative to model redesign for improving text rendering.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{cui2026textalign,
  title  = {TextAlign: Preference Alignment for Text Rendering with Hierarchical Rewards},
  author = {Mingxuan Cui and Jingpu Yang and Fengxian Ji and Qian Jiang and Zhecheng Shi and Jiaming Wang and Zirui Song and Zhuohan Xie and Fajri Koto and Xiuying Chen},
  year   = {2026},
  eprint = {2605.19320},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.19320v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.19320.svg)](https://codeofpaper.com/paper/2605.19320)

Discussion