InstructOCR: Instruction Boosting Scene Text Spotting
Chen Duan, Qianyi Jiang, Pei Fu, Jiamin Chen, Shengxi Li, Zining Wang, Shan Guo, Junfeng Luo
TL;DR
InstructOCR introduces an instruction-based framework for scene text spotting that aligns human language instructions with visual text. It employs a ResNet-50 image encoder and a BERT-based text encoder within an encoder-decoder architecture, generating per-text-instance sequences represented as $[x,y,t]$, with cross-attention fusing instruction cues. A set of ten templates derived from text attributes provides diverse supervisory signals, enabling strong OCR performance and transfer to scene-text VQA, achieving $+2.6\%$ on TextVQA and $+2.1\%$ on ST-VQA after pretraining with instructions. The work demonstrates SOTA results on multiple benchmarks and highlights the value of language-grounded instruction signals for OCR, while noting limitations related to training data scale for VQA tasks.
Abstract
In the field of scene text spotting, previous OCR methods primarily relied on image encoders and pre-trained text information, but they often overlooked the advantages of incorporating human language instructions. To address this gap, we propose InstructOCR, an innovative instruction-based scene text spotting model that leverages human language instructions to enhance the understanding of text within images. Our framework employs both text and image encoders during training and inference, along with instructions meticulously designed based on text attributes. This approach enables the model to interpret text more accurately and flexibly. Extensive experiments demonstrate the effectiveness of our model and we achieve state-of-the-art results on widely used benchmarks. Furthermore, the proposed framework can be seamlessly applied to scene text VQA tasks. By leveraging instruction strategies during pre-training, the performance on downstream VQA tasks can be significantly improved, with a 2.6% increase on the TextVQA dataset and a 2.1% increase on the ST-VQA dataset. These experimental results provide insights into the benefits of incorporating human language instructions for OCR-related tasks.
