arXiv(opens in a new tab)cs.CVSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.37569

Decompose Radicals, Then Reward: Fine-Grained Inspection for Accurate Chinese Text Rendering

Yazhen Xie, Xingsong Ye, Zhineng Chen

Abstract

Rendering accurate Chinese text remains challenging for text-to-image models. Existing OCR-based reinforcement-learning rewards compare decoded transcripts with target strings. Such rewards overlook the compositional nature of Chinese writing: an ideograph consists of reusable components arranged through explicit spatial relations, yet OCR evaluates it as an atomic character. Consequently, visually different radical-level errors may receive equally coarse feedback, encouraging glyphs that merely resemble the target instead of faithfully reproducing its internal structure. We employ Ideographic Description Sequences (IDS), which comprise spatial operators and character components, and train an expert IDS recognizer to transcribe rendered Chinese text into this representation. Building on this recognizer, we introduce IDSpect, which deterministically decomposes the target text into IDS tokens and aligns crop-level visual IDS predictions with the target sequence. Globally unique token credit makes this comparison robust to the order of detected text regions. Combined with a whole-character semantic reward, IDSpect supplies fine-grained credit with component and spatial-relation without changing the image generator or adding inference-time cost. Experiments with GRPO post-training of Qwen-Image demonstrate that IDSpect achieves leading structural quality and semantic alignment on LongText and GenTextEval.

Keywords: Text-to-Image Generation, Chinese Visual Text Rendering, OCR Reward Correspondence: zhinchen@fudan.edu.cn

1 Introduction

Text-to-image generation has advanced rapidly [13, 22]. Specialized encoders and explicit glyph conditioning have further improved visual text rendering [2, 20, 25]. Nevertheless, rendering specified text inside an image remains a persistent failure mode, particularly for Chinese ideographs [31]. Unlike alphabetic characters, a Chinese ideograph can encode a two-dimensional composition of reusable components under left–right, top–bottom, enclosing, and other spatial relations [18]. This large and long-tailed output space makes both generation and evaluation difficult: a glyph may preserve several correct components while corrupting only one component or their spatial arrangement.

Reinforcement-learning post-training offers a direct way to optimize text rendering [10], and OCR similarity is a natural reward for this objective [32]. However, an OCR reward first compresses the image into a character transcript and then evaluates that transcript. Consequently, it provides weak credit for partial

Figure

Figure 1 Local reward responses to a malformed ideograph. Character-level rewards produce discrete decisions, whereas IDSpect retains partial structural credit via IDS matching.

structural progress: repairing one radical of a still-misrecognized ideograph may leave the reward unchanged. Conversely, linguistic priors can occasionally recover the intended character from a malformed glyph, producing a high semantic score without adequate visual evidence.

Fig. 1 shows both failure modes in the same generated image. For the highlighted target ideograph, a specialist OCR model follows the local appearance and predicts a visually plausible but incorrect character, contributing 0.00 to the character-level reward. A global MLLM OCR instead recovers the target from the surrounding linguistic context despite its malformed structure, producing a false-positive local contribution of 1.00. TextPecker detects or quantifies anomalous glyphs and is representative of recent structure-aware evaluators for visual text rendering [32]. TextPecker correctly identifies the same glyph as structurally anomalous and replaces it with #, avoiding the MLLM's false positive but assigning a local contribution of 0.00. Once the glyph is collapsed into an anomaly marker, however, its correct and incorrect internal structures are no longer distinguished.

Prior Chinese OCR work uses radicals, strokes, and IDS to recognize rare or unseen characters [1, 29, 30]. We build on these representations to assess how much of a generated ideograph's internal structure matches its target, providing partial credit even when the whole character is incorrect. To this end, we introduce IDSpect, illustrated in Fig. 2. We first train an expert IDS recognizer that transcribes detected text regions into IDS token sequences. During post-training, the detected crops feed two complementary reward branches: the semantic branch compares OCR transcripts with the target text, while the structural branch aligns visual IDS predictions with the deterministic target IDS. Their weighted sum combines transcript-level fidelity with intra-character structural credit. In Fig. 1, IDSpect retains credit for matched IDS tokens while penalizing mismatched ones, assigning a standalone IDS reward of 0.22. Thus, anomaly-aware rewards identify which glyph is problematic, whereas a compositional reward additionally quantifies how much of its internal structure already matches the target.

Our contributions are threefold:

• We identify the coarse-credit limitation of atomic OCR rewards for Chinese visual text generation, under which structurally distinct intra-character errors can receive indistinguishable feedback.

• We develop an expert IDS recognizer that decomposes rendered text in generated images into sequences of spatial operators and character components.

• We construct IDSpect as a fine-grained reward for GRPO. On LongText and GenTextEval, it improves both structural quality and semantic alignment over general OCR-based rewards and TextPecker.

References (31)