WorksComputer Science
Coverage Governs Accuracy: When to Expand the Lexicon and When to Fall Back in Low-Resource Manchu OCR
Abstract
Character-level OCR for low-resource Manchu often produces near-miss spelling errors. Lexicon-constrained decoding can correct such errors with lexical knowledge, but a fixed dictionary cannot cover the many unseen word forms produced by agglutinative word formation. We study whether morphological expansion alleviates this limitation, and how the expansion size and confidence fallback affect recognition. We segment the training transcriptions with a dictionary-based stem list, extract roots and suffix chains from them, generate about 510k candidates, select the expansion size through frequency ranking on the validation set, and decompose accuracy under hard lexicon constraints into the product of coverage and in-lexicon precision. Across three CRNN training seeds, adding 250k candidates to a base dictionary of about 29k words raises the type accuracy on unseen combinations of seen roots from 63.6% to 86.3%, and overall token accuracy from 82.4% to 84.2%. Adding all candidates lowers overall token accuracy to 81.5%, showing that the coverage gain comes with a loss of in-lexicon precision. A further comparison shows that the base dictionary with confidence fallback performs best overall among the CRNN systems tested, reaching 76.1% type and 85.5% token accuracy and outperforming the expanded lexicon both with and without fallback. A Transformer recognizer shows similar trends. These results indicate that morphological expansion relieves the constraint of a fixed dictionary, but a larger lexicon does not guarantee better recognition; in the present low-resource Manchu OCR setting, a selective combination of reliable lexical constraints and open recognition is more effective.
Introduction
Large collections of Manchu archives and books record the history, administration and social life of the Qing dynasty, but the text in their scanned images must be converted into searchable and collatable text before it can support further organization and research. Optical character recognition (OCR) is the basis of this process. The vertical, cursive script of Manchu and the limited amount of annotated data make reliable recognition difficult. Under low-resource conditions, the outputs of character-level recognizers are often close to the correct answer but contain a few spelling errors: on our test set, 73–78% of the greedy errors on the two main generalization tiers are a single edit away from the correct word. How to bring in usable linguistic knowledge beyond the limited training data is therefore an important question for improving Manchu OCR.
Lexicon-constrained decoding is a direct way to use such knowledge. Restricting decoding to a lexicon rules out some implausible strings and lets the system reselect among candidate words on the basis of image evidence. The lexicon thus provides an explicit lexical prior, so that recognition no longer relies entirely on character-by-character prediction. The constraint, however, has a clear boundary: the system can output the correct word only if the lexicon already contains it.
This boundary is particularly pronounced in agglutinative languages such as Manchu. Manchu builds different word forms by attaching one or more suffixes to a stem, and some suffixes vary with the vowel-harmony class of the stem. For example, the perfective participle suffix has the forms -ha, -he and -ho: ara- ‘write’ with -ha gives araha ‘wrote’, and gene- ‘go’ with -he gives genehe ‘went’. araha can be further followed by -ngge, giving arahangge ‘that which was written’. Stems, suffix variants and their multi-layer combinations together widen the range of word forms found in real documents [7, 19]. Moreover, some affixes in Qing-dynasty Manchu documents can be written either joined to the stem or separately, so morphological membership does not always coincide with written word boundaries. A fixed dictionary can therefore hardly exhaust the word-form combinations in real documents, and its coverage in word-level OCR also depends on the transliteration and segmentation conventions of its entries and of the image labels. In our test set, only 0.8% of word images correspond to a form seen in training. Even when the root has been seen, a new root–suffix combination may be missing from the base dictionary. Based on this observation, we segment the training transcriptions using the base dictionary, extract roots and suffix chains from them, and generate and filter candidate word forms, to examine how far morphological expansion can make up for the limited coverage of a fixed dictionary.
Does expanding the lexicon, however, necessarily keep improving recognition accuracy? New candidates may add correct answers, but they also add word forms that compete with the correct ones. For inputs the base dictionary already covers, more candidates may bring no further benefit and may instead lead the recognizer to a wrong result. The coverage gain of expansion and the loss of in-lexicon precision therefore need to be measured together. Furthermore, when the correct word is probably not in the lexicon, should the system still enforce the lexicon constraint, or should it retain the ability of the character-level recognizer to output unlisted forms? Together, these two questions determine at what scale, and in what way, lexical knowledge should take part in low-resource OCR.
In this work, we address these questions by comparing morphological expansion with confidence fallback. We first decompose accuracy under hard lexicon constraints exactly into the product of lexicon coverage and in-lexicon precision, which separates whether the correct answer is in the candidate space from whether the recognizer can select it from the candidates (Figure 1). Starting from a base lexicon of 29,024 words, we then generate about 510k candidates from the roots and suffix chains in the training data, rank them by frequency and control how many of them enter the lexicon. In parallel, we introduce confidence fallback, which compares the CTC ([9]) scores of the constrained result and the greedy result and adopts the open output when the constrained result lacks sufficient support. Both the lexicon size and the fallback threshold are selected on the validation set. The evaluation is stratified into seen words, unseen combinations of seen roots, unseen roots and unanalysable forms, to examine gains and losses under different lexical conditions.

