Elamur Research

Using a Grammar Checker for Evaluation and Postprocessing of Statistical Machine Translation

Paper · 2010 · Sara Stymne and Lars Ahrenberg

Summary

A translation can convey much of the original message and still put words in the wrong order or give an adjective the wrong ending. It can also read smoothly while leaving out something important. The distinction matters when comparing systems. A score based on the words shared with a human translation gives an indication of quality, but it does not directly tell a reader what went wrong with the grammar. Sara Stymne and Lars Ahrenberg ask whether a checker made for people writing Swedish can supply that information for machine translation.

The authors test Granska, a mostly rule-based Swedish checker, on translations from English. The translations come from six Moses configurations trained on Europarl. They vary the amount of parallel text used to learn translation correspondences and the information used to judge sequences of Swedish words. Some configurations use just the words as they appear in the text. Others also consider sequences of grammatical labels, with or without details such as number and gender. Before using Granska to compare these systems, a native Swedish speaker examines its alerts on 11,574 words of tuning output. The reliability of the alerts varies sharply by category. Agreement and word order are relatively dependable, while verb alerts and warnings about split compounds are less reliable overall.

From that analysis the authors define three scores, each counting a different set of alerts per sentence. They compare the scores with the BLEU score and translation edit rate, or TER. BLEU and TER rank the systems in the same order, while the checker scores distinguish different aspects of their output. With the smaller translation training corpus, for example, the configuration that uses detailed grammatical labels has the fewest checker alerts under all three definitions, yet it fares worst of the six on BLEU and TER. The authors suggest that this configuration can improve grammatical form while making poorer word choices. Spelling alerts add another distinction because many of them point to English words that have passed through untranslated.

Granska also proposes corrections. The authors take the first suggestion in categories whose suggestions proved reliable during tuning. BLEU rises and TER falls for every configuration on the full test set, though the largest gains are only 0.18 and 0.09, respectively. The gains are more apparent when each version is compared on the same sentences that actually changed, and a native speaker judges most of the sampled edits to be improvements. Granska reaches only a small share of the errors in the output. Its value in these experiments comes from making some recurring grammatical problems visible and repairing some of them, alongside measures that give evidence about whether the translation conveys the source.

Deep dive: Using a Grammar Checker for Evaluation and Postprocessing of Statistical Machine Translation

How a Swedish grammar checker evaluates and repairs English-to-Swedish machine translation, and what its findings add to standard translation scores. · about 31 minutes to read

The problem and its context

A readable sentence and a faithful translation

A person reading a translation has to deal with the wording and the message at the same time. In Swedish, the words belonging to a noun phrase may all be individually plausible while their grammatical forms are incompatible. A determiner can signal one gender and the noun another. The reader may still infer what the phrase refers to, even though the mismatch interrupts reading. A different translation could get the determiner and noun to agree and still choose the wrong noun. An evaluation that aims to explain the result needs room for both observations.

The paper describes these concerns in terms of fluency and adequacy. Fluency concerns how well the output reads in the target language. Grammatical well-formedness contributes to it. Adequacy concerns how much of the source meaning the translation conveys. A checker that reads Swedish alone can examine whether an adjective takes a compatible form in its sentence. To judge whether the adjective conveys the intended property, an evaluator needs information beyond the Swedish pattern. The paper gives the checker a specific role within that larger evaluation.

This distinction mattered for the statistical translation systems the authors were studying. A phrase-based system learns recurring correspondences from parallel text and uses them to assemble a translation. The evidence that helps it select a Swedish phrase does not explicitly say whether the phrase fits the grammatical requirements of the rest of the sentence. A statistical preference over sequences of Swedish words offers a way to favor familiar combinations, but the paper starts from the observation that the resulting translations still contain many grammatical errors. It asks what an existing Swedish writing aid can recognize in such output and whether its suggestions can be used automatically.

What reference-based scores measure

The paper describes automatic evaluation at the time as largely based on matching the proposed translation to human references. The BLEU work scores matching n-grams, which are sequences of adjacent tokens. Its emphasis on matching strings makes the exact choice and arrangement of words relevant to the result. A change in word order can therefore affect the score. However, the score does not identify the grammatical relation involved, and there is no requirement that an increase correspond to an agreement repair or another particular kind of linguistic improvement. Bleu: a Method for Automatic Evaluation of Machine Translation

TER asks how much editing separates the output from a reference. The paper describes it as an error rate derived from a modified Levenshtein distance, a way of measuring distance between strings through edits. For the authors' purposes, the important feature is that the amount of editing is defined with respect to the reference wording. Suppose a checker changes an inflection and a Swedish speaker can see that the sentence now reads better. The effect on the reference score depends on the wording of the human translation. That translation might express the same idea using another construction, in which the inflection repaired by the checker has no corresponding position.

