FlexReader: Towards Adaptive Decoding Paths for Efficient Arbitrary-Length Scene Text Recognition
Abstract Overview
FlexReader is a scene text recognition model designed to vary its decoding stride according to the input. It encodes visual evidence for an upcoming substring and uses parallel branches to predict its characters. Adaptive Prefix Decoding accepts a high-confidence prefix and revisits subsequent predictions, balancing accuracy and decoding time. Experiments cover common and challenging benchmarks, although the reported implementation uses a maximum sequence length of 25 characters.
Novelty
The work adapts multi-token prediction to scene text recognition by separating substring perception from character-level prediction. This allows one trained model to use fixed or confidence-adaptive decoding strides without a separate draft-and-verification stage.
Results
In a controlled decoder comparison, FlexReader with adaptive decoding achieved 78.1% accuracy on texts longer than 16 characters, versus 72.4% for the autoregressive decoder, with decoding times of 32.29 ms and 193.23 ms, respectively. Across benchmark comparisons, FlexReader was competitive across multiple benchmarks, achieving up to 89.26% average accuracy on Union14M benchmarks with a larger backbone and synthetic training data.
Key Points
- Parallel prediction branches decode characters from a shared substring representation, supporting strides from one character up to the configured perception length.
- Increasing the confidence threshold generally improved accuracy while increasing decoding time; the authors selected 0.7 as their default trade-off.
- Adding the synthetic UnionST training set improved the base model's average accuracy from 85.86% to 88.53% on the Union14M benchmarks.