Harnessing the Power of Multi-Lingual Datasets for Pre-training: Towards Enhancing Text Spotting Performance

Alloy Das, Sanket Biswas, Ayan Banerjee, Josep Lladós, Umapada Pal, Saumik Bhattacharya

This paper explores how to build scene text spotting models that don't just excel on one specific benchmark, but generalize across different languages, shapes, and domains (like moving from natural scenes to documents). The authors introduce Swin-TESTR, a transformer-based baseline, and provide a deep dive into why diverse, multi-lingual datasets are the "secret sauce" for robust pre-training.

TL;DR

The researchers demonstrate that pre-training text spotting models on diverse, multi-lingual datasets like MLT17 significantly boosts their ability to adapt to new domains without heavy fine-tuning. Their proposed model, Swin-TESTR, leverages a Swin-Transformer backbone to achieve state-of-the-art results on major benchmarks for both regular and arbitrarily shaped text.

What Problem Does This Paper Address?

Scene text spotting—the combined task of detecting and recognizing text in images—is notoriously difficult because real-world text varies wildly in font, orientation (curved, vertical, wavy), and language.

Current state-of-the-art (SOTA) models are often "specialists." They are typically pre-trained on synthetic data and then heavily fine-tuned on a specific target dataset to get high scores. This approach has two major flaws:

  1. Catastrophic Forgetting: The model loses its ability to perform on previous tasks as it learns new ones.
  2. Domain Gap: Models struggle to generalize when moved from synthetic data to real-world images, or from one language to another.

The authors set out to investigate how "intermediate representations"—the features a model learns during pre-training on diverse real-world data—can bridge these gaps and create a more "generalist" reading system.

Methods

The authors propose a new baseline called Swin-TESTR. Its architecture (shown in Figure 2) consists of two main parts:

  • Visual Feature Extraction (Backbone): Instead of standard CNNs or basic Vision Transformers (ViTs), they use a Swin-Transformer (specifically Swin-tiny). Swin-Transformers use a hierarchical structure and window-based self-attention. This allows the model to capture relationships between "remote" text instances across an image more effectively than local convolutions.
  • Text Spotting Unit: Following the TESTR framework, they use a unified Transformer encoder and two decoders—a Location Decoder for detection and a Character Decoder for recognition.
Figure 2. Schematic overview of the model Swin-TESTR.

Datasets

The study utilizes a wide array of datasets to test domain adaptation:

  • Synthetic: Curved SynthText 150K (for initial pre-training).
  • Multi-lingual Real-world: ICDAR 2017 MLT (6 languages, 8 scripts), ReCTS (Chinese), and VinText (Vietnamese).
  • English/General Real-world: Total-Text and CTW1500 (curved/arbitrary shapes), and ICDAR 2015 (regular horizontal text).
  • Document Analysis: Used to evaluate the model's ability to transition from scene text to document layout analysis.

Key Insights and Ideas

  • The Power of Diversity: The authors use t-SNE and UMAP visualizations (Figure 1) to show that the MLT2017 dataset covers a much broader "feature space" of text orientations than others. This inherent diversity is why pre-training on MLT17 provides such a massive performance boost when adapting to other real-world tasks.
  • Structural vs. Perceptual Similarity: By analyzing metrics like FID (Frechet Inception Distance) and SSIM (Structural Similarity Index), the authors found that MLT17 has the highest perceptual similarity to other benchmarks. This quantitative evidence justifies why it is the preferred choice for SOTA pre-training.
  • Domain Adaptation as an Alternative to Fine-Tuning: The paper shows that a model pre-trained on a mixture of diverse data ("Mix pre-train") can achieve highly competitive results on new benchmarks without any dataset-specific fine-tuning.
  • Hierarchical Features Matter: The Swin-Transformer's ability to generate hierarchical feature maps makes it superior to ResNet-50 for text spotting, as it better comprehends the contextual information and style similarities of text within a scene.
Figure 1. Text Spotting Benchmark Diversity. We employ a t-SNE (top row) and UMAP (bottom row) to visualize the different clusters of similar images corresponding to text orientation characteristics where Vertical, Circular, Wavy, and Horizontal Curve.

Key Results

  • SOTA Performance: Swin-TESTR achieved an H-mean of 86.0% on Total-Text and 82.91% on CTW1500 for end-to-end recognition, outperforming previous leaders like ABCNet v2 and the original TESTR.
  • ICDAR 2015: The model reached a detection precision of 90.13%, a significant 5% gain over the TESTR baseline.
  • Cross-Domain Success: In Document Layout Analysis (DLA) tasks, Swin-TESTR outperformed commercial Microsoft-OCR engines in identifying "text" and "math" regions, proving its robustness outside of natural scenes.
  • Adaptation Curves: Figure 3 illustrates how adding intermediate real-world datasets (like MLT) significantly smooths the transition from synthetic to real domains compared to direct fine-tuning.
Figure 3. Different Adaptation Settings: Illustration of our baseline when combined with intermediate representations. Zoom in for better visualization.

Limitations and Future Work

  • Non-Textual Regions: While Swin-TESTR is excellent at reading, it struggles to identify non-text document elements like separators or images because it was trained on text-centric data.
  • Language-Specific Pre-training: The model's performance on Chinese (ReCTS) was lower than some baselines. The authors hypothesize this is because the synthetic pre-training was English-centric and suggest that using domain-specific synthetic data (e.g., Chinese SynthText) would bridge this gap.
  • Data Hunger: Ablation studies showed a strong dependency on labeled data; reducing the training labels to 25% resulted in a noticeable performance drop.

Summary updated

BibTeX
@inproceedings{das2024harnessing,
  author = {Alloy Das and Sanket Biswas and Ayan Banerjee and Josep Lladós and Umapada Pal and Saumik Bhattacharya},
  title = {{Harnessing the Power of Multi-Lingual Datasets for Pre-training: Towards Enhancing Text Spotting Performance}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2024},
  doi = {10.1109/wacv57701.2024.00077},
}

Loading related content...

Figure