The authors describe previous work that widened the notion of a match. METEOR uses stemming and synonyms from WordNet, so a comparison can recognize some relationships beyond identical words. TERp likewise goes beyond exact wording by using paraphrases. These approaches address variation between the candidate and the reference. A grammar checker addresses a different question when it examines the candidate sentence for a local pattern worth flagging. The measurements can therefore respond differently even when applied to the same output. METEOR · Fluency, Adequacy, or HTER?

The paper also describes evaluation methods that use linguistic information. The examples range from word classes to syntactic dependencies and deeper representations involving semantic roles and discourse. This puts the grammar-checker proposal in an existing effort to make linguistic distinctions matter in automatic evaluation. Its particular choice is to use a Swedish program whose rules already encode recognizable error patterns and whose output can tell the evaluator what type of pattern was found. Syntax-Oriented Evaluation Measures for Machine Translation Output

Where a checker enters the translation process

Earlier uses of language checking described in the paper often put it before translation. In controlled-language authoring, a checker helps the writer revise the source. The aim is to give the translation system an input that observes the conventions of the controlled language. The paper mentions authoring tools for English and Swedish in this role, with a person using the tool before the text reaches a translation system. That placement gives the checker access to problems in the source wording, while the output can acquire its own problems during translation.

Automatic editing after translation also had precedents. The paper gives examples such as revising English determiners, joining German compounds and substituting words. Each starts from a more specific editing operation. Stymne and Ahrenberg instead start with a checker that already spans numerous kinds of Swedish writing errors. They ask which pieces of that existing coverage carry over and how to use the resulting information. A related issue had arisen for statistical parsing: the paper cites work examining how a tool developed for human writing behaves when its input is machine translation.

There is also a difference between presenting an alert and acting on it. A writing aid can point a human editor to a questionable phrase, give several options or describe a problem for which it offers no replacement. The editor can weigh the sentence and decide whether to act. An automatic editing stage must make that choice by itself. An evaluation stage makes a related choice when it decides whether the alert is dependable enough to count. The two choices have different consequences. A dubious alert can weaken an evaluation without altering any text, whereas an automatic replacement can turn an acceptable translation into a worse one. That is why the authors first examine what Granska recognizes and then examine what it proposes to do.

The method, step by step

Build translations that differ in known ways

The authors use English and Swedish text from Europarl, a parallel corpus that gives the training system English passages and their Swedish counterparts. They build phrase-based systems with the Moses decoder, use SRILM for target-side sequences and tune the feature weights by minimum error rate training. Feature weights govern the relative influence of the scoring components when the decoder chooses among candidate translations. Tuning estimates those weights on a separate set of examples. The authors use 500 sentences for tuning and 2000 sentences for testing.

Before training, the Swedish side is tagged with the Granska tagger. Filtering excludes two kinds of material from the training corpus: sentences that exceed 40 words and pairs whose length ratio exceeds 1 to 7. The length-ratio filter deals with pairs where one side is much longer than the other, a property distinct from the absolute length of a sentence. The larger body of parallel training text has 701,157 sentences. The smaller has 100,000 sentences. Those sizes vary the amount of evidence for translation correspondences. The target-side sequence components use the large corpus in both conditions, so reducing the translation training set does not also reduce the Swedish training text for those components.

The other experimental choice concerns how to represent a target word. In the factored Moses framework, a word can have a surface form and additional attributes. The surface form is the word that appears in the rendered sentence. A factor can record a broader class or properties of the inflection. If several Swedish words share a grammatical category, a sequence of category labels can capture the pattern they have in common even when their surface forms differ. The authors use this facility on the output side so they can compare systems with the same kinds of training conditions and different grammatical information. Factored Translation Models

The setting called none scores sequences of surface words. The name refers to the absence of an additional tag-sequence component. The POS setting also scores sequences of word classes, such as nouns, verbs and adjectives. The morph setting instead uses word-class labels enriched with grammatical features. The notation in the paper attaches the labels to the individual Swedish words. The broad labels come from part-of-speech tagging.

The paper illustrates the distinction with a speaker saying that their question is important. In the none representation, the Swedish question, verb and adjective appear as ordinary written words. The POS representation records that the adjective is an adjective and the noun is a noun. In morph, the labels carry further details. The noun label, for instance, includes number, gender and definiteness, and the verb label supplies information beyond its word class. This use of morphology gives a sequence component a way to distinguish forms that have the same broad grammatical role.

The motivation for these settings concerns different kinds of errors. A sequence of word classes can favor a more plausible order of constituents. Enriched labels can also provide evidence about agreement because they distinguish forms that need to fit together. These are reasons to test the factors. The paper checks how the resulting sentences actually behave using reference scores and checker alerts. Each translation training size is paired with each representation, which produces the six systems the authors examine.

