Multi-Granularity Prediction with Learnable Fusion for Scene Text Recognition

Cheng Da, Peng Wang, Cong Yao
7/25/2023
cs.CV

Official code: AlibabaResearch/AdvancedLiterateMachinery (1,834 stars, Apache-2.0, last commit 2026-03-17).

Abstract

Due to the enormous technical challenges and wide range of applications, scene text recognition (STR) has been an active research topic in computer vision for years. To tackle this tough problem, numerous innovative methods have been successively proposed, and incorporating linguistic knowledge into STR models has recently become a prominent trend. In this work, we first draw inspiration from the recent progress in Vision Transformer (ViT) to construct a conceptually simple yet functionally powerful vision STR model, which is built upon ViT and a tailored Adaptive Addressing and Aggregation (A$^3$) module. It already outperforms most previous state-of-the-art models for scene text recognition, including both pure vision models and language-augmented methods. To integrate linguistic knowledge, we further propose a Multi-Granularity Prediction strategy to inject information from the language modality into the model in an implicit way, \ie, subword representations (BPE and WordPiece) widely used in NLP are introduced into the output space, in addition to the conventional character level representation, while no independent language model (LM) is adopted. To produce the final recognition results, two strategies for effectively fusing the multi-granularity predictions are devised. The resultant algorithm (termed MGP-STR) is able to push the performance envelope of STR to an even higher level. Specifically, MGP-STR achieves an average recognition accuracy of $94\%$ on standard benchmarks for scene text recognition. Moreover, it also achieves state-of-the-art results on widely-used handwritten benchmarks as well as more challenging scene text datasets, demonstrating the generality of the proposed MGP-STR algorithm. The source code and models will be available at: \url{https://github.com/AlibabaResearch/AdvancedLiterateMachinery/tree/main/OCR/MGP-STR}.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A collection of original, innovative ideas and algorithms towards Advanced Literate Machinery. This project is maintained by the OCR Team in the Language Technology Lab, Tongyi Lab, Alibaba Group.

1,834195C, C++Sep 28, 20227 months agoApache-2.0
artificial-intelligencecomputer-visiondocumentdocument-analysisdocument-intelligence+15 more

Similar Papers

Cite this paper

@article{da2023multigranularity,
  title  = {Multi-Granularity Prediction with Learnable Fusion for Scene Text Recognition},
  author = {Cheng Da and Peng Wang and Cong Yao},
  year   = {2023},
  eprint = {2307.13244},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.13244v1}
}

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/2307.13244.svg)](https://codeofpaper.com/paper/2307.13244)

Discussion