Symmetrical Linguistic Feature Distillation with CLIP for Scene Text Recognition
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Scene Text Recognition | 6 common benchmarks (test) | Word Accuracy (IIIT)98.8 | 57 | |
| Scene Text Recognition | Union14M Benchmark | Curve Accuracy84.6 | 42 | |
| Scene Text Recognition | Uber-Text (test) | Word Accuracy42.4 | 35 | |
| Scene Text Recognition | COCO-text (test) | Accuracy66.5 | 33 | |
| Scene Text Recognition | WordArt | Accuracy83.5 | 24 | |
| Scene Text Recognition | COCO | Accuracy78.3 | 24 | |
| Scene Text Recognition | ArT | Accuracy82.7 | 24 | |
| Scene Text Recognition | UBER | Accuracy86.3 | 24 | |
| Scene Text Recognition | ArT (test) | Word Accuracy70.5 | 19 |