Read the Swedish output with Granska

Granska is a hybrid checker. It divides the sentence into tokens, labels them with a probabilistic tagger based on a hidden Markov approach, checks spelling with Stava and searches for patterns with a rule matcher. Tokenization determines the units on which the labeling and checking operate. The tagger assigns word classes and morphological information. Handwritten rules in Granska's rule language then use the analysis to detect likely problems and can produce an explanation and possible corrections. The combination matters because the rules depend on the information available about the words they inspect. Granska

The authors obtain structured output from Granska in XML. For each sentence they can recover its text and any alerts. An alert identifies the rule category and, where applicable, a finer category within it. It also locates the span, gives the words at issue and can include suggested replacements. A count can be made from the category labels alone. A revision requires the span and a suggestion as well. Granska has thirteen broad grammar categories, many subdivided further, and supplies spelling alerts as a separate kind of information.

In the paper's example, the translation begins with the English word “Averaging.” Granska treats it as unknown and has no replacement to offer. Later in the same sentence it spots a problem with agreement inside a Swedish noun phrase and proposes alternative corrections. The first is suitable in context. Other problems remain in the sentence even though the program finds the unknown word and the agreement mismatch. This example helps explain why the counts describe alerts and why the stock of possible edits is smaller than the stock of alerts. One alert offers something the postprocessor can use, while the other supplies evidence about an untranslated word without a remedy.

Establish which alerts carry useful evidence

The authors review Granska's performance on 11,574 words of translation output from the Europarl tuning process. A native Swedish speaker judges the output of the checker. The evaluation starts at an alert and asks whether the reported problem is really present. If the checker offers replacements, the reviewer can also distinguish a correct first suggestion, a correct suggestion farther down the list, an incorrect suggestion and a missing suggestion. The paper separates wrong or missing suggestions according to whether the original alert was warranted. That bookkeeping makes it possible to distinguish a bad diagnosis from a faulty repair of a genuine problem.

Precision describes the share of alerts in a category that identify real problems. A category can therefore have high precision even if many instances of its problem go undetected. Recall would ask what share of all the genuine instances the checker finds. Calculating it would require a separate account of all the relevant errors in the sample, including those the rules missed. The tuning review judges the alerts instead of making such an inventory, so the authors use it for precision and for the quality of the offered corrections.

The grammar alerts found in that review fall into five categories. Noun phrase agreement checks how determiners, nouns and adjectives fit together, including properties such as gender, number and definiteness. Predicative agreement checks a description linked to a subject or object, as when an adjective describes the subject through a verb. A split-compound alert points to a compound written as separate words. Verb alerts can reflect problems with verb forms or with whether a verb is present. Word-order alerts identify an arrangement the checker considers wrong. Because the verb and compound categories cover dissimilar situations, their overall precision can hide more reliable subcategories.

How Granska evaluates and edits translations

The steps in order.

How Granska evaluates and edits translationsStep 1: Train phrase-based systems on parallel text1. Train phrase-based systems on parallel textStep 2: Tune feature weights on held-out sentences2. Tune feature weights on held-out sentencesStep 3: Check Swedish tuning translations with Granska3. Check Swedish tuning translations with GranskaStep 4: Review alerts and proposed corrections by hand4. Review alerts and proposed corrections by handStep 5: Count selected alert categories in test translations5. Count selected alert categories in test translationsStep 6: Apply first suggestions from trusted categories6. Apply first suggestions from trusted categoriesStep 7: Compare original and edited Swedish output7. Compare original and edited Swedish output

Turn alerts into scores

The authors define three per-sentence averages. Each uses the same principle: specify which alerts count, count their occurrences across the set and divide by the number of sentences. Multiple alerts in a sentence all contribute if they fall within the selected categories. The rates are therefore sensitive to how many problems are detected in affected sentences as well as to how widely those problems are distributed.

GER 1 = H ÷ N

GER 1 is the first grammar error ratio. H denotes the total number of grammar alerts in the retained, higher-precision categories, and N denotes the number of sentences in the output being scored. The division sign gives the average and the equals sign identifies the result as GER 1. The retained set leaves out split compounds and the verb subcategories for missing verbs, missing finite verbs and infinitive markers without verbs. The exclusions are based on the tuning review.

GER 2 = G ÷ N

GER 2 is the second grammar error ratio. G counts all grammar alerts, and N again counts the output sentences. The division sign expresses the average, and the equals sign connects that average to the name of the score. This version counts alerts from grammar categories even when the tuning analysis found their precision less favorable. Comparing it with GER 1 shows how including a wider range of reported grammatical problems changes the evaluation.

SGER = E ÷ N

