Connecting the Dots: Towards Human-Level Grammatical Error Correction
Paper · 2017 · Shamil Chollampatt and Hwee Tou Ng
Summary
A grammar correction system can learn that a phrase frequently needs an article or that a verb should take a different form. A misspelling poses a different problem. The system may encounter a string of letters it has never seen, leaving it without a learned correction for that word. Chollampatt and Ng address both problems in a system for grammatical error correction in English learner writing. Their starting point is phrase-based statistical machine translation, which learns to turn a learner’s sentence into a corrected version. They improve how the system judges sentence-level corrections and give it a separate way to handle unfamiliar spellings.
The word-level system uses Moses and learns from 2.21M sentences drawn from NUCLE and the English portion of Lang-8. It combines features for judging edits with a language model trained on Common Crawl. A neural network joint model, or NNJM, adds evidence from the input sentence when scoring a proposed output. The authors train it on the full parallel corpus, then adapt it on expert-annotated NUCLE sentences that contain a correction. On the official CoNLL-2014 test set, adding the joint model improves F₀.₅ by 1.14 points, and adapting it adds a further 1.31 points. F₀.₅ gives greater weight to the precision of proposed edits than to the proportion of reference edits recovered.
The spelling component treats an unfamiliar word as a sequence of characters and proposes alternative spellings. An n-gram scorer trained on Wikipedia then judges each candidate in its sentence. It considers both the probability of the resulting word sequence and whether the words occur in its vocabulary. In the CoNLL-2014 spelling analysis, adding this component raises recall from 46.67 to 91.35 and F₀.₅ from 67.74 to 78.12. An alternative that uses Hunspell also recovers more spelling edits than the word-only system, but its precision falls to 58.94. Subject–verb agreement remains a weakness. The competing system of Rozovskaya and Roth does better on that category with a classifier that uses syntactic information.
The combined system scores 53.14% F₀.₅ on the official CoNLL-2014 test, 3.62 points above the best previous published result. In a separate comparison using 10 sets of human annotations, it reaches 94.09% of the average human score under the paper’s evaluation procedure. The authors report that this closes the measured gap by 36%. On the JFLEG test set, the same system achieves 64.25 F₀.₅ and 56.78 GLEU without being retuned for that corpus. The authors release the source code and trained files for the system under the name smtgec2017.
Deep dive: Connecting the Dots: Towards Human-Level Grammatical Error Correction
How word-level translation and character-level spelling correction brought an English grammar correction system closer to human performance. · about 36 minutes to read
The problem and its context
What changes when correction covers the whole sentence
A text correction system must decide where to intervene and what to put in place of the original wording. These decisions are closely related. A possible replacement may reveal a plausible error, while a failure to find any convincing replacement may favor leaving the sentence alone. The scope of the task also matters. A system built to choose an article has a limited set of decisions to make. A system that handles learner writing more broadly may need to insert or delete words, change inflections, repair spelling or punctuation, and improve a collocation, a combination of words that ordinarily go together.
The shared tasks described in the paper illustrate the change in scope. The earlier exercises focused on selected categories. The HOO pilot was followed by a HOO task whose scope centered on prepositions and determiners. CoNLL-2014 admitted textual errors across categories. With a broad task, an approach has to deal with the possibility of several edits in the same sentence, including edits whose usefulness depends on the words around them. A spelling change can make a neighboring phrase easier to interpret. A word replacement can affect whether another change is appropriate. Evaluating complete corrected sentences brought these decisions into the same test. HOO 2011 Pilot Shared Task · HOO 2012 Shared Task
Phrase-based translation gave researchers a way to learn a common correction procedure from examples. The input and output are both English, but they play the roles that different languages play in ordinary translation. The source is the learner’s sentence, and the target is its edited counterpart. During training, recurring links between source and target phrases provide evidence about which sequences can be rewritten as which others. A phrase in this setting is a span of words used by the translation system. Its usefulness does not depend on whether a grammatical analysis would identify it as a constituent. This gives the method room to learn replacements that involve several tokens.
The paper traces the use of phrase-based translation for correction to work on the countability of mass nouns. This was a relatively focused problem, but it established that aligned versions of a learner’s text could support a correction procedure. By the CoNLL-2014 shared task, phrase-based translation was used by two of the top three teams. Its appeal was partly the breadth of edits it could learn from the same parallel corpus. The approach also avoided a requirement for language-specific analysis tools in the core translation procedure. The authors qualify the resulting argument for portability with a practical requirement. The new language would need adequate parallel examples of original and corrected writing. Correcting ESL Errors Using Phrasal SMT Techniques
What earlier approaches contributed
Error-specific classifiers offered a different way to decide what to change. A classifier can be supplied with information about the grammatical relation relevant to its decision. A subject–verb agreement classifier, for example, can make use of an analysis of which noun phrase is the subject of a verb. A correction pipeline can have other components for spelling, punctuation, and case, with translation available alongside them. Rozovskaya and Roth had compared classification and translation through an analysis of their edits and used both in a broader system. For Chollampatt and Ng, this work provided both a system to compare against and a way of thinking about linguistic categories that aggregate performance can conceal.
The authors also describe previous work on improving the selection of translation outputs. A phrase-based decoder can produce a ranked list of candidate sentences. If a useful correction is present lower in the list, another procedure can promote it by applying additional evidence. Earlier correction studies had examined reranking or combination of these candidates, including through classifiers. This line of work addresses how to choose among proposals that the translation system has already found. The spelling problem in the present paper also involves the ability to create a proposal. A word form can be so unfamiliar to the phrase inventory that the intended replacement is absent from the available word-level choices. Exploiting N-Best Hypotheses to Improve an SMT Approach to Grammatical Error Correction
Neural methods had begun to enter correction in several ways. The paper distinguishes work that treats correction as neural translation from work that adds a neural score inside an existing phrase-based decoder. Character-based attention had also been explored for language correction. The system described here follows the route of adding a neural scoring feature to phrase-based search, then uses a separate statistical character component for spelling. A learned representation of words can help the decoder judge a possible correction given the surrounding source text. Changing the input unit to characters makes it possible to propose a candidate for a word that has no learned source-side entry. Grammatical error correction using neural machine translation · Neural Language Correction with Character-Based Attention · Neural Network Translation Models for Grammatical Error Correction
The closest starting point was the approach of Junczys-Dowmunt and Grundkiewicz. They had strengthened phrase-based correction by changing the features, tuning the system for correction, and adding a language score based on a much larger collection of text. A correction has evidence beyond the frequency of a source-to-target phrase pair. It can be judged by which edits it makes, by the output sequence it produces, and by whether its sequence of rewrite operations is plausible. The new paper takes these sources of evidence as part of the word-level system and asks whether the decoder can make better use of source context and handle gaps in its word-level coverage.
Why spelling exposes a gap in phrase coverage
A word-level system learns replacements for the specific forms it sees in training. If a misspelling occurs there with a correction, the system can learn to propose that correction when the same spelling turns up again. Learners can make many distinct attempts at spelling a word, however, and the resulting forms will be unevenly represented in any collection of sentence pairs. Similar mistakes in different words need not share a word-level phrase entry. Character sequences expose recurring pieces of those mistakes. The same kind of change to a letter or short letter sequence can recur across words whose complete forms have never been seen together.
The paper places character-level spelling correction in the context of earlier work on transliteration, translation between related languages, and processing noisy translation inputs. It also points to an Arabic correction pipeline that had used word- and character-level statistical translation. A character sequence makes sense as the input unit when the problem is to recover the form of a particular word. The sentence is still useful for deciding which recovered form fits. This motivates the split in the paper’s architecture. A character-based system makes spelling proposals, and a word-based context score helps choose among them. UMMU@QALB-2015 Character and Word Level SMT Pipeline
The method, step by step
From a learner sentence to a corrected sentence
The authors first build a complete correction system that works at the word level. Its decoder considers possible rewrites using a phrase table, a collection of source spans and their learned target alternatives. It evaluates candidate sentences by combining scores from different features. Some address the correspondence between input and output. Others describe the edits the candidate makes or judge how well the resulting words fit together. The neural network joint model belongs to this scoring procedure. It supplies a prediction of output words informed by a window of source words as well as by the output context.
For spelling, the system identifies a word as unknown if that word does not occur on the source side of the parallel translation training data. It uses the unknown word’s characters as the input to a separate decoder. That decoder returns a list of possibilities. The next step evaluates those possibilities in word context. A spelling candidate can look like a plausible letter-level repair and still produce a poor sentence. Conversely, a candidate with a plausible place in the sentence may deserve to move ahead of a candidate that the character system initially favored. This division allows the component that recognizes familiar spelling changes to use evidence from beyond the boundaries of the word.
Word-level correction and contextual scoring of spelling candidates
The steps in order.
The word-level and spelling paths learn from different examples. Sentence pairs teach which word sequences tend to be kept or edited, and how those changes appear in complete learner sentences. Spelling pairs teach which pieces of a word can change when its spelling is corrected. General text supplies evidence about likely output sequences and about which forms to treat as familiar. The role of a corpus therefore depends on where the authors use it. A collection of fluent text can strengthen judgments about the output without documenting the mistakes learners made on the way to it.
Building the parallel sentence corpus
The two sources of parallel sentence data are the NUS Corpus of Learner English, or NUCLE, and Lang-8 Learner Corpora v2. Parallel means that a learner’s original sentence has a corresponding target sentence with corrections. This is the distinction behind the source and target token counts. A token is an occurrence of a word or other unit in the tokenized text. Counts measure how much material appears on either side, while the sentence count measures how many training instances the authors combine. NUS Corpus of Learner English · Tokenization
NUCLE supplies both training material and a development set for system tuning. The authors first identify sentences that have at least one recorded edit. They reserve one-fourth of that edited group for development, giving 5,458 sentences with 141,978 source tokens. The training portion is the remaining NUCLE material, including sentences without an annotated edit. An unchanged training target provides evidence for leaving text as it stands. This makes the broad training set suitable for learning both changes and the contexts in which a change is unnecessary.
The authors filter Lang-8 with langid.py, a tool for identifying the language of text, to select the English learner sentences. They combine that selection with the NUCLE training portion. The resulting parallel set contains 2.21M sentences, with 26.77M tokens on the source side and 30.87M on the target side. The distinction between the full training portion and the edited NUCLE subset returns later. The authors use the full set for initial learning and reserve a narrower choice of examples for adapting the neural scoring feature. langid.py
Learning phrase rewrites and judging the output
The phrase table is trained on the complete parallel set. Moses uses this table during decoding, the process of finding and scoring possible target sentences for an input. The system has a log-linear score. Each feature contributes its value multiplied by a learned weight, and the decoder combines the contributions into a score for a candidate. This gives the system a way to trade off evidence. A phrase rewrite that is well supported in the parallel data can compete with an alternative that makes the surrounding output read more naturally. Weights establish how strongly each kind of evidence influences that choice.
The combination described in the paper can be written as a ranking score.
S(y, x) = ∑ᵢ wᵢ hᵢ(y, x)
Here, x is the learner sentence, y is a candidate correction, and S(y, x) is the combined score used to rank that candidate. The index i identifies a feature. The term hᵢ(y, x) is the value of that feature for the input and candidate, and wᵢ is the corresponding tuned weight. The summation sign ∑ᵢ means to add the weighted contributions across features. A contribution can come from evidence about the rewrite, from the sentence it yields, or from a feature such as an edit count.
Alongside the dense features that Junczys-Dowmunt and Grundkiewicz proposed, the authors use sparse word-level edit features that incorporate one word of context. A dense feature supplies a common scoring dimension across candidates. An edit count, for instance, describes a property that each candidate can be evaluated for. A sparse feature can distinguish a more specific event, such as an edit occurring with a particular neighboring word. Such a feature is relevant only when that event occurs. The system can therefore learn a general preference about editing while also learning that some particular changes are good or bad bets in particular contexts.
The feature set includes counts of edit operations, a word class language model, the Operation Sequence Model, and the lexicalized sparse edit features. The word class score describes a candidate in terms of groups of words and their sequence. The operation sequence score uses the sequence of actions that produces a translation, treating the history of rewrite operations as evidence. The sparse features retain the specificity of individual word edits. This coexistence is useful because the properties are at different scales. A candidate may follow a familiar pattern at the level of word classes and still contain a questionable edit to a specific word. Tuning lets both observations enter the final ranking.
The word-level system begins with two 5-gram language scores. One is learned from the target side of the parallel data, the text the correction system is meant to produce. The other is learned from Wikipedia, using a corpus of 1.78B tokens. In this use of an n-gram, the score of a word depends on a limited run of preceding words. It rewards local sequences seen in the language-score training corpus. The additional Wikipedia score draws on a much larger supply of word sequences than can be obtained from the edited targets alone.
In a stronger configuration, the authors replace the Wikipedia score in the word-level decoder with a 5-gram score from a 94B-token subset of Common Crawl, called 94BCC LM in the experiments. The target-side score is still part of the word-level setup. The Common Crawl corpus needs no paired learner original for this purpose. Its contribution is evidence about word sequences in possible outputs. It does not teach the phrase table which learner span should map to which correction. The distinction matters because the larger text collection does not also give the system a word-level rewrite for every unfamiliar learner spelling. N-gram Counts and Language Models from the Common Crawl
Bringing input context into the scoring
The NNJM adds a neural score relevant to translation from the learner sentence into its correction. A target-side n-gram looks at a sequence in the proposed output. The joint model also uses information from the original sentence when predicting output words. It can therefore score a word choice in light of what the learner wrote and what the decoder has already proposed in the target. For correction, source context can help distinguish competing edits that all produce familiar-looking English. The sequences may be plausible in general while differing in how well they account for the particular input.
The feature also uses continuous representations of words and phrases. Rather than every context contributing only as a particular discrete combination, related uses can contribute through the learned representations. The authors present this, together with the ability to use a larger source context, as a reason to expect better predictions. The NNJM remains part of the decoder’s combined score. It contributes evidence about the competing proposals while the phrase table and other features continue to govern the searches and choices available to the word-level system. Fast and Robust Neural Network Joint Models
The authors train the network on the full parallel set using a log-likelihood objective with self-normalization. The log-likelihood objective rewards predictions that give greater probability to the observed target words in their training contexts. Self-normalization encourages the scores to behave like normalized probabilities without requiring the same normalization work for every prediction during use. The paper identifies CoreLM as its Theano-based implementation and reports training on GPUs. These details describe how the neural feature is estimated. The combination of all the decoder features is a separate tuning problem. Theano
Adapting the joint score to edited sentences
The NNJM receives another round of training after learning from the combined sentence corpus. The adaptation method comes from earlier work that had trained an existing joint model further on writing by learners with a shared native language. Here, the criterion for choosing adaptation data is different. The authors use sentences in the NUCLE training portion with at least one annotated edit. They reuse the prior method’s hyper-parameters, the settings that control training, and follow its regularized loss procedure. Regularization constrains how the feature shifts during the second round of training, allowing the smaller corpus to change its behavior while retaining information acquired during initial training.
The choice of adaptation data has two properties the authors consider valuable. NUCLE’s corrections were annotated by experts, so the authors regard the annotation as higher quality than Lang-8’s. In addition, this selection favors sentences with actual corrections. In the broad training corpus, the decoder has seen sentences that require no edit. The narrower adaptation set presents more evidence per sentence of how learner text can be changed. The authors expect this change in emphasis to make the joint score more receptive to proposed corrections. Linguistic annotation · Fine-tuning
The adapted feature is integrated with the other word-level scores. The resulting system, Word SMT-GEC, includes the correction-specific dense and sparse features, the Common Crawl score, and the adapted NNJM. This version can be evaluated on its own, which separates the contribution of the word-level improvements from the behavior of the complete system with spelling correction. The phrase table still comes from the original parallel training set. Selecting edited NUCLE sentences changes the data used in the further training of the neural feature.
Training a translation system for spellings
In the spelling decoder, letters take the place of words as translation units. The sequence for a misspelled word plays the role of a source sentence. The letters of its corrected form play the role of the target sentence. This lets a phrase-based decoder describe a word repair through correspondences between short character sequences. A character change learned in one training word can be useful in another, even when the second word’s complete spelling does not occur on the source side of the sentence corpus.
The spelling corpus consists of misspelling–correction pairs. The pairs from Holbrook are reserved for development. The remaining pairs enter training, along with the unique words from the NUCLE training portion copied to both the source and target sides. A pair with the same word on each side is an example of a spelling to preserve. Combined with misspelling pairs, it helps the character procedure learn both changes and faithful reproduction. The character-level 5-gram score is trained on the target side of these spelling data. It judges the plausibility of the letter sequences generated by the decoder.
The authors align spelling pairs using a Levenshtein matrix. This records the costs of aligning increasingly long prefixes of the two forms. The possible operations correspond to preserving or changing a character, inserting one, or deleting one. A low-cost path through the matrix provides an alignment from which to learn character correspondences. The authors use this procedure in place of GIZA++ for the spelling component. The spelling task begins with known paired word forms, so the desired alignment is between the letters of an observed form and the letters of its recorded correction. A Systematic Comparison of Various Statistical Alignment Models
The spelling decoder is tuned on character edits. It uses character-level edit-operation features, the character language score, and MaxMatch, or M², applied to characters in the spelling development data. The sentence correction experiment uses MaxMatch at the level of word edits. Changing the unit for spelling development makes the tuning criterion sensitive to how the letters in an individual word are repaired. Character training and tuning thus precede the use of full-sentence context. The decoder learns what a plausible spelling repair looks like before another stage decides which proposal belongs in the sentence.
Choosing a candidate in word context
For each unknown word, the spelling decoder returns 100 candidates. Each candidate is a proposed word form. The context scorer evaluates the sentence with the candidate in place and uses two kinds of evidence from a word-level n-gram score. The first is the probability assigned to the word sequence. The second is the out-of-vocabulary count, the number of words in the resulting sentence absent from the scoring vocabulary. In this comparison, replacing the same unknown word with different candidates can change both measures. A familiar word that fits poorly can receive weak sequence evidence, while a string that still looks like a nonword can be penalized through its absence from the vocabulary.
The word unknown has different meanings at the two stages. The spelling trigger is based on the source side of the parallel phrase-training corpus. The vocabulary used for judging proposals comes from a language score estimated on a different collection of text. A legitimate word can be absent from the learner source corpus but present in the rescoring vocabulary. This independence makes the second check useful. It also means that the choice of rescoring corpus affects which strings are encouraged. The paper’s final spelling procedure uses the 5-gram Wikipedia score for this purpose, even though the Common Crawl score is used in the word-level decoder.
The complete system is called Word&Char SMT-GEC. It applies character granularity where a spelling proposal has to be built and word granularity where the sentence supplies evidence about that proposal. The context score chooses among the candidates the character decoder offers. The success of a spelling decision consequently depends on both finding a viable replacement and ranking it well. These are distinct potential sources of error even when the final output exposes only the selected spelling.
Experiments and results
What the official test measures
The main benchmark is the official CoNLL-2014 test set. The authors use MaxMatch scorer v3.2 to compare the changes made by a system with the human reference edits. The scorer deals with a practical issue in evaluating corrections. It is possible to express practically the same change as a larger edit spanning several words or as a set of smaller edits. Matching system edits against a reference requires deciding how to represent that correspondence. The reported precision, recall, and F₀.₅ are based on the scorer’s edit matches.
Precision measures how many proposed edits match the reference evaluation. Recall measures how many of the reference edits the system recovers. F₀.₅ combines the two with greater weight on precision. This matters for a system that decides whether to touch the original text. An aggressive corrector can find more of the annotated problems while also altering more words unnecessarily. A cautious one can protect its precision by leaving some problems unresolved. The paper reports both underlying measures in the incremental and spelling comparisons so that the direction of a score change can be interpreted.
The experimental setup keeps development and test roles separate. The edited NUCLE development sentences are used for tuning, and the official CoNLL-2014 set is used for evaluation. The authors tune each SMT system five times and average the resulting feature weights, citing instability in the optimizer. This applies to the incremental configurations. The scores therefore describe systems whose weights were set for each configuration, rather than an evaluation of a new feature inserted with a weight chosen after inspecting test output.
Performance as components are added
The starting SMT-GEC configuration, with the target-side and Wikipedia language scores, attains 55.96 precision, 22.54 recall, and 43.16 F₀.₅ on the official CoNLL-2014 test set. After adding the dense and sparse correction features, it reaches 58.24 precision, 24.84 recall, and 45.90 F₀.₅. Replacing the Wikipedia score in the word decoder with the Common Crawl score brings precision to 61.02 and recall to 27.80, with 49.25 F₀.₅. These rows establish the strength of the word-level decoder before the authors add the neural feature.
Incremental system configurations on CoNLL-2014 test F₀.₅
Each successive configuration improves the score, with the combined word and spelling system highest.
The numbers
| System or setting | F₀.₅ % |
|---|---|
| SMT-GEC | 43.16 |
| With dense and sparse edit features | 45.90 |
| With Common Crawl replacing Wikipedia | 49.25 |
| With NNJM | 50.39 |
| With adapted NNJM | 51.70 |
| With character spelling SMT (this paper) | 53.14 |
With the NNJM trained on the full parallel corpus, precision is 61.65 and recall is 29.11. The authors report a gain of 1.14 points in F₀.₅ over the configuration with correction features and Common Crawl. The adapted NNJM raises precision to 62.14 and recall to 30.92. The paper gives its F₀.₅ gain over the unadapted feature as 1.31 points. This row is Word SMT-GEC. With the spelling component in place, Word&Char SMT-GEC reaches 62.74 precision and 32.96 recall. The authors report that each successive modification improves significantly on the preceding configuration at p < 0.01.
The same benchmark provides a comparison against published correction systems. The authors rerun scorer v3.2 on the other systems’ released outputs. On the official references, the Junczys-Dowmunt and Grundkiewicz system, abbreviated J&G, has 49.52 F₀.₅. The Rozovskaya and Roth system, R&R, has 47.40. The highest-ranked system from the original CoNLL-2014 shared task, by Felice and colleagues, has 37.33 in this comparison. Figures for the systems are obtained under a common scoring procedure, which is important when reading small increments or comparing the systems again with a different reference collection.
The authors report a 2.18-point advantage for Word SMT-GEC over J&G on official test F₀.₅ without adding a dataset beyond those used by J&G. Word&Char SMT-GEC extends the reported margin over J&G to 3.62 points. That latter comparison includes a spelling corpus used by the character decoder. The two rows support different readings of the improvement. The word system shows how far the correction architecture can go with the joint score and its adaptation under the stated data comparison. The complete system shows the additional benefit of a spelling procedure trained on paired spellings.
Comparing with human corrections
A separate experiment compares the system to humans using the 10 sets of CoNLL-2014 test annotations released by Bryant and Ng. Different people can make different valid edits to a learner sentence, including choosing different stretches of text to change. A comparison with many sets of edits therefore gives a different view of system quality from evaluation with the official test references. In the paper’s comparison, people are themselves evaluated against other people’s corrections. Their agreement supplies the scale on which the system result is read.
The authors report a score with all 10 annotation sets and a separate average system-versus-human score, abbreviated SvH. For SvH, they leave out a different human annotation set on each repetition and score the same system output against the remaining 9 sets. They average over all 10 repetitions. This gives the system the same number of reference sets per comparison as a human being compared against the other annotators. The human-versus-human average on this scale is 72.58% F₀.₅. The ratio compares the two averages.
R = S ÷ H
Here, S is the average system-versus-human F₀.₅, H is the average human-versus-human F₀.₅, and R is their quotient, which the paper reports as a percentage. The division compares scores on the same test sentences and under the corresponding reference procedure. The ratio gives a system’s score relative to the human agreement level for the evaluation.
With all 10 annotations available as references, Word&Char SMT-GEC has 69.12 F₀.₅, Word SMT-GEC has 68.38, and J&G has 66.83. R&R has 62.45 and the original shared-task leader has 54.30 under these references. These scores belong to the full-reference comparison. The leave-one-out SvH averages for Word&Char SMT-GEC and Word SMT-GEC are 68.29 and 67.51, respectively. J&G has 65.90, R&R has 61.50, and the shared-task leader has 53.47. These are the scores the authors use for the human ratios.
The resulting ratio is 94.09% for Word&Char SMT-GEC, compared with 93.02% for Word SMT-GEC and 90.79% for J&G. The paper reports 84.73% for R&R and 73.67% for the leading original shared-task system. The authors describe their final result as closing the measured gap between the previous best system and human performance by 36%. The result is about agreement under a defined test and reference procedure. The official test F₀.₅ and the human ratio answer different questions and have different denominators.
Testing on a corpus with a fluency emphasis
The authors also evaluate on JFLEG, a corrected subset of the GUG corpus. The purpose is to see whether the results carry over to a benchmark with a fluency emphasis when the system is used without further tuning. They report F₀.₅ and GLEU on the development and test splits. F₀.₅ describes the match between edits. GLEU is the second reference-based score used for this correction benchmark and judges overlap of word sequences in the system’s output with the reference corrections in relation to the source. The use of both scores gives more than one way to compare the corrections on the same material.
On the JFLEG development split, Word SMT-GEC scores 58.17 F₀.₅ and 48.17 GLEU. Word&Char SMT-GEC scores 61.51 F₀.₅ and 51.01 GLEU. The published development values for Yuan and Briscoe are 50.8 F₀.₅ and 47.20 GLEU, and those for the earlier Chollampatt collaboration are 52.7 F₀.₅ and 46.27 GLEU. The authors include development scores as a further evaluation of the configurations. The JFLEG development split had no role in retuning them.
On the JFLEG test split, the word-only system has 60.95 F₀.₅ and 53.18 GLEU. The combined system has 64.25 F₀.₅ and 56.78 GLEU. The comparison with the prior systems on this split is available for GLEU. The paper gives 52.05 for Yuan and Briscoe and 50.13 for the earlier Chollampatt collaboration. The test F₀.₅ entries for those systems are unreported, so the comparison on that metric is between the paper’s two configurations.
System comparison on JFLEG test GLEU
The system with character spelling correction leads the word-only system and both published comparisons.
The numbers
| System or setting | GLEU |
|---|---|
| Earlier Chollampatt collaboration | 50.13 |
| Yuan and Briscoe | 52.05 |
| Word SMT-GEC | 53.18 |
| Word&Char SMT-GEC (this paper) | 56.78 |
The spelling addition improves both reported metrics on both JFLEG splits. The JFLEG results also give a useful comparison for the word-only system. Its test GLEU exceeds the comparison systems’ scores before any character spelling component is added. The pattern is consistent with a method that already makes useful sentence corrections and then benefits from greater spelling coverage.
What the ablations show
What each successive change establishes
The main component study builds up the system in stages. Its first comparison adds dense and sparse correction features together. The result supports the use of the package at that point in the pipeline. A reader cannot assign the gain to the edit counts, the word class score, the operation sequence score, or the sparse edits individually. They enter at the same step, and the combined weights are tuned for that configuration. The next comparison changes the external word-level language score from Wikipedia to Common Crawl. It therefore evaluates the replacement in the presence of the correction-specific features.
The NNJM is a particularly informative addition because the preceding system already has task-specific features and a language score from 94B tokens of web text. Its improvement establishes that the joint feature can help an already strong decoder in this configuration. The authors’ rationale is that the joint score has access to the original sentence and uses continuous representations. The comparison is of the complete feature as added to the decoder. How much the source window, the learned representation, or interactions with existing scores contribute to the gain remains unclear. Since the system is tuned after adding the feature, its contribution is measured as part of a coordinated decision about how to weigh the available evidence.
The adaptation comparison holds the main decoder architecture fixed and changes the training of the neural feature. The higher recall on the official test is consistent with the authors’ expectation that training on edited sentences favors making corrections. Precision also rises in that comparison. This matters because a change that merely induced more editing could have produced higher recall while reducing the proportion of proposed edits that match. The observed changes are consistent with better selection of edits as well as a higher willingness to make them. The experiment tests the combination of expert annotation and a higher concentration of edits, since both properties accompany the change in training data.
The sequence ends by adding the character component. Overall recall rises again, and the official precision also improves. The most direct evidence for what the added component does, however, comes from the separate spelling analysis. In the aggregate, the gains are spread over many opportunities for different categories of edit. Restricting the analysis to detected spelling changes allows the authors to ask whether the added suggestions are recovering the kind of error that motivated the component in the first place.
Whether the spelling component finds useful words
The authors use ERRANT to classify and compare edits on the CoNLL-2014 test set. It is a rule-based toolkit that draws heavily on part-of-speech tagging, the assignment of categories such as noun and verb to individual words. For the spelling analysis, the toolkit gives a common way to identify the edits that count towards spelling precision, recall, and F₀.₅. The numbers in this analysis refer to the spelling category. They are distinct from the aggregate figures on the same test set.
The clearest comparison is between the two versions of the authors’ system. Word SMT-GEC has spelling precision of 76.36 and recall of 46.67. Word&Char SMT-GEC has spelling precision of 75.40 and recall of 91.35. The precision declines slightly while recall rises sharply, and the spelling F₀.₅ increases from 67.74 to 78.12. This is the change one would expect from a successful coverage improvement. The new procedure can propose edits where the existing system seldom finds one, and a large enough share of its proposals match to improve the precision-weighted measure.
Spelling correction on CoNLL-2014 test F₀.₅ under ERRANT
The contextual character component gives the highest spelling score, while the Hunspell variant scores below the word-only system.
The numbers
| System or setting | F₀.₅ % |
|---|---|
| J&G | 71.19 |
| R&R | 76.29 |
| Word SMT-GEC | 67.74 |
| Word SMT-GEC with Hunspell | 62.94 |
| Word&Char SMT-GEC (this paper) | 78.12 |
J&G has the highest precision in the spelling comparison, at 82.35, and recall of 46.15. Its result and the word-only result illustrate how precision can be high when a system acts mainly on misspelling patterns learned during training. The authors attribute the lower recall of these systems to the inability to generalize to many unseen misspellings. The character unit makes the resulting change in coverage intelligible. A proposal can be built from learned local correspondences even when there was no previous example of the complete word form.
R&R provides a comparison with a specialized spelling procedure. It uses ConSpel, a proprietary context-sensitive checker for misspellings that do not form valid words. R&R achieves 74.19 precision and 85.98 recall on the spelling category. Word&Char SMT-GEC exceeds both values. This comparison places the gain alongside a system designed to use context for the same kind of spelling problem. The comparison concerns the whole evaluated outputs. Each system has its own method for deciding where to edit and which spelling edits survive to be scored.
The authors also replace their spelling component with Hunspell in a version of Word SMT-GEC. That setting attains spelling recall of 86.41, showing that a conventional checker can recover many edits that the word-level decoder misses. Its precision falls to 58.94. The authors attribute the decline to spurious changes proposed by Hunspell. The lower F₀.₅ indicates that recovering more reference spellings is insufficient when the new edits also include too many incorrect proposals. The contrast is especially relevant in a task where a system can damage already acceptable text by changing it.
Why the same vocabulary is used differently
The authors compare Wikipedia and Common Crawl as sources of the word-level score for rescoring character candidates. The final evaluation with Wikipedia for this job yields 53.14% F₀.₅ on the official CoNLL-2014 test set. Substituting Common Crawl yields 53.06% in the corresponding setup. This is an aggregate result for the complete correction system. It addresses the choice of rescoring corpus while the character procedure is in use.
The authors explain the ordering through the out-of-vocabulary count. Common Crawl includes noisy website text and many misspellings in its vocabulary. If a misspelled candidate also occurs in that vocabulary, the count gives the system no reason to penalize it for being absent. The Wikipedia vocabulary is more selective for the spelling proposals in this experiment. The role of vocabulary membership makes the preferred source of evidence depend on the job. In the word decoder, the Common Crawl score helps judge a wide range of local output sequences. In spelling rescoring, the system also relies on the vocabulary’s ability to screen out nonwords. The corpus that helps in the former role can provide a weaker signal in the latter.
The comparison also puts the local character score in perspective. It supplies the list of potential repairs, but the final result depends on how candidates are evaluated as words. A vocabulary that includes many erroneous strings can make some character proposals harder to reject. A word score that considers both membership and context can counter that problem when its training corpus provides a vocabulary suited to the choice. The experiment shows a difference between corpora in the combined rescoring setup, while the proposed mechanism concerns a particular feature of that setup.
Which grammatical categories remain difficult
The other ERRANT analysis looks at several frequent error categories. The paper cites a 95% acceptance rate by human raters for the toolkit’s error classification. The categories in this comparison are noun number, verb tense, determiners, punctuation, subject–verb agreement, and prepositions. The authors report that the final system leads the compared systems on four of the six categories and performs comparably on determiners. The four categories where it leads are noun number, verb tense, punctuation, and prepositions.
Subject–verb agreement is the main exception. R&R outperforms both the authors’ system and J&G by a notable margin on that category. Its agreement classifier uses linguistic features that include syntactic information and dependency parsing, in which a sentence analysis identifies relations between words. This can give the classifier the link from a verb to its subject. A phrase-based rewrite procedure scores sequences and contextual evidence but does not explicitly represent that grammatical relation in the way the classifier does. The paper points to this difference to explain why the stronger aggregate system can still be weaker on agreement.
The score by category answers a different question from the incremental system comparison. The incremental rows show that a modification helps under the benchmark’s overall balance of errors. The category analysis shows where the final system ends up relative to its competitors. Its strength on several error types is compatible with a persistent disadvantage on subject–verb agreement. The spelling analysis gives the clearest connection between a targeted component and its intended category. The remaining category comparisons describe the behavior of complete systems whose components differ in several ways.
Limitations
Limits the authors identify
The authors’ central diagnosis is that a word-level translation inventory offers poor coverage for many unseen misspellings. Their solution specifically targets unknown source words. That makes the coverage of the spelling procedure depend on the trigger. A word can be incorrect in a sentence even if it occurred on the source side of the parallel corpus. In that case, the special path described in the paper is not activated by the presence of the error. The character component thus addresses a particular failure mode of phrase-based correction. Other mistakes remain the responsibility of the word-level system.
The authors also explicitly identify subject–verb agreement as a relative weakness. Their explanation concerns the representation available to the decoder. A classifier supplied with a dependency analysis can ask which word is the subject of a particular verb. The phrase-based system can learn patterns of words and edits and can incorporate source context through the NNJM. It lacks the corresponding explicit verb–subject feature in the comparison. The results show that improvements in word sequences and spelling do not remove the advantage that a dedicated grammatical analysis can confer on that category.
The choice of rescoring vocabulary brings a further limit into view. A larger web corpus gives a language score access to more text, but that text can include the misspellings the authors want the spelling system to reject. The authors identify this when explaining their choice of Wikipedia for rescoring. The vocabulary count works as an indicator because of what the vocabulary includes and omits. Its behavior can change when the text used to construct the vocabulary changes. This applies independently of the broad usefulness of the Common Crawl corpus in the main decoder.
Limits of the comparisons
The incremental study tests a particular order for combining components. It can establish that the NNJM helps after the web-scale score and correction features are in place, and that further adaptation helps after the full-corpus NNJM has been added. It cannot establish how large those gains would be if the feature were introduced into a simpler decoder or added in another order. Components influence the same search and ranking procedure. Their effects can overlap or reinforce each other. The reported gains describe changes between the evaluated configurations.
The first feature comparison also bundles several mechanisms. The dense and sparse features are introduced together, so the paper does not isolate their individual contributions. Similarly, the Wikipedia-to-Common-Crawl comparison changes a corpus’s size and source together. The paper documents useful choices for these decoder configurations. It leaves the separate effects of individual feature classes, corpus scale, and corpus composition unresolved.
The adapted NNJM has a related ambiguity. The adaptation subset is simultaneously drawn from an expert-annotated source and restricted to sentences with edits. These choices change the composition of the data in more than one respect. The increase in recall fits the authors’ expectation about error-rich examples, and the improved precision fits the possibility that better annotations make the examples more reliable. Either change could contribute to both metrics. Establishing their relative contribution would require a comparison that varies annotation source and edit density separately.
The spelling experiments show what the combined candidate generator and contextual scorer can deliver. They do not report how frequently the intended word was already present somewhere among the 100 candidates, independent of which word was selected. A failed correction can occur because the word is ineligible for character processing, because a desirable candidate was never produced, or because the scorer preferred a different candidate. The reported precision and recall combine these outcomes. The alternative Wikipedia and Common Crawl settings give some information about ranking, but they do not distinguish every source of failure.
Similarly, replacing the spelling procedure with Hunspell compares two complete ways to supply spelling edits. The experiment does not isolate the effect of a single change such as rescoring Hunspell’s candidates with precisely the character system’s contextual features. It supports the paper’s combined approach over the implemented alternative and shows why precision matters in that comparison. It leaves open how much of the margin comes from candidate generation, how much comes from choosing among candidates, and how much comes from which words are considered for replacement.
Limits of the benchmarks and human ratio
The human comparison measures overlap among edits on the CoNLL-2014 test sentences. The people in the comparison can disagree about whether a change is necessary or which correction best expresses the intended meaning. The denominator reflects their average agreement under the same evaluation design. Reaching 94.09% of that average means that the system’s edit-match score approaches theirs on this procedure. It gives no direct measure of how frequently a reader would prefer the system’s entire sentence to a human’s version, or how consistently either would preserve an intended meaning that can be inferred in several ways.
The distinction between reference agreement and editing quality also applies to the test without the human ratio. The reference collections provide concrete targets for comparing systems. A plausible correction that is worded differently can still be difficult for an edit-based scorer to credit. The comparison with more references helps by representing more correction choices, and scores rise across systems under that reference collection. A richer set of acceptable edits does not settle every question about whether an output suits a writer’s intended style or meaning. Neither benchmark gives a separate result for those judgments.
JFLEG provides evidence of transfer across two evaluation settings for English learner sentences. The fact that the authors do not retune for JFLEG makes it informative about the portability of the learned system and weights in this comparison. The study does not cover unrelated writing domains, other languages, or practical settings where corrections are shown to writers and their effects can be observed. The broader claim that phrase-based correction can be trained for another language is conditional on suitable parallel text. The results here establish performance for the English corpora and scoring procedures the authors actually evaluate.
The per-category evidence also depends on the categories ERRANT assigns to system and reference edits. The human acceptance figure cited in the paper concerns the classification toolkit. It does not make each individual classification indisputable. For changes that can reasonably be described at different levels, the way an edit is represented can affect which category receives credit. The category results work best as evidence about broad strengths and weaknesses, with the spelling and agreement comparisons grounded in the specific mechanisms the authors examine.
What came after
Neural correction as a different architecture
A Multilayer Convolutional Encoder-Decoder Neural Network for Grammatical Error Correction takes up the same task with a multilayer convolutional encoder–decoder. In the paper discussed here, a neural score influences decisions made within phrase-based statistical translation. The later title places a neural encoder and decoder at the center of the correction architecture. The connection is the sentence-to-sentence formulation. A correction system must represent what the learner wrote and use that representation to produce a revised sentence. The earlier study explores how a joint neural score can influence that process inside phrase-based search. The later work investigates a distinct architecture for the correction process itself.
This direction carries forward a distinction that matters in the earlier experiments. A system needs a way to generate alternatives and a way to recognize promising alternatives. In the phrase-based system, the split is visible in the phrase table, the feature scores, and the spelling candidate list. An encoder–decoder is another way to organize the production of a corrected sentence. The shared task makes the architectures relevant to each other even though the later work’s title does not establish that it reused the earlier system’s character-level spelling decoder or its NUCLE adaptation procedure.
Human performance as a research question
Reaching Human-level Performance in Automatic Grammatical Error Correction: An Empirical Study continues the human-performance question posed by Chollampatt and Ng. The earlier paper makes the comparison concrete by treating humans as annotators who can be scored against one another. Human agreement then supplies the reference value for interpreting the system score. The later work frames reaching human-level performance as an empirical question in its own right. The direct connection is the need to decide what evidence makes a comparison between human and automatic correction persuasive.
The distinction between a benchmark score and a human comparison is why this line of work follows naturally from the earlier measurements. A score can improve substantially relative to other systems while leaving uncertainty about which edits people would consider interchangeable. Chollampatt and Ng’s official test score, full-reference score, and human-relative ratio make these different comparisons visible within the same study. The later work takes up the goal named in the last of those comparisons. Its title establishes that focus without specifying whether it used the same reference procedure.
Structured search alongside neural correction
Neural Grammatical Error Correction with Finite State Transducers brings finite state transducers into neural grammatical error correction. A transducer represents mappings from input sequences to output sequences. The connection to the earlier paper lies in the use of an explicit sequence-processing procedure alongside neural evidence for correction. Chollampatt and Ng use a phrase-based decoder with a neural feature, and they expose another finite set of alternatives through the character decoder. The later work takes neural correction and finite state transduction as the organizing techniques named in its title.
This direction returns to the problem of how proposed edits become available for evaluation. In the earlier paper, a strong sentence score alone cannot recover a spelling candidate that was never generated. Conversely, generating a plausible spelling has limited value if the context score routinely prefers a different form. The transducer work belongs to the same broad investigation of how to represent and search potential corrections while drawing on neural evidence. Its place alongside the encoder–decoder study and the human-performance study shows how the questions taken up by later work extend across architecture, search, and evaluation.
Cite
Cite as Shamil Chollampatt and Hwee Tou Ng. 2017. Connecting the Dots: Towards Human-Level Grammatical Error Correction. Proceedings of the 12th Workshop on Innovative Use of NLP for Building Educational Applications.
@inproceedings{chollampatt2017connecting,
title = {{Connecting the Dots: Towards Human-Level Grammatical Error Correction}},
author = {Shamil Chollampatt and Hwee Tou Ng},
booktitle = {Proceedings of the 12th Workshop on Innovative Use of NLP for Building Educational Applications},
year = {2017},
doi = {10.18653/v1/w17-5037},
url = {https://doi.org/10.18653/v1/w17-5037}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/chollampatt-2017-connecting-dots-human-level-grammatical/