Abstract
Scene text editing aims to modify text content within scene images while maintaining style consistency. Traditional methods achieve this by explicitly disentangling style and content from the source image and then fusing the style with the target content, while ensuring content consistency using a pre-trained recognition model. Despite notable progress, these methods suffer from complex pipelines, leading to suboptimal performance in complex scenarios. In this work, we introduce Recognition-Synergistic Scene Text Editing (RS-STE), a novel approach that fully exploits the intrinsic synergy of text recognition for editing. Our model seamlessly integrates text recognition with text editing within a unified framework, and leverages the recognition model's ability to implicitly disentangle style and content while ensuring content consistency. Specifically, our approach employs a multi-modal parallel decoder based on transformer architecture, which predicts both text content and stylized images in parallel. Additionally, our cyclic self-supervised fine-tuning strategy enables effective training on unpaired real-world data without ground truth, enhancing style and content consistency through a twice-cyclic generation process. Built on a relatively simple architecture, RS-STE achieves state-of-the-art performance on both synthetic and real-world benchmarks, and further demonstrates the effectiveness of leveraging the generated hard cases to boost the performance of downstream recognition tasks.
Introduction
Scene Text Editing (STE) is the task of altering text within an image—such as a street sign, storefront, or product label—while preserving the original font, color, texture, and background. This task is inherently difficult because it requires a perfect balance between text legibility and visual fidelity.
Existing approaches typically rely on "explicit disentanglement," where the model attempts to surgically separate style (the look) from content (the characters). However, these multi-stage pipelines are often brittle; errors in the style extraction or background inpainting phases accumulate, resulting in artifacts and unrealistic edits. Furthermore, training these models is hindered by a lack of paired real-world data (images of the same scene with different text), forcing a reliance on synthetic data that does not always generalize to the "messiness" of real-world environments.
Methodology
RS-STE (Recognition-Synergistic Scene Text Editing) shifts the paradigm from complex disentanglement to a unified, synergistic framework. The core insight is that text recognition and text editing are two sides of the same coin: to accurately read text, a model must inherently learn to isolate characters from their stylistic and environmental context.
Multi-modal Parallel Decoder
RS-STE utilizes a Transformer-based architecture featuring a multi-modal parallel decoder. Unlike previous models that process style and content in separate modules, this decoder predicts both the text content and the new image pixels simultaneously. By forcing the model to perform recognition and generation in parallel, the framework leverages the recognition task to guide the implicit disentanglement of style and content.
Cyclic Self-Supervised Fine-tuning
To address the scarcity of paired real-world training data, the authors implemented a "twice-cyclic" training strategy. In this self-supervised loop, the model takes a real image (A), edits it to contain a new word (B), and then attempts to edit it back to the original word (A'). By comparing the original image (A) with the reconstructed version (A'), the model can learn to maintain style and background consistency using real-world textures and lighting without requiring human-labeled ground truth pairs.
Image Detokenizer
To ensure high-quality visual output, the model incorporates a pre-trained VAE (Variational Autoencoder) from Latent Diffusion Models. This component acts as a detokenizer, converting abstract neural representations back into realistic, high-resolution images.
Experiments and Results
RS-STE was evaluated against both synthetic and real-world benchmarks, including Tamper-Syn2k, ScenePair, and Tamper-Scene.
- State-of-the-Art Performance: On the real-world ScenePair benchmark, RS-STE achieved a 91.80% Recognition Accuracy (RecAcc), a significant leap over the previous state-of-the-art of 84.67%.
- Visual Fidelity: Qualitative evaluations demonstrate that RS-STE is significantly more robust than previous models (like MOSTEL or SRNet) when handling complex backgrounds such as stone, fabric, or slanted text perspectives.
- Real-world Generalization: On the unpaired Tamper-Scene dataset, the model showed a 7.32% improvement in content consistency, proving the effectiveness of the cyclic fine-tuning strategy.
Downstream Impact
Beyond editing, the authors demonstrated that RS-STE can serve as a powerful data augmentation tool. By generating "hard cases"—text edited into difficult lighting or complex positions—the researchers were able to improve the performance of standard OCR models (like ABINet) by over 2% on standard benchmarks (IIIT 5K, ICDAR, SVT).
Conclusion and Future Work
RS-STE demonstrates that a unified, recognition-aware architecture can outperform complex multi-stage pipelines in scene text editing. By simplifying the architecture and utilizing cyclic self-supervision, the model achieves superior results on real-world data.
A remaining challenge is extreme text curvature, such as text wrapped around circular logos. While the current model handles straight and slanted text with high fidelity, future iterations (such as the experimental RS-STE+) aim to improve geometric understanding by incorporating more diverse curved-text training data.
Summary updated