真实输入,真实输出:如果我们只用真实数据进行场景文本编辑会怎样?

·

研究论文 · 2026/10/22

场景文本编辑(STE)旨在修改文本内容同时保持原始风格,具有重要实用价值。现有方法依赖合成配对数据和复杂解耦策略,难以忠实捕捉自然场景的多样性和复杂性,常产生伪影或幻觉。本文挑战常见做法,探索是否可以通过将每个真实样本转化为自身的配对监督来驱动STE。具体地,我们探索了多种破坏原始图像的方式(如裁剪、打乱、掩码)来构建自配对训练数据,并在条件扩散架构上构建了强基线TextRIRO。实验表明,结合字符列打乱与图像裁剪(Shuffle&Crop)能有效破坏文本语义同时保留关键风格线索,使模型直接从真实文本图像学习编辑行为。凭借这种简洁且面向真实数据的设计,TextRIRO在真实世界基准上取得了有前景的准确性和视觉真实感,大幅缓解了合成到真实的域差距。此外,我们利用TextRIRO构建了TextRIRO-3M,一个通过拼接编辑后和原始图像的大规模真实长文本识别数据集。实验结果表明,使用TextRIRO-3M训练识别模型显著提高了识别准确率,证明TextRIRO为下游任务提供了高度有用的训练资源。总体而言,TextRIRO将STE提升到了现实、可靠且广泛适用的新水平。代码见https://github.com/YesianRohn/TextRIRO。

该论文挑战了场景文本编辑领域依赖合成配对数据的常见做法,提出仅用真实数据的简洁方法,显著缓解域差距,并构建了实用的大规模数据集,对研究和应用均有重要价值。

Aiming to modify textual content while preserving the original style, Scene Text Editing (STE) has significant practical value in many applications. STE typically requires paired images before and after editing for training. However, recent approaches rely heavily on synthetic paired data and complex disentanglement strategies. They struggle to faithfully capture the diversity and complexity of natural scenes, often producing artifacts or hallucinations. In this work, we challenge the common practice and investigate whether STE can be driven by turning each real sample into its own paired supervision. Concretely, we explore multiple ways to disrupt the original image (e.g., Crop, Shuffle, Mask) to construct self-paired training data, and build a strong baseline (TextRIRO}) upon a conditional diffusion architecture. Our experiments show that combining character-column shuffling with image cropping (Shuffle&Crop) effectively destroys text semantics while preserving key style cues, enabling the model to learn editing behaviors directly from the real text image. With this concise yet real-oriented design, TextRIRO achieves promising performance in both accuracy and visual realism across real-world benchmarks, substantially mitigating the synthetic-to-real domain gap. Furthermore, we leverage TextRIRO to build TextRIRO-3M, a large-scale realistic dataset for long-text recognition by concatenating edited and original images. Experimental results show that training recognition models with TextRIRO-3M significantly improves recognition accuracy, demonstrating that TextRIRO provides highly useful training resources for downstream tasks. Overall, TextRIRO lifts STE to realistic, reliable, and widely applicable new levels. Code is available at https://github.com/YesianRohn/TextRIRO.

阅读原文

参与讨论