SGER is the spelling and grammar error ratio. E is the total of all spelling and grammar alerts, and N is the number of sentences. The division sign gives their ratio, and the equals sign identifies that ratio as SGER. Spelling alerts add events such as the detection of an English word left in the Swedish output. The alert is counted even when it cannot establish what the word ought to have been.

A value of 0 means Granska produced no alerts included in the chosen score. Lower values are preferable as measures of detected errors. The authors specify no upper bound, since a sentence can receive several alerts. The denominator is a sentence count, so the rates are measures of alerts per sentence. They are distinct from the precision values in the tuning analysis, whose denominator is the number of alerts in the relevant category. The test uses a single human reference for comparison with BLEU and TER. The information in the grammar ratios comes from the checker operating on the Swedish hypothesis itself.

Apply a rule for taking corrections

The editing procedure begins with the same kinds of alerts but uses a separate selection criterion. The authors accept suggestions in categories where the tuning review found a large majority of the suggestions correct. The grammar ratios group categories by what to count. The editing stage needs evidence that the proposed action is sound, in addition to evidence that a problem has been located. For a category missing from the tuning analysis, the authors leave its test alerts alone. Across the test systems, the number of alerts in such categories varies between 8 and 16.

When an eligible alert has several suggestions, the authors always take the first. This makes the checker responsible for the order of preferences. The editing stage uses that order as it stands and does not search the alternatives for one that fits the English source better. An agreement repair generally changes inflected forms. Other suggestions can move words, remove them or insert them. Cases without a suggestion can still matter for evaluation, but offer the postprocessor no change to apply. The experiment leaves Granska as a separate component after decoding, making it possible to score the same translation both before and after the automatic edit.

Experiments and results

How reliable are the alerts?

The tuning review gives a different answer for each type of problem. Granska's precision on machine translation output is 1.00 for word order, 0.95 for predicative agreement and 0.86 for noun phrase agreement. It is 0.63 for verbs and 0.46 for split compounds. These are category-level results for the 11,574-word tuning sample. They summarize the trustworthiness of the alerts that appeared in the sample, and their underlying counts also vary.

For word order the reviewer confirms 9 alerts and records 0 false ones. For predicative agreement there are 21 confirmed alerts and 1 false alert. The noun phrase agreement figures are 64 confirmed and 10 false. The verb category has 31 confirmed alerts and 18 false ones. For split compounds the reviewer records 12 confirmed alerts and 14 false ones. Agreement inside noun phrases thus contributes many reviewed cases, while the perfect precision for word order rests on fewer observations. The count of false compound alerts also helps explain the caution around automatic joining.

The spelling review raises a different issue. Granska gives 161 spelling alerts in the tuning sample. Untranslated foreign words account for 49.0% of those alerts and proper names for 32.9%. The authors observe that ordinary spelling mistakes are scarce, which they connect to the systems' use of words from the training corpus. An unfamiliar item can still be important to the translation, as when an English word should have been translated. Other unfamiliar items, such as names, may belong in the output. In the spelling review, capitalizing lower-cased proper names is the only kind of suggestion the authors find useful, in 9 cases.

The authors put the grammar results beside a previous evaluation of Granska on 201,019 words of human writing. The material assessed included student essays, popular science, government texts, international news and sports reporting. The reported average precision on human text is 0.44 for noun phrase agreement, 0.32 for predicative agreement, 0.39 for split compounds, 0.83 for verbs and 0.38 for word order. The machine translation precision exceeds each of those human-text averages except for verbs. It is a comparison of distinct kinds of input and different collections of errors. Its role is to show how much the reliability of the same broad rule categories can vary with the material.

How the systems rank before editing

The baseline for postprocessing is the raw output from each Moses configuration. For the evaluation experiment, BLEU and TER provide the conventional comparison, and the authors examine how the new grammar rates rank those same translations. All the full-test results use the 2000 Europarl test sentences. BLEU and TER appear in the paper in percent notation. Higher BLEU and lower TER indicate better scores.

On the large translation training corpus, none gets 22.18 BLEU and 66.42 TER, POS gets 21.63 BLEU and 66.88 TER, and morph gets 22.04 BLEU and 66.63 TER. These values place morph close to none and ahead of POS on the standard metrics. For the small corpus, none reaches 21.16 BLEU and 67.49 TER, POS reaches 20.79 BLEU and 67.79 TER, and morph reaches 19.45 BLEU and 69.52 TER. All three large-corpus systems outrank all three small-corpus systems on these metrics. BLEU and TER also agree on the entire ordering, down to the placement of each factor setting within its training size.

The checker changes that picture. The chart shows the narrow grammar rate, which counts categories selected for precision in tuning. Both morph configurations have fewer of these alerts than the alternatives trained at the same size. The small-corpus morph system has the lowest GER 1, in spite of ranking last on the reference metrics. The apparent strength depends on which quality question is being asked.

