Manuscript Offprint

arXiv:2610.18284

Efficient Scene-Text Refinement via Pixel-Space Grouped Image Generation

Yaoli Liu, Guo-Hua Wang, Yiyang Chen, Qing-Guo Chen, Zhao Xu, Weihua Luo, Yao-Xiang Ding

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Generated images often have coherent layouts and visual content, yet local errors in small text and complex characters still limit their readability and practical use. Scene-text refinement requires accuracy, preservation, and efficiency. Existing methods based on variational autoencoders (VAEs) can lose fine strokes during reconstruction, while full-image editing can shift background colors. In this work, we introduce PixText, a model that formulates local text refinement as grouped image generation in pixel space. Conditioned on the original image, PixText generates only the target regions, preserves unedited content, and uses MeanFlow for four-step generation. We further introduce Text Refinement Bench to evaluate text correction and image preservation in generated images. On this benchmark, PixText achieves 83.06% glyph pass and 94.66% exact target-character OCR accuracy, versus 36.77% and 52.31% for the strongest baseline. Its four-step MeanFlow variant retains an 81.84% pass rate with less than one GPU-second of amortized generation cost per image.

1 INTRODUCTION

Large text-to-image models have made rapid progress in text rendering and layout. Images often exhibit reasonable layouts and mostly correct text, yet errors persist in small text and complex characters. These errors occupy only a small part of an image but directly affect its readability and practical usability.

Further improving text accuracy within a general-purpose generative model requires balancing text fidelity against overall visual quality. For example, the pretraining experience of LongCat-Image shows that synthetic text data improves text accuracy but can impair overall visual coherence, motivating dynamic adjustment of its sampling proportion and its removal toward the end of pretraining (Team et al., 2025). Post-training for text accuracy faces a similar challenge: excessive optimization of text rewards can make text disproportionately large or prominent, compromising aesthetics and visual coherence (Diao et al., 2026; Team et al., 2026; Mao et al., 2026b; Jin et al., 2025; Chen et al., 2026a; Kang et al., 2026). These observations motivate separating text refinement from overall image generation: preserving the layout, style, and visual content produced by the base model while precisely correcting only the erroneous text regions.

Scene-text refinement calls for accuracy, preservation, and efficiency: correcting text faithfully, leaving unedited content unchanged, and keeping computational cost low. Existing text generation and editing methods, however, typically redraw entire text regions and can alter their original layout, style, and typeface. Most build on large latent-space generative models (Tuo et al., 2024b;a; Lan et al., 2025; Xie et al., 2026), whose ability to generate and refine small text is constrained by variational autoencoder (VAE) reconstruction (Yu et al., 2026), while also incurring the cost of a

∗^{*}Corresponding authors.

†^{\dagger}Work done during the internship at Alibaba Cloud Computing.

large generative network and VAE encoding and decoding. Applying these methods directly to localized corrections of a few characters therefore makes it difficult to satisfy all three requirements.

To tackle these challenges, we introduce PixText, a text generation and refinement model based on grouped image generation in pixel space. First, we model images directly in pixel space, removing the VAE reconstruction bottleneck for small-character strokes as well as the texture degradation and color shifts introduced by local encoding and decoding. Second, we use the original image as the source that provides context and organize the regions to be refined as a group of image elements. The model predicts only the item pixels, which are then pasted back into the original image. By avoiding full-image regeneration, this design preserves unedited regions and reduces the background color drift and paste seams introduced by full-image generation. Finally, four-step MeanFlow (Geng et al., 2026a) reduces amortized generation cost to less than one GPU-second per image.

Meanwhile, we propose simple, effective training and inference improvements. We identify the influence of the training timestep distribution on patch-boundary artifacts and mitigate them with uniform sampling, observing consistent improvements in our model and MiniT2I (Wang et al., 2026d). We also revise the x-prediction sampling update to reduce speckle from incomplete denoising.

As a final contribution, we propose a new benchmark for text refinement. The existing AnyText Bench (Tuo et al., 2024b) primarily evaluates conventional text generation and lacks a dedicated evaluation of localized text errors in generated images. We therefore construct Text Refinement Bench from model-generated images, providing character-level error annotations, correction targets, and a unified evaluation protocol. The benchmark evaluates correction accuracy, background preservation, and inference efficiency. Experiments show that PixText outperforms existing baselines on text refinement and achieves performance close to or above the best existing methods on AnyText Bench at lower computational cost.

References (100)

Couldn't load all references. Reload the page to try again.