分解部首,然后奖励:面向准确中文文本渲染的细粒度检查

·

研究论文 · 2026/10/01

现有基于OCR的强化学习奖励在评估中文文本渲染时,将汉字视为原子字符,忽略了其由可复用组件通过空间关系组合而成的特性,导致对部首级错误的反馈过于粗糙。为此,作者利用表意文字描述序列(IDS),训练了一个专家IDS识别器,将渲染的中文文本转录为IDS表示,并提出了IDSpect方法。IDSpect将目标文本确定性地分解为IDS标记,并将裁剪级别的视觉IDS预测与目标序列对齐,通过全局唯一的标记信用使比较对检测到的文本区域顺序具有鲁棒性。结合整体字符语义奖励,IDSpect在不改变图像生成器或增加推理成本的情况下,提供了组件和空间关系层面的细粒度信用。在Qwen-Image的GRPO后训练实验中,IDSpect在LongText和GenTextEval上取得了领先的结构质量和语义对齐。

该研究针对中文文本渲染中OCR奖励过于粗糙的问题,提出了基于IDS的细粒度奖励方法,显著提升了生成文本的结构保真度,且不增加推理成本,对文本到图像生成领域具有重要价值。

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.

阅读原文

参与讨论