GER 1 for the unedited systems on the Europarl test set

The morphology setting gives the fewest selected grammar alerts at either training size.

GER 1 for the unedited systems on the Europarl test setLarge none: 0.196Large none0.196Large POS: 0.228Large POS0.228Large morph: 0.125Large morph0.125Small none: 0.244Small none0.244Small POS: 0.282Small POS0.282Small morph (this paper): 0.121Small morph (this paper)0.121
The numbers
System or settingGER 1 alerts per sentence
Large none0.196
Large POS0.228
Large morph0.125
Small none0.244
Small POS0.282
Small morph (this paper)0.121

GER 2, which admits all grammar alerts, gives the large-corpus systems 0.293 for none, 0.304 for POS and 0.195 for morph. The small-corpus results are 0.359 for none, 0.375 for POS and 0.245 for morph. With this broader count, morph still leads within each size, but the large-corpus morph system comes out ahead of the small one. The reversal between those two configurations shows that the finding about the smallest value of GER 1 depends on the category filter. The broad count and the narrow count answer different questions about the same sentences.

When spelling alerts are included, SGER is 0.496 for large none, 0.559 for large POS and 0.446 for large morph. For the small configurations it is 0.664 for none, 0.718 for POS and 0.600 for morph. On SGER, every large-corpus system is ahead of every small-corpus system. Within each training size, POS gives the highest alert rate under each of the three grammar-checker definitions. The pattern on the small corpus diverges from BLEU and TER, for which morph performs worst. The authors relate the separation by size in SGER to spelling alerts for words missing from the translation vocabulary and passed through into Swedish.

How much changes on the full test set?

The editing stage raises BLEU and lowers TER for each system when scored on the entire test set. Its effect on the large-corpus BLEU results is shown below. The highest full-test BLEU among the postprocessed systems belongs to none with the larger corpus. In the corresponding TER comparisons, large none goes from 66.42 to 66.37, large POS from 66.88 to 66.84, and large morph from 66.63 to 66.54. The direction is consistent while the size of each change is modest.

Full Europarl test BLEU before and after editing the large-corpus systems

Granska editing raises BLEU for every factor setting in the large-corpus group.

Full Europarl test BLEU before and after editing the large-corpus systemsLarge none before editing: 22.18Large none before editing22.18Large none after editing (this paper): 22.34Large none after editing (this paper)22.34Large POS before editing: 21.63Large POS before editing21.63Large POS after editing: 21.81Large POS after editing21.81Large morph before editing: 22.04Large morph before editing22.04Large morph after editing: 22.17Large morph after editing22.17
The numbers
System or settingBLEU
Large none before editing22.18
Large none after editing (this paper)22.34
Large POS before editing21.63
Large POS after editing21.81
Large morph before editing22.04
Large morph after editing22.17

With the smaller translation corpus, none goes from 21.16 to 21.30 BLEU and from 67.49 to 67.47 TER. The POS setting goes from 20.79 to 20.95 BLEU and from 67.79 to 67.75 TER. The morph setting goes from 19.45 to 19.52 BLEU and from 69.52 to 69.48 TER. The largest absolute BLEU gain reported across all systems is 0.18. The largest absolute TER gain is 0.09. The overall scores establish the effect of running the postprocessor over all 2000 test sentences, including those where the system found nothing to change.

The paper also counts edits, a different unit from sentences. For the large corpus, Granska produces 382 changes on none, 429 on POS and 259 on morph. For the small corpus, the corresponding totals are 456, 514 and 249. Systems with higher checker error rates tend to receive more corrections. The authors observe that the metric gains are not generally bigger on none and POS than on morph, in spite of the larger edit counts. A change count gives an indication of activity. It does not establish how important an edit was, how a reference score responds to it, or how many separate sentences were reached.

What happens where a sentence actually changes?

For each system the authors identify the test sentences that Granska altered and score the original and edited versions of those same sentences. The large none, POS and morph subsets contain 335, 373 and 238 sentences, respectively. The small none, POS and morph subsets contain 395, 452 and 241 sentences. The selection depends on which sentences received an edit in that system. A comparison within a subset holds the sentences fixed. A comparison across these subsets would mix different input collections, so a system's score on its changed sentences cannot establish how it ranks against another system.

For large none, the changed-sentence BLEU goes from 19.44 to 20.12, and TER goes from 68.99 to 68.77. For large POS, BLEU goes from 18.87 to 19.61 and TER from 69.42 to 69.26. For large morph, BLEU goes from 18.47 to 19.29. The chart shows the corresponding TER change on this system's subset. The paper gives the absolute TER improvement there as 0.59 and singles it out as comparatively large for the changed-sentence TER results.