Figure 1. Systems on the coverage–precision plane (token level, all 5,389 test images, mean of three CRNN seeds). Dashed curves mark equal accuracy (coverage × precision). Adding 250k generated words () or all 510k candidates (full union) to the dictionary increases coverage but lowers precision. Confidence fallback reaches full coverage and lies on a higher accuracy contour. Open-decoding systems have full coverage by construction.
Morphological expansion does relieve the constraint of a fixed dictionary, but closer experiments reveal the limits of its benefit. Across three CRNN training seeds, adding 250k ranked candidates raises the type accuracy on unseen combinations of seen roots from 63.6% to 86.3%, and token accuracy on the full test set from 82.4% to 84.2%. Adding all candidates, however, lowers overall token accuracy to 81.5%, and the drop is especially pronounced on the unseen-root tier, where the base dictionary already covers the vast majority of images. Confidence fallback can alleviate insufficient coverage, but combining it with lexicon expansion does not necessarily help: among the CRNN systems, the base dictionary with fallback achieves the highest overall type accuracy of 76.1% and token accuracy of 85.5%, outperforming the 250k-candidate lexicon both with and without fallback. Even under oracle fallback, which routes each image according to whether its correct word is in the lexicon, the base dictionary still reaches a higher token accuracy than the expanded lexicon. These results suggest that, in the present low-resource Manchu OCR setting, raising lexical coverage also requires controlling the precision cost of the constraint, and that a selective combination of a reliable lexicon and open recognition is more effective than simply enlarging the candidate space.
Our main contributions are as follows:
We build and evaluate a morphology-driven lexicon expansion scheme. Using the dictionary as the basis for segmentation, we extract roots and suffix chains from the training transcriptions, generate about 510k candidates, and control the expansion size through frequency ranking and validation-set selection, to alleviate the limited coverage of a fixed dictionary for unseen word forms.
We reveal the benefits and limits of lexicon expansion. Through the coverage–in-lexicon precision decomposition and controlled comparisons of candidate size, ranking method and recognizer, we show that higher coverage comes with a loss of in-lexicon precision, and that a larger expansion is not always better.
We demonstrate the complementary value of lexical constraints and open recognition. Comparing combinations of lexicons and confidence fallback, we find that the base dictionary with fallback performs best overall in our setting, which provides empirical guidance on the use of lexical constraints in low-resource Manchu OCR.
Background and Related Work
Lexicon constraints in text recognition. Word lexicons have long been used to constrain the output of handwriting and scene-text recognizers. One line of work restricts CTC decoding to a closed lexicon [8], while another keeps decoding open and adds a character or word language model through prefix beam search [11]. Attention-based recognizers such as TrOCR [16] and PARSeq [1] learn an implicit language model from their training text, which is of limited help when most test words are unseen. Our work compares closed and open decoding in such a setting and quantifies where a closed lexicon loses accuracy.
Manchu and related scripts. Earlier work on Manchu OCR has addressed character segmentation and recognition [24], segmentation-free recognition of printed words with synthetic data and convolutional features [14, 26], handwritten word recognition with pretrained and Transformer models [15, 10], and the restoration of damaged word images [2]. Zhang et al. [25] used language-model post-processing for handwritten Manchu characters. For traditional Mongolian, a related vertical script, sub-word units [6] and multi-task learning [23] have been applied to word recognition. More broadly, Rijhwani et al. [20] showed that post-correction can substantially reduce OCR errors on endangered-language texts. None of these studies separates lexicon coverage from in-lexicon precision or compares lexicon expansion with fallback to open decoding.
Open vocabularies and morphology. Text models commonly handle open vocabularies through sub-word units [21] or unsupervised morphological segmentation [4]. We instead generate whole-word candidates from roots and suffix chains. This choice keeps decoding at the word level, where near misses can be corrected, and makes lexicon coverage directly measurable.
Method
Problem Formulation
Given the image of a single word, a recognizer trained with CTC produces a distribution over character sequences. Greedy decoding takes the most likely label in each frame, and open beam search explores several character sequences, optionally scored by a character language model. Lexicon-constrained beam search instead keeps only hypotheses that are prefixes of words in a lexicon , so that the output is always an element of . We are interested in how the choice of , and the decision whether to constrain at all, affects recognition accuracy.
Coverage–Precision Decomposition
Let be the set of word types in the test set and the fraction of images of type that are recognized correctly. Since a constrained decoder can only output words in , every type outside has , and type accuracy factorizes exactly:
The same identity holds for token accuracy when images take the place of types. The two factors have different sources. Coverage is a property of the lexicon and the test labels alone, whereas precision depends on the recognizer and on how many plausible competitors the lexicon offers for each correct word. The decomposition therefore predicts that changing the recognizer leaves coverage unchanged, and that enlarging the lexicon can raise coverage while lowering precision. We test both predictions in § 6.
Lexicon Expansion
Our base lexicon is the word list of a dictionary-based morphological analyzer, which we refer to as the dictionary. It contains 29,024 entries: 23,277 derived from external dictionary resources, including the headwords of the electronic New Manchu–Chinese Dictionary ([13]), and 5,747 word forms added from an external corpus of Manchu archival texts. To cover word forms the dictionary lacks, we segment the training words into roots and suffix chains with the analyzer, collect 2,879 roots and 181 suffix chains, and pair every root with every chain. The 521,099 pairs yield 508,588 distinct surface forms; together with 1,574 training word forms that concatenation does not produce, this gives 510,162 candidates. We score each candidate as , with both probabilities estimated from frequencies in the training images, and add the highest-scoring candidates to the dictionary. We select on the validation set (§ 4), which gives ; adding all candidates gives the full union of 530,025 words.
Confidence Fallback
Fallback obtains coverage without changing the lexicon. Each image is decoded twice, once with lexicon-constrained beam search and once greedily. If the score of the best constrained hypothesis falls more than a threshold below the score of the greedy string, the system outputs the greedy string, and otherwise the constrained one. The output can only change when the greedy string lies outside the lexicon, so the rule effectively acts as a detector for inputs the lexicon does not cover. We select on the validation set.
Experimental Setup
Data. Each example is a cropped image of one vertically written Manchu word, transcribed with the Latin transliteration character set of Manchu. The images come from four previously published sources (Appendix § 8): the printed
Manchu50000 collection and three handwritten collections, MengGuTangDang, SuiJunJiXing and the Grand Council (Junjichu) Manchu archives. Manchu experts segmented the word images, supplied the transliterations and reviewed their quality; ambiguous samples were resolved through review, and samples that could not be identified reliably were excluded. The training set contains 55,240 images of 6,485 word types, the validation set 4,767 images, and the test set 5,389 images of 792 word types. All four sources occur in every split, since the split holds out word forms rather than source documents.
Test tiers. To measure generalization beyond the training vocabulary, we assign each test word to one of four tiers according to its morphological analysis (Table 1). Tier A contains words that occur in training. Tier B contains words whose root occurs in training but whose root–suffix combination does not; within B, we further distinguish forms whose suffix chain was seen in training (B1) from forms with an unseen chain (B2). Tier C contains words whose root never occurs in training, and words that the segmenter cannot analyse form a separate unresolved tier. Tiers B and C account for 95% of the test images, and we report results for all tiers as well as for the full test set.
| Tier | Definition | Types | Images |
| A | word seen in training | 34 | 41 |
| B | root seen, combination unseen | 336 | 2,542 |
| C | root unseen | 264 | 2,572 |
| – | unresolved by segmenter | 158 | 234 |
| All | 792 | 5,389 |
Table 1. Test tiers. Only tier A (0.8% of images) contains words seen in training.
Recognizers. Our main recognizer is a CRNN trained with CTC ([22]) with 14.3M parameters. To test whether our findings depend on the architecture, we also train a Transformer recognizer with 19.6M parameters. Both models are trained for 30 epochs with a batch size of 384 using AdamW ([17]) with a learning rate of , weight decay of , one warm-up epoch, cosine decay to 2% of the peak rate, gradient clipping at 5.0, and bf16 precision, without data augmentation. We keep the checkpoint with the best validation type accuracy. We train the CRNN with three seeds (42, 43 and 44) and report the mean and sample standard deviation; the Transformer is trained with one seed. Several analyses in § 6 use the original model, an earlier exploratory CRNN run with the same architecture and hyperparameters that was trained with data parallelism on three GPUs (128 images per GPU, the same effective batch size); all decoding experiments were first run on this model, so its numbers differ slightly from the three-seed means in Table 2.
| System | Tier B (seen root) Type ↑ | Tier B (seen root) Token ↑ | Tier C (unseen root) Type ↑ | Tier C (unseen root) Token ↑ | All, CRNN (3 seeds) Type ↑ | All, CRNN (3 seeds) Token ↑ | All, Transformer Type ↑ | All, Transformer Token ↑ |
| Open decoding (coverage 100% by construction) | ||||||||
| Greedy CTC | 83.5±0.5 | 85.4±0.4 | 78.1±2.9 | 77.3±0.9 | 74.0±1.1 | 79.8±0.3 | 71.9 | 74.6 |
| Open beam | 83.7±0.4 | 85.4±0.4 | 78.2±2.8 | 77.7±0.8 | 74.2±1.3 | 80.0±0.4 | 71.9 | 74.7 |
| Open beam + char. LM | 84.4±0.6 | 87.2±0.2 | 77.7±3.1 | 76.6±1.4 | 74.2±1.5 | 80.3±0.6 | 72.8 | 75.4 |
| Lexicon-constrained decoding | ||||||||
| Dictionary (29k) | 63.6±0.2 | 84.0±0.8 | 75.0±1.0 | 88.0±0.4 | 56.2±0.4 | 82.4±0.5 | 55.9 | 79.9 |
| Dictionary + top- (250k) | 86.3±0.5 | 89.0±0.6 | 76.2±1.1 | 86.8±0.4 | 66.5±0.7 | 84.2±0.3 | 65.5 | 81.0 |
| Full union (530k) | 85.9±0.6 | 88.7±0.6 | 76.5±1.4 | 81.5±1.1 | 66.5±0.8 | 81.5±0.3 | 65.6 | 77.6 |
| + vowel-harmony filter | 86.0±0.6 | 88.7±0.6 | 76.6±1.3 | 81.6±1.1 | 66.6±0.8 | 81.6±0.3 | 65.6 | 77.6 |
| + frequency prior | 85.9±0.7 | 88.7±0.6 | 76.5±1.3 | 81.4±1.2 | 66.5±0.7 | 81.5±0.3 | 65.6 | 77.6 |
| Lexicon-constrained decoding with confidence fallback | ||||||||
| + fallback | 85.4±0.3 | 87.5±0.8 | 80.5±2.7 | 81.2±0.5 | 75.6±1.2 | 82.6±0.2 | 73.9 | 77.5 |
| Dictionary + fallback | 85.3±0.6 | 89.0±0.8 | 83.8±1.7 | 86.1±0.5 | 76.1±0.9 | 85.5±0.5 | 75.4 | 80.9 |
Table 2. Test accuracy (%). CRNN columns show the mean ± sample standard deviation over three training seeds; the Transformer was trained with one seed. “All” includes tier A and unresolved words. Decoding hyperparameters are tuned on the validation set. The best value in each column is in bold.
Decoding. All beam searches use a beam width of 50; on tiers B and C, widths of 10, 50 and 100 change accuracy by at most 0.1 points. For open beam search, we optionally add a character trigram language model trained on the training transcriptions, with weight and length bonus ([11]). We also test two variants of the full union: a conservative vowel-harmony filter that removes 40,439 candidates, and a soft frequency prior added to the beam score with weight . All decoding hyperparameters (, , , and ) are selected on validation scores only, as are the recognizer checkpoints. The test set is not entirely untouched, however: it was decoded in earlier exploratory experiments, and accuracy on tier A was logged during training.
Evaluation. We report two exact-match metrics. Token accuracy is the fraction of test images whose word is recognized correctly. Type accuracy averages the per-type image accuracy over word types with equal weight, so that frequent words do not dominate the score. We compute 95% confidence intervals with a cluster bootstrap over word types (10,000 resamples, keeping all images of a type together; Efron and Tibshirani, [5]), and compare systems with exact McNemar tests (McNemar, [18]) and cluster sign-flip tests with Holm correction (Holm, [12]).
Main Results
Table 2 summarizes the results of all systems. We organize the discussion around the three groups of systems in the table.
Open versus constrained decoding. Greedy CTC decoding reaches 74.0% type and 79.8% token accuracy over all images. Its errors are typically near misses: among erroneous greedy outputs on tiers B and C, 73–78% are one edit away from the gold word and 64–81% are not valid words (Appendix Figure 4). A character language model corrects few of them, raising token accuracy by only 0.3 points. Constraining the output to the dictionary has a very different effect on the two tiers. On tier C, token accuracy increases from 77.3% to 88.0%, because the dictionary covers most of these unseen-root words and corrects their near misses. On tier B, by contrast, type accuracy drops to 63.6%, since the dictionary contains only 68.5% of the tier-B word types. Once decoding is constrained, the lexicon rather than the recognizer limits accuracy.
Lexicon expansion. Adding the highest-ranked combinations to the dictionary resolves the coverage problem on tier B, where type accuracy rises from 63.6% to 86.3%. The same expansion brings little benefit on tier C, where generated candidates cannot reproduce unseen roots: token accuracy falls slightly from 88.0% to 86.8%, and drops to 81.5% when all 510k candidates are added. Neither the vowel-harmony filter nor the soft frequency prior changes this outcome. Over all images, improves token accuracy by 1.8 points over the dictionary, but its type accuracy (66.5%) remains well below that of greedy decoding, because the unresolved words and part of tier C stay outside the lexicon.
Confidence fallback. Adding fallback to the dictionary gives the best CRNN system on both metrics, with 76.1% type and 85.5% token accuracy over all images. The gain is concentrated on tier C, where type accuracy reaches 83.8%, compared with 78.1% for greedy decoding and 75.0% for the dictionary alone, while tier-B token accuracy matches that of . On the original model, fallback improves the dictionary by 19.0 type points (95% CI [16.2, 21.9]) and 3.0 token points ([1.3, 5.4]). In contrast, combining fallback with is less effective and lowers tier-C token accuracy by 5.6 points relative to alone; we analyse the reason in §6.5.
Transformer recognizer. The Transformer is weaker than the CRNN overall, with 71.9% type and 74.6% token accuracy under greedy decoding, but the relative ordering of the decoding strategies is largely the same. The dictionary with fallback again achieves the highest type accuracy (75.4%), and its token accuracy is within 0.1 points of .
Analysis
The main results show that fallback is a better route to coverage than expansion. In this section, we use the decomposition in Eq. (1) to examine why.
Coverage and Precision Are Separable
The decomposition predicts that coverage depends only on the lexicon, whereas precision also depends on the recognizer. To test this, we train CRNNs on nested subsets containing 25%, 50% and 100% of the training images and decode them with the same lexicons. As expected, coverage is identical across the three models for every lexicon and tier. In-lexicon precision, in contrast, increases with the amount of training data for every lexicon (Table 3). Larger lexicons have lower precision at every training size, but the gap between the dictionary and narrows from 6.5 to 3.9 points as the training data grows. A stronger recognizer is therefore better at rejecting the additional competitors, which makes lexicon expansion more attractive as recognition quality improves.
| Lexicon | 25% | 50% | 100% | |
| B | Dictionary | 91.0 | 92.0 | 92.6 |
| B | 82.7 | 88.2 | 88.6 | |
| C | Dictionary | 85.5 | 88.8 | 91.0 |
| C | 82.1 | 86.9 | 89.4 | |
| All | Dictionary | 88.6 | 90.8 | 92.4 |
| All | 82.1 | 86.8 | 88.5 | |
| All | Gap ↓ | 6.5 | 4.0 | 3.9 |
Table 3. In-lexicon type precision (%) of CRNNs trained on nested fractions of the training images (seed 42). Coverage does not change with the training fraction (dictionary: B 68.5, C 82.2; : B 97.0, C 84.8).
Across the 14 tier-B and tier-C lexicon configurations of the original model, type accuracy lies close to a line through the origin with a slope of 0.895 (; Appendix Figure 3). Since these points share the same model and test images, we treat the fit as descriptive. It nevertheless illustrates that, within this range of lexicons, differences in coverage account for most of the differences in accuracy.
Sources of Coverage and the Choice of
Generated combinations and the dictionary cover largely different words. The combinations cover 96.7% of tier-B types but only 19.7% of tier-C types, whose roots are unseen by definition, while the dictionary covers 68.5% and 82.2%, respectively. Together they cover 97.6% of tier B and 87.1% of tier C. Figure 2 shows how accuracy changes as more ranked combinations are added. On the validation set, type accuracy increases steadily up to k, whereas adding all 510k candidates lowers token accuracy from 84.0% to 82.4%. On the test set, the same expansion helps tier B and hurts tier C.

