Chunk-based Chinese Spelling Check with Global Optimization
Paper · 2020 · Zuyi Bao, Chen Li and Rui Wang
Summary
A wrong Chinese character can obscure where a word begins or ends. When neighboring characters are also wrong, correcting them independently can make matters worse. A plausible replacement for one character may form a familiar word with its misspelled neighbor. Bao and colleagues approach Chinese spelling check as a search over chunks, or consecutive spans of characters. The checker considers different ways to divide the input and different ways to rewrite each span. It chooses a complete sentence after comparing the alternatives it has kept during the search.
The authors generate replacements using pronunciation, written shape, and contextual fit. The first two sources can recover familiar kinds of substitutions, while contextual predictions can suggest a character that shares neither the sound nor the appearance of the original. A vocabulary screens the proposed chunks. A beam search keeps several promising partial rewrites as the checker advances through the sentence. The ranking accounts for how much text changed, how fluently the chunks read together, and what evidence supported the changes. Its weights are trained using complete decoded sentences.
The approach achieves correction F1 scores of 70.59 on SIGHAN13, 61.52 on CLP14, and 69.44 on SIGHAN15. Each is the highest correction F1 in the corresponding comparison reported by the paper. SIGHAN13 is evaluated at the edit level, while CLP14 and SIGHAN15 are evaluated at the sentence level. On a separate dataset of errors in subtitles obtained through optical character recognition, correction F1 rises from 28.1 for Hong and colleagues’ checker to 41.74 for the chunk-based system. Correction precision falls from 73.4 to 46.45 there, even as recall rises from 17.4 to 37.90.
The controlled comparisons help explain those results. Removing contextual proposals on SIGHAN15 causes the largest loss of correction recall among the candidate sources tested. A separate comparison finds a clearer advantage over the character-based checker for runs of adjacent errors, the setting in which treating neighboring changes together matters most. A wider search also improves recall, especially in sentences with a single error. The subtitle results expose a different constraint. The checker can locate an error even when it lacks a plausible replacement in its vocabulary, which comes partly from news text and has gaps in the entertainment names needed for the subtitle task.
Deep dive: Chunk-based Chinese Spelling Check with Global Optimization
Bao and colleagues correct Chinese spelling by generating replacements for spans of characters and ranking how well they fit together in a sentence. · about 32 minutes to read
The problem and its context
A misspelling can change the apparent word boundaries
For the authors, Chinese spelling check includes detecting a wrong character and recovering its intended replacement. They study substitutions, in which a character occupies the right position but has the wrong identity. The positions in the input and the corrected sentence therefore correspond. Inserting a missing character or removing an extra one would change that correspondence. The authors place those operations outside their spelling task, in the broader area of grammatical error correction.
Even under this restriction, searching over all possible characters at each position would create a large pool of alternatives. The paper identifies more than three thousand frequently used Chinese characters. A substantial part of the challenge is deciding which alternatives deserve consideration in the first place. If the checker considers too few substitutions, it can miss the intended reading before any ranking occurs. If it considers too many, plausible-looking changes compete with the writer’s actual words, and the checker has more work to do at every position.
The organization of written Chinese complicates that choice. Characters occur in a continuous sequence without spaces to tell the checker where each word ends. The paper also observes that the definition of a word can depend on the linguistic analysis. For spelling correction, the practical consequence is that a corrupted string can support a different division into words from the one the writer intended. The background literature includes Chinese Word Segmentation as Character Tagging and The Second International Chinese Word Segmentation Bakeoff, which the authors cite when discussing segmentation.
Taking the first segmentation as fixed would turn a provisional reading into a constraint on the correction. Imagine a span in which the wrong character combines easily with the following character. A segmenter trained on clean text may take the combination as a word. A spelling checker that receives those boundaries then has to work within a division suggested by the very error it is trying to remove. Joint segmentation and correction leave open the possibility that a different replacement calls for a different boundary.
Word length makes the surrounding sentence particularly important. The paper describes Chinese words as typically containing one to four characters. Changing a character in a short word can produce a markedly different meaning, and the resulting string can still look ordinary in isolation. A checker must decide whether that reading belongs in the message as a whole. Knowing that a replacement forms a word answers only part of that question.
How earlier checkers narrowed the choices
The paper organizes earlier approaches around candidate generation and candidate selection. Generation proposes replacements worth examining. Selection decides which proposals fit the input and its context. Improvements to either stage can change the output, but their roles differ. A better ranking can rescue an intended answer that was low on the list. When the intended answer never enters the list, the ranking has no opportunity to favor it.
Earlier candidate generators often consulted confusion sets, lists of characters likely to be mistaken for one another. Similarity of pronunciation and similarity of shape were the main ways to build those lists. A sound-based list is valuable when the writer has selected a character with a reading close to the intended one. A shape-based list serves a different purpose when the written forms resemble each other. The lists reduce the search space by making the alternatives specific to the observed character.
The paper describes earlier research that also associates errors with similarities in meaning. Context supplies another reason to propose a replacement, independent of a match in either sound or shape. The authors trace this direction to Hong and colleagues’ checker. It produces alternatives using a masked-language predictor adapted to spelling data, then filters proposed changes for phonological or visual resemblance to reduce false alarms. The predictor thus generates candidates dynamically, while the filter preserves a narrower idea of which substitutions are likely to be errors. The filter can help precision when it excludes an unnecessary change. It can also remove an intended correction whose relation to the observed character is evident only from the sentence.
The paper describes several ways earlier systems handled segmentation. Some used the output of a separate segmenter. Others worked directly at the character level to avoid dependence on a boundary decision made on corrupted text. This made the latter systems more robust to segmentation mistakes, in the authors’ account, while giving them a less direct way to use the meaning of whole words. Word-based approaches brought segmentation and spelling decisions together. The authors cite earlier evidence that such approaches often did better than their character-based counterparts, and identify a remaining complication in how the decisions were made.
In the account of Zhao and colleagues’ work, for example, the main procedure handles multi-character words, while special treatment is reserved for kinds of single-character words. Rules and a separate component can handle cases the main procedure would otherwise miss. The authors’ concern is that decisions spread across those components are difficult to train against a common objective for the final sentence. Their own use of chunks is intended to give a single character and a longer expression access to the same search and ranking procedure.
How earlier checkers chose among replacements
Candidate selectors described in the paper often scored a proposed correction for local fluency. They could use patterns of part-of-speech tags, measures of how strongly words tend to occur together, or a word n-gram score. An n-gram uses sequences of neighboring units, giving the checker evidence about whether a local word sequence is familiar. The authors regard this as a useful source of evidence with a fixed window. A clue elsewhere in the sentence can fall outside that window. Their method keeps a word-level fluency feature and draws contextual evidence from a separate predictor.
The paper also describes supervised approaches to selection. Some learned to reorder candidate lists, while others used supervised classifiers or sequence components for special types of error. The authors place these developments against the scarcity of annotated spelling errors. Earlier work addressed that scarcity in several ways. Liu and colleagues created examples by replacing characters with entries from confusion sets. Hsieh and colleagues sought errors in a large collection of web text. A Hybrid Approach to Automatic Corpus Generation for Chinese Spelling Check used optical character recognition and automatic speech recognition to mimic errors.
Two systems in the benchmark comparison illustrate other ways of organizing the evidence. Spelling Error Correction with Soft-Masked BERT trains detection and correction together and uses homophonous artificial examples for additional pretraining. SpellGCN uses a graph convolutional network to incorporate relationships among characters that sound or look alike. These approaches give the system information about likely errors. Bao and colleagues put their combination of sound, shape, and context into the construction and ranking of explicit chunk candidates.
The resulting design addresses two decisions at once. One concerns the unit of correction, which can span a word, phrase, idiom, or individual character. The other concerns the level at which evidence is weighed, since the preferred replacement depends partly on the other chunks chosen for the sentence. A chunk can have good support by itself and still fare poorly in combination. The method makes those combinations objects of the search.
The method, step by step
Build a sentence from competing chunks
The checker starts with the input characters and an empty partial correction. At the next unread position, it considers consecutive spans of different lengths. For each span, it can propose a corrected chunk that consumes that part of the input. An extension therefore says both what characters should appear in the output and how far the checker should advance. Different partial corrections can consume different amounts of input during the same pass through the search.
A chunk is defined by its role in this procedure. It can be a single-character word, a longer word, a phrase, or an idiom. The decoder can also account for text that is already correct as it constructs a complete rewrite. Treating these units alike at the search stage avoids handing a chosen segmentation to a second program. Segment boundaries emerge from the chunks that are taken, so two possible corrections can use different boundaries even though both cover the same input.
Consider how this arrangement handles ambiguity before applying any scoring details. A partial correction that accepts a short span can leave neighboring characters to be processed separately. Another partial correction can consume a larger span and commit to a word covering those same neighbors. Both can remain available while the checker evaluates extensions. That matters when reading the problematic region as a whole changes which characters make sense within it. A usable search still needs to limit how many such alternatives stay in play.
How chunk-based decoding chooses a corrected sentence
The steps in order.
The paper states its objective in terms of all sentences that can be assembled from the candidates.
s_c = arg max_{ŝ ∈ L(s)} f(ŝ, s)
Here s is the input, ŝ is a candidate sentence, and L(s) is the set of sentences that the chunk alternatives can produce for s. The scoring function f evaluates a candidate in relation to the input. The notation ∈ restricts the choice to members of L(s). The operation arg max returns a candidate that has the highest score, which the paper denotes by s_c.
The objective describes the decoder’s target. Its practical implementation uses beam search, which ranks partial corrections and keeps a bounded number of them. An iteration extends each unfinished correction with its available candidates. A correction that already covers the whole input is carried forward without an extension and competes for a place in the next beam. The decoder sorts the resulting pool by score, discards entries beyond its beam limit, and continues while any retained correction is unfinished. It returns the highest-scoring retained sentence once all the survivors are complete.
This makes the search global in the sense that it compares combinations of changes and ranks complete alternatives. It remains approximate because a prefix dropped during an earlier iteration cannot benefit from evidence that would have favored its later extensions. Search quality depends both on how the ranker scores partial corrections and on how many competing paths the beam can retain. The authors examine the second factor by varying the beam width.
Propose replacements from sound, shape, and context
Candidate generation starts from the next input position of a particular partial correction. It treats every span beginning there and falling within the length limit as a potential site of a misspelling. In the experiments the maximum chunk length is 6. Each generator tries to find replacements for these spans, and the vocabulary V determines which proposed strings qualify as candidates. The task is substitution-based, so the length of a replacement corresponds to the length of the span it covers.
For pronunciation, the checker converts the span to pinyin, which represents the sounds of Chinese characters with Latin script. It retrieves entries from the vocabulary with a similar pronunciation. The lookup acts on a span, which lets the decoder entertain a word-level replacement where a character in isolation would have many competing alternatives. The authors use pypinyin for conversion. Their description states a single-substitution restriction for the shape and contextual generators. The pronunciation generator is described as retrieval by similar pinyin for the span.
For written shape, the procedure consults the character confusions released with SIGHAN13. Within a span, it proposes changing a character to a visually similar one and tests whether the resulting string occurs in the vocabulary. The paper restricts this generator to 1 substitution per candidate chunk to balance speed and quality. A visually reasonable character can consequently fail to become a chunk candidate if its combination with the remaining characters is absent from the vocabulary.
For contextual candidates, the paper uses a Chinese version of BERT. The authors adapt the pretrained predictor to the spelling task using the correction training data. This is fine-tuning, in which training on task examples adjusts what a pretrained system predicts. The result assigns probabilities to potential characters at an input position using the sentence as context. The authors take the top 5 predictions at each position as the semantic confusion set. This use of “semantic” concerns the contextual plausibility of the proposed character. The generator can therefore offer a replacement with little resemblance to the input character in writing or pronunciation.
The contextual generator also limits a candidate chunk to 1 substitution and checks it against V. The procedure can produce a multi-character word by replacing a single character within it. That point distinguishes the length of the chunk, which determines how much text the decoder processes together, from the number of characters changed by a proposal from this source. A complete output can apply changes across several chunks. The sound-based generator provides another route to proposing a replacement for a span.
For a chunk consisting of a single character, the experimental configuration uses only contextual proposals as replacement candidates. The authors make this choice to reduce false alarms. Longer chunks can use all the sources, with the vocabulary checking the proposed word or expression around a substitution. This is a difference in candidate policy within a shared decoder. A single-character chunk still enters the same beam and competes under the same scoring function as a longer one.
The vocabulary is built from Chinese Gigaword and a collection of Chinese idioms. For the spelling benchmarks, the authors segment the traditional Chinese portion of Gigaword using HanLP and keep words occurring more than 10 times. They use the simplified Chinese portion to build the subtitle vocabulary. This corpus segmentation takes place when preparing resources. The correction decoder itself can consider several segmentations of an input sentence. The distinction matters because the corpus determines which chunks can be retrieved, while the beam determines how they can be assembled.
Turn evidence about an error into a ranking
The reasoning behind the ranker starts with noisy-channel spelling correction, as discussed in An Improved Error Model for Noisy Channel Spelling Correction. In this view, the intended sentence is hidden and the checker observes a possibly corrupted version of it. The first objective is to choose the intended sentence with the highest probability conditional on what was observed.
s_c = arg max_{ŝ} p(ŝ | s)
Here s_c is the chosen correction, ŝ ranges over possible intended sentences, and s is the observed input. The expression p(ŝ | s) is the conditional probability of the candidate ŝ given s. The bar | means “given,” and arg max selects the candidate that maximizes that probability.
Bayes’ rule expresses the same choice using the plausibility of a candidate before observing the input and the plausibility of the input as a corrupted version of that candidate.
s_c = arg max_{ŝ} [p(s | ŝ) · p(ŝ) / p(s)]
Here s_c is the selected correction, ŝ is a possible intended sentence, s is the observed sentence, and arg max compares values across alternatives for ŝ. The term p(s | ŝ) gives the probability of observing s conditional on ŝ being intended, with | marking the condition. The term p(ŝ) is the prior probability of the candidate, and p(s) is the probability of the observed input. The centered dot denotes multiplication, the slash denotes division, and the brackets enclose the expression being maximized.
The denominator is fixed throughout the comparison because every candidate is being evaluated for the same observed input. Removing that constant leaves the ordering of candidates intact. Taking logarithms also preserves the ordering and expresses the product as a sum.
s_c = arg max_{ŝ} [log p(s | ŝ) + log p(ŝ)]
Here s_c denotes the preferred sentence, ŝ is the candidate varied by arg max, and s is the input. The term p(s | ŝ) measures how plausibly that candidate could give rise to the observed input, with | marking the condition. The term p(ŝ) measures the candidate’s prior probability. The operator log takes the logarithm of each probability, and + adds the resulting terms inside the brackets.
This derivation supplies a rationale for valuing a plausible sentence and a plausible error process together. A very fluent alternative can require an implausible change. A proposed substitution can explain the shape or pronunciation of the input and still leave an awkward sentence. In practice, the authors approximate this balance using several features, which are measurements the ranker can compute for each hypothesis.
score = Σᵢ wᵢ · featᵢ
Here score is the rating used to rank the hypothesis. The index i identifies a feature, featᵢ is its measured value, and wᵢ is its learned weight. The centered dot multiplies the measurement by its weight. The summation Σᵢ adds those contributions across the features.
The feature called ed measures character-level edit distance between the input and a candidate. The feature called pyed measures edit distance after converting both to pinyin. The character measure describes how much written text changes. The pinyin measure supplies information about how closely the proposed reading resembles the observed one in sound. Giving each its own weight lets training decide how the two measurements contribute.
The feature n-chunk is the number of chunks used to build the candidate. The authors reason that a longer chunk frequently has a more determinate reading than a shorter one, so a division into fewer chunks can be useful evidence. wlm measures the candidate’s perplexity under a word-level n-gram predictor. In this role, perplexity is a measure of how unexpected the proposed word sequence is. The authors train separate word predictors for traditional and simplified Chinese with KenLM, using segmented Gigaword. The chunk count and the fluency score thus describe different properties of the candidate, even though both depend on how the text is divided.
The ranker also has a count for each candidate source. n-py counts chunks from pronunciation-based retrieval, n-shape counts those from visual confusions, and n-lm counts those from contextual retrieval. Giving the source counts separate weights lets the system use the fact that a proposal came from a given generator as part of scoring. A chunk may enter the search because of a particular source, then be judged using the rest of the feature set alongside that source information.
Score contextual changes against leaving the input alone
The same fine-tuned predictor that proposes contextual candidates supplies the cem feature. This feature measures the gain in contextual log probability from writing the proposed character instead of keeping the original. The gain is calculated over the positions covered by the chunk.
cem = Σ_{k=i}^{j} [log p(ĉₖ | cₖ, s) − log p(cₖ | cₖ, s)]
Here cem is the contextual error score for a candidate chunk, i and j are its first and last input positions, and k ranges across those positions in the sum Σ. The character cₖ is the observed character at k, and ĉₖ is the character the candidate places there. The symbol s denotes the input sentence. The expression p(ĉₖ | cₖ, s) is the probability assigned to the replacement given the observed character and sentence. The expression p(cₖ | cₖ, s) gives the corresponding probability of keeping the original. The bar | introduces the conditioning information, the comma joins its two elements, and log takes the logarithm. The minus sign subtracts the score for keeping the character from the score for replacing it. The brackets enclose the contribution from a position.
If the proposed character is the original character, the two terms at that position are equal. For a changed character, the comparison makes the score sensitive to how strongly the input itself is supported. A plausible replacement brings stronger evidence for an edit when the original reading is weak than when the predictor also finds the original convincing. The learned ranking then weighs this evidence with the other features.
The paper presents this sum as a practical approximation to the error term in the noisy-channel motivation. Evaluating how an entire observed sentence might arise from every proposed complete correction would be costly for a contextual predictor. The character-level comparisons use the observed sentence as context and can be used when evaluating chunks. That choice also means that the predictor can encounter other misspellings in its context. Scoring candidate combinations provides a separate source of evidence about how the resulting words fit together.
Learn from complete decodes
The authors train the contextual predictor and the ranking weights for different purposes. Fine-tuning supplies the conditional character predictions used in candidate generation and scoring. To do this, they use the released TensorFlow implementation for Chinese BERT. They set the fine-tuning batch size to 32, the learning rate to 2e −5, and the number of training epochs to 3. They also try whole-word masking for Chinese BERT, a variant whose masking operation covers words. The paper reports no significant improvement from the variants it tried.
For the ranker, the authors use minimum error rate training, or MERT, through the Z-MERT implementation. They initialize the feature weights to zero. For optimization, the decoder supplies its top 10 outputs, and training can run for up to 15 MERT iterations. MERT learns to reorder complete candidate sentences against the annotated correction. The paper uses the BLEU score as the training measure of similarity to that reference. This measure rewards overlap with the reference at the sentence level, so the weights are selected based on the text assembled by the whole search.
BLEU plays a different role from detection or correction F1. During weight training, it supplies feedback about how closely a decoded alternative resembles the reference. At test time, the shared-task evaluation scripts judge whether errors are found and corrected under their own scoring rules. A sentence close to the reference can be useful to MERT even when a sentence-level test would regard its remaining error as enough to fail the correction. Using a sentence-wide training measure still permits the weights to respond to interactions among several chunks.
The reported experiments use a beam size of 10. The benchmarks share a training pool formed by combining the three spelling training sets. The subtitle evaluation uses its own labeled training data and simplified Chinese resources. These choices allow the paper to test the same procedure in different data settings while training the resources appropriate to each. They also matter when interpreting what transfer to subtitles means. The experiment tests the adaptability of the approach through task-specific training.
Experiments and results
The datasets and what their scores count
The experiments cover the SIGHAN13, CLP14, and SIGHAN15 spelling benchmarks and a dataset of errors in subtitles obtained through optical character recognition, or OCR. The paper abbreviates them as csc 13, csc 14, csc 15, and ocr. Dataset statistics describe the proportion of sentences containing an error. This proportion tells the reader how often there is something to correct, while average sentence length gives a sense of how much text surrounds the error.
SIGHAN13 contributes 700 training sentences, of which 50.0% contain errors, with an average length of 41.81. Its test data statistics list 1000 sentences, an error rate of 99.6%, and an average length of 74.3. The official SIGHAN13 setting uses different test sets for detection and correction, a distinction that matters when comparing results from other checkers. The authors follow that setting and use the SIGHAN13 scorer at the edit level.
CLP14 contributes 3437 training sentences. Its training error rate is 99.9%, and its average training length is 49.6. The test split contains 1062 sentences, with an error rate of 49.8% and an average length of 50.0. SIGHAN15 contributes 2339 training sentences, with an error rate of 100.0% and an average length of 31.3. Its test set contains 1100 sentences, with an error rate of 50.0% and an average length of 30.6. The authors pool the benchmark training data and use the official sentence-level scorer for each of these two test sets.
The subtitle dataset from Hong and colleagues contains 3575 training sentences. Its training error rate is 100.0%, and its average training length is 10.1. The 1000 test sentences have an error rate of 100% and an average length of 10.2. The authors evaluate this task at the edit level with the SIGHAN13 tool. The short subtitle lines give a contextual predictor less text to work with, and the fact that every line contains an error changes what the evaluation can reveal about a checker’s treatment of clean inputs.
Detection concerns whether the system identifies where spelling is wrong. Correction also requires the intended replacement. Precision measures the share of proposed findings or corrections that count as right under the scorer, and recall measures the share of the expected findings or corrections recovered. F1 combines precision and recall, so a system can improve it through higher recall even when its precision falls. The paper also reports accuracy. When reading any of these figures, it matters whether an evaluated unit is an edit or a sentence.
Under edit-level scoring, a correct edit can receive credit even when the sentence has another unresolved error. Sentence-level scoring is stricter about complete decisions. An otherwise successful correction that changes an additional correct character or leaves an error untouched can fail at the sentence level. SIGHAN13 and the subtitles provide edit-level results, CLP14 and SIGHAN15 provide sentence-level main results, and the paper also uses edit- and chunk-level analyses on SIGHAN15 to investigate particular behaviors. Those analyses answer narrower questions than the main benchmark does.
Comparisons on the spelling benchmarks
On the SIGHAN13 correction test, the chunk-based checker records precision of 74.34, recall of 67.20, and F1 of 70.59. The comparison includes correction F1 of 66.17 for Yeh and colleagues, 47.31 for Zhao and colleagues, 66.2 for Hong and colleagues, and 40.72 for the authors’ rerun of SpellGCN. Hong and colleagues’ checker has correction precision of 73.1 and recall of 60.5. The chunk-based result improves both of those measurements in this comparison, with the more evident change in recall.
On the separate SIGHAN13 detection test, the chunk-based checker reaches precision of 61.19, recall of 75.67, and F1 of 67.66. The table flags Hong and colleagues’ SIGHAN13 detection result because it comes from the correction test set. Running detection on the correction material can tell a reader something about performance there, but it does not supply a like-for-like comparison with the official detection test. The correction comparison does use the corresponding correction setting.
On the CLP14 test set, the chunk-based system achieves sentence-level correction precision of 77.43 and recall of 51.04, producing an F1 of 61.52. Hong and colleagues’ checker has precision of 59.4 and recall of 52.0, with F1 of 55.4. The gain in F1 here comes with higher precision and slightly lower recall. This matters because the method expands the candidate pool. The CLP14 result shows that the final decision can become more selective under sentence-level correction scoring even when generation supplies more kinds of alternatives.
CLP14 test set sentence-level correction F1 by checker
The chunk-based checker leads the reported correction comparison.
The numbers
| System or setting | F1 |
|---|---|
| Zhao and colleagues | 45.90 |
| Hong and colleagues | 55.4 |
| SpellGCN rerun | 49.27 |
| Bao and colleagues (this paper) | 61.52 |
The CLP14 detection comparison has a different pattern. The chunk-based checker obtains sentence-level detection precision of 78.65, recall of 54.80, and F1 of 64.59. The rerun of SpellGCN has detection F1 of 56.28, and Hong and colleagues have 57.0. A strong detection result can show that the checker has found the locations of trouble. The correction score additionally reflects whether the chosen vocabulary entries and their combination agree with the annotated sentence.
On the SIGHAN15 test set, the proposed system obtains sentence-level correction precision of 87.33, recall of 57.64, and F1 of 69.44. Soft-Masked BERT has correction precision of 66.7 and recall of 66.2, for F1 of 66.4. The chunk-based system leads on correction F1 while Soft-Masked BERT recovers a larger share of the expected corrections. The paper notes that Soft-Masked BERT uses 5 million artificial examples for additional pretraining, so its result is a comparison with a separately developed system using a different training procedure.
SIGHAN15 test set sentence-level correction F1 by checker
The chunk-based checker has the highest correction F1 among the compared systems.
The numbers
| System or setting | F1 |
|---|---|
| Zhang and colleagues’ staged checker | 62.54 |
| Hong and colleagues | 62.6 |
| Soft-Masked BERT | 66.4 |
| SpellGCN rerun | 56.98 |
| Bao and colleagues (this paper) | 69.44 |
The SIGHAN15 detection results further qualify the overall benchmark claim. The chunk-based system reaches detection precision of 88.11, recall of 62.00, and F1 of 72.79. Soft-Masked BERT attains detection F1 of 73.5, with precision of 73.7 and recall of 73.2. The method’s strongest SIGHAN15 result is its correction F1. Its high detection precision goes alongside comparatively lower detection recall in this comparison. A reader deciding which of the two results is more relevant needs to distinguish finding as many problematic sentences as possible from producing a reliable fully corrected sentence.
The authors rerun SpellGCN on the standard spelling datasets using its released implementation and evaluation scripts. They explain that the published SpellGCN results used external training data. Their rerun therefore supplies the scores for the conditions used in this comparison. They also exclude scores from the two Wang studies that use character-level evaluation, because changing the scoring unit changes the meaning of the figures. These choices make the table more interpretable without making all baselines identical in architecture, data, or training procedure.
The earlier systems provide reference points for different design choices. Zhang and colleagues’ staged checker uses a classifier to narrow character proposals and then draws on online translation and search in the selection stage. Zhao and colleagues combine spelling with segmentation but reserve special treatment for some single-character cases. Hong and colleagues offer a particularly relevant comparison because they already use contextual character prediction. The benchmark gains show the performance of the complete chunk-based system against those alternatives. The controlled experiments give more specific evidence about the contributions of its parts.
What changes on subtitle errors
The subtitle experiment asks whether the same approach works on errors originating in recognition of displayed text. The chunk-based system attains edit-level detection precision of 77.57, recall of 63.30, and F1 of 69.71. Hong and colleagues’ detector has precision of 78.5, recall of 18.6, and F1 of 30.1. The detection improvement is concentrated in recall. The systems have similar detection precision while the chunk-based system finds many more of the expected edits.
For correction, the chunk-based system records precision of 46.45, recall of 37.90, and F1 of 41.74. Hong and colleagues’ checker records precision of 73.4, recall of 17.4, and F1 of 28.1. The precision cost is more pronounced when the task requires the right replacement. A system can correctly identify a problematic position and lose correction credit because it writes a different character from the reference. The detection and correction results together reveal how often the advantage in finding an error survives the choice of what to put there.
The authors attribute part of the recall benefit to the extra proposal sources. Hong and colleagues’ checker generates its alternatives through BERT, and the short subtitle lines frequently provide limited context for that kind of prediction. Pronunciation and shape retrieval can propose candidates without relying on the surrounding sentence in the same way. The comparison shows what happens when the entire chunk-based system is applied. It does not identify the individual contribution of either additional source on subtitles, since the removal experiment reported in the paper uses SIGHAN15.
The authors’ inspection of the subtitle errors gives a separate explanation for the correction difficulties. The material comes from entertainment, and some errors involve named entities that are poorly covered by a news-derived vocabulary. A valid candidate has to survive retrieval before its fluency and contextual fit can help. The divergence between subtitle detection and correction is consistent with a checker that can recognize some problematic regions more readily than it can supply their intended names. The authors leave adaptation to this domain for future work.
What the ablations show
Contextual proposals add the most recall in the removal experiment
The paper removes one candidate source at a time on SIGHAN15 and evaluates the resulting sentence-level corrections. This comparison keeps the chunk-based approach in place and asks what happens when it loses one kind of proposal. It addresses the effect of a source inside the combined system. Each remaining configuration can still use the other sources, so their results reflect the alternatives those sources can supply together.
SIGHAN15 test set sentence-level correction F1 by candidate source
Removing contextual proposals causes the largest F1 loss among the source removals.
The numbers
| System or setting | F1 |
|---|---|
| Without pronunciation proposals | 67.49 |
| Without shape proposals | 69.15 |
| Without contextual proposals | 62.35 |
| All proposal sources (this paper) | 69.44 |
With all sources enabled, correction precision is 87.33 and recall is 57.64. Disabling pronunciation proposals gives precision of 87.54 and recall of 54.91. Most of the change in this comparison is in recall. The result supports the authors’ decision to retain sound-based retrieval even though their contextual predictor can propose plausible replacements. Some intended readings become harder to recover when candidates supported by pronunciation are unavailable.
Disabling shape proposals gives precision of 86.81 and recall of 57.45. This is the smallest F1 change among the removals. The authors explain it by suggesting that errors involving visually similar characters form a small share of human spelling errors. The removal experiment measures the effect on correction, instead of enumerating visual errors directly. Some proposals may be recoverable from multiple sources, so the result also allows for overlapping coverage. Its clearest conclusion concerns the modest marginal contribution of the shape generator in this SIGHAN15 setting.
Without contextual proposals, correction precision reaches 88.33 and recall falls to 48.18. The retained predictions are somewhat more precise, while many expected corrections are missed. Adding contextual candidates can therefore increase the number of supported corrections even as it gives the ranker more opportunities to make an unnecessary or wrong change. The full system provides a better precision–recall balance as measured by F1. This removal concerns the semantic confusion set as a source of proposals. The paper does not report a separate ablation that strips contextual scoring from the ranker while preserving contextual generation.
The design for single-character chunks is relevant to interpreting the last result. The full system uses the contextual source for proposals at that chunk length and restricts conventional confusion sets to longer chunks. Removing the contextual source therefore changes coverage in a system whose candidate policy already assigns that source a special role. The size of the loss applies to that policy. It does not establish how the sources would compare if every one of them were used for every chunk length.
Adjacent errors expose the cost of independent decisions
The authors compare the chunk-based system with Hong and colleagues’ fine-tuned character checker on the SIGHAN15 test set. They distinguish an isolated wrong character from consecutive wrong characters. A run of neighboring typos counts as a multi-character error for this analysis. Recall is scored at the chunk level, giving the experiment a way to distinguish recovery of the problematic region from recovery of an individual character within it.
The character checker’s recall comes mostly from single-character errors. The chunk-based checker shows the clearer advantage on adjacent errors. This supports the authors’ account of what can go wrong when a decision is made locally against corrupted surrounding text. The neighboring characters provide evidence that would be valuable if they were correct. When they are themselves wrong, a predictor can choose a familiar continuation that reinforces a mistaken reading.
In one case, the character checker replaces 物 with 自 beside the erroneous 然. That creates 自然, meaning “nature.” The local word is plausible, which helps explain the decision. The paper uses the case to illustrate how that plausibility can lead the checker away from the intended expression. A chunk-based procedure can consider a proposal covering the full erroneous span, score it with the rest of the sentence, and avoid relying only on what fits one unchanged neighbor.
This comparison involves two full systems. The generation rules, search units, and ranking procedures differ, even though both make use of a fine-tuned BERT predictor. The result shows that the proposed system handles adjacent errors better under the paper’s grouping and scoring procedure. Attributing that improvement uniquely to MERT, to vocabulary retrieval, or to the unit of correction would require a comparison that varies those choices independently.
The analysis of adjacent errors is also distinct from counting the number of errors in a sentence. Several errors in the same sentence can be separated by correct text. A consecutive run instead places the corruption directly inside the context that a character-level decision would use to interpret its neighbor. The paper investigates the effect of having several errors in a sentence separately, by varying the size of the beam.
A wider beam helps mainly when a sentence has one error
The beam-size experiment changes how many partial corrections survive at each search step. With a narrow beam, a path can disappear because it is less convincing early in the sentence. Retaining more paths gives an alternative segmentation or substitution time to accumulate favorable evidence from later extensions. The scoring features and candidate restrictions still determine which paths can be proposed and how they compete.
On the SIGHAN15 test set, the paper reports that recall rises as the beam widens, precision drops slightly, and F1 improves. The authors attribute the precision loss to additional noisy alternatives in the larger search. They also report that runtime grows linearly with beam size over the range they test. The wider beam thus offers a measurable search benefit and a runtime tradeoff in this implementation.
The edit-level breakdown shows where the extra recall comes from. For SIGHAN15 test sentences containing exactly one error, recall is 69.56 with beam size 1, 72.13 with beam size 2, 73.07 with beam size 4, and 73.30 with beam size 8. More alternatives remain in play at each setting, and the improvements grow smaller as the beam widens. The authors interpret this pattern as evidence that even one error can benefit from considering a reading over more of the sentence. A beam lets the system preserve competing readings for longer while leaving the contextual predictor itself unchanged.
For sentences with 2 errors, edit-level recall is 42.63 at beam size 1, 44.21 at beam size 2, and 44.74 at both beam sizes 4 and 8. For sentences with 3 errors, recall is 43.86 at beam size 1, reaches 45.61 at beam size 2, and returns to 43.86 at beam sizes 4 and 8. In the group labeled 3+ Errors, edit-level recall stays at 26.83 across these beam settings. The sentence groups therefore show different responses to a wider search. Increasing the number of alternatives can help, reach a plateau, or leave a different path at the top without improving recovery.
The authors relate the limited gain on sentences containing several errors to a bottleneck in candidate selection. Once a wider beam stops helping, keeping still more partial corrections offers little evidence of an improvement under the same candidate and scoring rules. The breakdown does not locate every failure within that process. An intended chunk might never be proposed, an otherwise viable correction might be pruned, or a complete correct answer might survive and rank below another sentence. These results show where search width alone provides diminishing returns.
Limitations
Limits the authors identify
The authors define the task around substitutions. A replacement can span several characters, but the spelling procedure keeps the correspondence between input and output positions. This rules out using the reported experiments to assess insertions and deletions. The authors propose extending the approach to Chinese grammatical error correction as future work. That broader task would put additional demands on the decoder because an output could consume and produce different amounts of text.
They also identify domain adaptation as unresolved. In the subtitles, the vocabulary prepared from news has difficulty supplying names from entertainment. Adding candidate sources can help the checker recognize spelling errors and consider more alternatives. Correcting a name still depends on whether the intended string can be retrieved. The subtitle data is short, which the authors describe as a constraint on contextual prediction. The two problems can reinforce each other when there is little surrounding text to identify a name and few relevant entries in the vocabulary.
The authors use an approximate error score because evaluating a contextual probability for every candidate sentence is too costly for their approach. They also list end-to-end training as a direction for future research. In the reported method, the contextual character predictor supplies scores and proposals, and MERT fits the weights used to rank assembled alternatives. The paper establishes the performance of that arrangement. It leaves open what can be gained by training those decisions together.
Limits visible in the experiments
Vocabulary coverage is a structural constraint on generated replacements. Some proposed strings are screened out because they are absent from the vocabulary, even if their characters have favorable contextual probabilities. Some misspellings may require a span longer than the experimental chunk limit of 6. The shape and contextual generators change only 1 character within a candidate chunk. The decoder can combine several corrected chunks, but a particular multi-character target still has to be reachable under the available spans and proposal mechanisms. The paper’s adjacent-error result shows an advantage for the proposed approach within those rules. It cannot establish coverage of every kind of adjacent error.
The benchmark tables report the system’s chosen outputs. They do not give an upper bound based on whether the reference correction was present in the candidate set or among the finished hypotheses. Such information would help distinguish a vocabulary or generation failure from a search or ranking failure. The source removals show how access to particular proposals affects the final output, and the beam analysis shows what happens when more partial paths survive. Neither comparison tells how often a failed test sentence had its intended correction available at each intermediate stage.
The comparison with Hong and colleagues’ character checker also changes several aspects of the system at once. It is an informative test of a strong character-based alternative, particularly on runs of misspellings. It cannot establish how much of the improvement a more limited change would achieve, such as keeping the same proposals while altering only the ranking objective. The candidate-source removals offer finer evidence, but only on the SIGHAN15 benchmark. In particular, the slight effect of shape proposals there leaves their individual effect on optical recognition errors unknown.
The test settings limit claims about generalization. The subtitle checker is trained on labeled subtitle data and uses a separately prepared vocabulary. This supports adapting the procedure to subtitle errors with in-domain training. The experiment does not test a checker moving directly from the spelling benchmarks to subtitles. Since the subtitle test set contains errors in every sentence, it also leaves open how the system would behave on a mixture of clean and corrupted subtitle lines. A precision figure calculated on that set captures false edits within its evaluated material, while the availability of clean sentences would additionally test when the system leaves a line alone altogether.
Finally, the headline F1 scores measure different units across datasets. The SIGHAN15 score for correcting whole sentences cannot be compared directly with the subtitle score for correcting edits as though both described the same events. Even within one test set, gains differ across metrics. The SIGHAN15 correction result favors the chunk-based system on F1 while Soft-Masked BERT leads the reported detection F1 comparison. The subtitle result pairs better F1 with worse correction precision. The evidence supports improvements in the specified settings and metrics, with different consequences for a reader who cares most about missed errors, unnecessary changes, or complete sentence recovery.
What came after
No later citing study is identified that documents how it adopted or tested the chunk-based approach. The follow-up directions are the questions the authors leave open at the end of the paper. They propose broadening the method to grammatical errors, exploring end-to-end training, and addressing the vocabulary mismatch exposed by subtitles. These are proposed extensions. The paper’s evidence remains the comparison on substitution errors, where a search over variable-length chunks allows the checker to reconsider word boundaries and weigh competing corrections together.
Cite
Cite as Zuyi Bao, Chen Li and Rui Wang. 2020. Chunk-based Chinese Spelling Check with Global Optimization. Findings of the Association for Computational Linguistics: EMNLP 2020.
@inproceedings{bao2020chunk,
title = {{Chunk-based Chinese Spelling Check with Global Optimization}},
author = {Zuyi Bao, Chen Li and Rui Wang},
booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2020},
year = {2020},
doi = {10.18653/v1/2020.findings-emnlp.184},
url = {https://doi.org/10.18653/v1/2020.findings-emnlp.184}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bao-2020-chunk-based-chinese-spelling-check/