Skip to main content
QUICK REVIEW

[Paper Review] Chinese Text Recognition with A Pre-Trained CLIP-Like Model Through Image-IDS Aligning

Haiyang Yu, Xiaocong Wang|arXiv (Cornell University)|Sep 3, 2023
Handwritten Text Recognition TechniquesComputer Science4 citations
TL;DR

This paper proposes a two-stage framework for Chinese text recognition that pre-trains a CLIP-like model (CCR-CLIP) to learn canonical character representations by aligning printed character images with their Ideographic Description Sequences (IDS), enabling zero-shot recognition without fine-tuning. The method achieves state-of-the-art performance on both Chinese character recognition and text recognition benchmarks, particularly excelling in zero-shot and few-shot settings.

ABSTRACT

Scene text recognition has been studied for decades due to its broad applications. However, despite Chinese characters possessing different characteristics from Latin characters, such as complex inner structures and large categories, few methods have been proposed for Chinese Text Recognition (CTR). Particularly, the characteristic of large categories poses challenges in dealing with zero-shot and few-shot Chinese characters. In this paper, inspired by the way humans recognize Chinese texts, we propose a two-stage framework for CTR. Firstly, we pre-train a CLIP-like model through aligning printed character images and Ideographic Description Sequences (IDS). This pre-training stage simulates humans recognizing Chinese characters and obtains the canonical representation of each character. Subsequently, the learned representations are employed to supervise the CTR model, such that traditional single-character recognition can be improved to text-line recognition through image-IDS matching. To evaluate the effectiveness of the proposed method, we conduct extensive experiments on both Chinese character recognition (CCR) and CTR. The experimental results demonstrate that the proposed method performs best in CCR and outperforms previous methods in most scenarios of the CTR benchmark. It is worth noting that the proposed method can recognize zero-shot Chinese characters in text images without fine-tuning, whereas previous methods require fine-tuning when new classes appear. The code is available at https://github.com/FudanVI/FudanOCR/tree/main/image-ids-CTR.

Motivation & Objective

  • To address the challenge of zero-shot and few-shot Chinese character recognition, which remains underexplored despite advances in Latin script recognition.
  • To mimic human-like recognition by learning canonical representations of Chinese characters through structural decomposition into radicals.
  • To develop a two-stage framework that leverages pre-trained canonical representations to improve end-to-end text recognition performance.
  • To enable recognition of unseen Chinese characters in text images without requiring model fine-tuning, a limitation of prior methods.

Proposed method

  • Pre-trains a CLIP-like model (CCR-CLIP) using contrastive loss to align image embeddings of printed Chinese characters with text embeddings of their corresponding Ideographic Description Sequences (IDS), i.e., radical sequences.
  • Introduces an additional contrastive loss between images of the same character with different font styles to improve domain generalization and reduce font bias.
  • Uses the pre-trained text encoder to generate canonical representations of radical sequences, which are then used as supervision in the CTR stage.
  • Employs an image-IDS matching head in the CTR stage that computes similarity between extracted character embeddings and learned canonical representations for inference.
  • Applies a matching head and a regularization term in the contrastive loss ($\mathcal{L}_{ctr}$) to improve feature discrimination and generalization.
  • Incorporates a pre-processing step to rotate vertical text images by 90° anticlockwise to mitigate orientation-related confusion in feature space.

Experimental results

Research questions

  • RQ1Can a pre-trained CLIP-like model effectively learn canonical representations of Chinese characters through image-IDS alignment?
  • RQ2Can the learned canonical representations enable zero-shot recognition of unseen Chinese characters in text images without fine-tuning?
  • RQ3How does the proposed two-stage framework compare to existing methods in terms of performance on both Chinese character recognition and text recognition benchmarks?
  • RQ4What is the impact of different decomposition levels (radical, stroke) on the performance of the CCR-CLIP model?
  • RQ5How robust is the method under low-data regimes, such as few-shot or limited training data scenarios?

Key findings

  • The CCR-CLIP model achieves state-of-the-art performance on Chinese character recognition benchmarks, outperforming previous methods with a clear margin.
  • On the CTR benchmark, the proposed method outperforms previous SOTA methods in most scenarios, particularly excelling in zero-shot and few-shot settings.
  • The method achieves a 3.14% performance gain on the web dataset and a 5.54% gain on the handwriting dataset when using the proposed matching head.
  • The regularization term in $\mathcal{L}_{ctr}$ improves average performance by 1.12% across four datasets.
  • The method maintains strong robustness in low-data regimes, outperforming TransOCR by a clear margin when training data is reduced on scene and document datasets.
  • Visualization with t-SNE confirms that the loss $\mathcal{L}_{I}$ improves feature clustering, especially for handwritten and noisy samples, reducing misclassification.

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.