TL;DR
The Overlay Text Removal (OTR) dataset is a new synthetic benchmark designed to evaluate text removal models in creative domains like posters and advertisements. By intelligently overlaying context-aware text onto complex, text-free backgrounds, OTR provides an artifact-free ground truth that challenges state-of-the-art inpainting models. The paper also demonstrates that traditional pixel-matching metrics fail to evaluate visual quality accurately, advocating instead for No-Reference Image Quality Assessment (NR-IQA) metrics.
What Problem Does This Paper Address?
Text removal is crucial for image editing, privacy protection, and media reuse. While existing research heavily focuses on scene text (e.g., street signs, billboards), it falls short when applied to creative domains like graphic design, posters, or banners.
The authors identify two fatal flaws in current benchmarks like SCUT-EnsText:
- Editing Artifacts: Manually cleaned datasets (often edited via Photoshop) leave pixel-level artifacts and noise in the background. This introduces significant bias into evaluation metrics like PSNR.
- Overly Simple Backgrounds: Existing synthetic datasets place text on uniform regions (like open sky or flat walls) to mimic natural scenes. This makes the text removal task deceptively easy and fails to test a model's ability to reconstruct complex textures and object boundaries.
Furthermore, standard evaluation metrics (PSNR, SSIM) penalize models that generate visually stunning, plausible backgrounds simply because they don't match the flawed ground truth pixel-for-pixel.
Methods
To circumvent these issues, the authors developed a fully automated, synthetic data generation pipeline that guarantees pristine, artifact-free ground truths:
- Text Filtering: They started with clean images from public datasets and used a text detection model to filter out any images already containing text.
- Object-Aware Placement: Instead of random placement, the pipeline uses bounding boxes and segmentation masks to intentionally position text over complex objects and varied terrains.
- Semantic Text Generation: To make the text look natural to the scene, they leveraged a Vision-Language Model (SmolVLM) to generate contextually relevant headlines or advertising catchphrases based on the image content.
- High-Fidelity Rendering: Text was rendered using the
skia-pythonlibrary across ~200 Google Fonts and saved strictly in PNG format to prevent JPEG compression artifacts.
Datasets
The authors introduced the OTR (Overlay Text Removal) dataset, which is split into two distinct testing subsets based on background complexity:
- OTR-easy: Sourced from MS-COCO, featuring text rendered over simpler background elements like grass, sky, and roads (5,538 samples).
- OTR-hard: Sourced from Open Images V7, featuring text overlapping complex foreground objects like animals, food, and appliances (9,055 samples).
- Training Set: A large-scale training set containing 74,716 samples is also provided for fine-tuning.
Key Insights and Ideas
- The Inpainting Ambiguity Paradox: There is rarely a single "correct" way to fill an erased region. Advanced diffusion models (like FLUX.1 Fill) generate highly realistic results that human judges prefer, yet they score poorly on traditional metrics because their hallucinations deviate from the original background pixels.
- NR-IQA Metrics to the Rescue: The authors show that No-Reference Image Quality Assessment metrics (such as QualiCLIP and TOPIQ) align much better with human perception because they evaluate whether the final image looks natural, rather than comparing it to a reference.
- Entropy as a Proxy for Difficulty: By measuring information entropy around text regions, the authors mathematically proved that text over complex objects provides a much better stress-test for modern generative models than traditional scene text.
Key Results
- Quantifying Benchmark Artifacts: The authors found that the average PSNR of SCUT-EnsText's ground truth versus its original images (excluding text) was only 42.72 dB, with roughly 8% of background pixels noticeably altered by manual editing. OTR completely eliminates this baseline noise.
- Dataset Complexity: OTR-hard achieved a significantly higher background information entropy score (6.96) compared to SCUT-EnsText (6.32) and OTR-easy (6.64), confirming its increased difficulty.
- Baseline Benchmarking: When testing specialized text-removal models (e.g., EraseNet, ViT-Eraser) against general inpainting pipelines (e.g., LaMa, FLUX.1 Fill), general diffusion-based models dominated the NR-IQA perceptual metrics on OTR-hard, despite lagging in traditional PSNR/SSIM scores.
Limitations and Future Work
While OTR successfully addresses background complexity and ground truth artifacts, the authors note that evaluating text removal remains an open challenge. Future work will need to focus on developing better reference-based metrics that can accommodate multiple plausible inpainting variations without defaulting to strict pixel-matching penalties.
Summary updated