Multi-modal In-Context Learning Makes an Ego-evolving Scene Text Recognizer
About
Scene text recognition (STR) in the wild frequently encounters challenges when coping with domain variations, font diversity, shape deformations, etc. A straightforward solution is performing model fine-tuning tailored to a specific scenario, but it is computationally intensive and requires multiple model copies for various scenarios. Recent studies indicate that large language models (LLMs) can learn from a few demonstration examples in a training-free manner, termed "In-Context Learning" (ICL). Nevertheless, applying LLMs as a text recognizer is unacceptably resource-consuming. Moreover, our pilot experiments on LLMs show that ICL fails in STR, mainly attributed to the insufficient incorporation of contextual information from diverse samples in the training stage. To this end, we introduce E$^2$STR, a STR model trained with context-rich scene text sequences, where the sequences are generated via our proposed in-context training strategy. E$^2$STR demonstrates that a regular-sized model is sufficient to achieve effective ICL capabilities in STR. Extensive experiments show that E$^2$STR exhibits remarkable training-free adaptation in various scenarios and outperforms even the fine-tuned state-of-the-art approaches on public benchmarks. The code is released at https://github.com/bytedance/E2STR .
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Handwriting Recognition | IAM | -- | 32 | |
| Salient Object Detection | NEU-RSDDS-AUG | mAP81.04 | 19 | |
| Scene Text Recognition | IIIT 3000 Regular | Word Accuracy99.23 | 9 | |
| Scene Text Recognition | SVT Regular (647) | Word Accuracy98.61 | 9 | |
| Scene Text Recognition | IC13 Regular (1015) | Word Accuracy98.72 | 9 | |
| Scene Text Recognition | IC15 Irregular | Word Accuracy93.82 | 9 | |
| Scene Text Recognition | CT80 Irregular (288) | Word Accuracy99.31 | 9 | |
| Scene Text Recognition | SVTP Irregular (645) | Word Accuracy96.74 | 9 | |
| Scene Text Recognition | CTW Irregular | Word Accuracy88.99 | 8 | |
| Scene Text Recognition | Total-Text (TT) Irregular | Word Accuracy94.68 | 8 |