TL;DR
This paper introduces a Progressive Erasing Network (PEN) that removes scene text through a multi-stage iterative process, ensuring even stubborn residuals are eliminated. By leveraging a novel self-supervised pretext task on unlabeled real-world images, the model bridges the gap between synthetic training data and the complexities of real-world photography, achieving state-of-the-art results.
What Problem Does This Paper Address?
Scene text erasing—the task of removing text from an image and "inpainting" the background—is vital for privacy, image editing, and text translation. Most current models are trained on large-scale synthetic datasets because real-world "before and after" pairs are incredibly difficult to produce (requiring tedious manual work in tools like Photoshop).
However, synthetic data often uses standard fonts and unnatural placements that don't match the "rich contexts" of real-world scenes. This leads to two major issues:
- Domain Gap: Models trained on synthetic data struggle with the lighting, textures, and complex backgrounds of real photos.
- Residual Text: Single-pass erasing models often leave behind "ghost" traces or blurry artifacts where the text used to be.
Methods
The authors propose a three-stage training pipeline to tackle these challenges:
- Stroke Module & Initial Training: They first train a "Stroke Module" (a U-Net style architecture) on synthetic data to predict pixel-level text stroke masks. This is more precise than simple bounding boxes.
- Self-Supervised Pretext Task: To handle real-world data without labels, they use a clever trick. They take an unlabeled real image and create several variants (changing brightness, saturation, or sharpness). Since these augmentations don't move the text, the predicted stroke masks for all variants should be identical. They use a Self-Supervised Loss ($L_{ss}$) to enforce this consistency, forcing the network to learn robust features from real-world distributions.
- Progressive Erasing Network (PEN): Instead of erasing text in one go, the PEN decomposes the process into multiple stages. The output of the first "rough" erase is fed back into the module for refinement. This iterative approach (typically 3 iterations) allows the model to progressively "clean up" any remaining text fragments.
The final training involves a combination of reconstruction loss, content/style losses (using a pre-trained VGG-16), and a two-stream discriminator that looks at both global image consistency and local texture quality.
Datasets
- SCUT-Syn: A synthetic dataset of 8,000 training and 800 testing images.
- SCUT-EnsText: A real-world dataset containing 3,562 images with diverse text shapes and languages (English and Chinese).
- Unlabeled Real-World Data: For the self-supervised stage, the authors collected 10,589 unlabeled images from various scene text detection benchmarks (CTW1500, ICDAR17-RCTW, Total-Text, and MSRA-TD500).
Key Insights and Ideas
- Consistency as Supervision: The "aha moment" here is that while we don't know where the text is in an unlabeled image, we know it shouldn't move or change shape just because we turned up the brightness. This consistency acts as a free supervisory signal.
- Iterative Refinement: Erasing text is a high-difficulty pixel-level task. By treating it as a multi-step process rather than a single transformation, the model can focus on "easy" text first and then use the intermediate results as a foundation to tackle harder residuals.
- Stroke-Level Precision: By focusing on the literal strokes of the characters rather than coarse boxes, the model preserves more of the original background, leading to more realistic inpainting.
Key Results
The proposed PEN model outperformed previous state-of-the-art methods across major benchmarks:
- Real-World Performance: On the SCUT-EnsText dataset, the model (PEN) achieved a PSNR of 35.72 and an SSIM of 96.68*, significantly higher than previous leaders like EraseNet (32.30 PSNR) and PERT (33.25 PSNR).
- Visual Quality: Qualitative results show that PEN* leaves fewer artifacts and handles curved or artistic text much better than one-stage models.
- Ablation Success: The authors showed that the self-supervised stage (Stage-II) was crucial; models trained with this stage were significantly more robust to real-world variations than those trained on synthetic data alone.
Limitations and Future Work
- Computational Cost: Because the network is progressive, inference time increases linearly with the number of iterations. While 3 iterations provided the best balance, it is slower than a single-pass model.
- Saturation Point: The authors noted that performance gains begin to saturate after 3 iterations, suggesting there is a limit to how much "re-processing" the same image can provide without new architectural features.
- Future Directions: The authors suggest that exploring more complex image augmentations for the pretext task could further improve the model's feature representation.
Summary updated