Instruction-Guided Scene Text Recognition
Yongkun Du, Zhineng Chen, Yuchen Su, Caiyan Jia, Yu-Gang Jiang
TL;DR
This work tackles scene text recognition by reframing it as instruction learning, where a lightweight instruction encoder and a cross-modal fusion module learn from rich $\langle condition,question,answer\rangle$ triplets that describe character attributes. The method supports multiple recognition pipelines (PR, AR, RI, ER) and can leverage attribute-prediction instructions for zeroshot-like inference, enabling robust performance with a small model (24.1M) and fast inference. Empirical results on English and Chinese benchmarks show state-of-the-art or competitive accuracy, with clear gains from instruction diversity and targeted strengthening for rare and morphologically similar characters. The approach offers practical benefits for edge/embedded deployment and points to future work on long-text recognition and OCR foundation-model integration, underscoring the value of structured, instruction-based cross-modal learning for fine-grained text understanding.
Abstract
Multi-modal models have shown appealing performance in visual recognition tasks, as free-form text-guided training evokes the ability to understand fine-grained visual content. However, current models cannot be trivially applied to scene text recognition (STR) due to the compositional difference between natural and text images. We propose a novel instruction-guided scene text recognition (IGTR) paradigm that formulates STR as an instruction learning problem and understands text images by predicting character attributes, e.g., character frequency, position, etc. IGTR first devises $\left \langle condition,question,answer\right \rangle$ instruction triplets, providing rich and diverse descriptions of character attributes. To effectively learn these attributes through question-answering, IGTR develops a lightweight instruction encoder, a cross-modal feature fusion module and a multi-task answer head, which guides nuanced text image understanding. Furthermore, IGTR realizes different recognition pipelines simply by using different instructions, enabling a character-understanding-based text reasoning paradigm that differs from current methods considerably. Experiments on English and Chinese benchmarks show that IGTR outperforms existing models by significant margins, while maintaining a small model size and fast inference speed. Moreover, by adjusting the sampling of instructions, IGTR offers an elegant way to tackle the recognition of rarely appearing and morphologically similar characters, which were previous challenges. Code: https://github.com/Topdu/OpenOCR.
