TL;DR
Instruction-Guided Scene Text Recognition (IGTR) reformulates scene text recognition (STR) as a lightweight cross-modal instruction learning task. By training a model to answer diverse questions about character attributes (like frequency and position), IGTR achieves state-of-the-art accuracy and unprecedented pipeline flexibility—all within a compact 24.1M parameter footprint suitable for edge devices.
What Problem Does This Paper Address?
Traditional Scene Text Recognition (STR) models typically follow a rigid pipeline: they map visual features directly to character sequences, either simultaneously (parallel recognition) or one-by-one (autoregressive recognition). However, if the model's attention drifts or features are misaligned, it easily misrecognizes characters.
While Multi-modal Large Language Models (MLLMs) excel at visual QA and text comprehension, they are computationally massive and impractical for mobile or edge deployment. Furthermore, standard instruction-tuning strategies don't translate well to single-word text images because a single word lacks the rich semantic context found in natural language sentences.
The authors bridge this gap by focusing on character-central properties (e.g., character status, frequency, and position) to guide the model toward a deeper, more robust structural understanding of text images.
Methods
The core innovation of IGTR is treating text recognition as a multi-task question-answering problem using a novel ⟨condition, question, answer⟩ triplet format.
Instead of relying on a massive, resource-heavy LLM text encoder, the authors designed a highly efficient, lightweight architecture:
- Instruction Encoder: A compact module consisting of five learnable embedding layers (character, frequency, position, status, and constraint) that maps text instructions directly into attribute-level representations.
- Image Encoder: Uses an SVTR-B backbone to extract visual features.
- Cross-Modal Feature Fusion (CMFF): A shared multi-head attention module that iteratively fuses the question, condition, and image embeddings.
- Multi-Task Answer Head: Features four distinct linear classifiers (Character, Frequency, Status, and Position heads) to predict answers.
Because the model is guided entirely by instructions, users can dynamically alter the recognition pipeline at inference time simply by changing the prompt. A single trained IGTR model can perform Parallel Recognition (PR), Autoregressive Recognition (AR), Re-Identification (RI) (double-checking specific characters), or Extrapolating Recognition (ER) (stepwise extension for ultra-long text).
Datasets
The model was trained and evaluated across extensive English and Chinese benchmarks:
- English Training: MJSynth (MJ), SynthText (ST), and the real-world Union14M-L training set (~3.2 million images).
- English Evaluation: Six classic benchmarks (IC13, SVT, IIIT, IC15, SVTP, CUTE), the Union14M-L benchmark (containing 7 challenging subsets like curve, artistic, and contextless text), and the Occluded Scene Text (OST) dataset.
- Chinese Evaluation: The Chinese Text Recognition (CTR) dataset, which covers Scene, Web, Document, and Handwriting styles.
Key Insights and Ideas
- Comprehension-First Paradigm: Forcing the model to answer analytical questions about the image (e.g., "Which characters appear 2 times?") compels it to learn fine-grained visual-textual correlations before attempting final recognition. This yields much higher robustness against distortion and occlusion.
- Dynamic Pipeline Switching: Traditional models are locked into being either parallel or autoregressive. IGTR proves that a single set of weights can execute multiple decoding strategies seamlessly based purely on the prompt context.
- Targeted Strengthening (TS): The instruction-guided framework allows an elegant fix for rare or morphologically similar characters (a massive headache in Chinese OCR). By simply adjusting the training mix to sample more QA pairs focusing on lookalike characters (e.g., "大" vs "太"), the model learns to sharply differentiate them without changing the network architecture.
Key Results
- Efficiency: The entire model requires only 24.1M parameters and achieves an inference latency of just 4ms to 10ms per text instance on a single NVIDIA 1080Ti GPU.
- Performance: When trained on synthetic datasets, IGTR-AR achieved top-tier performance, outperforming competitive models like LPV-B by 1.0% on common benchmarks and a staggering 5.67% on the challenging Union14M-L benchmark.
- Pre-training Superiority: Pre-training IGTR on attribute prediction instructions outperformed popular self-supervised methods like contrastive learning (SeqCLR) and masked auto-encoders (MAERec) when fine-tuned on real-world data.
Limitations and Future Work
While highly versatile, the authors note that the Extrapolating Recognition (ER) pipeline can occasionally fall into loops of repeated recognition errors if a specific sub-string appears multiple times within a very long text sequence.
Moving forward, the authors suggest expanding this lightweight framework into a unified, small-scale OCR foundation model capable of handling broader document understanding tasks beyond scene text recognition.
Summary updated