TL;DR
This paper presents a semi-supervised framework to improve Optical Character Recognition (OCR) for endangered languages by leveraging large amounts of unannotated document images. By combining iterative self-training with a novel lexically-aware decoding strategy—which uses a weighted finite-state automaton (WFSA) to favor frequently occurring "known" words—the authors achieve a 15–29% relative reduction in error rates over state-of-the-art supervised baselines.
What Problem Does This Paper Address?
Much of the world’s linguistic heritage is trapped in non-digitized books. While OCR can digitize these texts, standard tools (like Google Vision) perform poorly on endangered languages due to unique orthographies and a lack of training data.
Neural "post-correction" models can fix these OCR errors, but they typically require large amounts of manually transcribed data—a luxury many endangered language communities don't have. However, there is often an abundance of unannotated raw images. The challenge is: How can we use these raw images to improve OCR accuracy without human intervention?
Methods
The authors propose a two-pronged semi-supervised approach:
- Self-Training with Pseudo-Labels:
- A base model (an attention-based LSTM) is trained on a small set of "gold" (human-transcribed) data.
- This model predicts transcriptions for the large set of unannotated images (creating "pseudo-labels").
- The model is then "pseudo-trained" using a language modeling objective on these outputs before being fine-tuned again on the gold data. This process repeats iteratively.
-
Lexically-Aware Decoding: To prevent the model from "hallucinating" or reinforcing noise from the pseudo-labels, the authors introduce a joint decoding strategy. They combine the neural model's predictions with a count-based language model implemented as a Weighted Finite-State Automaton (WFSA).
-
Known Words: The WFSA scores sequences based on word frequencies found in the pseudo-labeled data.
- Unknown Words: To handle words not seen in the training set, they integrate a character-level $n$-gram model into the WFSA.
- Efficiency: By using standard WFSA algorithms (determinization and minimization), they ensure the decoding process is fast and can be integrated directly into the beam search of the neural model.
Datasets
The study evaluates four typologically diverse endangered languages:
- Ainu (ain): Written in Latin script; data from epic poetry.
- Griko (grk): An endangered Greek dialect; written in a mix of Latin and Greek alphabets.
- Yakkha (ybh): Written in Devanagari script; data from children's books.
- Kwak’wala (kwk): Newly introduced in this paper. It uses the "Boas orthography," which includes unique Latin characters and diacritics that standard OCR systems struggle to recognize.
Key Insights and Ideas
- The "Inconsistency" Advantage: The authors observed that while OCR models make many mistakes, those mistakes are often inconsistent. However, the correct form of a word tends to appear more frequently across a large corpus. The count-based LM in the WFSA exploits this statistical signal to "nudge" the decoder toward the correct spelling.
- Synergy is Essential: A key finding was that self-training and lexical decoding are mutually reinforcing. In some cases (like Ainu), using self-training alone actually decreased performance because the model reinforced its own errors. Only when paired with lexically-aware decoding did the performance significantly improve.
- Structural Biases Matter: The base model isn't just a standard seq2seq; it uses specific biases for OCR, such as "diagonal attention" (since OCR is mostly a monotonic 1-to-1 mapping) and a "copy mechanism" to handle rare characters.
Key Results
- Error Reduction: The proposed method reduced Character Error Rate (CER) and Word Error Rate (WER) by 15% to 29% relative to the previous state-of-the-art supervised baseline.
- Kwak’wala Success: On the newly introduced Kwak’wala dataset, the post-correction model reduced the Word Error Rate of Google Vision from a staggering 82.08% down to 26.38%.
- Data Efficiency: The authors showed that even a small amount of unannotated data (as little as 12.5% of the available set) provides a noticeable boost in performance.
Limitations and Future Work
- Morphological Richness: The current character $n$-gram model for unknown words doesn't explicitly account for complex morphology (roots, prefixes, suffixes). The authors suggest that integrating morphological analysis could help the model better predict unseen inflections of known words.
- Hallucination Risks: While rare, the lexically-aware decoder can sometimes follow an incorrect path in the WFSA if a wrong word has a very high frequency, leading to errors that are "considerably different from the target."
- External Knowledge: Future work aims to incorporate external "word lists" (like Swadesh lists) compiled by linguists to further anchor the decoding process in low-resource settings.
Summary updated