Efficient OCR for Building a Diverse Digital History
Jacob Carlson, Tom Bryan, Melissa Dell
TL;DR
This work introduces EffOCR, a retrieval-based OCR framework that treats character and word recognition as image-to-embedding retrieval rather than sequence-to-sequence decoding with a language model. By localizing text regions and embedding crops in a contrastively learned metric space, decoding is achieved via nearest-neighbor search against an offline exemplar index, enabling strong performance with limited labeled data across diverse historical scripts. The authors demonstrate competitive or superior character error rates on Japanese, English, and Greek datasets, with substantial sample efficiency and dramatic CPU-inference speed advantages, making large-scale digitization of archives feasible and inviting community-driven extensions. The approach reduces reliance on language models, supports adding new characters at inference time, and aligns with goals of making digital history more representative of documentary history while maintaining open-source accessibility and low environmental impact.
Abstract
Thousands of users consult digital archives daily, but the information they can access is unrepresentative of the diversity of documentary history. The sequence-to-sequence architecture typically used for optical character recognition (OCR) - which jointly learns a vision and language model - is poorly extensible to low-resource document collections, as learning a language-vision model requires extensive labeled sequences and compute. This study models OCR as a character level image retrieval problem, using a contrastively trained vision encoder. Because the model only learns characters' visual features, it is more sample efficient and extensible than existing architectures, enabling accurate OCR in settings where existing solutions fail. Crucially, the model opens new avenues for community engagement in making digital history more representative of documentary history.
