Skip to main content
QUICK REVIEW

[Paper Review] CDistNet: Perceiving Multi-Domain Character Distance for Robust Text Recognition

Tianlun Zheng, Zhineng Chen|arXiv (Cornell University)|Nov 22, 2021
Handwritten Text Recognition TechniquesComputer Science43 references16 citations
TL;DR

CDistNet proposes a Multi-Domain Character Distance Perception (MDCDP) module that jointly models visual and semantic features through a position-embedded cross-attention mechanism, enabling robust text recognition under severe deformations and rare layouts. It achieves state-of-the-art performance on standard and challenging augmented benchmarks, outperforming prior methods by margins up to 18.9% on highly deformed text.

ABSTRACT

The Transformer-based encoder-decoder framework is becoming popular in scene text recognition, largely because it naturally integrates recognition clues from both visual and semantic domains. However, recent studies show that the two kinds of clues are not always well registered and therefore, feature and character might be misaligned in difficult text (e.g., with a rare shape). As a result, constraints such as character position are introduced to alleviate this problem. Despite certain success, visual and semantic are still separately modeled and they are merely loosely associated. In this paper, we propose a novel module called Multi-Domain Character Distance Perception (MDCDP) to establish a visually and semantically related position embedding. MDCDP uses the position embedding to query both visual and semantic features following the cross-attention mechanism. The two kinds of clues are fused into the position branch, generating a content-aware embedding that well perceives character spacing and orientation variants, character semantic affinities, and clues tying the two kinds of information. They are summarized as the multi-domain character distance. We develop CDistNet that stacks multiple MDCDPs to guide a gradually precise distance modeling. Thus, the feature-character alignment is well built even various recognition difficulties are presented. We verify CDistNet on ten challenging public datasets and two series of augmented datasets created by ourselves. The experiments demonstrate that CDistNet performs highly competitively. It not only ranks top-tier in standard benchmarks, but also outperforms recent popular methods by obvious margins on real and augmented datasets presenting severe text deformation, poor linguistic support, and rare character layouts. Code is available at https://github.com/simplify23/CDistNet.

Motivation & Objective

  • Address feature-character misalignment in scene text recognition caused by weak visual or semantic clues in highly deformed or rare character sequences.
  • Overcome attention drift in Transformer-based models where position clues weaken during autoregressive decoding.
  • Improve robustness to severe text deformations, poor linguistic support, and rare character layouts through tighter integration of visual and semantic information.
  • Develop a method that maintains accurate attention localization and feature alignment even under extreme recognition challenges.
  • Demonstrate generalization superiority over state-of-the-art models on both standard and newly created, highly challenging datasets.

Proposed method

  • Introduce the Multi-Domain Character Distance Perception (MDCDP) module, which uses a shared position embedding to query both visual and semantic features via cross-attention.
  • Fuse visual and semantic features into a content-aware position representation that encodes character spacing, orientation, and semantic affinities.
  • Stack multiple MDCDP modules to enable progressive, fine-grained modeling of multi-domain character distance across decoding steps.
  • Use a dual-branch attention mechanism where the position embedding queries both visual and semantic features, creating a tightly coupled representation.
  • Apply loss-guided computation (dotted lines in Fig. 1) to refine attention localization and improve alignment during training.
  • Integrate the MDCDP module within a Transformer-based encoder-decoder framework, maintaining compatibility with existing recognition pipelines.

Experimental results

Research questions

  • RQ1Can jointly modeling visual and semantic features through a shared position embedding improve attention localization and reduce feature-character misalignment?
  • RQ2Does the proposed MDCDP module enhance robustness to severe text deformations and rare character layouts compared to conventional attention mechanisms?
  • RQ3How does CDistNet perform relative to state-of-the-art models on standard benchmarks and on newly created, highly challenging datasets with extreme distortions?
  • RQ4To what extent does the sequential decoding scheme outperform parallel decoding in handling difficult text, and why?
  • RQ5Can the model achieve better semantic utilization and visual attention alignment in low-resource or rare-layout scenarios?

Key findings

  • CDistNet achieves state-of-the-art performance on six standard benchmarks, demonstrating superior generalization under diverse recognition difficulties.
  • On the HA-IC13 and CA-IC13 augmented datasets with severe deformations, CDistNet outperforms ABINet, VisionLAN, and S-GTR by margins of 12.7% to 18.9% and 8.6% to 10.4%, respectively.
  • In highly deformed text scenarios (HA6 and CA6), CDistNet maintains robust performance where other models, especially parallel-decoding methods, suffer sharp accuracy drops.
  • The sequential decoding scheme used in CDistNet enables finer-grained context modeling, resulting in 16.7% higher accuracy than VisionLAN and 12.7% over ABINet on HA6.
  • Visualization confirms that CDistNet achieves proper attention localization and balanced utilization of both visual and semantic information.
  • The study reveals that popular parallel decoding methods are ineffective for highly deformed text, highlighting a critical trade-off between speed and accuracy in real-world applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.