TER before and after editing on the large morph Europarl subset that changed

The edited versions require fewer reference edits on the same affected sentences.

TER before and after editing on the large morph Europarl subset that changedLarge morph before editing: 70.28Large morph before editing70.28Large morph after editing (this paper): 69.69Large morph after editing (this paper)69.69
The numbers
System or settingTER
Large morph before editing70.28
Large morph after editing (this paper)69.69

On the changed sentences for small none, BLEU goes from 18.72 to 19.26 and TER from 69.96 to 69.88. For small POS, BLEU goes from 17.74 to 18.27 and TER from 71.00 to 70.88. For small morph, BLEU goes from 16.79 to 17.24 and TER from 72.01 to 71.77. The authors describe the absolute BLEU improvement on these subsets as around 0.70 for the large systems and around 0.50 for the small ones. Those results say how the metrics respond where a change is made. The full-test scores describe the improvement when all requests to the translation system are taken into account.

How people judge the edits

A native Swedish speaker reviews the first 100 corrections for each system. The object of judgment is the edit. A good change improves the translation compared with the original wording, a bad change makes it worse, and a neutral change leaves the two versions at comparable quality. This asks whether the edit helped in context. It differs both from checking the correctness of an alert and from counting words that match a single human translation.

On large none, the reviewer marks 73 changes good, 19 neutral and 8 bad. On large POS, the counts are 77 good, 17 neutral and 6 bad. On large morph, they are 68 good, 19 neutral and 13 bad. On small none, the counts are 74 good, 19 neutral and 7 bad. On small POS, they are 73 good, 17 neutral and 10 bad. On small morph, they are 68 good, 20 neutral and 12 bad. These are counts of decisions about postprocessing changes, each drawn from the first 100 for its own system.

The human review and reference scores thus offer evidence at different scales. Most reviewed changes help, and the average effect on the entire test set is small. A single repaired ending can remove a conspicuous problem for a Swedish reader. How that ending is represented in a reference, and how many other sentences receive any repair at all, govern how much an aggregate score moves. The paper uses the sample of edits to make the value of local repairs visible alongside the automatic scores.

What the ablations show

Changing the factors and training size

The controlled comparisons vary the target-side representation and the translation training size, compare wider and narrower alert sets, and score output with and without postprocessing. They expose some plausible reasons for the results. The paper also uses the manual review to identify where those aggregate comparisons leave the cause uncertain.

At each training size, none provides a baseline for adding a sequence of grammatical labels. The word-class labels of POS alone do not improve the overall scores shown in the paper. Its checker rates are worse than those of none within both sizes. This is important because word-class information is intended to help word order. The reported averages group across error types. They show that the extra word-class component fails to reduce the measured errors overall, while leaving open what happened to individual patterns of word order. The baseline comparison measures the translation as a whole under each factor setting.

The enriched labels of morph yield fewer grammar alerts at both sizes. That is consistent with the motivation for including information about inflection and with the authors' observation that the morphology systems have fewer agreement errors. The benefit on the checker rates accompanies markedly poorer BLEU and TER on the small corpus. The authors suggest that a limited amount of parallel text leaves too little evidence for some of the more detailed representations, which can lead to poorer lexical choices while still favoring well-formed inflection. The large-corpus morph system remains close to its none counterpart on the reference metrics, lending context to this explanation. There is no separate measurement of lexical choice in the experiment that would determine how much of the gap it explains.

The training-size comparison has an additional point of control. Both conditions estimate Swedish sequences using the larger corpus. The smaller condition is smaller in its translation training data. When the small systems leave more foreign words in the output, the authors attribute that pattern to reduced translation vocabulary coverage. The comparison therefore avoids conflating the smaller set of learned translation correspondences with a simultaneous reduction in the text used to score target-side sequences.

Separating dependable alerts from broader coverage

The verb alerts show why the authors filter by subcategory. Much of the false-alarm problem comes from rules for missing verbs, missing finite verbs and infinitive markers that appear to lack a verb. When these subcategories are excluded, 17 verb alerts remain and only 1 is wrong in the tuning review. This demonstrates uneven reliability inside the verb category. A system that discarded every verb alert would also throw away information from the more dependable patterns. The finer rule labels make the more selective count possible.

The comparison between GER 1 and GER 2 shows the cost of that selection. GER 1 gives greater separation between none and POS than GER 2, which also counts alerts from less reliable categories. At the same time, the smallest GER 1 belongs to the small morph system, whose reference scores indicate poorer translation. The authors consider whether severely malformed output leaves fewer patterns that Granska can analyze meaningfully. A narrow set of rules may then be especially prone to returning a low count for a difficult sentence. This is a possible explanation of the metric behavior, rather than a demonstrated drop in recall for that particular system.

