OTR: Synthesizing Overlay Text Dataset for Text Removal

Jan Zdenek, Wataru Shimoda, Kota YamaguchiarXiv 2025 · DOI

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:

  1. 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.
  2. 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.

Figure 1: Examples from SCUT-EnsText dataset. From left to right, original image (first), ground truth image (second), map of pixels whose difference in value between the original and ground truth image exceeds the set threshold (third), the abso- lute difference between the original image and ground truth (fourth). The difference between the original and ground truth image should be as little as possible, but the surround- ing regions contain altered pixels. Ideally, there should be no difference between the two when text stroke regions are excluded.

Methods

To circumvent these issues, the authors developed a fully automated, synthetic data generation pipeline that guarantees pristine, artifact-free ground truths:

  1. Text Filtering: They started with clean images from public datasets and used a text detection model to filter out any images already containing text.
  2. 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.
  3. 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.
  4. High-Fidelity Rendering: Text was rendered using the skia-python library across ~200 Google Fonts and saved strictly in PNG format to prevent JPEG compression artifacts.
The OTR data generation pipeline utilizes a VLM for semantic captioning and object-aware rendering.

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.
Traditional metrics rank EraseNet higher, but human perception strongly favors the visually convincing results of generative models like FLUX.1 Fill.

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.
A visual comparison of text removal baselines. While specialized models leave ghosting artifacts, diffusion models reconstruct complex structures seamlessly.

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

Abstract

Text removal is a crucial task in computer vision with applications such as privacy preservation, image editing, and media reuse. While existing research has primarily focused on scene text removal in natural images, limitations in current datasets hinder out-of-domain generalization or accurate evaluation. In particular, widely used benchmarks such as SCUT-EnsText suffer from ground truth artifacts due to manual editing, overly simplistic text backgrounds, and evaluation metrics that do not capture the quality of generated results. To address these issues, we introduce an approach to synthesizing a text removal benchmark applicable to domains other than scene texts. Our dataset features text rendered on complex backgrounds using object-aware placement and vision-language model-generated content, ensuring clean ground truth and challenging text removal scenarios. The dataset is available at https://huggingface.co/datasets/cyberagent/OTR .
BibTeX
@misc{zdenek2025otr,
  author = {Jan Zdenek and Wataru Shimoda and Kota Yamaguchi},
  title = {{OTR: Synthesizing Overlay Text Dataset for Text Removal}},
  year = {2025},
  eprint = {2510.02787},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.02787},
}
Figure