Figure 2. Effect of the number of generated candidates. (a) Validation type and token accuracy as the top- candidates are added to the dictionary; k maximizes type accuracy. (b) Test token accuracy per tier for the dictionary, and the full union (three CRNN seeds, mean SD).
Which Ranking Signal Matters?
Frequency ranking is essential for expansion: at k, it outperforms a random selection of the same size by 12.0 type points on tier B (95% CI [9.5, 14.6]). To identify where this signal comes from, we compare alternative scoring rules at the same (Table 4). Ranking candidates by suffix-chain frequency alone performs as well as the full root × chain score, whereas ranking by root frequency alone loses 8.3 type points on tier B. Restricting the lexicon to combinations attested in an external corpus performs no better than random selection. This result is consistent with the sparsity of the corpus, which contains only 1.08% of the 510k candidates, and suggests that, in this low-resource setting, corpus attestation is too sparse to identify plausible word forms.
| Ranking (k) | Tier B | All | ||
| Type | Tok. | Type | Tok. | |
| Root chain | 87.7 | 88.4 | 66.3 | 84.6 |
| Suffix chain only | 87.8 | 88.6 | 66.0 | 84.6 |
| Root only | 79.4 | 86.9 | 63.1 | 84.0 |
| Corpus-attested | 75.9 | 86.3 | 61.1 | 81.6 |
| Random (5 draws) | 75.7 | 85.6 | 61.3 | 81.9 |
Table 4. Ranking rules for generated candidates (original model, accuracy %).
The Precision Cost of Expansion
The cost of expansion is most visible on tier C, where the dictionary already covers 97.6% of the images. For these words, generated candidates add competitors rather than answers, and token accuracy falls from 88.0% with the dictionary to 81.5% with the full union. On the original model, in-lexicon type precision decreases by 3–4 points for every tenfold increase in lexicon size when candidates are ranked by frequency, but by only 1.5–2 points when they are added at random. One explanation is that frequency-ranked candidates more closely resemble real word forms and are therefore harder for the recognizer to reject. The direct evidence for this explanation is limited, however: the number of added edit-distance-1 neighbours of a word correlates only weakly with its accuracy loss (Spearman on tier C, exploratory ; not significant on tier B; Appendix Figure 9).
Why Does Fallback Work?
Since fallback can only change the output when the greedy string lies outside the lexicon, its effect depends on how well it identifies uncovered inputs. Table 5 analyses this routing decision on the original model. With the dictionary, fallback sends 76.1% of the uncovered images to greedy decoding and misroutes only 3.4% of the covered images. With , the misrouting rate doubles to 7.7%. In a 250k-word lexicon, an incorrect greedy string is more likely to be a valid entry by chance, which makes the score difference less informative and explains why fallback lowers the accuracy of on tier C.
| Dictionary | ||
| Token coverage | 90.9 | 94.6 |
| Uncovered images routed | 76.1 | 72.6 |
| Covered images misrouted | 3.4 | 7.7 |
| Constrained only | 83.0 | 84.6 |
| With fallback | 86.0 | 82.1 |
| With oracle routing | 88.3 | 87.1 |
Table 5. Routing analysis on the original model (%, all 5,389 images). The bottom block reports token accuracy. Oracle routing uses the constrained output for covered words and the greedy output otherwise.
To separate the quality of the routing rule from the choice of lexicon, we also evaluate oracle routing, which uses the constrained output whenever the gold word is in the lexicon and the greedy output otherwise. Even under oracle routing, the dictionary reaches a higher token accuracy than (88.3% vs. 87.1%). In other words, once uncovered words can be passed to the open decoder, the additional coverage of a generated lexicon no longer compensates for its lower precision. The remaining 2.3-point gap between actual and oracle routing for the dictionary indicates how much a better routing rule could still gain.
Conclusion
We studied how the lexicon affects constrained decoding for low-resource Manchu OCR, where almost all test words are unseen in training. By decomposing accuracy into lexicon coverage and in-lexicon precision, we showed that coverage is a property of the lexicon alone, while precision depends on both the recognizer and the size of the lexicon. Expanding the dictionary with ranked root–suffix combinations raises coverage substantially, with suffix-chain frequency as the key ranking signal, but it lowers precision where the dictionary already covers most words. Confidence fallback provides the missing coverage at a much smaller cost, and a dictionary with fallback outperforms a generated lexicon ten times its size, even under oracle routing. We therefore recommend a precise lexicon combined with a validated fallback as the default for agglutinative low-resource scripts, with lexicon expansion preferred only when the recognizer is strong enough to keep its precision cost small. In future work, we plan to test whether these findings extend to other agglutinative scripts such as traditional Mongolian.
Limitations
Our study covers a single language and script, and we have not verified that the findings hold for other agglutinative scripts. The Transformer and the training-fraction models were trained with one seed each, so their results do not reflect seed variance. The character language model is a trigram trained only on training transcriptions, and a stronger language model could narrow the gap between open and constrained decoding. The fallback threshold was selected from a coarse grid of six values, and the oracle analysis covers token accuracy of the original model only. The three newly trained seeds use a different batch configuration from the original model. Our explanation of the precision cost rests on weak correlational evidence. Finally, the test tiers depend on a dictionary-based segmenter that cannot analyse 158 of the test types. Because the split holds out word forms rather than documents, test images share publication sources, and possibly pages, with training images; our results therefore measure generalization to unseen word forms, not to unseen collections or writers.
Ethics Statement
This work is intended to support the retrieval, transcription and collation of historical Manchu documents. The images are taken from previously published historical materials (Appendix § 8), which may contain perspectives specific to their period. OCR outputs should not be treated as authoritative transcriptions: when they are used for archival organization or collation, researchers with expertise in Manchu should review them against the originals, especially historical spellings, word boundaries and out-of-lexicon outputs. Word segmentation, transliteration and quality review were carried out by Manchu experts, all adult researchers who were informed of the purpose and intended use of the data and participated voluntarily; the protocol received institutional ethics approval. Copyright-restricted source scans and image derivatives will not be redistributed. We plan to release code under the Apache 2.0 license and research-created transliterations, splits and metadata under CC BY 4.0, subject to the rights of the source materials.
Data Sources
Table 6 lists the source publications. Manchu50000 contains printed text with comparatively regular glyph forms, whereas the three handwritten collections show more writer variation, stroke deformation and ink variation.
| Dataset | Script | Source publication | Publication information | Test images |
| Manchu50000 | Printed | Taizong, vols. 1–4; translated and annotated by the Manbun Rōtō Kenkyūkai | Tokyo: Tōyō Bunko, 1959–1963 | 3,940 |
| MengGuTangDang | Handwritten | Qing Neige Menggu Tangdang; compiled by the First Historical Archives of China and the School of Mongolian Studies, Inner Mongolia University | Hohhot: Inner Mongolia People’s Publishing House, 2005 | 1,037 |
| SuiJunJiXing | Handwritten | Suijun Jixing Yizhu; written by Zeng Shou, translated and annotated by Ji Yonghai | Beijing: Central University for Nationalities Press, 1987 | 253 |
| Junjichu | Handwritten | Junjichu Yongzheng Chao Manwen Yifu-dang Yibian; compiled by the First Historical Archives of China | Beijing: The Commercial Press, 2021 | 159 |
Table 6. Source publications of the word images.
Compute
Each CRNN run trains for 30 epochs on a single RTX 4090 GPU in about 12–13 minutes. The Transformer run takes about 8.5 minutes, and the runs on 25% and 50% of the training data take about 4 and 7 minutes, respectively.
Additional Figures
Figure 3. Type accuracy against type coverage for tiers B and C. (a) Original model with 95% word-type cluster CIs; the dashed line is a descriptive fit through the origin (, , 14 points). (b) Three newly trained CRNN seeds, mean ± SD.
Figure 4. Greedy CTC errors on tiers B and C: (a) edit distance to the gold word; (b) affected character region.
Figure 5. Training amount × lexicon: coverage, in-lexicon precision and type accuracy for tiers B and C.
Figure 6. All systems on tiers B and C for three CRNN training seeds (mean ± SD; grey dots are individual seeds).

