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

Manuscript Offprint

arXiv:2609.02349

GlyphAnchor: Enhancing Visual Text Rendering via Position-Anchored Glyph Priors

Qiang Xiang, Shuang Sun, Binglei Li, Yibo Chen, Xu Tang, Yao Hu, Junping Zhang

Abstract

Rendering accurate text remains difficult for image generation and editing models, especially when the target contains long, complex, and densely arranged text or rare characters. Existing approaches either improve native text rendering through stronger backbones and data-centric training without explicit glyph priors, or incorporate glyph priors through specialized designs that remain insufficiently accurate and robust under challenging scenarios. We introduce GlyphAnchor, a novel text-rendering enhancement method for both text-to-image and image-editing diffusion transformer models. GlyphAnchor enhances the backbone with lightweight glyph patch conditions whose positions are anchored to the target image through the model's native positional encoding. We train this capability with staged supervised finetuning and further refine it with text-aware post-training to improve robustness. We also introduce InfoTextBench, a benchmark for evaluating text-rich visual text rendering in both generation and editing settings. Experiments across multiple backbones and benchmarks, including long, complex, and densely

*Corresponding author.

Preprint.

arranged text and rare character scenarios, show that GlyphAnchor consistently improves text fidelity while preserving overall image quality.

1 Introduction

Accurate visual text rendering has become a key bottleneck for modern text-to-image and image-editing foundation models. Recent image diffusion models [42, 50, 36, 37, 1] can synthesize high-quality scenes and follow complex instructions, but their text rendering remains less reliable for long, complex, and densely arranged text and rare characters. These errors are especially damaging in posters, notes, infographics and other text-rich applications, where a single missing or wrong character can compromise usability. This challenge arises in both text-to-image and image editing, and it involves three coupled requirements: the model must render the correct character shapes, place each text item at its intended location, and preserve the surrounding style and image quality.

Previous work has made substantial progress along several directions. Glyph-prior methods incorporate rendered glyph images along with masks, glyph-aware encoders, or style controls into generation and editing models [24, 46, 40, 39, 21, 48, 41, 45, 17, 49, 44]. These methods show that explicit glyph information is useful for improving text accuracy. Foundation models and data-centric methods [19, 42, 50, 36, 37, 1] improve native text rendering through stronger backbones, large-scale curated data, or character-aware training. Other methods [6, 7, 32, 30, 53, 31] use layout-guided control, post-hoc correction, attention control, or reward-based optimization to improve text accuracy and repair generated text. Despite these advances, accurate visual text rendering remains difficult for long, complex, and densely arranged text and rare characters.

To address this, we introduce GlyphAnchor, a method that improves visual text rendering with glyph priors. GlyphAnchor organizes glyph priors as compact glyph patch images and anchors each patch to its intended location in the target image through RoPE positions [34]. Unlike methods that rely on custom attention masks, this design leaves the attention pattern unchanged and remains compatible with standard attention acceleration kernels such as FlashAttention [10]. It provides the backbone with explicit character-shape information and spatial cues, while keeping the conditioning mechanism lightweight and easy to adapt to different diffusion-transformer backbones. We train this representation with staged supervised finetuning, which gradually transitions from ground-truth cropped patches to rendered glyph patches that match inference-time inputs. We then apply text-aware DiffusionNFT post-training [52] to improve stability and visual quality in challenging cases.

Experiments show that GlyphAnchor consistently improves the corresponding backbones in challenging text-rendering scenarios, including long, complex, densely arranged text and rare characters. To evaluate text-rich scenarios more directly, we build InfoTextBench, which measures word-level accuracy, phrase hit rate, aesthetics, and prompt following for both image editing and text-to-image settings. On LongTextBench [13], OneIGBench-text [5], CVTG-2K [35], ChineseWord [42], and InfoTextBench, GlyphAnchor consistently improves text accuracy, phrase hit rate, and overall visual quality relative to the corresponding backbones. Our main contributions are listed below.

  1. We leverage glyph priors through a position-anchored design that provides glyph guidance with few extra tokens and is easy to adapt across diffusion-transformer backbones.

  2. We design a dedicated training recipe for position-anchored glyph priors, including staged supervised finetuning, text-aware rewards for NFT post-training, and train-time glyph augmentation.

  3. We build InfoTextBench for text-rich visual text rendering evaluation and show consistent improvements over the corresponding base models on benchmarks covering long, complex, and densely arranged text and rare characters.

References (43)