CDistNet: Perceiving Multi-domain Character Distance for Robust Text Recognition

Tianlun Zheng, Zhineng Chen, Shancheng Fang, Hongtao Xie, Yu-Gang Jiang

Abstract

Scene Text Recognition (STR) faces significant challenges from extreme perspective distortion, curved shapes, and cluttered backgrounds. Traditional methods often suffer from attention drift, where the model loses track of the correspondence between visual features and characters. CDistNet addresses this by introducing a novel Multi-Domain Character Distance Perception (MDCDP) module. By tightly coupling visual and semantic features through a shared, dynamic position embedding, CDistNet achieves superior feature-character alignment and robustness against severe text deformations where traditional recognizers often fail.

Introduction

While modern Transformer-based models have improved STR performance by integrating visual and semantic clues, they frequently struggle with long or highly distorted strings. This is primarily due to a loose association between "where" a character is (position) and "what" it is (content). Current methods typically model these domains separately or sequentially, leading to errors in complex spatial layouts. CDistNet aims to bridge this gap by creating a "content-aware" position embedding that understands the spatial and linguistic distance between characters simultaneously.

Methodology

The core of the architecture is the CDistNet, which utilizes a stacked series of Multi-Domain Character Distance Perception (MDCDP) modules to refine character localization step-by-step.

The CDistNet architecture overview, highlighting the parallel interaction between visual, position, and semantic branches via the MDCDP module.

As shown in the architecture overview, the MDCDP consists of three key components:

  1. Self-Attention Enhancement (SAE): Reinforces the position embedding, allowing it to act as a flexible "receptor" for multi-domain information.
  2. Cross-Branch Interaction (CBI): Unlike sequential models, CBI uses the position embedding to query both the visual and semantic branches in parallel. This ensures the positional representation is immediately informed by both image content and linguistic context.
  3. Dynamic Shared Fusion (DSF): A gated mechanism that fuses the queried features back into a reinforced position embedding, creating a tightly coupled representation.

The visual backbone employs a standard Thin-Plate Spline (TPS) for initial rectification, followed by a ResNet-45 and a Transformer encoder to extract robust visual features.

Experimental Setup

CDistNet was evaluated on a comprehensive suite of benchmarks, including standard datasets (IIIT5K, SVT, IC13, IC15, SVTP, CT80) and large-scale/multilingual challenges (ICDAR ArT, Uber-Text, MLT17, MLT19). To specifically test robustness against extreme spatial layouts, the authors introduced two new augmented benchmarks:

  • HA-IC13 (Horizontal Augmentation): Applies increasing levels of horizontal deformation.
  • CA-IC13 (Curved Augmentation): Applies increasing levels of curved deformation.

Results and Key Insights

CDistNet achieved state-of-the-art performance across standard benchmarks, notably reaching 86.0% on IC15 and 93.4% on CT80. Its superiority was most evident in the face of severe deformation; on the HA/CA datasets, CDistNet outperformed leading models like ABINet and S-GTR by up to 18.9%.

Comparison of CDistNet with traditional attention mechanisms. (a) Conceptual differences in how position and semantic embeddings interact; (b) Attention maps showing CDistNet's sharper, more accurate focus on individual characters in curved text.

Key insights from the study include:

  • Position as a Dynamic Bridge: Treating position as a dynamic query rather than a static index allows the model to learn a more precise "distance" between characters by seeing the image and predicted sequence simultaneously.
  • Parallel Interaction: Parallel processing via MDCDP prevents the semantic branch from "hallucinating" based on language priors when visual signals are clear but distorted. This makes the model particularly robust to rare character sequences that do not follow common linguistic patterns.
  • Qualitative Alignment: Visualization of attention maps (Figure 1b) confirms that CDistNet maintains a much sharper focus on individual characters compared to traditional semantic or position-based attention mechanisms.

Conclusion and Future Work

CDistNet demonstrates that tight, parallel coupling of visual and semantic domains through dynamic position embeddings is key to robust text recognition. While it excels at handling distorted and multilingual text, challenges remain in recognizing extremely blurred text or highly stylized artistic fonts. Future work will explore more efficient Vision Transformer (ViT) architectures to improve inference speed and extend the model's capabilities to vertical text layouts.

Summary updated

BibTeX
@misc{zheng2021cdistnet,
  author = {Tianlun Zheng and Zhineng Chen and Shancheng Fang and Hongtao Xie and Yu-Gang Jiang},
  title = {{CDistNet: Perceiving Multi-domain Character Distance for Robust Text Recognition}},
  year = {2021},
  eprint = {2111.11011},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.11011},
}
Figure