cs.CVOct 30, 2026

FlexReader: Towards Adaptive Decoding Paths for Efficient Arbitrary-Length Scene Text Recognition

Authors: Zhibin Ma, Pengwen Dai, Zhigang Yao, Xugong Qin, Wenqi Ren, Xiaochun Cao

Organizations: Shenzhen Campus of Sun Yat-sen University · Shenzhen Key Laboratory of Adversarial Artificial Intelligence · Chongqing University · Nanjing University of Science and Technology

Abstract

Existing Scene Text Recognition (STR) models are inherently coupled with a specific decoding strategy by their training paradigms, limiting their flexibility in deployment across diverse recognition scenarios. In this paper, we propose FlexReader, an STR model that supports multiple decoding strides, enabling a single model to achieve an optimal accuracy-efficiency trade-off across different datasets. Specifically, we first introduce a Sub-string Perception module to perceive the target sub-string from visual features, followed by multiple parallel decoding blocks that independently decode each character in the sub-string. During inference, FlexReader supports decoding with arbitrary strides within the perceived sub-string range. Furthermore, we propose Adaptive Prefix Decoding, which adaptively selects the decoding stride at each step based on the model's confidence in the decoded characters, thereby identifying the optimal decoding path for each input. Experimental results demonstrate that FlexReader exhibits robust recognition capability across a diverse range of benchmarks, including those featuring long text, curved text, and occlusions. It consistently outperforms existing decoding strategies in recognition accuracy while achieving up to 6-flod decoding speedup over autoregressive decoding.

Figures & tables

Explore similar work

CardsList
  1. Out-of-Length Scene Text Recognition: A Two-Axis Diagnosis and a Training-Free Fix

    Jul 25, 2026Zobeir Raisi, John ZelekScene Text RecognitionLength Generalization

  2. 2D Rotary Position Embedding for Scene Text Recognition with Transformers

    Jul 15, 2026Zobeir RaisiRotary Positional EmbeddingsCross-Attention