[Paper Review] Scene Text Recognition with Permuted Autoregressive Sequence Models
PARSeq proposes a unified, permuted autoregressive sequence model for scene text recognition that jointly processes image and language features using shared weights and bidirectional context, achieving state-of-the-art accuracy (91.9% on synthetic data, 96.0% on real data) with improved efficiency, robustness to arbitrary text orientation, and reduced reliance on external language models by eliminating error-prone rectification of correct predictions.
Context-aware STR methods typically use internal autoregressive (AR) language models (LM). Inherent limitations of AR models motivated two-stage methods which employ an external LM. The conditional independence of the external LM on the input image may cause it to erroneously rectify correct predictions, leading to significant inefficiencies. Our method, PARSeq, learns an ensemble of internal AR LMs with shared weights using Permutation Language Modeling. It unifies context-free non-AR and context-aware AR inference, and iterative refinement using bidirectional context. Using synthetic training data, PARSeq achieves state-of-the-art (SOTA) results in STR benchmarks (91.9% accuracy) and more challenging datasets. It establishes new SOTA results (96.0% accuracy) when trained on real data. PARSeq is optimal on accuracy vs parameter count, FLOPS, and latency because of its simple, unified structure and parallel token processing. Due to its extensive use of attention, it is robust on arbitrarily-oriented text which is common in real-world images. Code, pretrained weights, and data are available at: https://github.com/baudm/parseq.
Motivation & Objective
- To address the limitations of autoregressive language models in scene text recognition, including unidirectional context bias and inefficient two-stage inference with external language models.
- To unify context-free non-autoregressive and context-aware autoregressive inference into a single, efficient model architecture.
- To improve robustness to arbitrarily oriented and distorted text common in real-world images.
- To eliminate error-prone rectification of correct predictions by external language models through joint image-context modeling.
- To achieve state-of-the-art performance with minimal computational overhead and low latency via parallel token processing and efficient attention mechanisms.
Proposed method
- PARSeq uses permutation language modeling to learn an ensemble of internal autoregressive language models with shared weights, enabling bidirectional context learning within a single forward pass.
- It employs a transformer-based architecture with cross-modal attention to jointly attend to visual features and predicted tokens, allowing iterative refinement of predictions.
- The model performs both initial decoding and iterative refinement in a unified manner, avoiding the need for separate context-free and context-aware models.
- By using permuted autoregressive modeling, PARSeq enables parallel token generation while maintaining strong autoregressive inductive bias, reducing latency compared to standard autoregressive decoding.
- The method leverages self-attention mechanisms to model long-range dependencies and is robust to text orientation changes due to its attention-based feature integration.
- Training is performed on synthetic data to improve generalization, and the model is fine-tuned on real data to achieve high accuracy on real-world benchmarks.
Experimental results
Research questions
- RQ1Can a unified model architecture replace the two-stage pipeline of context-free and context-aware models in scene text recognition while improving accuracy and efficiency?
- RQ2How does permuted autoregressive modeling with shared weights improve robustness to arbitrarily oriented and distorted text compared to standard autoregressive models?
- RQ3To what extent can internal language modeling reduce the risk of erroneous rectification of correct predictions compared to external language models?
- RQ4What is the performance gain of using bidirectional context via permutation modeling in a single, unified inference pass?
- RQ5Can a model trained on synthetic data achieve state-of-the-art results on real-world scene text benchmarks when fine-tuned on real data?
Key findings
- PARSeq achieves a new state-of-the-art accuracy of 91.9% on synthetic data benchmarks, outperforming prior methods.
- On real-world data, PARSeq achieves 96.0% accuracy, establishing a new SOTA on multiple benchmarks including Uber-Text and COCO-Text.
- PARSeq correctly recognizes all samples on the Uber-Text dataset, including highly rotated and vertically oriented text, where other models fail.
- In qualitative comparisons, PARSeq is the only model to correctly recognize challenging samples like 'Chevron' (with occluded characters) and 'GUNNESS' (low resolution, occluded).
- PARSeq outperforms ABINet and ViTSTR-S on curved and cursive text (e.g., 'Creative' in cursive font), where other models fail to recognize the correct string.
- The model achieves optimal trade-offs in accuracy, parameter count, FLOPS, and latency due to its unified, parallelizable architecture and efficient attention mechanism.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.