Exploring In-Context Learning for Handwritten Text Recognition
Abstract
Handwritten Text Recognition (HTR) systems have become an indispensable tool for the digitization of historical documents. Not only do they cut down time and cost, but they also allow democratizing access and processing of their contents by generating their transcripts. However, literature in HTR currently focuses mostly on specialized models that require large amounts of annotated samples to achieve satisfactory performance. We explore the use of In-Context Learning with pre-trained Vision-Language Models (VLMs) to create a transcription pipeline without updating the model's parameters. We then evaluate this pipeline across multiple collections and models, and demonstrate that general-purpose VLMs can be effectively taught how to transcribe handwritten text from images. To assess how our observations may translate to practical applications, we evaluate the performance in a Cross-Domain (CD) scenario, where context examples are drawn from a different collection than the query image. Results in both the controlled In-Domain (ID) scenario and the realistic CD scenario follow the same patterns. First, as context size grows, the error range is expected to narrow towards the average performance. Thus, larger context sizes sacrifice the performance of the oracle-best sampling for lower expected error rates. The results obtained show that, without any parameter updates, this methodology has strong potential to compete with traditional HTR in the presence of domain shift. Moreover, we show and argue that some context samplings work better than others and suggest more effort should be put into finding an ideal sampling method in future work.
Create a lesson
Metadata
- Comments
- 19 pages, 3 figures
Related papers
Are In-Context Images Worth 10 Dimensions?
Shared title terminologycs.CVAdhemar de Senneville, Xavier Bou, Jérémy Anger et al.
Towards Closing the Performance Gap in Cross-Modal Place Recognition
Shared title terminologycs.CVOfer Idan, Dan Badur, Yoli Shavit
Probing Visual Idiosyncrasies in Text-to-Image Models
Shared title terminologycs.CVYongqian Peng, Hongjie Li, Yichao Zhou et al.
Seeing the Right Context: Grounded On-Policy Distillation for Remote Sensing
Shared title terminologycs.CVYichang Luo, Hourun Zhu, Shixiong Liu et al.
Find the Clue, Not the Scene: Rethinking Reasoning for Entity Recognition in Vision-Language Models
Shared title terminologycs.CVKyungmin Min, Soyeon Kim, Junseok Kim et al.
Recalling the Past to Answer the Present: Context-Aware Multi-Evidence Reasoning for Streaming Video Question Answering
Shared title terminologycs.CVCui Yakun, Tiantian Geng, Huixiang Kong et al.