Figure 7. Bars: pointwise 95% CIs, 10,000 paired word-type cluster resamples. Positive values favor the method after . * Holm-corrected cluster sign-flip p < .05 (203 comparisons in each test family). Exact image McNemar results are in the CSV. Pointwise CI coverage and multiplicity-corrected significance answer different questions. Figure 7: Paired differences between systems with 95% word-type cluster bootstrap CIs.

Figure 8. Transformer CTC with trie-constrained decoding. One Transformer training run (seed 42); bars are 95% word-type cluster CIs, not training-seed SD. Same frozen data/filter and 30-epoch protocol; original-validation decoding parameters, = 250,000. Transformer recognizer, one seed, with 95% word-type cluster bootstrap CIs.
Figure 9. Same original epoch-15 CRNN; true word must be in both dictionary and full union. Each dot is one word type; bin means use density bins 0 / 1 / 2–4 / 5+. Correlations are descriptive. Added edit-distance-1 neighbour density against per-type accuracy loss when moving from the dictionary to the full union.
Figure 10. Ranking rules for generated candidates with 95% CIs.
Original epoch-15 model; all ranking counts use TRAIN only. Bars: 95% word-type cluster CIs. Random mean averages 5 size-matched vocabularies; its CI conditions on those draws. Filled point: token-product ranking. Fixed can yield different union sizes through dictionary overlap; exact vocabulary sizes are in the table.
Figure 11. Construction of the test tiers.
U = unresolved. All eligible single-word images remain in the denominator, including OOV words. One unresolved type (kvbulare) occurs only in a filtered phrase image; no accuracy is imputed.
References
- [1]Darwin Bautista and Rowel Atienza. 2022. Scene Text recognition with permuted autoregressive sequence models. In Computer Vision – ECCV 2022, pages 178–196. Springer Nature Switzerland.arxiv.org/abs/2207.06966
- [2]Xiaojun Bi, Wenhao Tao, and Zheng Chen. 2026. RGCA: Recognition-guided context-aware network for Manchu word inpainting. Pattern Recognition, 180:114274.DOI
- [4]Mathias Creutz and Krista Lagus. 2007. Unsupervised models for morpheme segmentation and morphology learning. ACM Transactions on Speech and Language Processing, 4(1):1–34.
- [5]Bradley Efron and R. J. Tibshirani. 1994. An Introduction to the Bootstrap. Chapman and Hall/CRC.
- [6]Daoerji Fan, Guanglai Gao, and Huijuan Wu. 2019. Subword based Mongolian offline handwriting recognition. In 2019 International Conference on Document Analysis and Recognition (ICDAR), pages 246–253. IEEE.
- [7]Liliya M. Gorelova. 2002. Manchu Grammar. BRILL.
- [8]A. Graves, M. Liwicki, S. Fernandez, R. Bertolami, H. Bunke, and J. Schmidhuber. 2009. A novel connectionist system for unconstrained handwriting recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 31(5):855–868.DOI
- [9]Alex Graves, Santiago Fernández, Faustino Gomez, and Jürgen Schmidhuber. 2006. Connectionist temporal classification: labelling unsegmented sequence data with recurrent neural networks. In Proceedings of the 23rd international conference on Machine learning - ICML ’06, ICML ’06, pages 369–376. ACM Press.
- [10]Zhiyong Guo, Xiaoxin Sun, Mengzhu Lu, Ruixin Yu, Meiqi Wang, and Suhua Wang. 2025. ManChuSwin transformer: an adaptive vision model for low-resource Manchu handwritten recognition. In International Conference on Intelligent Computing and System Simulation (ICSS 2025), page 8. SPIE.DOI
- [11]Awni Y. Hannun, Andrew L. Maas, Daniel Jurafsky, and Andrew Y. Ng. 2014. First-pass large vocabulary continuous speech recognition using bi-directional recurrent DNNs. arXiv preprint arXiv:1408.2873.arxiv.org/abs/1408.2873
- [12]Sture Holm. 1979. A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics, 6(2):65–70.DOI
- [13]Zengyi Hu, editor. 2020. Xin Man–Han Da Cidian [A New Manchu–Chinese Dictionary]. The Commercial Press.
- [14]Di Huang, Min Li, Ruirui Zheng, Shuang Xu, and Jiajing Bi. 2017. Synthetic data and DAG-SVM classifier for segmentation-free Manchu word recognition. In 2017 International Conference on Computing Intelligence and Information System (CIIS), pages 46–50. IEEE.
- [15]Haoran Li, Siyang Lu, Xiang Wei, and Yingjun Qi. 2023a. Probing handwritten Manchu word recognition foundation model. In 2023 IEEE 29th International Conference on Parallel and Distributed Systems (ICPADS), pages 1262–1269. IEEE.DOI
- [16]Minghao Li, Tengchao Lv, Jingye Chen, Lei Cui, Yijuan Lu, Dinei Florencio, Cha Zhang, Zhoujun Li, and Furu Wei. 2023b. TrOCR: Transformer-based optical character recognition with pre-trained models. Proceedings of the AAAI Conference on Artificial Intelligence, 37(11):13094–13102.arxiv.org/abs/2109.10282
- [17]Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In International Conference on Learning Representations. ArXiv:1711.05101.arxiv.org/abs/1711.05101
- [18]Quinn McNemar. 1947. Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika, 12(2):153–157.pubmed.ncbi.nlm.nih.gov/20254758
- [19]Paul Georg von Möllendorff. 1892. A Manchu Grammar, with Analysed Texts. American Presbyterian Mission Press, Shanghai.
- [20]Shruti Rijhwani, Antonios Anastasopoulos, and Graham Neubig. 2020. OCR post correction for endangered language texts. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 5931–5942. Association for Computational Linguistics.arxiv.org/abs/2011.05402
- [21]Rico Sennrich, Barry Haddow, and Alexandra Birch. 2016. Neural machine translation of rare words with subword units. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1715–1725. Association for Computational Linguistics.arxiv.org/abs/1508.07909
- [22]Baoguang Shi, Xiang Bai, and Cong Yao. 2017. An end-to-end trainable neural network for image-based sequence recognition and its application to Scene Text recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(11):2298–2304.DOI
- [23]Hongxi Wei, Hui Zhang, Jing Zhang, and Kexin Liu. 2021. Multi-task learning based traditional Mongolian words recognition. In 2020 25th International Conference on Pattern Recognition (ICPR), pages 1275–1281. IEEE.DOI
- [24]Shuang Xu, Min Li, Rui-Rui Zheng, and Shulman Michael. 2016. Manchu character segmentation and recognition method. Journal of Discrete Mathematical Sciences and Cryptography, 20(1):43–53.DOI
- [25]GuangYuan Zhang, JingJiao Li, and AiXia Wang. 2005. Manchu handwritten character recognition post-processing based on the combination language model. In 2005 International Conference on Natural Language Processing and Knowledge Engineering, pages 42–46. IEEE.DOI
- [26]Ruirui Zheng, Min Li, Jianjun He, Jiajing Bi, and Baochun Wu. 2018. Segmentation-free multi-font printed Manchu word recognition using deep convolutional features and data augmentation. In 2018 11th International Congress on Image and Signal Processing, BioMedical Engineering and Informatics (CISP-BMEI), pages 1–6. IEEE.DOI






