Manuscript Offprint

arXiv:2610.20794

Blame Errant Words, Not the Canvas: Defect-Aware Spatial Credit Assignment for Visual Text Generation

Sujie Hu, Huaisong Zhang, Pujing Yang, Qian Wang, Xiaomin Li, Xinhang Leng, Chen Li, Jing Lyu, Xiu Li, Ling Pan

ABSTRACT

Recent reinforcement learning approaches have improved visual text generation, yet generated images still suffer from incorrect wording and malformed glyphs. We identify two coupled limitations: recognition-based rewards often overlook visible glyph defects, while whole-image scalar feedback obscures the uneven quality of individual text regions. These limitations motivate our central principle: Blame errant words, not the canvas, to effectively preserve local quality distinctions. First, we introduce TextDART, a defect-aware region-targeted reward model that localizes individual text regions and independently evaluates their semantic correctness and glyph quality, providing fine-grained, region-precise feedback. Building on TextDART, we propose SCANNER, which turns these regional judgments into spatially differentiated policy feedback. It normalizes rewards for each text target across sampled images and casts the resulting regional advantages onto the corresponding latent tokens. Extensive experiments on existing benchmarks and our newly established PolyText-Bench demonstrate that our approach achieves state-of-the-art performance in text accuracy and glyph fidelity.

1 INTRODUCTION

Text-to-image (T2I) models have made remarkable progress in visual fidelity, compositionality, and prompt adherence (Rombach et al., 2022; Podell et al., 2024; Labs, 2024; Wu et al., 2025; Zhao et al., 2026), and are rapidly evolving from generating compelling scenes to producing usable visual content (Wang et al., 2026a; Yu et al., 2025; He et al., 2025b; Liu et al., 2025b). A broad range of visual artifacts (e.g., posters, advertisements) rely on the accurate integration of language and imagery, where a single misspelled word or malformed character can compromise an otherwise compelling image. Reliable visual text generation is therefore a key capability for extending generative models from pictorial synthesis to practical content creation. Recent reinforcement learning (RL) post-training methods (Black et al., 2024; Xu et al., 2023; Fu et al., 2026b), particularly Group Relative Policy Optimization (GRPO) (Liu et al., 2026d; Xue et al., 2025) and its variants (Li et al., 2026b; 2025a; Ding & Ye, 2026; Luo et al., 2025; Chen et al., 2026a; Hu et al., 2026; Li et al., 2026a; Liu et al., 2026a; He et al., 2026a; Ma et al., 2025a; 2026; Zhang et al., 2026b;a), have demonstrated promising progress in the stability and scalability of visual alignment.

Despite this progress, visual text generation remains a challenging frontier (Chen et al., 2024; Tuo et al., 2024; Yang et al., 2023; Ma et al., 2023), where generated images still suffer from incorrect wording and malformed glyphs such as missing characters, merged strokes, and hallucinated shapes. Consequently, improvements in average image quality can conceal consequential local defects, where a single corrupted word may still render the final artifact unusable. More importantly, in RL post-training, a failure that the reward cannot distinguish is not simply left unmeasured; it may be reinforced as successful behavior (Pan et al., 2022; Skalse et al., 2022; Fu et al., 2026a).

We attribute these persistent failures to two key properties of visual text generation that existing RL methods overlook. (1) Errors are heterogeneous: a failure may lie in what is written (a semantic error) or in how it looks (a glyph defect), but most existing methods supervise only the former, leaving deformations invisible to the reward. (2) Text is regional: it occupies localized areas, and a single image may contain multiple text instances of uneven quality, so text quality is not uniformly distributed, yet most methods score the whole image, averaging away local correctness. Accordingly, these observations motivate our central principle: Blame errant words, not the canvas. Realizing this principle requires preserving local quality distinctions from evaluation to policy optimization, rather than reducing them to a single image-level advantage as in standard image-level GRPO. This raises two questions: what should fine-grained rewards measure, and where should reliable credit go?

Blame Errant Words, Not the Canvas: Defect-Aware Spatial Credit Assignment for Visual Text Generation

(a) Current Text Reward and Flow-GRPO

Figure

(b) TextDART and SCANNER

Figure 1: Comparison of Our Method Against Current Reward Model and Flow-GRPO. (a) A outranks B despite its malformed glyph, and image-group advantages reinforce the defect while penalizing B's correct subtitle. (b) TextDART provides defect-aware scores for individual regions, and SCANNER computes target-group advantages for spatial credit assignment, penalizing A's malformed subtitle while reinforcing B's correct one (green/red: positive/negative).

The first question concerns how rewards are computed, as shown in Fig.1(a). Existing methods largely rely on OCR (Cui et al., 2026a) or vision-language models to recognize the rendered string and compute an edit-distance-based reward (Li et al., 2024; Cui et al., 2026b; Rahman et al., 2025). Such recognizers carry strong linguistic priors: malformed glyphs are frequently read as valid words, and obvious stroke merging or omission is hallucinated as normal text. Moreover, the normalized edit distance only reflects semantic correctness and says nothing about glyph quality. While TextPecker (Zhu et al., 2026) introduces perceptual signals for defective text, it operates on the whole image, flattening all text regions into a single score. To obtain fine-grained rewards, we propose a Defect-Aware Region-Targeted reward model, TextDART. In Fig.1(b), rather than scoring the whole image, TextDART first localizes every text region, then evaluates glyph quality and semantic correctness independently, yielding rewards that are both defect-aware and region-precise.

The second question persists even with localized, defect-sensitive feedback in hand. Standard GRPO assigns the same credit to every latent token at every denoising step (Liu et al., 2026d; Xue et al., 2025). As a result, uniform credit propagation lets flawed regions drag down well-formed ones, and the temporal dynamics of text emergence are ignored. Prior attempts either allocate regional signals (Yang et al., 2026; Zhang et al., 2026c; Ouyang et al., 2026) while ignoring that text layout is undetermined in early steps, or compute rewards at intermediate steps (Deng et al., 2026; Tong et al., 2026; He et al., 2026b; Zhang et al., 2026d; Liu et al., 2026c), which is costly and still not region-aware. To resolve this, we propose SCANNER, a reinforcement learning framework for Spatial Credit Assignment with NoisE-awaReness. Utilizing the proposed TextDART, a target-group strategy normalizes the rewards per text target and casts them onto the corresponding latent tokens. Along the denoising trajectory, the global advantage is dynamically fused with these regional signals via a noise-dependent schedule, shifting credit from the global view to local focus as text regions gradually resolve, thereby providing reliable guidance for policy optimization.

In summary, our main contributions are as follows:

• We pinpoint the absence of localized, defect-sensitive feedback as a critical barrier to visual text generation. To this end, we introduce TextDART, a defect-aware region-targeted reward model, to disentangle semantic correctness and glyph quality across individual text regions.

• We propose SCANNER, a spatial credit assignment method that normalizes and projects rewards onto target latent tokens, dynamically shifting focus from global advantages to regional signals via a noise-dependent schedule for reliable policy optimization.

• Extensive experiments on four existing benchmarks and our newly established PolyText-Bench demonstrate our method achieves state-of-the-art performance in text accuracy and glyph fidelity.

Blame Errant Words, Not the Canvas: Defect-Aware Spatial Credit Assignment for Visual Text Generation

References (92)