SGER brings a separate property into the comparison. English words passed through untranslated are often registered as spelling problems, so the spelling count is sensitive to a gap in vocabulary coverage. In that use, the name of the checker's category and the translation failure are different descriptions of the same event. Granska treats the token as unfamiliar Swedish text. A translation evaluator may recognize it as English material the system did not translate. The spelling review also finds proper names in the alerts. Accordingly, the broader score contains evidence about coverage mixed with alerts that need contextual interpretation. The paper's results distinguish these contributions by inspecting what the checker actually flagged.

The earlier human-text data reinforce the importance of examining the category mix. The precision range for noun phrase agreement across those texts is 0.11–0.72, and for word order the range is 0.00–1.00. For verbs it is 0.71–0.91. The machine translation results sit in different relationships to those ranges. A rule that performs well on one type of human writing can do poorly on another, and the average for human writing hides those variations. The study makes its test-time choices through an analysis of translation output, where the kinds of malformed text sent to the rules are the relevant ones.

Separating detection from a good edit

An alert can be accurate even if the checker has no reliable replacement. In the tuning analysis, the verb category often offers no suggestion for a real problem. The suggestions it does offer in the review are correct, though a correct one can appear below the first. The compound alerts show a different pattern. Suggestions are issued for nearly all the false alarms in that category, so an apparently actionable alert often leads to a bad candidate. Noun phrase agreement also has suggested edits for false alarms, but most of its suggestions are still correct overall. These contrasts show why reported error counts and automatic changes need separate judgments.

The authors analyze errors in the test-time edits with specific examples. A good case involves a noun phrase with an indefinite article carrying the wrong gender, along with a verb that calls for a different tense. Granska changes the article to fit the noun and gives the verb a perfect form. This is the kind of improvement the postprocessor can make when the surrounding translation gives enough evidence for a local decision. It addresses recognizable defects while leaving other wording as it was.

The neutral examples show two ways in which a formal repair can have limited value. One phrase mixes definite and indefinite forms. The checker makes it grammatically coherent by choosing an indefinite construction, whereas the better choice in context would be definite. The edit resolves the mismatch while leaving another aspect of the phrase less suitable. In the other example, an adjective describes a collective noun. The original plural adjective is acceptable, and so is the replacement in the singular. In that case the edit substitutes one permissible agreement choice for another.

The bad examples reveal where the local analysis goes astray. In one case Granska mistakes an adjective modifying a noun for the head of the phrase. The resulting edit introduces another noun form into a construction that was already correct. The grammatical categories assigned before rule matching matter directly to the outcome. In another case, the translation still contains an English possessive plural. Granska adds a Swedish plural ending to the English material. The visible problem calls for translation of the word, whereas the checker attempts to inflect what it has been given.

The manual evaluation also shows that the changes on morph are somewhat less successful than the changes on the other settings. The authors connect this to the smaller supply of agreement errors in the morphology systems. Agreement is generally the easiest kind of error for Granska to repair in this study. If the decoder already avoids more of those cases, the checker faces a different remaining mix, and the proportion of helpful edits can fall. This explanation concerns which errors remain available for editing. The paper does not assign a separate contribution to each category by rerunning the postprocessor with individual families of rules removed.

Limitations

Limits the authors identify

The most direct limit on the approach is how much of the erroneous output Granska can recognize. Its rules were developed for human Swedish writing. A translated sentence can be malformed in ways those rules were never designed to handle. The example with an untranslated opening word and a detectable agreement error also contains other defects that escape the checker. The authors conclude that the program finds only a small share of the actual errors and gives useful suggestions for relatively few. This limits the reach of automatic postprocessing even when the suggestions it does apply are often helpful.

The study measures precision for the machine translation alerts and leaves recall unknown. The earlier human-text evaluation can report recall because all the errors in those texts were annotated. The authors' review of translation output begins from Granska's alerts and validates the cases it produces. It therefore cannot tell how many genuine cases the checker missed, including cases in categories that never appeared in that tuning sample. The authors expect recall on translation output could be considerably lower than on human text. Their expectation and their measured precision describe different properties of the checker.

The grammar rates also require a companion assessment of adequacy. A Swedish sentence can satisfy the rules relevant to it while misrepresenting the English. An unknown-word alert can point to an untranslated token, but the checker lacks a procedure for verifying that the source and translation say the same thing. The authors suggest future research could combine a measure of adequacy and a grammar checker into a single metric. The current study places their signals side by side. It does not estimate how to combine them or show how such a combination would agree with independent ratings of translation quality.

The authors propose expanding the rules to cover more machine translation errors. They also propose passing the existing word-class labels from the factored system into the checker. In the experiments, Granska obtains fresh labels by tagging the decoded sentence, which the authors describe as error-prone. Using the decoder's labels directly would change what evidence the rules receive, and the reported results concern the setup that retags the output. A more specialized alternative is a checker built specifically for translation errors, either as a separate stage or as a component inside a translation system.

