Skip to main content
QUICK REVIEW

[Paper Review] Symmetrical Linguistic Feature Distillation with CLIP for Scene Text Recognition

Zixiao Wang, Hongtao Xie|arXiv (Cornell University)|Oct 8, 2023
Handwritten Text Recognition TechniquesComputer Science3 citations
TL;DR

This paper proposes CLIP-OCR, a symmetrical linguistic feature distillation framework that leverages both visual and linguistic knowledge from CLIP for scene text recognition. By reversing the CLIP text encoder to create a symmetric image-to-text distillation flow and introducing a Linguistic Consistency Loss, CLIP-OCR achieves 93.8% average accuracy across six STR benchmarks, marking the first end-to-end linguistic-guided distillation in STR using CLIP.

ABSTRACT

In this paper, we explore the potential of the Contrastive Language-Image Pretraining (CLIP) model in scene text recognition (STR), and establish a novel Symmetrical Linguistic Feature Distillation framework (named CLIP-OCR) to leverage both visual and linguistic knowledge in CLIP. Different from previous CLIP-based methods mainly considering feature generalization on visual encoding, we propose a symmetrical distillation strategy (SDS) that further captures the linguistic knowledge in the CLIP text encoder. By cascading the CLIP image encoder with the reversed CLIP text encoder, a symmetrical structure is built with an image-to-text feature flow that covers not only visual but also linguistic information for distillation.Benefiting from the natural alignment in CLIP, such guidance flow provides a progressive optimization objective from vision to language, which can supervise the STR feature forwarding process layer-by-layer.Besides, a new Linguistic Consistency Loss (LCL) is proposed to enhance the linguistic capability by considering second-order statistics during the optimization. Overall, CLIP-OCR is the first to design a smooth transition between image and text for the STR task.Extensive experiments demonstrate the effectiveness of CLIP-OCR with 93.8% average accuracy on six popular STR benchmarks.Code will be available at https://github.com/wzx99/CLIPOCR.

Motivation & Objective

  • To address the underutilization of linguistic knowledge in CLIP-based scene text recognition models.
  • To enable bidirectional knowledge transfer between vision and language by constructing a symmetric distillation flow.
  • To improve recognition robustness under challenging conditions such as low-quality or complex-background images.
  • To design a distillation framework that effectively transfers linguistic priors from CLIP’s text encoder to the recognition decoder.
  • To establish a progressive, layer-by-layer optimization objective using CLIP’s intrinsic vision-language alignment.

Proposed method

  • Proposes a Symmetrical Distillation Strategy (SDS) that connects the CLIP image encoder with a reversed CLIP text encoder to form a symmetric image-to-text feature flow.
  • Uses the ground-truth text as input to the reversed CLIP text encoder to generate precise linguistic supervision for the recognition decoder.
  • Introduces a Linguistic Consistency Loss (LCL) that aligns second-order statistics of hidden features to enhance linguistic knowledge learning.
  • Cascades the CLIP image encoder and reversed text encoder to create a progressive distillation path from visual features to linguistic representations.
  • Employs CLIP’s pre-trained contrastive alignment to ensure natural correspondence between image and text features during distillation.
  • Adapts the CLIP model’s feature space to STR by maintaining compatibility with standard 32×128 input resolution and small-batch training.

Experimental results

Research questions

  • RQ1Can linguistic knowledge from CLIP’s text encoder be effectively leveraged in scene text recognition through knowledge distillation?
  • RQ2How can a symmetric distillation flow be constructed to enable bidirectional transfer between vision and language in STR?
  • RQ3Does aligning second-order statistics of features improve linguistic representation learning in the recognition decoder?
  • RQ4Can CLIP’s inductive bias for vision-language alignment be preserved under small input resolutions typical in STR?
  • RQ5Is there a way to create a progressive, layer-wise optimization objective that combines visual and linguistic supervision?

Key findings

  • CLIP-OCR achieves 93.8% average accuracy across six standard scene text recognition benchmarks, outperforming prior CLIP-based methods.
  • The model demonstrates superior robustness on low-quality, complex-background, and stylized text images, as shown in qualitative results.
  • The Linguistic Consistency Loss (LCL) significantly improves the model’s ability to handle character-level and word-level variations in text.
  • CLIP maintains strong alignment even at 32×128 input resolution, validating its suitability for STR with minimal computational overhead.
  • The symmetric distillation flow enables effective linguistic guidance without requiring additional fine-tuning or auxiliary tasks.
  • CLIP-OCR introduces a novel, unidirectional feature flow from image to text that enables progressive, end-to-end distillation in STR.

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.