An Analysis of Source-Side Grammatical Errors in NMT
Paper · 2019 · Antonios Anastasopoulos
Summary
A reader can often understand a sentence even if its verb has the wrong ending or its words are slightly out of order. A machine translation system has to make a similar judgment about which details carry the intended meaning and which can safely be ignored. Anastasopoulos studies what happens when a leading English-to-German system encounters errors in real writing. The study uses collections of English sentences with annotated corrections, including learner essays, writing submitted to an online platform and a sample of essays by native speakers. These collections supply English revisions but no human German translations. To make use of them, the study translates each sentence twice, once as written and once with the corrections applied, and measures how closely the German outputs agree.
Only 17.60% of the sentence pairs in the combined evaluation produce identical German translations. The amount of editing matters. Exact agreement occurs in about 32% of instances with a single source error, falls to 13% with two errors and reaches 6% with three. Among sentences whose translations change, the German outputs also become less similar as the number of source errors rises. A measure that relates the change in German to the change in English gives an aggregate score of 2.55, above the equal-distance threshold. Under the paper’s overlap-based measure, the difference between the translations generally exceeds the difference between the English inputs that produced them.
The kind of edit matters too. In sentences with a single annotated error, verb inflection and subject–verb agreement are among the categories most likely to leave the translation unchanged. Replacing the wrong conjunction or noun is among the edits least likely to do so. The paper connects this difference to how much a correction changes the meaning available to the system. An irregularly formed verb can still make its intended action clear. A grammatical sentence containing an unintended word can give the translator a coherent meaning that differs from the writer’s intention.
The study also traces where changes appear. It uses word alignments to locate the part of the German translation associated with a correction, then counts differences at positions around that anchor. Some categories mainly affect nearby words, while others are associated with changes farther away. This makes it possible to distinguish a localized response from a broader change even when both sentences receive the same verdict under exact agreement. The measurements establish sensitivity to corrections. Whether a change harms the German sentence is a separate question, since the system can produce different acceptable wording for the same meaning.
Deep dive: An Analysis of Source-Side Grammatical Errors in NMT
A study of how grammatical errors in English change German translations, using corrected inputs to measure when and where the output shifts. · about 34 minutes to read
The problem and its context
What a translator has to infer
A source sentence can be understandable while containing an error. The rest of the sentence may tell the reader which verb form belongs in a clause, or a familiar stretch of language may make a misplaced word easy to put back mentally. Translation introduces another decision. The system must choose wording in the target language, where the relationships implied by the English sentence may have to be expressed in a different order or with different grammatical distinctions. An English error that seems minor to a reader can therefore lead to a visible change in German.
The paper studies the source side of this problem. The phenomenon of interest begins with an English sentence and an edit to that sentence. The German output is observed downstream of the edit. This direction matters because grammatical quality in German is a research question in its own right. A translator can respond to an English correction by exchanging one acceptable German expression for another. It can also keep its wording steady while failing to express an important part of the sentence. A study of the response to an input edit needs a way to identify that response before it can ask what happened to translation quality.
The paper frames source noise as a practical weakness of neural translation. Systems of this kind had become prominent in high-resource industrial settings and public evaluations. In the account given by Six Challenges for Neural Machine Translation, handling irregular input was a continuing problem during training and use. The question here is what a strong system actually does with real, annotated grammatical errors when asked to translate them. Evaluating a system in that setting differs from evaluating it on a conventional translation benchmark or testing whether it can identify a correction in English.
The term “noise” is broad in this study. It covers the edits annotated in the collections, including some changes that affect word choice and some that improve fluency. An annotation can point to an obvious mistake in form, such as a verb ending, or register an editor’s judgment about what wording fits the intended meaning. That breadth makes the collections useful for studying actual writing. It also makes the category of an edit essential to interpretation. The expectation that the translation should stay steady is easier to defend when the English forms clearly express the same thing.
From manufactured errors to annotated writing
The paper describes earlier studies that introduced noise directly into the input. Character-level perturbations included swapping characters and scrambling their order. Such procedures offer control over the operation that has been performed. A researcher can create a comparison in which the source changes in a known way. The resulting edit, however, represents the operation chosen by the researcher. It need not resemble the distribution of mistakes found in a collection of essays, where problems with agreement, spelling, fluency and word choice can occur together.
Other work drew on word swaps found in Wikipedia edits. That approach uses information from real revisions to construct noisy examples. The current paper places Towards Robust Neural Machine Translation in this line of investigation. It also discusses a study of learner English that tested article use, prepositions, noun number and subject–verb agreement. That study examined both naturally occurring and synthetic cases in English-to-Spanish translation. The present paper widens the range of annotated edits and changes the translation setting. Neural Machine Translation of Text from Non-Native Speakers
Training resources were another difference. The paper describes earlier systems trained on about 200K parallel instances in one study and about 2M parallel sentences from WMT’16 in others. Parallel data contain corresponding sentences in the source and target languages. The systems discussed in this comparison did not make extensive use of monolingual text through back-translation, where target-language text is translated back into the source language to create additional training pairs. The paper treats this distinction as relevant because the source side of a back-translated pair is itself generated by a translation system. Its wording may contain departures from clean human-written English. Improving Neural Machine Translation with Monolingual Data
Natural data also change the kinds of questions the evaluation can ask. A procedure that manufactures the same perturbation repeatedly can examine that operation across many sentences. A corpus of annotated writing lets a researcher ask which errors occur together, which labels tend to leave the translation stable, and whether a fluency edit behaves differently from a change of inflection. Its comparisons inherit the distribution of the writing and the editorial decisions in the corpus. The experiment is thus a broad observation of naturally arising cases, with narrower comparisons inside it where the annotations permit them.
Why use corrections as a point of comparison
Conventional automatic translation evaluation compares a system’s output with a human translation. These English collections were assembled for grammatical error correction. Their revisions answer a monolingual question about how the English could be written. They leave the target-language side of the desired comparison empty. Asking a system to translate both English versions makes a paired experiment possible without collecting a German rendering of each one.
The paper distinguishes this use of a reference-free setup from translation quality estimation. Quality estimation aims to predict how good a translation is without an independent reference. The question here is how translation changes when the source changes in a recorded way. The study also mentions reference-free work in text simplification and grammatical error correction, as well as a target-side test that used contrastive translation pairs to investigate output grammar. In the latter kind of test, the contrast is in the candidate translations. Here it is in the English inputs that generate the translations. How Grammatical is Character-level Neural Machine Translation?
This shift makes the experiment practical at the scale of the learner corpora, but it changes the role of a reference. A German translation produced from edited English is a repeatable point of comparison for the behavior of the system that produced it. Its usefulness depends on the system being good enough for that output to be a reasonable stand-in for a translation of the intended message. The experiment therefore puts unusual weight on the quality of the existing translator, even though its immediate outcome is an agreement measurement.
The method, step by step
Build paired English inputs
The unit of analysis is a sentence together with its revision. An original sentence enters the comparison as the writer produced it. The researchers apply the annotated edits to obtain the corrected English version. The number of recorded edits becomes the sentence’s error count. An edit is the unit supplied by linguistic annotation, so the count describes how the corpus records the revision. A single annotation can concern a stretch of text, and the count does not assign severity or measure the amount of meaning changed.
The collections cover several settings. Students at Singapore’s National University wrote the essays that make up the NUS Corpus of Learner English (NUCLE). It served as the basis for CoNLL shared tasks on grammatical error correction. The public part of FCE contains essays from learners taking Cambridge English exams. Lang-8 comes from corrections supplied by participants in an online language-learning forum. These sources yield English before-and-after pairs through different writing and correction processes. Building a Large Annotated Corpus of Learner English and A New Dataset and Method for Automatically Grading ESOL Texts
JFLEG is a smaller evaluation collection whose revisions include changes aimed at making whole sentences more fluent. Cambridge English Write & Improve, abbreviated W&I, collects submissions from English learners and has professional annotators correct them and assign proficiency levels. The study pairs W&I with the annotated portion of LOCNESS, a collection of essays by native English speakers. W&I annotators corrected 50 LOCNESS essays for grammatical errors. The combined name WI+loc covers the learner groups A, B and C and the native-speaker group N.
The study pools the original training, development and test partitions for the analysis. It describes sampling 150K sentences from Lang-8, and the results table lists 149.5K for the analyzed Lang-8 collection. The trained translator is applied to the pooled sentences. The corpus partitions therefore indicate the original organization of the correction resources, while the reported translation results concern the pooled evaluation material. ERRANT provides a shared scheme for assigning grammatical error types. Several collections already had those annotations for the BEA 2019 shared task, and the study also uses ERRANT to annotate JFLEG.
A common scheme makes it possible to collect instances of the same error label across datasets. This is especially important when the paper moves from whole-corpus results to categories such as agreement or word order. The labels describe the changes from the original sentence to its revision. They do not assign grammatical properties to the output in German. German is observed through translation agreement and, later, word alignment.
Translate each version with the same system
The English-to-German system comes from Edunov and colleagues and achieved the best result in the WMT 2018 evaluation as described in the paper. It combines 6 deep Transformer components trained with somewhat different back-translated data. During the construction of that training material, a German-to-English system generated English for German monolingual sentences. Its English outputs were sampled. This lets the generated sources vary beyond the most likely output sought through beam search. The evaluation uses the resulting English-to-German ensemble as an existing translator.
The original and corrected versions of every sentence go through that same system. The inputs lead to two German strings, one for each English version. Because the translator is shared, a difference in the outputs can be examined in relation to the change in the input. At the corpus level many groups of sentences differ in more than the annotations under study, so the shared translator does not turn every comparison into a controlled trial. At the level of an individual pair, it does keep the translation procedure fixed.
Measuring translation changes after English corrections
The steps in order.
The paper calls the original English sentence x and its revision x̃. An index i marks an English token position, so xᵢ and x̃ᵢ denote tokens in the respective source sentences. The output from x is y, and the output from x̃ is ỹ. An index j marks a German token position, giving yⱼ and ỹⱼ. Tokens are the units into which the sentences are divided for the comparison. The same index in two different sentences refers to a position in each sentence. Correspondence between positions must be established separately whenever the edit changes the length or arrangement of the text.
The starting ideal is that an English error which leaves the intended message intact should have no effect on a translator that can recover that message. The paper represents the ideal as follows.
ŷ = MTₚₑᵣ𝒻ₑ𝒸ₜ(x) = MTₚₑᵣ𝒻ₑ𝒸ₜ(x̃)
Here ŷ is the correct German translation in the paper’s idealization. MTₚₑᵣ𝒻ₑ𝒸ₜ is the hypothetical translation function, and parentheses contain the English sentence given to it. The equals signs mean that both calls produce the same German text, ŷ. This is an ideal expressed in terms of a chosen output. Real translators can have several legitimate ways to put the same thought into German.
The calculation uses an approximation because ŷ is unavailable for the English correction data.
ŷ ≈ MTₐ𝒸ₜᵤₐₗ(x̃) = ỹ
MTₐ𝒸ₜᵤₐₗ is the existing English-to-German system. Given x̃, the corrected source, it produces ỹ, exactly as defined by the equality. The approximate sign expresses the assumption that this output is close enough to an appropriate German translation ŷ to serve as a comparison point. The assumption permits measurements of agreement across large amounts of monolingual data. Its reliability can vary from sentence to sentence.
Measure agreement and partial similarity
The strictest question is whether the translator gives exactly the same output for both English inputs. The paper first defines a per-pair agreement indicator.
cₐ𝓰ᵣₑₑ(y, ỹ) = { 1 if y = ỹ, 0 otherwise }
The function cₐ𝓰ᵣₑₑ takes the two German strings y and ỹ. It returns 1 for equality and 0 for any difference. The braces gather the cases, and the equals sign in the condition means that the entire outputs match. The indicator treats a change in a single word and a change throughout the sentence alike at this stage.
The Robustness Percentage, abbreviated RB, aggregates the indicator across corresponding source pairs.
RB = (∑₍ₓ,ₓ̃₎ cₐ𝓰ᵣₑₑ(MT(x), MT(x̃))) / |X|
The sum ∑ runs over each paired original x and revision x̃ in the corpus. X denotes the collection of original English sentences, and |X| is its size. MT is the tested translator, with MT(x) equal to y and MT(x̃) equal to ỹ. The slash divides the number of agreeing outputs by the number of pairs. The reported RB expresses that share as a percentage. A high RB means the system frequently produces an identical string under the source revisions considered.
Exact agreement is a demanding threshold. It leaves no distinction among all the pairs that cross it. The study therefore uses two graded metrics. The first is based on the BLEU score, which rewards overlap in sequences of adjacent tokens, or n-grams, and applies a penalty for short output. The authors compute BLEU-4 at sentence and corpus levels. They designate the result f-BLEU, for faux BLEU, because the comparison target is ỹ. A high score means that the German from the original input has considerable surface overlap with the German from the revision. Bleu: A Method for Evaluating Machine Translation Automatically
The other graded metric is f-METEOR. The calculation again treats ỹ as the reference for y. The paper uses METEOR because it is designed to recognize more kinds of similarity than close surface overlap alone. This is valuable when a change in German is close enough in meaning to be an acceptable alternative. Both graded scores depend on the wording generated from the corrected input, so they address the same paired comparison as RB while allowing intermediate outcomes. Meteor Universal and METEOR
Scale the German change by the English change
An identical amount of German overlap may carry different implications for two source pairs. If the English revision only adjusts a small detail, a sizeable difference in German suggests a sensitive response. If the English revision substantially rewrites the sentence, a similar German change may be proportionate to the source change. To make this distinction, the authors define the Target-Source Noise Ratio, or NR. Its denominator measures distance across English versions, and its numerator measures distance across German versions.
NR(x, x̃, y, ỹ) = d(y, ỹ) / d(x, x̃) = (100 − BLEU(y, ỹ)) / (100 − BLEU(x, x̃))
The arguments x and x̃ are the original and revised English sentences. The arguments y and ỹ are their respective German translations. The function d measures distance, which the paper implements by subtracting BLEU from 100. In the numerator, BLEU(y, ỹ) measures the match to the German output from corrected English. In the denominator, BLEU(x, x̃) measures the match to corrected English on the source side. The minus signs convert higher similarity into lower distance. The slash forms the ratio. The same measure can be discussed across a corpus, where X and X̃ stand for the paired English collections and Y and Ỹ for the corresponding German outputs.
The threshold is 1. Below it, the German pair is closer by this measure than the English pair. Above it, the target-side distance is greater. The paper’s description of magnification refers to this relation between two overlap distances. NR can be high when a small English distance is the denominator, even if the absolute German change is smaller than the change observed for a more heavily revised input. Its question concerns the response relative to the revision that elicited it.
The study connects NR to work on evaluating adversarial perturbations for systems that convert one sequence into another. In that setting, a perturbation to the source can be evaluated against the degradation of a translation relative to the true reference ŷ. The present study instead substitutes the output from the corrected source. The similarity-to-distance substitution discussed in making that connection is written as follows.
s(·) = 1 − d(·)
The function s represents normalized similarity, d represents normalized distance, and the dot stands for the sentence pair passed to each function. The constant 1 is the upper endpoint of the normalized similarity scale, and subtraction turns distance into its complement. The paper relates a comparison of degradation against the true reference to NR under the assumption that the clean-input translation has perfect similarity to that reference. The formula defining NR specifies the operational calculation. The connection to adversarial evaluation depends on accepting that reference approximation.
Locate differences in the translation
A score over two strings conceals where those strings diverge. The paper’s positional analysis starts with a pair of English sentences that differ by a single edit. The analysis uses the edit location in the corrected English and word alignments between each English sentence and its German output. These alignments are obtained using GIZA++ and the statistical alignment approach associated with IBM. An alignment links a German word to an English position, accounting for the possibility that the words appear in different orders in the two languages.
αⱼ = i
The variable αⱼ gives the English position associated with German token yⱼ in the original-input pair. The index j is that token’s position in German and i is the linked English position. The corresponding variable for the corrected pair is α̃ⱼ. A tilde marks the version associated with the corrected input. The position i∗ is the location of the annotated edit in the corrected English sentence. The paper anchors its target-side measurements at the linked position.
α̃ₖ∗ = i∗
The index k∗ is the position in ỹ associated with the source correction at i∗. In this expression α̃ₖ∗ returns the source position aligned to the German word at k∗. The superscript star marks the selected locations. The anchor gives the analysis a common origin across sentences. It is the place to look for the local expression of the corrected material, even if changes also appear elsewhere.
The formal description marks German tokens from the original-input translation that are absent from the corrected-input output.
Y∗ = { yⱼ | yⱼ ∉ ỹ }
Y∗ denotes the divergent tokens. The braces collect tokens yⱼ satisfying the condition after the vertical bar, which means “such that.” The sign ∉ indicates that the token is absent from ỹ. This is a comparison of visible word forms. It can mark a synonym as divergent and can leave an order change invisible when the same forms are present in both outputs. To move from tokens to locations, the paper expresses each divergent position relative to the anchor.
P(x, x̃, y, ỹ) = { j − k∗ | yⱼ ∈ Y∗ }
P is the set of relative target positions for the given four sentences. The index j locates a divergent token yⱼ, and ∈ means it belongs to Y∗. Subtracting the anchored position k∗ places the center at 0. Negative offsets are before the anchor in German and positive offsets come after it. The running example describes counting unmatched words from the corrected output while the formal definition selects words from the original-input output. These directions can give different positional results when the two strings have different wording or length.
In the illustration, the English correction involves the forms simle and smiles. The associated German word in the corrected output is Lächeln, at position 7, so this position is the origin of the display. The two German outputs differ at several words. One of the differences appears 6 words before the expected locality of the edit. The example explains the need for the relative coordinates. Knowing only that the outputs disagree would leave the distance between the local anchor and that earlier change unrecorded.
The researchers combine these offsets across instances. A distribution concentrated near 0 describes changes in a narrow neighborhood. A distribution with substantial mass farther out describes a broader spread. The center and spread are summarized by a mean and a standard deviation. The paper also summarizes asymmetry with the third standardized moment.
γ₁ = E[((X − μ) / σ)³]
Here γ₁ is skewness, and E denotes the expectation over the observed offset distribution. X in this formula is the random offset, distinct from the earlier use of X for the source corpus. The mean is μ and the standard deviation is σ. Subtracting μ centers an offset, dividing by σ expresses it relative to the spread, and the exponent ³ cubes it. This retains the sign of the standardized offset and gives more influence to observations far from the mean. Mean and skewness tell different things about a distribution. The mean locates its balance point relative to the anchor, while skewness describes whether one tail extends or weighs more heavily than the other.
Experiments and results
What the comparisons cover
The corpus-level evaluation contains 218.5K sentence pairs in the combined row, with 2.4 annotated corrections per source sentence on average. Lang-8 accounts for 149.5K pairs and also has an average of 2.4 corrections per sentence. The paper therefore reports a second aggregate that excludes Lang-8. That evaluation contains 69K pairs, again with 2.4 average corrections. The same average edit count in these aggregates leaves room for substantial differences in the kinds of corrections, their distribution across sentences and the character of the collected writing.
The main comparison is between translations of original and corrected inputs from the same existing system. The paper uses the output on corrected input as its internal reference. There is no baseline row for a competing translator or for a version trained without back-translation. The corpus breakdown supplies a comparison across writing collections, and the sentence-level groupings supply comparisons across different amounts and types of editing. Those components answer complementary questions about the behavior of one translator.
In the aggregate table, RB covers all evaluated pairs. The reported f-BLEU and f-METEOR values focus on the pairs with different German outputs. Including the pairs with exact agreement would put perfect f-BLEU values into that graded comparison and partly turn it into another prevalence measure for exact matching. The restriction makes it possible to ask both how often the output changes and how large the mismatch tends to be once a change has occurred. The two questions can yield different orderings across collections.
Exact agreement varies across collections
Exact German translation agreement across the English evaluation collections
The highest exact agreement is on the Write & Improve C subset.
The numbers
| System or setting | RB % |
|---|---|
| Write & Improve A | 17.77 |
| Write & Improve B | 21.17 |
| Write & Improve C (this paper) | 29.07 |
| LOCNESS N | 28.80 |
| NUCLE | 20.69 |
| FCE | 20.48 |
| JFLEG | 12.42 |
| Lang-8 | 16.06 |
The learner groups within WI+loc follow the progression described in the paper. The A subset has 9K sentences and averages 3.4 corrections per sentence. The B subset has 10K sentences with an average of 2.6. The C subset contains 5.9K sentences and averages 1.8. Exact agreement increases across those learner groups as the average number of corrections falls. The N group contains 500 sentences from the native-speaker material, also with an average of 1.8 corrections. Its exact agreement is close to the C value. The comparison among these groups describes how the annotation burden and translation response move together in the corpus.
The other collections contribute different mixtures of examples. NUCLE has 21.3K sentences and averages 2.0 corrections per sentence. FCE has 20.7K sentences and averages 2.4. JFLEG has 1.3K sentences and the highest reported average in the table, 3.8. The authors characterize JFLEG’s annotations as extending to fluency. Both the number of edits and the scope of the revisions are relevant when considering its exact-agreement result. Lang-8 combines substantial coverage with a low exact-agreement score. Its size means that results pooled with it are particularly sensitive to what happens in that collection.
Across the full evaluation, the reported RB is 17.60%. It is 20.94% when Lang-8 is omitted. At the dataset level, Pearson’s correlation between average corrections per sentence and RB is ρ = −0.82. The paper reports ρ = −0.71 between that edit count measure and each of the graded metrics. These correlations summarize a direction of association across the collections. The groups also differ in how the text was elicited and how it was revised, which becomes important when interpreting a sentence-count trend as evidence about grammar.
How closely changed translations match
Among pairs with differing outputs, the combined evaluation gives 42.65 f-BLEU and 62.59 f-METEOR. The corresponding results without Lang-8 are 54.65 f-BLEU and 70.64 f-METEOR. The discrepancy between the aggregates follows the especially low partial-match scores for Lang-8. Its changed translations receive 37.15 f-BLEU and 58.89 f-METEOR. JFLEG also has low similarity among changed pairs, with 42.05 f-BLEU and 61.99 f-METEOR. The two collections come from quite different settings, so their broadly lower placement does not identify a common linguistic cause.
The WI+loc subsets show the scored differences in more detail. On A, f-BLEU is 46.75 and f-METEOR is 65.29. The B scores are 54.72 and 70.80, and the C scores are 63.46 and 76.63. The N subset reaches 64.79 f-BLEU and 77.35 f-METEOR. In the paper’s table N is slightly behind C on exact matching and slightly ahead on both graded scores among changed outputs. The two measurements have different denominators. RB concerns the frequency of a change, while the graded metrics describe the output pairs in which a change was observed.
NUCLE yields 59.97 f-BLEU and 74.6 f-METEOR on its nonmatching outputs. FCE yields 50.45 f-BLEU and 67.49 f-METEOR. Their exact-agreement rates are close in the chart, but the German translations that differ retain more overlap on NUCLE by both graded measures. This illustrates what is lost if robustness is described through a single percentage. An application concerned with whether the output shifts at all could find these collections similar. An analysis concerned with the extent of the shift would see a larger separation.
The paper cites 46.5 BLEU for the best English-to-German system in the WMT 2018 evaluation. Its own f-BLEU values answer a different comparison question because their reference strings come from the system. Similarities between two outputs from the same translator can reflect its consistent wording choices. The relative ranking of datasets or subsets within the experiment is the relevant use of these numbers. A numerical comparison with the WMT score would mix results obtained under different reference conditions.
How the target change compares with the source change
Every collection has an NR above the equal-distance threshold. The aggregate score is 2.55 with Lang-8 and 2.55 without it. In WI+loc, the reported ratios are 2.12 for A, 2.39 for B, 2.73 for C and 3.23 for N. NUCLE has 2.92, FCE has 2.43, JFLEG has 2.18 and Lang-8 has 2.20. The authors describe the general result as a magnification of source noise by a factor of about 2.5 under the measure they define.
N and C do well on the graded agreement measures, yet their ratios are among the higher ones. The higher ratio is compatible with high similarity across the translated outputs if the source versions are even more similar. The authors point to low levels of source noise in C and N and in NUCLE in discussing this effect. RB, f-BLEU and NR thus give different perspectives on the same pair of source and target changes. None can be substituted for another simply by relabeling its scale.
The consistency of the aggregate NR after omitting Lang-8 is also informative in light of its graded scores. Lang-8’s original and corrected outputs show relatively low overlap. The comparison with the size of the source change places that result in a different position. The exclusion of a large corpus changes the reported RB and the partial-match scores considerably while leaving the reported combined NR at the same value. This is a finding about the reported aggregates, with the qualifications of the ratio calculation and the differences among corpora.
What changes as errors accumulate
Exact German translation agreement by annotated error count across the pooled collections
Exact agreement falls rapidly as input errors accumulate.
The numbers
| System or setting | RB % |
|---|---|
| Single error (this paper) | 32 |
| Two errors | 13 |
| Three errors | 6 |
The paper describes the single-error result as about 32%. Robustness drops to 13% for the sentences with two errors and 6% for those with three. With more than 5 source errors, identical output occurs in less than 1% of cases. The paper characterizes the drop in exact agreement as more than 50% for each additional input error along the curve it discusses. This is a pattern among separately grouped sentences. The sentences were collected with their existing errors and revisions, so the comparison captures what happens across those groups in the data.
For changed outputs, the trend in f-BLEU is described as approximately linear. It begins at about 59 f-BLEU for a single source error and falls to about 28 for sources with more than 9 errors. The shapes of the two curves need not match. Under exact agreement, a sentence leaves the robust group as soon as any output token differs. Subsequent differences can still move the graded score. A sentence may therefore cross the exact-match threshold after a limited change and move farther away as more of its output changes.
The paper also groups sentences jointly by input length and error count. A broad comparison suggests that longer inputs are less robust, but longer sentences are also more likely to contain more errors. In the group with a single annotated error, robustness is about 30% through much of the length range, with a slight rise as length increases. The author suggests that additional context can help in such cases. At the scale of this analysis, the sharper separation is by error count. The plot displays only bins whose RB exceeds 1%, and marker size represents the number of sentences in a bin. Sparse and omitted portions of the display matter when judging how far the visible trend extends.
Where a single edit changes the output
Pooling the single-edit divergence measurements gives a mean offset of 0.7, a standard deviation of 5.1 and skewness of 0.8. These are statistics of relative positions in the translation. The mean lies slightly to the right of the anchor, and the paper describes the typical effect as extending over a ±5 word neighborhood. This is a description of spread. Individual sentences can have changes farther away, and the overall distribution combines edits with different locations and linguistic consequences.
Grouping by where the English error occurs reveals an asymmetry. Errors in the first sentence quartile have divergence concentrated towards the right context, while errors in the last quartile have divergence toward the left. The middle quartiles show lower divergence variance than either edge group. A positional distribution gives this observation more detail than a single score for all sentences. It also keeps the sentence boundaries visible in the interpretation. An anchor near an edge of the translated output has an uneven amount of text available on each side.
What the ablations show
Single-edit comparisons isolate the annotated category
The paper does not remove parts of the translation system in an architectural ablation. Its controlled analyses instead hold features of the evaluation cases fixed, most importantly by restricting the error-type comparison to sentences with a single annotation. With multiple edits, a German output difference cannot readily be associated with a particular source category. With a single edit, the type of the recorded change is known for that comparison, though the surrounding sentences still vary.
The paper reports an average recoverability of about 11% for error types, expressed as μ = 0.11, and displays categories outside its range around that average. This is a summary across error types. The sentence-level figure for a single source error pools instances, allowing common categories to carry more weight. The two figures answer different questions even though both analyses focus on single edits. The paper uses the category comparison to identify especially easy or difficult cases among the labels available in the corpus.
Exact agreement for selected error types in the pooled single-edit evaluation
Verb inflection and subject–verb agreement lead the displayed categories, while conjunction errors show the least stability.
The numbers
| System or setting | RB % |
|---|---|
| Verb inflection (this paper) | 22 |
| Subject–verb agreement | 22 |
| Orthography | 19 |
| Verb form | 17 |
| Word order | 17 |
| Conjunction | 3 |
| Other | 5 |
| Noun | 6 |
| Adverb | 7 |
| Verb | 7 |
Verb inflection and subject–verb agreement have the highest RB among the displayed categories. The system often has enough evidence to infer the relevant verb and the intended relationship between its parts. Verb form and word order also appear toward the recoverable end of the ranking, and orthography is represented by case and spacing edits under ERRANT’s definition. The analysis treats a match as recoverability in this operational sense. Its evidence is that the annotated correction can be applied without changing what the translator produces.
The lower end includes conjunction, noun, adverb and verb labels for changes the paper describes as frequently semantic. The distinction between a verb category for word choice and a verb category for inflection is central. A changed inflection may preserve the lexical action and its role in the clause. Changing which verb is used can alter what the sentence says. Similarly, a different conjunction can specify a different relationship between events. If the source reads coherently with the unintended word, a German output that changes after the edit may reflect faithful translation of two different English meanings.
The labels in the chart are selected from the ends of the ranking. They do not show every error class in the collections or how frequent each one is. The numerical ordering describes stability within the selected categories. The paper’s discussion of easier and harder errors gives a linguistic interpretation of that ordering, particularly where recovering an intended meaning would require discourse context or knowledge of the situation beyond the sentence.
The architecture and training offer plausible explanations
The paper suggests that self-attention could help the translator infer the intended role of an irregular form. In the Transformer encoder, the representation of a token can draw information from other positions in the source. When a verb is superficially ill formed, cues elsewhere in the sentence can still support a familiar reading. The stem may also remain identifiable. The source pair danceing and dancing illustrates this interaction. The paper gives the segmentations dance|ing and danc|ing, which preserve the ing part in each version. The two input representations differ while retaining evidence of the same kind of inflection.
The authors make a related suggestion about word order. ERRANT’s word-order label is restricted to cases where the same tokens have been rearranged. The words themselves remain available to the encoder, even though their positions change. The paper contrasts the positional information supplied to this attention-based encoder with the sequential structure of recurrent translators examined in earlier studies. The attention architecture could make some of these local reorderings easier to handle. Since the experiment applies only the existing ensemble, the observed RB for word order cannot isolate the contribution of the encoder design.
Preprocessing supplies another possible explanation, especially for orthography. Truecasing normalizes case in advance of translation. Subword tokenization can preserve familiar pieces even if the writer has joined words that would ordinarily be separated. The paper illustrates this with weatherrelated, which is segmented as we|a|ther|related, and compares it with we|a|ther related when the space is present. The forms still share several pieces. In this account, the case normalization and byte pair encoding used for segmentation reduce the difference in the material the translator receives. Neural Machine Translation of Rare Words with Subword Units
The third explanation concerns the sampled source sentences produced by back-translation. The system may have been exposed during training to substantial amounts of imperfect English paired with German. If that English includes forms like those found in the evaluation, the translator could learn to rely on context and stable pieces of words despite local irregularities. The paper did not have access to that training bitext to check the prevalence or nature of its errors. Exposure to noisy sources is therefore a hypothesis about why some categories are relatively recoverable, alongside attention and preprocessing.
The location analysis distinguishes local and broad changes
The divergence results refine what a category’s RB can mean. A category may often preserve the full output, yet produce a noticeable shift through the sentence on the occasions when it changes. Another may trigger differences often and still affect a narrow region. The positional plots address this separate dimension by showing the center and spread of output differences in each selected group. Read together, the category ranking and positional plots distinguish how frequently a response is detectable from where its consequences appear.
In the plotted examples, substitutions involving orthography, marked R:ORTH, have a leftward tendency. An unnecessary conjunction, U:CONJ, is associated with more divergence to the right. Unnecessary contractions, U:CONTR, are among the examples with a narrower distribution. The plot also shows narrower spread for R:WO, the word-order category shown with a replacement prefix. These patterns describe the outputs relative to the aligned anchor. They are sensitive to the comparison rule for tokens and to where the relevant words occur in the translated sentence.
Missing verb-form material, M:VERB:FORM, can be associated with a broad spread. The paper explains why a change to an English verb construction can reach far across its German translation. In the example discussed, an English auxiliary and main verb stand together before an object, while German can place the finite auxiliary early and the non-finite main verb after the object. A local English edit may therefore bear on both sides of a long stretch of German. The same example helps explain why the location of the first unexpected word, by itself, would give an incomplete picture of the transformation.
The edge and center comparisons add another condition to interpreting these categories. A source edit near the beginning has more succeeding text in English, and a German anchor near the beginning leaves more target positions to the right. The empirical distributions show the direction in which differences are counted under those conditions. The finding that central groups have lower variance is descriptive. Separating sentence geometry, alignment and linguistic propagation would require more than the observed offsets alone.
Limitations
Limits identified by the author
The experiment covers English-to-German translation with one existing ensemble. Its findings can characterize that system on these English collections, while the behavior of other architectures and language pairs remains open. The data available for a comparable evaluation are uneven across languages. The author mentions annotated resources in Estonian and Latvian as possible smaller testbeds. A study of individual error types would also need compatible edit labels, potentially through adapting the annotation procedure to those languages.
The procedure relies on the output from corrected English as an approximation to a suitable translation. The author stresses that the quality of the underlying translator matters. Poor output on clean text would make comparisons with it difficult to interpret. Even for a leading system, ỹ can contain mistranslations or stylistic choices that a human translator would avoid. Agreement with ỹ can preserve one of those shortcomings. Disagreement can likewise arise from two plausible renderings of the same material.
The paper explicitly distinguishes output divergence from German grammatical error. In its illustrated case, möchte and will are counted as different even though the author considers them practically interchangeable in context. A token comparison registers the choice without judging whether the resulting sentence is fluent, grammatical or faithful to the English. The paper views f-METEOR as a partial response to that limitation and discusses more systematic output error analysis as a possible extension. MARMOT and compare-mt
A human-reference study would face a further problem of deciding how to translate the original writing. A translator might preserve a meaningful difference between the original and revised English, or infer the writer’s intended meaning from context. The author suggests eliciting translations of originals and of multiple corrections from multiple people to investigate this. Budget constraints prevented that study. The evaluation therefore cannot establish how frequently humans would converge on one German output under the same source changes.
The author also identifies a qualification on NR. Its simple form assumes broadly comparable lengths on the source and target sides, an assumption the paper regards as reasonable for English and German. An adaptation to language pairs with different typical sentence lengths could require a correction for that relationship. The ratio compares overlap calculated separately in each language, and the behavior of its distance construction depends in part on how much text each side contains.
Finally, using the measures during training is an extension proposed by the paper. The author mentions optimizing an agreement measure and using it to decide when training should stop. These ideas would require testing improvements on irregular English alongside performance on clean inputs. The evidence in this study establishes what happened when an existing system was evaluated on original and corrected sentences. It does not measure changes produced by training against these metrics.
Limits visible in the design
The source annotations serve as both the record of errors and the specification of corrected input. This makes the evaluation possible, but it means the findings depend on the correction chosen. An editor might replace a word, move a phrase or rewrite an awkward stretch for fluency, and a different editor might choose a smaller or larger intervention. The variation is especially relevant to a collection such as JFLEG, which explicitly includes broader fluency changes. A shared error-tagging procedure standardizes the labels applied to the edits. It leaves intact the differences in the editorial practices that produced them.
The amount of annotation is also an imperfect measure of difficulty. An edit count treats every annotated revision as a unit, while different units can change different amounts of the source and can bear differently on meaning. The plots of error count compare naturally occurring groups of sentences. Holding count fixed helps when considering length or error type, but longer sentences with one edit can differ systematically from shorter ones with one edit, and error categories occur in their own characteristic contexts. The analyses show associations within the available data. They cannot establish how the same sentence would respond if additional errors were introduced one at a time.
The system’s robustness rankings offer no separate estimate of the effects of self-attention, back-translation or preprocessing. All are present when the system is run, and the sampled back-translations are unavailable for examination in the study. A high agreement rate on an error category could reflect several favorable features at once, including how easily the writer’s meaning can be recovered. The observed categories and the segmentation examples generate mechanisms consistent with the results. Matched comparisons of systems or training conditions would be needed to estimate their contributions individually.
The divergence analysis adds information about position at the expense of requiring an anchor and a definition of a differing token. Automatic alignments can yield an uncertain anchor, especially where a source expression has an indirect rendering or where its meaning is distributed across several target words. A test of word presence can also miss changes in how repeated or reordered words are used. The formal and illustrated descriptions of the direction of token comparison differ, which matters when a translation gains or loses material. Consequently the plots support statements about patterns of counted offsets under the study’s method. They do not assign a grammatical dependency or a causal path to every marked word.
There is also a mathematical boundary to interpreting the ratio. If the compared English inputs have zero distance under the chosen measure, the written expression has a zero denominator. When the denominator is small, the relative value can be sensitive to a modest difference in overlap. The corpus-level results are evidence of higher relative output distance under the reported aggregation. The NR values do not quantify changes in correctness or give a common scale of semantic harm across all edit categories.
What came after
Fine-Tuning MT Systems for Robustness to Second-Language Speaker Variations (2020) takes up the problem of translating variation in second-language writing from the training side. Its title identifies fine-tuning, the adjustment of an existing translation system through further training, as the approach. This addresses the question raised by the English-to-German analysis about how robustness might be improved once sensitivity to naturally occurring variations has been identified. The connection is strongest at the level of the objective. The earlier study measures stability under recorded revisions, and the later work asks how training can make a translator more robust to variations in what second-language speakers write.
It’s Easier to Translate out of English than into it (2020) approaches translation difficulty through a cross-mutual-information measure and compares directions of translation involving English. This broadens the question of what makes a translation input difficult. In Anastasopoulos’s study, direction stays fixed while source wording varies between original and corrected English. In this later work, translating out of or into English is itself the contrast under investigation. The connection is a shared interest in measuring difficulty under specified conditions. The paired-output robustness scores and the cross-mutual-information measure address different comparisons.
RuCoLA: Russian Corpus of Linguistic Acceptability (2022) concerns the availability of linguistic data beyond English. Its subject is Russian acceptability, or whether a sentence is judged acceptable in the language. This connects to the original paper’s concern that English dominates the resources for studying grammatical variation. Acceptability data address a related question about the status of an input sentence. A direct application of the translation study’s procedure would also need paired source revisions and, for the error-type analysis, a way to classify their edits. RuCoLA’s stated focus is the acceptability resource.
These citing works connect to different parts of the study’s research problem. The fine-tuning work concerns improving the behavior of a translator, the translation-difficulty work concerns defining and comparing difficulty across directions, and the acceptability corpus concerns the language resources available for examining irregular inputs. Their titles and citation relationship establish those connections. They leave open whether any of the later studies used the original robustness metrics, reproduced its English-to-German results or adopted the divergence procedure.
Cite
Cite as Antonios Anastasopoulos. 2019. An Analysis of Source-Side Grammatical Errors in NMT. Proceedings of the 2019 ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP.
@inproceedings{antonios2019analysis,
title = {{An Analysis of Source-Side Grammatical Errors in NMT}},
author = {Antonios Anastasopoulos},
booktitle = {Proceedings of the 2019 ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP},
year = {2019},
doi = {10.18653/v1/w19-4822},
url = {https://doi.org/10.18653/v1/w19-4822}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/anastasopoulos-2019-analysis-source-side-grammatical-errors/