TextVerifier:超越识别以验证中文文本渲染
研究论文 · 2026/10/15
文本到图像模型生成的汉字虽可读,却常含局部渲染缺陷,如笔画增减或部件畸形。此类错误对OCR和视觉语言模型不可见,因其训练目标为识别,对定义渲染错误的结构偏差具有不变性。我们将文本渲染验证形式化为目标条件问题:给定目标字符和图像裁剪,判断裁剪是否为该字符的正确渲染。验证器TEXTVERIFIER向文本塔输入字符的表意文字描述序列(IDS)而非单字符符号,并在1270万裁剪-IDS对及从文本区域修复模型训练轨迹中采样的无标签“同字不同质”难例上训练。为评估该能力,我们构建了TEXTRENDERBENCH-ZH,首个针对生成中文文本的逐字符基准,标注了7358个字符的位置、身份和正确性。TEXTVERIFIER的F1达0.844,远超OCR置信度(0.526)、通用VLM(0.329)和TextPecker(0.590)。作为Flow-GRPO后训练的逐字符奖励,它进一步减少了渲染错误,表明其评分既能检测也能纠正错误。
该工作首次系统解决生成中文文本的局部渲染缺陷验证问题,提出的方法在检测和纠正错误上均有效,为文本到图像生成的质量控制提供了新思路和基准。
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.