arXiv:2610.19551cs.CVOct 2026

Manuscript Offprint

arXiv:2610.19551

TextVerifier: Seeing Beyond Recognition to Verify Chinese Text Rendering

Yiyang Chen, Guo-Hua Wang, Yaoli Liu, Qing-Guo Chen, Zhao Xu, Weihua Luo, Xiujun Ma

ABSTRACT

Text-to-image models increasingly generate readable Chinese text that still contains local rendering defects, such as a character with an extra or missing stroke or a malformed component. Such errors are invisible to OCR and vision–language models, which are trained for recognition and are therefore invariant to the very structural deviations that define a rendering error. We formalize text rendering verification as a target-conditioned problem: given a target character and an image crop, decide whether the crop is a correct rendering of that character. Our verifier TEXTVERIFIER feeds the text tower a character's Ideographic Description Sequence (IDS) rather than a single-character symbol, and is trained on 12.7M crop–IDS pairs plus label-free “same-character, different-quality” hard pairs sampled from the training trajectory of a text-region inpainting model. To evaluate this ability we build TEXTRENDERBENCH-ZH, the first per-character benchmark for generated Chinese text, annotating position, identity, and correctness for 7,358 characters. TEXTVERIFIER reaches an F1 of 0.844, far above OCR confidence (0.526), a general VLM (0.329), and TextPecker (0.590). Used as a per-character reward for Flow-GRPO post-training, it further reduces rendering errors, showing that its score can both detect and correct errors.

1 INTRODUCTION

Rendering text inside images has become a core capability of text-to-image models. Recent foundation models (Wu et al., 2025; ByteDance Seed, 2026; OpenAI, 2026b; Google DeepMind, 2026a) render full sentences and even paragraphs of English and Chinese, and text rendering is now a key axis along which their quality is compared (Li et al., 2026; Chang et al., 2025; Geng et al., 2025). Even so, the strongest models still make rendering errors, and whether an error can be caught depends on the script: in English a wrong glyph changes the recognized word, so an OCR model flags it, whereas a malformed Chinese character is usually still read as the intended one and slips through. This asymmetry matters because Chinese, with six to eight thousand densely stroked characters built from components under hierarchical spatial structures (Zhang et al., 2018; Cao et al., 2020), fails not as an unreadable string but as a readable sentence with a single flawed character: a headline reads correctly at a glance, yet one character adds or drops a stroke, or malforms a component (Figure 1). In publishing, education, and other zero-tolerance settings, one such mistake can make an entire image unusable. Evaluating or correcting such a model therefore rests on a more basic ability: to automatically judge whether every Chinese character in a generated image is rendered correctly.

The most natural idea is to reuse a text recognizer, yet recognition and correctness verification pursue opposite objectives. OCR models are trained for content recovery: they read which character is present despite changes in font, style, deformation, and blur, and is thus deliberately invariant to a glyph's visual variation. Verification demands the opposite: sensitivity to structural deviation, so

∗^{*}Work done during the internship at Alibaba Cloud Computing.

†^{\dagger}Corresponding authors.

Figure

Figure 1: Text rendering verification and its use as a reward. (A) For the character “基” in a generated image, OCR and VLM both miss the error, whereas TEXTVERIFIER correctly flags it as an error. (B) Using the per-character score as a post-training reward markedly reduces glyph errors.

that a glyph with an added or missing stroke, or a blurred component, stays distinguishable from the canonical form. PP-OCRv6 (Zhang et al., 2026a) illustrates the mismatch: it assigns confidence above 0.99 even to a clearly wrong character (Figure 1), so its confidence is a poor criterion for rendering correctness. Prompting a general vision-language model directly is no better: on our benchmark even the best-performing Gemini 3.7 Flash (Google DeepMind, 2026b) recalls only 54% of the erroneous characters. Recognition models, in short, do not provide a reliable criterion for glyph correctness, which instead calls for a capability trained specifically for structural verification.

TextPecker (Zhu et al., 2026) is the first work to address this problem in a systematic way, fine-tuning an 8B vision-language model as a structural-anomaly assessor. However, it folds blur, deformation, misalignment, and glyph error into a single notion of structural anomaly and judges an image without conditioning on the intended character. Lacking any model of which renderings of a character are legitimate, it readily flags correct characters as anomalies: on our benchmark it reaches a recall of 0.765 at a precision of only 0.480 (F1 0.590), producing a very high number of false alarms. Its 8B backbone also makes it costly to run at scale or to use as a training-time reward.

We therefore formalize the task as target-conditioned text rendering verification. Given a target character c supplied by a recognizer (e.g., an OCR model) and the corresponding image crop x, the goal is to decide whether x is a correct rendering of c. This is naturally a conditional anomaly-detection problem: each character spans a manifold of legitimate renderings across fonts, calligraphy, and artistic styles, and an incorrect glyph lies a small distance off that manifold. Guided by this notion, we build TEXTVERIFIER, a CLIP-style dual-tower model (Radford et al., 2021) whose text tower takes the Ideographic Description Sequence (IDS) (The Unicode Consortium, 2026) of a character rather than a single-character token. We assemble an automatic labeling pipeline that yields 12.7M crop–IDS pairs from about 2.5M real images for the first-stage alignment pretraining. For discriminative supervision, we construct a set of hard positive–negative pairs by two routes: manual synthesis, and mining “same-character, different-quality” pairs from the training trajectory of a text-region inpainting model. We then train the verifier to produce a continuous, calibrated, target-conditioned score for each character.

To evaluate this ability we build TEXTRENDERBENCH-ZH, the first per-character benchmark for Chinese text rendering, labeling every character with its location, identity, and correctness. On it TEXTVERIFIER reaches an F1 of 0.844, well above OCR, general-VLM, and TextPecker (Zhu et al., 2026) baselines. Used as a per-character reward for Flow-GRPO (Liu et al., 2025) post-training, it further reduces rendering errors in a text-to-image model, showing that the score can not only detect errors but also help remove them.

We summarize our contributions as follows:

• We build TEXTVERIFIER, a structure-aware verifier that encodes each character’s IDS decomposition in a CLIP-style dual tower, reaching high accuracy at only 0.36B parameters.

• We design a three-stage training curriculum and a label-free way to construct its supervision, combining synthetic positive–negative pairs with hard pairs mined from a text-region inpainting model’s training trajectory.

• We build TEXTRENDERBENCH-ZH, the first per-character benchmark for generated Chinese text verification, on which TEXTVERIFIER reaches an F1 of 0.844 at 7.6 ms per character, and show that it can serve as a per-character reward for Flow-GRPO training.

References (57)