Symmetrical Linguistic Feature Distillation with CLIP for Scene Text Recognition

Zixiao Wang, Hongtao Xie, Yuxin Wang, Jianjun Xu, Boqiang Zhang +1 more
10/8/2023
cs.CV

Official code: wzx99/CLIPOCR (38 stars, last commit 2023-10-20).

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.

View on arXivView PDF

Code Implementations(1)

wzx99/CLIPOCROfficial100%
387PythonJul 28, 20233 years ago

Cite this paper

@article{wang2023symmetrical,
  title  = {Symmetrical Linguistic Feature Distillation with CLIP for Scene Text Recognition},
  author = {Zixiao Wang and Hongtao Xie and Yuxin Wang and Jianjun Xu and Boqiang Zhang and Yongdong Zhang},
  year   = {2023},
  eprint = {2310.04999},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.04999v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.04999.svg)](https://codeofpaper.com/paper/2310.04999)

Discussion