GlyphAtlasDisentangling Stroke Detail from Layout
for Scene Text Synthesis

Luozheng Qin1Changhai Zhou2Yiyi Zhou1

1 Xiamen University2 Fudan University

GlyphAtlas results across eight languages on cups, a multilingual airport board, movie posters, storefronts, curved camera-lens text and a dense book cover.
GlyphAtlas renders stroke-accurate text that blends seamlessly into real scenes. It preserves text accuracy in dense, multi-line layouts, harmonizes typography with scene geometry and lighting, remains legible for small or structurally complex glyphs, and transfers zero-shot to scripts unseen during task-specific training.

News

UTC+8

Overview

Scene text synthesis requires stroke-accurate characters in a specified layout and visual coherence with the surrounding scene. Existing glyph-image conditioning ties each glyph’s resolution to its target region, limiting fine-grained stroke guidance for small, dense or structurally complex text. GlyphAtlas retains the glyph image as a spatial anchor and supplies detailed character or word references through a dedicated glyph atlas, whose cell resolution is independent of target-region size. Atlas-anchored attention lets each text region retrieve detail from its corresponding atlas cells to refine the coarse glyph structure provided by the glyph image. This coarse-to-fine conditioning preserves explicit layout correspondence and supports accurate scene text generation and editing, including zero-shot transfer to scripts unseen during task-specific training. Random resolution augmentation further enables adjustable atlas budgets at inference.

Method

Framework

Built on FLUX.1-Fill-dev, GlyphAtlas retains the scene-aligned glyph image for layout and coarse glyph structure, and introduces a glyph atlas for fine-grained stroke guidance. Each atlas cell contains a character or word rendered at a resolution independent of its target region. The backbone’s frozen VAE encodes these detailed stroke references, which are appended to the transformer’s token sequence alongside prompt, scene and glyph-image tokens.

The GlyphAtlas framework: scene-aligned glyph conditioning and detailed atlas cells interact through atlas-anchored attention.
GlyphAtlas combines the glyph image and glyph atlas through atlas-anchored attention for coarse-to-fine conditioning.

Atlas-anchored attention binds the atlas to the scene layout. Scene and glyph-image tokens retrieve stroke detail from the atlas cells assigned to the regions they overlap, while each cell attends to the prompt and its own region. This coarse-to-fine conditioning refines both the scene features and their glyph condition while preserving regional correspondence. Mask-weighted flow matching and a timestep-weighted text perceptual loss jointly supervise text accuracy and scene consistency, while random resolution augmentation makes the atlas token budget adjustable at inference.

Atlas Construction

Each target string is first split into an ordered sequence of text units: individual characters for scripts such as Chinese and Korean, and whole words for Latin and Arabic to preserve word structure and joining forms. Each unit is then rendered in a uniform font into its own cell, square for a character and of natural width for a word. The cell height is set independently of the target region, so even a small scene glyph receives a detailed stroke reference.

Target strings are split into words or characters, rendered into independent cells, and encoded by the frozen VAE into atlas tokens.
Glyph atlas construction: target strings are split into text units, rendered into cells, and encoded into atlas tokens.

Finally, the frozen VAE encodes each cell, and patchification converts its latent into atlas tokens. The tokens are projected to the model width and arranged on a separate positional canvas, with one row per region and cells in reading order. Atlas-anchored attention establishes their correspondence with the scene. Adjusting cell height changes both the detail of the reference and its token cost.

Results · 01

Accurate Scene Text Generation and Editing

GlyphAtlas achieves the highest text accuracy among the compared methods on AnyText-benchmark, TextOCR, Total-Text and ReCTS. Detailed local references support both new text generation and editing in real scenes, including small regions, complex Chinese characters and irregular layouts.

