Improving Scene Text Recognition for Character-Level Long-Tailed Distribution

Sunghyun Park, Sunghyo Chung, Jungsoo Lee, Jaegul ChooarXiv 2023 · DOI

Introduction

Scene Text Recognition (STR) has seen significant advancements in English-centric benchmarks. However, extending these models to languages with large character sets, such as Chinese and Korean, presents a unique challenge: the long-tailed distribution. In these languages, a small subset of "head" characters appears frequently, while thousands of "tail" characters are rarely encountered in natural text. Standard models often fail to recognize these rare characters, leading to poor performance in real-world scenarios like street signs or brand names.

The Long-Tail Challenge

The primary difficulty in training STR models for CJK (Chinese, Japanese, Korean) languages lies in the trade-off between linguistic context and visual precision. Most training data is derived from real-world corpora (like Wikipedia), which naturally follows a long-tailed distribution. While this helps models learn language patterns (context), it leaves them ill-equipped to identify rare characters that appear only a handful of times.

Character distribution in WikiSynth and performance comparison on Korean text recognition.

As shown in the distribution curves, the number of characters drops exponentially. Models trained on this data often "over-correct" rare characters into more common ones that look similar visually but fit the learned linguistic context better. Conversely, training on balanced, random character strings improves visual recognition of rare characters but sacrifices the model's ability to use context to resolve blurry or obscured text.

CAFE-Net: A Dual-Expert Approach

To resolve this "Context Trade-off," the authors introduce CAFE-Net (Context-Aware and Free Experts Network). The architecture utilizes two specialized experts that share a common feature extraction backbone:

  1. Context-Aware Expert: Trained on the long-tailed WikiSynth dataset. It utilizes an external language model to leverage linguistic context, excelling at recognizing common words and phrases.
  2. Context-Free Expert: Trained on RandomSynth, a dataset of randomly combined characters. By removing linguistic patterns, this expert is forced to rely solely on visual features, making it a master at identifying rare "tail" characters.

During inference, CAFE-Net employs a Confidence Ensemble strategy. It calculates a normalized word-level confidence score for both experts. If the Context-Free expert is highly certain about a rare character sequence, the system trusts its visual precision; otherwise, it defaults to the Context-Aware expert’s linguistic expertise.

Experimental Results

The authors evaluated CAFE-Net using a new metric, the Character-Level (Char) F1 Score, to specifically measure performance across different frequency tiers (Many, Medium, Few).

Performance trade-offs across different training datasets (WS, RS, CS) on easy and hard real-world benchmarks.

The results highlight the effectiveness of the dual-expert strategy. On the Korean Real-Hard dataset, which is specifically designed to test rare character recognition, CAFE-Net improved accuracy from a baseline of 34.14% to 66.68%. Furthermore, the model demonstrated that learning context can actually interfere with rare character recognition; models trained solely on contextual data (WS) performed poorly on the "Few" category compared to those trained on balanced data (RS).

Key findings include:

  • Architecture Agnostic: The CAFE-Net framework provided consistent gains when applied to both CNN-based (TRBA) and Vision Transformer-based (ViTSTR) backbones.
  • Efficiency: The dual-expert heads add only about a 1% increase in FLOPs, as the heavy lifting of feature extraction is shared.
  • Generalization: While the gains are most dramatic in large-alphabet languages, the model maintains competitive performance on standard English benchmarks.

Conclusion

CAFE-Net successfully addresses the long-tailed distribution problem in STR by decoupling visual recognition from linguistic context. By allowing specialized experts to handle different aspects of the recognition task, the model achieves a significant boost in rare character accuracy without sacrificing the benefits of contextual reasoning for common words. This approach provides a robust framework for expanding STR capabilities to diverse global languages.

Summary updated

BibTeX
@misc{park2023improving,
  author = {Sunghyun Park and Sunghyo Chung and Jungsoo Lee and Jaegul Choo},
  title = {{Improving Scene Text Recognition for Character-Level Long-Tailed Distribution}},
  year = {2023},
  eprint = {2304.08592},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.08592},
}
Figure