The authors call for a larger error analysis and tests across languages, checkers and translation architectures. They propose using standard shared-task data to compare checker scores with human judgments and several automatic metrics over many translation systems. This would extend the evaluation beyond their Swedish checker and six Europarl configurations. The workshop data are part of their proposed validation, with the reported tests remaining on Europarl. Findings of the 2009 Workshop on Statistical Machine Translation

Limits of the experimental design

The tuning review and the human postprocessing review are each described as assessments by a native Swedish speaker. The judgments lend direct evidence about grammatical alerts and edits. They do not establish how well multiple reviewers would agree. Cases involving a grammatically permissible but less suitable choice, such as the switch to an indefinite noun phrase, show why judgments about fluency, meaning and contextual preference can be harder to separate than judgments about an isolated inflection. The good, neutral and bad categories capture the reader's overall judgment of a change without resolving each contributing aspect.

The postprocessing review concerns the first 100 edits from each system. Those samples show what the reviewer found in the selected edits. The paper gives no random sampling procedure or estimate of how the verdicts would vary across other portions of the test output. It also provides no manual quality rating for the unchanged sentences. The evidence supports a majority of beneficial edits in the observed samples, and the full-set reference scores provide a separate view of the whole output. Estimating an overall human-perceived improvement would require judgments that account for affected and unaffected sentences together.

Some category estimates depend on small numbers of alerts. The precision of 1.00 on word order is based on 9 confirmed alerts and 0 false ones in the tuning review. That is favorable evidence for those cases. It cannot establish the corresponding precision on a new corpus, or whether unseen word-order problems would be detected there. Because categories for evaluation and editing are selected using the tuning material, the held-out test provides a check on the resulting pipeline's scores. It does not provide a fresh manual estimate of detection precision for every rule category used in the test.

Each grammar score counts alerts per sentence. The count can rise when a sentence has more places for an error to occur, when it exhibits more detectable problems, or when the checker gives more false alarms. It assigns no separate weight to problems of different severity. A minor local mismatch and a more disruptive error contribute equally if both count under the chosen definition. Conversely, a defect outside the checker's coverage contributes nothing. The rates are therefore coarse measurements of selected alerts. Their interpretation depends on both the properties of the translated sentences and the reliability of Granska's analysis of those sentences.

The subset comparison answers a conditional question. Sentences enter the subset because this particular system and checker produced an edit on them. Before and after can be compared within that set, where the underlying sentences are the same. Since another system triggers edits on a different set, a better changed-sentence score cannot establish better postprocessing across systems. The single-reference BLEU and TER results also lack a reported assessment of uncertainty around the small full-test gains. Their consistent direction and the manual edit judgments are the evidence the paper reports, with the exact magnitude on other data remaining open.

Finally, the low grammar rates for morph cannot by themselves quantify improved fluency independently of Granska. They show that the checker emits fewer alerts under the measured definitions. Inflectional labels give the decoder evidence that can support agreement, and the authors link the observed pattern to that mechanism. A complete independent annotation of grammar errors across all six systems would be needed to determine the degree to which the checker rankings reflect underlying grammatical quality, as opposed to the kinds of output the checker can analyze. The authors' account of sparse translation evidence on the small corpus likewise remains an interpretation of the score pattern.

What came after

DanProof: Pedagogical Spell and Grammar Checking for Danish (2015) cites the study and examines spelling and grammar checking in a Danish pedagogical setting. Stymne and Ahrenberg examine what an existing Swedish checker can measure and repair once the writing is produced by a translation system. DanProof's stated focus is a different use of checking, defined by Danish and a pedagogical purpose. The citation establishes a connection between the papers. It leaves open whether DanProof adopted the alert-rate definitions, tested automatic correction of machine translation or used a similar procedure to select reliable suggestions. DanProof: Pedagogical Spell and Grammar Checking for Danish

Cite

Cite as Sara Stymne and Lars Ahrenberg. 2010. Using a Grammar Checker for Evaluation and Postprocessing of Statistical Machine Translation. Proceedings of the Seventh International Conference on Language Resources and Evaluation (LREC'10).

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{stymne2010using,
  title = {{Using a Grammar Checker for Evaluation and Postprocessing of Statistical Machine Translation}},
  author = {Sara Stymne and Lars Ahrenberg},
  booktitle = {Proceedings of the Seventh International Conference on Language Resources and Evaluation (LREC'10)},
  year = {2010},
  doi = {10.63317/27f7h5poasoc},
  url = {https://doi.org/10.63317/27f7h5poasoc}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/stymne-2010-grammar-checker-evaluation-postprocessing-statistical/