Table 1Scene text generation on AnyText-benchmark
MethodEnglishChinese
ACC ↑NED ↑FID ↓LPIPS ↓ACC ↑NED ↑FID ↓LPIPS ↓
DiffSTE45.230.781452.740.18163.630.122657.490.1276
TextDiffuser51.760.761829.760.15645.590.121834.190.1252
DiffUTE40.540.700525.350.164029.780.574429.080.1745
AnyText68.430.858821.590.110664.760.821020.010.0943
TextCtrl58.530.814635.730.197835.800.608449.790.2298
DreamText64.950.846628.370.131459.030.827058.220.0963
AnyText266.790.861032.590.176263.290.807529.230.1383
TextSSR58.640.766424.230.124550.330.701829.410.1063
TextFlux74.810.878913.150.084554.730.770513.020.0577
FLUX-Text84.190.940013.850.072971.320.851013.680.0541
GlyphAtlas88.680.955511.990.075977.920.880611.500.0534
Table 2Scene text editing on real-scene benchmarks
MethodTextOCRTotal-TextReCTS
ACC ↑NED ↑FID ↓ACC ↑NED ↑FID ↓ACC ↑NED ↑FID ↓
AnyText8.120.17385.4824.740.513931.4534.810.507122.19
DreamText†7.470.172518.9227.090.521752.2748.200.701754.59
AnyText29.540.208413.2027.400.542273.7135.860.509139.64
FLUX-Text24.110.36142.6064.060.811116.8748.350.647714.58
TextFlux23.620.36532.1062.290.782913.5843.020.593011.97
TextSSR27.740.44992.7147.060.683526.6050.230.687620.96
GlyphAtlas33.150.50462.8173.170.864716.0569.270.825913.27

ACC is reported in percent. Higher ACC and NED, and lower FID and LPIPS, are better. Bold marks the best result in each column.

Results · 02

Zero-Shot Transfer Across Scripts

GlyphAtlas-Bi is trained on a Chinese–English subset and evaluated on Japanese, Korean and Arabic text editing. At inference, the glyph atlas supplies detailed stroke references for the target script, which the VAE encodes and atlas-anchored attention associates with the corresponding scene regions. The same model achieves the highest ACC among the compared methods without language-specific fine-tuning across all three scripts.

Table 3Zero-shot multilingual editing on STIPLAR
MethodJapaneseKoreanArabic
ACC ↑FID ↓ACC ↑FID ↓ACC ↑FID ↓
AnyText247.79105.6229.8263.520.1099.32
FLUX-Text46.4980.7320.8344.392.6577.30
TextFlux46.2367.4333.8624.016.4251.96
STELLAR‡43.3873.7380.4734.4755.8662.84
TextSSR40.26102.8619.1468.110.2092.54
GlyphAtlas-Bi67.5384.0966.9638.9939.5568.10

‡ STELLAR uses a separate model fine-tuned for each language. GlyphAtlas-Bi uses one Chinese–English model for all three scripts.

Results · 03

Qualitative Comparison Results

We compare GlyphAtlas with AnyText2, TextFlux and FLUX-Text on AnyText-benchmark, TextOCR, Total-Text and ReCTS. GlyphAtlas renders the target text accurately across stylized lettering, engraved watch numerals, curved signs and small Chinese shop text, while preserving the appearance of the text and its surroundings.

Side-by-side scene text comparisons: input, ground truth, AnyText2, TextFlux, FLUX-Text, and GlyphAtlas.
Qualitative comparisons on AnyText-benchmark, TextOCR, Total-Text and ReCTS. Gray marks the regions to be filled; GT denotes ground truth.

Results · 04

Component Ablations and Atlas Budgeting

Glyph References and Atlas-Anchored Attention

The glyph image supplies spatial structure; the atlas adds stroke detail. Together with atlas-anchored attention, they improve small-text accuracy from 17.65% to 27.21% and Korean accuracy from 37.90% to 66.96% over the glyph-image-only model under the same training recipe.

Table 4Glyph references and attention · ACC (%)
Glyph referenceAttentionAnyTextTotal-TextSTIPLAR
ImageAtlasEnglishChineseAllCurvedSmallClutteredJapaneseKoreanArabic
✓——83.9067.9351.3350.8617.6548.5160.2637.9019.27
—✓Anchored80.3074.2850.5348.4122.4347.7967.0158.2539.96
✓✓Full84.6475.7654.2552.0821.6952.1270.9165.2232.93
✓✓Anchored85.8976.0056.9753.9127.2156.0867.5366.9639.55

Atlas Budgeting

Randomized cell heights make the model work across atlas resolutions. A square character cell uses 16 tokens at 64 pixels and 9 tokens at 48 pixels, a 43.75% reduction. The allocator instead assigns more detail to small scene glyphs while managing the total sequence length.

Table 5Atlas budget on AnyText-benchmark
InferenceEnglishChinese
Atlas lengthACC ↑Atlas lengthACC ↑
MeanMaxFixedRandomMeanMaxFixedRandom
64 px29178488.4888.681751,20077.7777.92
48 px16444187.9188.109967572.5674.81
Alloc.26751288.1588.2219479475.4876.86

Fixed and Random refer to training with a fixed atlas height or randomized cell heights. Alloc. assigns cell resolutions according to the token budget and glyph size in the scene.