Recognition-Synergistic Scene Text Editing

Zhengyao Fang, Pengyuan Lyu, Jingjing Wu, Chengquan Zhang, Jun Yu, Guangming Lu, Wenjie Pei

Introduction

Scene Text Editing (STE) involves modifying text within an image while preserving its original visual style—font, color, texture, and background. Traditionally, this has been treated as a disentanglement problem, attempting to explicitly separate "style" from "content." However, this approach struggles with complex real-world scenes and suffers from a "domain gap" due to the lack of paired real-world training data.

The RS-STE Framework

RS-STE (Recognition-Synergistic Scene Text Editing) introduces a paradigm shift by treating text recognition and editing as synergistic tasks. The core insight is that a robust text recognizer must inherently learn to ignore style to identify characters. By performing both tasks simultaneously, the model leverages recognition as a form of implicit supervision for editing.

Comparison of prior methods and the proposed RS-STE framework.

Multi-modal Parallel Decoder (MMPD)

The heart of RS-STE is a Transformer-based decoder that processes target text and source style images in parallel. Unlike multi-stage pipelines, the MMPD predicts both text content (recognition) and stylized image tokens (editing) in a single pass. This ensures the model maintains a deep understanding of the text it is manipulating.

Detailed architecture of the Multi-modal Parallel Decoder and the training objectives.

Cyclic Self-supervised Learning

To overcome the absence of paired real-world data, RS-STE employs a cyclic training strategy. The model performs a "forward edit" on a real image to a random word, followed by a "reverse edit" back to the original text. A consistency loss is then applied between the original image and the reconstructed version, allowing the model to learn from unpaired real-world data.

Key Results and Impact

RS-STE achieves state-of-the-art performance on both synthetic and real-world benchmarks. Notably, on the ScenePair dataset, it reached a Recognition Accuracy (RecAcc) of 91.80%, significantly outperforming previous methods like MOSTEL (37.69%) and TextCtrl (84.67%).

Beyond editing, RS-STE serves as a powerful data augmentation tool. By generating "hard cases" with difficult styles and backgrounds, the authors improved the accuracy of standard OCR models by over 2%. Despite its high performance, the model remains efficient with only 54.4M parameters.

Conclusion

By unifying recognition and editing, RS-STE provides a more robust and flexible solution for scene text manipulation. Its ability to learn from real-world data through cyclic self-supervision effectively bridges the domain gap, setting a new standard for visual fidelity and recognition accuracy in the field.

Summary updated

BibTeX
@inproceedings{fang2025recognition,
  author = {Zhengyao Fang and Pengyuan Lyu and Jingjing Wu and Chengquan Zhang and Jun Yu and Guangming Lu and Wenjie Pei},
  title = {{Recognition-Synergistic Scene Text Editing}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01223},
}
Figure