Elamur Research

Selecting the best data filtering method for NMT training

Paper · 2021 · Fred Bane and Anna Zaretskaya

Summary

A translation memory stores past translations so that they can be reused. Its sentence pairs may already have been aligned by the time they reach a neural machine translation training pipeline, but some still contain mistakes or additions that the system could learn to reproduce. A target sentence might expand an acronym that appears only in abbreviated form in the source. That expansion may have served a purpose in the original document, yet it can be undesirable for a system expected to translate what the source actually says. The paper asks whether automatic scoring can identify which pairs to keep, and whether agreement with professional linguists is a useful guide to the eventual quality of the translations.

The authors compare Marian Scorer, which assigns a score using an existing translation system, with LASER, MUSE and XLM-R, which represent sentences in a shared multilingual space. They score a random sample of 5 million pairs for each of five directions and have linguists assess roughly 100 pairs per direction. Marian has the strongest Pearson correlation with the linguists in all directions except English to German, where MUSE leads. MUSE generally comes closest on root mean squared error, a measure that penalizes large gaps between scores. The two measures give different answers because they assess different aspects of agreement.

The authors then use the linguists’ ratings to calibrate a cutoff for each tool and train translation systems for English to German and English to Japanese. They compare score-based selection with training on the full corpus and on a randomly reduced corpus. Marian leads among the filtered systems on the held-out in-domain tests in both directions. On English to Japanese, its in-domain BLEU score is 37.5, compared with 37.1 for the full corpus. The full corpus leads on the English-to-German in-domain test and on the Japanese news test. MUSE leads on German news with 18.4, where LASER and the full corpus both score 18.3.

The results make the choice of a filter depend on the evaluation that matters. Marian and MUSE are the authors’ strongest candidates overall, yet MUSE’s strong agreement with the German training-pair ratings carries through to the German news test and fails to predict the in-domain ordering. The authors also describe practical observations of more hallucinations and unacceptable translations with unfiltered data. The reported test comparisons use automated scores, so those observations leave open how often filtering prevents such errors. The study establishes that a filtered corpus can match or outperform a larger one in particular settings, with the effect depending on the language direction, the test domain and the material that survives the cutoff.

Deep dive: Selecting the best data filtering method for NMT training

How Marian Scorer, MUSE, LASER and XLM-R filter translation memories, and how their selections affect neural machine translation quality. · about 36 minutes to read

The problem and its context

A sentence pair can be aligned and still be a poor training example

The authors approach bilingual data cleaning from the perspective of a commercial translation provider. Their training material can come from several sources, each of which presents a different selection problem. A public collection may already provide aligned bilingual text, but the quality of the pairs can vary. A customer may supply translated documents that the provider must align at sentence level. A customer may also have a translation memory in which the source segments and their human translations have already been paired. The provider then needs to decide which of those pairs are suitable for training. The paper gives OPUS as an example of the first kind of resource. Parallel Data, Tools and Interfaces in OPUS

Alignment refers to the association between segments in the source and target languages. If the target segment belongs to a different part of the document, the association is wrong even when both sentences read well individually. Translation quality raises another question. A correctly aligned target can contain a spelling mistake, leave source content untranslated or add material that the source never expressed. For training purposes, the distinction matters because a sentence pair can show the intended correspondence in most of its words while also demonstrating a behavior the provider wants to avoid.

The paper illustrates the problem with acronyms. A translation memory can associate a source acronym with a target that contains both the acronym and its expansion. The pair records a human translation, and the surrounding context might have made that choice appropriate. From the perspective of a system learning from the pair, however, the extra words appear as part of the translation of a source that never contained them. The authors connect examples of this kind to hallucination, where a translation introduces content that lacks support in its input. They also mention target-side [sic] tags that have no source counterpart. Both examples show why a check that asks only whether the sentences concern the same subject would leave some of the relevant noise in place.

This distinction explains the paper’s choice of data. The authors say much of their training material comes from already aligned translation memories, which in their experience generally offer better alignment and translation quality than text collected from the web. A filter designed to reject gross mismatches can still be helpful. The question is whether tools developed or used for noisier bilingual material can also make finer distinctions within a predominantly translation-memory corpus. The evaluation must account for the source–target relationship, the quality of the target and the particular use to which the examples will be put.

There is a cost to discarding an example. A filter can suppress a pair that would have taught the system to produce an unwanted output. It can also discard useful text, including examples of language that the remaining data covers poorly. This tradeoff comes directly from the research context the authors describe. Earlier work had established both the importance of training corpus size and the sensitivity of neural translation to noise. A data selection policy changes both at once. The result therefore depends on what the filter can detect and on how much usable material survives. Six Challenges for Neural Machine Translation · On the Impact of Various Types of Noise on Neural Machine Translation

How earlier work identified unreliable pairs

The growth of available parallel text made filtering a practical research problem. The paper describes work on already collected corpora as well as work on obtaining bilingual material from a large web crawl. Web collection can produce enough candidate material to make individual review impractical. It also makes it valuable to distinguish the process that proposes a pair from the process that decides how much trust to place in it. The paper’s account of web data collection includes the work on Common Crawl. Dirt Cheap Web-Scale Parallel Text from the Common Crawl

Some earlier approaches treated unreliable bilingual examples as outliers. On that view, pairs suitable for training follow patterns that can be learned from the collection, while sufficiently atypical pairs are candidates for removal. Another line of work generated examples of bad translation and trained a classifier to distinguish good pairs from them. The synthetic examples represented shortcomings in adequacy or fluency. Adequacy concerns how well the target conveys the source’s meaning, while fluency concerns how naturally and correctly the target reads. The synthetic approach consequently depended on making the manufactured errors informative about the kind of noise the classifier would encounter.

The paper also discusses work that inferred trust from smaller bilingual units. In that approach, a graph-based random walk helped assign scores to phrase pairs, which in turn affected the weight attached to phrase translations. The intuition worked in both directions. A well-translated sentence pair was likely to yield better phrase correspondences, and the quality of those correspondences provided evidence about the sentence pair. This method came from work on statistical machine translation. It illustrates a different way of obtaining evidence from the same input, through the relationships between phrases within aligned sentences.

Another approach measured semantic divergence across languages. A pair can have substantial overlap in subject matter while differing in what the sentences assert. Cross-lingual textual entailment offered a way to ask whether the content of a sentence supports what its counterpart says. The approach described by the authors also used length-based features. Length can help identify conspicuously uneven pairs, whereas a comparison of meaning addresses a discrepancy that may remain even when the sentences are similar in length. The two signals can therefore respond to different reasons for suspecting a pair.

The shared tasks and the shift toward multilingual representations

The paper traces the shared-task setting back to work on finding corresponding bilingual documents. The 2016 task concerned document alignment and did not yet require participants to align individual sentences. The distinction matters for this study because finding the corresponding document is upstream of deciding whether any particular source segment and its proposed translation should be used in training. A good document match can contain sentence pairs of varying quality. Findings of the WMT 2016 Bilingual Document Alignment Shared Task

In the 2018 filtering task, a winning method used translation in both directions. It scored the target given the source and the source given the target, combining evidence from the two directions through dual conditional cross-entropy. This is a way to judge a supplied pair by how plausible each side looks as a translation of the other. The approach belongs to the same broad family of evidence as using a translation engine to score paired text. The current paper identifies its own Marian setup through the score it uses and the existing engines that supply it. Dual Conditional Cross-Entropy Filtering of Noisy Parallel Corpora

A winning approach discussed from the 2020 task combined dual cross-entropy with several other signals. The authors describe bilingual and monolingual GPT-2 components and scores from statistical word translation. Another winning approach learned to distinguish clean parallel text from misaligned pairs after obtaining sentence representations with a Transformer. These approaches illustrate the range of roles a representation can play. It can supply evidence alongside other scores, or it can be the input to a classifier that makes the clean-versus-misaligned decision. Findings of the WMT 2020 Shared Task on Parallel Corpus Filtering and Alignment

The authors also point to the 2019 shared-task winner as an example of filtering by multilingual sentence embeddings. An embedding represents a sentence as a vector, a sequence of numbers that places it in a space shared with sentences in other languages. An aligned space makes a comparison across languages possible. For a candidate source sentence and target sentence, the tool can use their representations to produce a score without relying on identical words in both segments. LASER brought this kind of bilingual comparison into the filtering work that motivates the study. Low-Resource Corpus Filtering Using Multilingual Sentence Embeddings

Translation memories had already been the subject of a dedicated cleaning shared task in 2016. According to the paper, the participating approaches generally formulated cleaning as a classification problem and varied chiefly in the features supplied to the classifier. The authors’ question follows from that history and from the newer filtering work. They want to know whether readily available scoring tools can support a decision in their own pipeline, where much of the input is already aligned and the kinds of residual defects matter. Scoring the training pairs is only the first part of the investigation. The practical decision also depends on what happens when a translation system learns from the examples the scoring tool keeps.

The method, step by step

From candidate pairs to a training corpus

The starting unit is an existing sentence pair. The authors take a large random draw of these pairs in each language direction and apply every scoring tool to the draw. Each tool supplies a number for each pair. A small human-reviewed subset connects those numbers to the authors’ working definition of training quality. The study first assesses agreement between the tool scores and the human ratings. It then uses the ratings to give the scores a practical interpretation, namely the point at which a pair stops being good enough to keep.

The procedure produces a separate corpus for each tool. If different tools give a pair different assessments, the pair can survive in one corpus and disappear from another. The corpora can also differ in size because the cutoffs refer to estimates of human-rated quality. The authors then train otherwise comparable translation systems on those corpora and evaluate their output against held-out translations. That last step makes it possible to ask whether a tool that rates examples like a linguist also leaves behind data that leads to better translations.

From bilingual sentence pairs to translation evaluation

The steps in order.

From bilingual sentence pairs to translation evaluationStep 1: Draw candidate pairs for each translation direction1. Draw candidate pairs for each translation directionStep 2: Score each pair with every filtering tool2. Score each pair with every filtering toolStep 3: Have linguists rate a mixed review sample3. Have linguists rate a mixed review sampleStep 4: Compare automatic and human ratings4. Compare automatic and human ratingsStep 5: Estimate tool cutoffs from human scores5. Estimate tool cutoffs from human scoresStep 6: Build filtered and comparison corpora6. Build filtered and comparison corporaStep 7: Train translation systems under fixed settings7. Train translation systems under fixed settingsStep 8: Evaluate translations on held-out test sets8. Evaluate translations on held-out test sets

The translation evaluation uses two kinds of comparison data in addition to the filtered corpora. One comes from keeping everything in the original draw. The other comes from randomly retaining as many pairs as the largest filtered corpus in that direction. Training on the full draw tests the value of using all available examples. The random subset gives the authors a reference for what happens when they reduce the corpus without using the quality scores. Its role is particularly clear in comparisons with whichever filter retains the same number of pairs.

Choosing what the linguists review

The first phase starts with 5 million randomly selected sentence pairs for each direction. The directions run from English to Chinese, German, Japanese, Russian and Spanish. The candidate pool already contains parallel sentences and spans multiple domains. The draw is random within that pool. At this stage the authors have a set of candidate examples to score in each direction, before they ask which filtering method ought to remove any of them.

Manual review of the entire draw would be impractical. The authors instead put together approximately 100 sentence pairs per direction for linguistic assessment. Some pairs are random. Others are chosen because of their properties. The authors include very short and very long examples, pairs with unusual source-to-target length ratios and pairs from the high and low ends of the tools’ scores. The sample thus contains material on which the tools may be particularly confident, alongside pairs included without reference to those extremes.

That combination is pertinent to what the sample is meant to do. A sample taken entirely at random might contain little of some forms of noise or few examples that a tool regards as exceptionally poor. Inspecting the ends of each tool’s score distribution gives reviewers a chance to check whether the values there have the expected meaning. An extreme example can also expose a difference between tools. One scorer might assign a poor value to a pair that another regards as suitable. Unusual lengths and length ratios provide a second way of encountering potentially difficult cases without letting any one quality score define the entire review set.

On a 1–100 scale, scoring is done by professional linguists. The authors supply instructions tailored to data for translation training. Their example concerns spelling mistakes. A reviewer should penalize a spelling error on the target side while leaving the source-side score penalty aside. The resulting asymmetry is deliberate. A pair with a flawed input and a good translation can be evaluated differently from a pair in which the expected output itself contains an error. The rating is a judgment about how the source and target function together as a training example under those instructions.

A human rating provides the reference value for the comparison, but its function extends beyond labeling a pair acceptable or unacceptable. The scale allows the authors to look for graded agreement across the reviewed examples. It also gives them a common quality scale on which to choose a cutoff. That common scale matters because a raw score of a particular magnitude has a different meaning for Marian than for a tool that scores from multilingual representations.

What the automatic scores represent

Marian Scorer belongs to the MarianNMT toolkit. The authors use existing company translation engines for the relevant directions and obtain a likelihood-based score for each supplied pair. The score reflects how the translation engine evaluates the paired text. In the experiment’s reported convention, the resulting scores are negative and a value closer to zero is better. This information is valuable even before any training corpus is assembled because it supplies a way to order pairs by their plausibility to an existing system.

The other tools use publicly available components. LASER, MUSE and XLM-R supply representations that put sentences from different languages in aligned vector spaces. This allows the scoring procedure to compare a source segment and its candidate translation as numerical representations of sentences. In the reported setup, their scores are positive, with larger values indicating better pairs. The common broad approach does not make the three tools interchangeable. Each supplies its own score series, and the authors evaluate and calibrate those series separately.

The paper identifies the tools and the source of the components used with them. It gives less detail about the conversion from each embedding representation to an individual pair score. The useful level of precision for reading the experiments is therefore the distinction between translation likelihood and comparison in a multilingual space, together with the direction of each score and the threshold later applied. The empirical comparison concerns the particular tools as used, including the existing company engines behind Marian.

This also clarifies which part of the pipeline is already in place at the start and which part is trained for the experiment. The scoring components are available when the authors evaluate the candidate pairs. The human ratings are used to compare their outputs and calibrate selection. The translation systems whose output appears in the final test results are trained on the resulting corpora. A good downstream score for a Marian-filtered corpus describes the translation system trained on those selected pairs. The score from Marian used to admit those pairs had already been generated.

Comparing automatic scores with human judgments

The authors use Pearson correlation, root mean squared error and the goodness of fit of a linear regression. These measures answer related questions. Pearson correlation measures how consistently the two sets of scores vary together in a linear way. A tool can assign systematically different numerical values from a human reviewer and still correlate well if more highly rated pairs tend to receive correspondingly higher tool scores. Correlation is useful when the relationship between two different scales is of primary interest.

Root mean squared error, abbreviated RMSE, summarizes the distances between paired scores. It squares each discrepancy before averaging, then takes the square root. Large discrepancies consequently have more influence on the result. Its interpretation depends on the numerical scales being compared. The authors normalize the tool scores before computing RMSE because the raw numbers come from different scoring procedures.

For the negative scores, the paper gives the following transformation.

1 − (x / min(x))

Here x in the numerator denotes an individual raw score. In min(x), the same letter refers collectively to the scores from which the minimum is taken, and min denotes the smallest value in that collection. The slash denotes division. The resulting ratio is subtracted from 1. Because the score nearest zero is considered better under this convention, the transformation maps a score that moves toward zero to a larger normalized value. The most negative value serves as the reference at the low end.

For the positive scores the paper gives a different transformation.

x / max(x)

Here the numerator x is an individual raw score, max denotes the maximum, and max(x) is the largest raw score in the relevant collection. The slash again denotes division. The value remains larger for a better raw score, and the maximum provides the reference for the scale. These formulas explain the rescaling of the tool scores for the error calculation. The thresholds used to select training data are reported in the tools’ own units.

Linear regression fits a straight-line relationship between the automatic scores and the linguistic ratings. Goodness of fit expresses how closely the paired observations follow the fitted relationship. This use of regression asks how well scores on one scale can be related to another. In the filtering phase, the fitted relationship is used operationally. It allows the authors to identify a tool score corresponding to a chosen point on the human scale. A correlation alone would indicate how the scores tend to move together, without giving that cutoff in the tool’s original units.

These comparisons are carried out by language direction and tool. This matters for the procedure because each direction has different paired text, a different review sample and possibly a different mapping from automatic to human scores. A tool can have better agreement in one direction and require a different cutoff in another. The authors also report combined values to describe performance across the reviewed directions. The direction-specific results remain important when deciding which sentences enter a particular training run.

Calibrating and applying the cutoff

The second phase focuses on English to German and English to Japanese. The authors explain the narrower trial by pointing to a broadly similar relative performance of the tools in the first phase. For these downstream experiments they choose 72.5 on the human scale and use the linear relationships to obtain an equivalent cutoff in each scoring system. The value is empirical. The authors selected it as a workable compromise between removing poor examples and retaining enough data to train a translation system.

The cutoffs are as follows. Each cell gives the raw tool score corresponding to the same human rating in that direction.

DirectionLASERMarianMUSEXLM-R
English to German0.86-1.120.750.86
English to Japanese0.81-1.200.690.85

The authors discard pairs scored below the relevant cutoff. A negative Marian threshold works in the same keep-or-discard procedure as a positive threshold because better Marian scores are closer to zero. A pair with a score below the threshold is therefore farther toward the poor end according to that scorer. For the other tools, higher positive scores likewise favor retention.

The table describes the chosen decision rule. Identical numerical cutoffs for two tools do not imply that the retained examples are identical. The tools assign their values independently, so the distributions of their scores and their assessments of individual pairs can differ. Similarly, a lower cutoff in one language direction does not necessarily mean that the authors are intentionally allowing worse pairs in that direction. Its intended human-scale equivalent is still 72.5. The cutoffs are language-specific translations of that criterion.

The authors considered a different design in which every tool would contribute its highest-scoring pairs up to a fixed count. That would allow them to compare rankings with the training set size held equal. The cutoff design more closely matches the decision they anticipated making in the company’s training process, where the quantity available above a quality standard can vary. The tradeoff is that the downstream experiment measures the whole selection policy, including its effect on how much training text survives. The article returns to the implications of this choice when comparing the actual corpora.

Training and testing under common conditions

For each downstream direction, each filtered corpus is used to train a base Transformer translation system. The same training setup is used for the full corpus and for the randomly reduced corpus. The paper reports that configurations and hyper-parameters are held fixed across runs. This controls differences in the prescribed training procedure. The data supplied to that procedure changes in size, composition or both, depending on the comparison.

The resulting systems translate held-out sentence pairs in two test settings. Each direction has an in-domain set of 2,000 sentences sampled from the distribution underlying the original candidate corpus. The out-of-domain sets come from the 2020 WMT News tests. The in-domain description concerns the distribution the authors sampled. It can therefore include the range of material present in that distribution. The explicit contrast is between performance on that held-out material and performance on a news benchmark from outside it.

The authors use the sacreBLEU package to score the translations. BLEU evaluates translation output through its textual agreement with reference translations, with larger scores indicating stronger agreement. Tokenization determines how the text is divided into units for that comparison. The authors report default tokenization for English to German and MeCab for English to Japanese. Those choices are common to the systems being compared within each direction. The relevant comparisons are between selection methods evaluated on the same test set with the same scoring procedure.

The authors also examine validation BLEU and validation perplexity during training. A validation measure follows performance while the system is being developed, before the final comparison on a held-out test set. Perplexity reflects how well the system predicts the validation text, with lower values indicating better predictive fit. These measures can reveal behavior during training, while the final in-domain and news scores describe the translations produced for the reported tests. The study uses the two kinds of evidence to assess related stages of the pipeline.

Experiments and results

Human agreement depends on the direction and the measure

Marian and MUSE are the strongest overall scorers against the professional ratings. The combined Pearson correlation is 0.63 for each. XLM-R reaches 0.60 and LASER reaches 0.52. The combined values give Marian and MUSE the same reported correlation, even though their individual results differ enough to matter for choosing a filter in a particular direction.

English to German is the clearest case for MUSE in the human comparison. Its Pearson correlation is 0.61, followed by Marian at 0.53. XLM-R records 0.47 and LASER 0.43. In English to Japanese, Marian has the highest value at 0.56. LASER and XLM-R both reach 0.52, and MUSE has 0.48. The direction in which MUSE leads by correlation and the direction in which it trails the other tools are the directions used for downstream evaluation. That gives the authors two different comparisons between linguistic judgments and final translation scores.

Marian also has the highest Pearson correlation in the other reviewed directions. In English to Spanish, it scores 0.71. MUSE and XLM-R both record 0.60, and LASER records 0.50. In English to Russian, Marian has 0.58, followed by MUSE at 0.53, XLM-R at 0.50 and LASER at 0.45. The English-to-Chinese figures are more tightly grouped. Marian records 0.61, MUSE 0.60, LASER 0.58 and XLM-R 0.56. The ordering favors Marian in these directions, with the observed separation varying across samples.

The RMSE results favor MUSE more often. At the combined level, its error is 0.31. XLM-R has 0.34, while LASER and Marian each have 0.35. For English to German, MUSE has the lowest RMSE at 0.32, and Marian follows at 0.37. XLM-R records 0.38 and LASER 0.39. For English to Japanese, the lowest reported error is shared by Marian and LASER at 0.34. The reported values for MUSE and XLM-R are 0.35. In that direction the correlation results distinguish tools that RMSE places close together.

For English to Spanish, Marian and MUSE tie on RMSE at 0.29, followed by XLM-R at 0.33 and LASER at 0.36. MUSE has the lowest error in English to Russian at 0.28. LASER and XLM-R each have 0.32, and Marian has 0.33. MUSE also leads on English-to-Chinese RMSE at 0.33, while the other tools each have 0.36. These cases show how a scorer can lead in covariation with human ratings while another has smaller numerical discrepancies after rescaling. The Russian results make the distinction particularly visible because Marian leads on Pearson correlation and MUSE leads on RMSE.

The goodness-of-fit values from linear regression give Marian and MUSE a combined tie at 0.40. XLM-R has 0.36 and LASER has 0.27. In English to German, MUSE leads with 0.42, compared with 0.32 for Marian, 0.25 for XLM-R and 0.19 for LASER. In English to Japanese, Marian has 0.44 and XLM-R comes close at 0.43. LASER has 0.32 and MUSE has 0.31.

Marian also leads on goodness of fit in English to Spanish at 0.53 and English to Russian at 0.40. MUSE leads for English to Chinese at 0.44. This Chinese-language result differs in ordering from Pearson correlation and agrees with the RMSE ordering at the top. The paper reports these measures separately, and they give several ways to describe the reviewed sample. The combined results identify Marian and MUSE as plausible choices for further testing. The individual values indicate where each choice has the stronger basis in the manually evaluated pairs.

A common quality criterion leaves different amounts of data

The downstream systems begin with the same full candidate corpus in each direction. After the tool-specific cutoffs are applied, the training corpora have the following sizes.

DirectionLASERMarianMUSEXLM-R
English to German2,707,0003,425,8033,666,4273,168,430
English to Japanese2,424,2163,300,9071,641,0082,907,271

MUSE retains the most pairs among the filters for English to German and the fewest for English to Japanese. The size change between these directions matters to the interpretation of its eventual test scores. The same method name and the same target rating on the human scale describe selections of very different sizes. Marian retains the most filtered pairs in English to Japanese, while LASER retains the fewest in English to German.

The unfiltered training set contains the full 5 million pairs per direction. The randomly selected English-to-German training corpus contains 3,666,427 pairs, matching MUSE. The randomly selected English-to-Japanese corpus contains 3,300,907 pairs, matching Marian. Those are the matched-size comparisons. Other comparisons against the random baseline still show how settings perform relative to one another, but they compare different training sizes along with different selection rules.

The counts also place the human agreement results in context. A strong correlation says that the tool and linguists tend to score the reviewed examples in agreement. The number of retained pairs depends on how the tool scores the entire corpus relative to the calibrated cutoff. That total consequently tells a reader something different from the human agreement statistics. It records the effect of using the fitted cutoff at scale, including how restrictive it turns out to be for a particular tool and direction.

Testing on material from the same distribution

For the English-to-German in-domain test, the full training set produces the highest SacreBLEU score, 36.8. Marian is the strongest score-based filter at 36.3. MUSE follows at 36.0, while the random subset reaches 35.9. LASER records 35.7 and XLM-R 35.6. The full draw therefore gives the best observed performance on this test. The fact that Marian is the best filtered option also matters because it differs from the German human-evaluation ranking, where MUSE led on all three reported measures.

For the English-to-Japanese in-domain test, Marian reaches 37.5, ahead of the full-corpus system at 37.1. The random subset and LASER both score 36.6. XLM-R has 36.3 and MUSE has 32.3. Marian achieves its leading score with 3,300,907 training pairs, and the random subset with that same count scores lower. This comparison is the strongest evidence in the paper that the choice of pairs can matter beyond simply reducing the number of examples in a given direction and test setting.

Selected training settings on the English-to-Japanese in-domain test, SacreBLEU

Marian leads the full corpus and the equally sized random subset.

Selected training settings on the English-to-Japanese in-domain test, SacreBLEUMUSE filter: 32.3MUSE filter32.3Random subset: 36.6Random subset36.6Full corpus: 37.1Full corpus37.1Marian filter (this paper): 37.5Marian filter (this paper)37.5
The numbers
System or settingSacreBLEU
MUSE filter32.3
Random subset36.6
Full corpus37.1
Marian filter (this paper)37.5

The authors report that Marian also gave the strongest validation results among the filtered systems, presenting validation BLEU and perplexity over training. The test result for English to Japanese is important because its advantage appears on held-out in-domain translations as well. For English to German, being the strongest of the filtered settings still leaves Marian below the full-corpus system on the in-domain test. Filtered systems should therefore be compared both with each other and with the alternative of keeping the original corpus.

MUSE’s Japanese in-domain score is the lowest in that direction. Its corpus is also the smallest of the Japanese training sets. Its ratings of the sampled Japanese pairs have the lowest Pearson correlation among the tools in that direction. There are several properties of that run that could matter, from which examples MUSE ranks highly to how the cutoff reduces the corpus. The experiment supplies the combined outcome of those choices. It leaves their individual contributions open.

Testing on WMT News

The English-to-German news test changes the ordering. MUSE records the highest SacreBLEU score at 18.4. The full corpus and LASER both reach 18.3, while XLM-R records 17.9. Marian and the random subset each score 17.6. The German news results put MUSE ahead of its equally sized random comparator. They also give LASER the same score as the full corpus despite its smaller training set. The lead for MUSE over the tied settings is narrow in the reported values.

Selected training settings on the English-to-German WMT News test, SacreBLEU

MUSE has the highest reported score, with LASER and the full corpus tied behind it.

Selected training settings on the English-to-German WMT News test, SacreBLEUMarian filter: 17.6Marian filter17.6LASER filter: 18.3LASER filter18.3Full corpus: 18.3Full corpus18.3MUSE filter (this paper): 18.4MUSE filter (this paper)18.4
The numbers
System or settingSacreBLEU
Marian filter17.6
LASER filter18.3
Full corpus18.3
MUSE filter (this paper)18.4

This comparison makes it possible to relate the German human-score results to both tests. MUSE leads the manual comparison and also leads on German news. In-domain it places behind Marian and the full corpus. The Marian-filtered system, which is the strongest filtered system on the German in-domain test, ties the random subset at the low end of the German news results. The effective choice of filter therefore depends on what kind of material the system will be evaluated on.

On English-to-Japanese news, the full corpus leads at 17.7. XLM-R is the best filtered setting at 17.1, and LASER follows at 16.9. The random subset has 16.6, Marian 15.9 and MUSE 13.6. This ordering is different from the in-domain result, where Marian leads the full corpus and the other filters. On the news test it even falls below the same-size random subset. The Japanese results consequently show how the same training selection can help on one test and compare poorly on another.

Selected training settings on the English-to-Japanese WMT News test, SacreBLEU

The full training corpus leads, and XLM-R is the strongest filtered setting.

Selected training settings on the English-to-Japanese WMT News test, SacreBLEUMarian filter: 15.9Marian filter15.9LASER filter: 16.9LASER filter16.9XLM-R filter: 17.1XLM-R filter17.1Full corpus (this paper): 17.7Full corpus (this paper)17.7
The numbers
System or settingSacreBLEU
Marian filter15.9
LASER filter16.9
XLM-R filter17.1
Full corpus (this paper)17.7

Taken across the downstream comparisons, the full corpus leads on German in-domain text and Japanese news. A filtered corpus leads on Japanese in-domain text and German news, with different tools responsible for those results. The study thus shows several ways a filter can be judged successful. It may produce the best observed translations for a particular test, equal the full-corpus score while retaining less text, or lead the other filtered settings in a workflow where some filtering is preferred. The reported numbers support these claims for the specified runs and tests.

The authors also bring practical experience with unfiltered data into their conclusion. They report observing more unacceptable translations and hallucinations when no data cleaning was applied, especially when the target contained extraneous material such as acronym expansions or [sic] tags. That observation addresses the character of individual errors. The BLEU results measure reference agreement across sets of test translations. The paper gives the numerical comparisons for the latter and describes the former as practical experience. Those forms of evidence bear on different aspects of the decision to retain, filter or further inspect the training material.

What the ablations show

Training data as the controlled change

The paper has no component-removal ablation. Its analyses compare scoring methods against human ratings and vary the selection of training data while keeping the translation training configuration fixed. That design tests the effect of switching from one corpus policy to another. It addresses the authors’ practical question about which filter to use and gives some leverage on why a selection helps, especially where the baselines hold a relevant property constant.

The full-corpus comparison asks what the complete filtering policy buys. If a filtered system performs better, the retained subset was sufficient for the observed advantage under that training setup. That is what happens for Marian on Japanese in-domain text and for MUSE on German news. If the full-corpus system performs better, as it does on Japanese news and German in-domain text, the balance favors keeping all the original pairs for that evaluation under the reported conditions. Since filtering changes the number and identity of the pairs together, a comparison with the full corpus leaves room for both factors to contribute to the result.

An equal-size comparison with random selection addresses part of that ambiguity. It holds the count of pairs constant and compares the content of the selected subsets. In English to Japanese, Marian and the random setting both use 3,300,907 pairs. On the in-domain test, Marian scores 37.5 and random selection scores 36.6. On news, Marian scores 15.9 and the random selection reaches 16.6. The reversal occurs with the quantity of selected data fixed. It therefore shows that the relative quality of those particular selections depends on the test, even when corpus size is the same.

The result gives a more precise reading of the human-evaluation evidence. Marian leads on Japanese Pearson correlation and regression fit, and shares the best RMSE. It also wins the size-matched comparison for Japanese in-domain translation. The news result shows that the same criterion for selecting training pairs provides weaker coverage of what that test rewards, or at least that its observed performance there is weaker. The paper reports no breakdown that would identify particular words, topics or errors responsible for the shift. The matched comparison locates the change in the use of different subsets under the common setup and leaves the content-level explanation unresolved.

For German, MUSE and the random subset both use 3,666,427 pairs. The in-domain scores are 36.0 for MUSE and 35.9 for random selection. The news scores are 18.4 for MUSE and 17.6 for random selection. The score-based selection has a higher reported value on both tests. The particular strength of the news result is consistent with MUSE’s leading human agreement in German and shows an advantage over random selection at the same corpus size. With a single run per setting, the small in-domain separation and the news result remain observations of those runs.

These matched comparisons are specific to the filter that retained the most data in each direction. XLM-R, LASER and the other applicable filter are compared with a random subset of a different size. They can still be ranked on the final test metric, since all produce translations for the same held-out inputs. The answer to a stricter question, how well each method ranks pairs when it is required to fill exactly the same training budget, would require the fixed-count experiment the authors discuss. Choosing the cutoff design means the results can describe the existing workflow directly while offering only partial control over corpus size.

Changing the evaluation changes the apparent winner

The study gives three views of the human comparison. Pearson correlation assesses how the automatic scores move with the human judgments. RMSE gives a larger role to sizeable numerical disagreements after the tools’ scores are put on more comparable scales. The regression fit describes how closely the paired scores follow a linear relationship used for calibration. Seeing the measures together helps explain what each tool does well before it is allowed to determine an entire training corpus.

Marian’s results in the first phase are strongest by correlation in most directions. MUSE generally has lower error. English to Russian shows why it would be insufficient to use the name of either measure as a synonym for agreement. Marian’s Pearson correlation is 0.58 and MUSE’s is 0.53, while Marian’s RMSE is 0.33 and MUSE’s is 0.28. A tool can follow the variations in human scores relatively well while showing worse point-by-point numerical agreement on a rescaled metric. The results make the choice of comparison sensitive to whether the reader cares about preserving variation, matching scores or converting a threshold through a fitted line.

The two downstream directions offer a further check because the strongest scorer in the human comparison differs between them. For English to Japanese, several findings favor Marian on the reviewed pairs, and its filtering also gives the top in-domain translation score. German offers a different pattern. MUSE is ahead of Marian against the human ratings, while Marian has the better in-domain score among filtered systems. The top German news score restores the order observed in the manual comparison. These cases show both where the two stages agree and where the pair-rating exercise has limited predictive reach.

That reach is limited in part because the unit of evaluation changes. The first phase asks how a score compares with a linguist’s judgment of one existing pair. The second asks what a translation system can learn from millions of accepted pairs taken together. Training usefulness can depend on how examples complement each other and which kinds of text are still represented after filtering. A tool could predict individual ratings reasonably well and still yield a subset that covers the news test less effectively. That possible explanation is compatible with the setup. The experiment does not identify which aspects of coverage differ between the corpora, so the test results establish the limits of prediction more directly than the reason for them.

What the domain comparisons can account for

The in-domain and news scores are calculated from translations produced by the same training settings. The corpora are already fixed when the test material changes. That makes shifts in rank informative about the conditions under which a selection looks effective. For Japanese, the training subset selected by Marian gives the strongest in-domain result and trails several alternatives on news. For German, the full corpus leads in-domain while the MUSE subset leads on news. Holding the training selections in place makes the choice of test material the defining difference between those evaluations.

A shift in rank is an aggregate observation. It does not say which translation improved, which error disappeared or which kind of source sentence remained difficult. In particular, the comparison does not quantify hallucination. The study connects filtering to that concern through examples of target-side noise and through the authors’ practical observations, while the test reports give overall reference-based scores. An analysis of how frequently the systems add unsupported content would require output judgments aimed at that behavior.

The validation results supply a view from during training. The authors’ account that Marian leads among the filtered settings on validation is consistent with its strong in-domain test performance. The news results explain the value of keeping the separate out-of-domain evaluation. A setting with good validation behavior under one distribution can perform differently when tested on material from another. The domain comparison is the paper’s direct evidence for that conditional performance. It leaves the effects of particular kinds of noise, the composition of the retained data and the interaction with a fixed training size as questions for further controlled work.

Limitations

Limits identified by the authors

The authors describe the study as limited in scope and scale and say larger experiments are needed to check whether its conclusions hold. The first phase covers five translation directions. The second establishes downstream performance only for English to German and English to Japanese. The other reviewed directions contribute evidence about how the tools agree with human ratings. They leave open whether filtering would improve translation on corresponding in-domain or news tests.

The authors also point out that each downstream setting was trained once. Even when configurations and hyper-parameters are fixed, differences in the random initialization of the weights can affect outcomes. They suggest training three systems per tool and averaging the results. This is especially pertinent for settings whose reported BLEU scores are close. On German news, the leading MUSE result is 18.4 and the full-corpus and LASER results are 18.3. The observed ordering is clear, but repeated runs would show how consistently that ordering survives training variation.

The human evaluation used for calibration has its own limits. The authors identify reliance on a single reviewer on a limited sample as a possible source of bias. They propose gathering ratings from more reviewers and calculating inter-rater reliability, which measures how consistently different people judge the same material. The study’s training-specific instructions make the criterion explicit. Additional reviewers would show how reproducibly people applying that criterion assign scores, including for cases such as minor target errors or extra material that may have served a purpose in a particular translation.

The authors call separately for human evaluation of final translation outputs. The human ratings they actually use assess candidate training pairs. The final tests compare translations automatically. A downstream human study would allow readers to ask whether the rankings by BLEU are also visible to reviewers and whether the types of errors practitioners care about change with filtering. This is particularly relevant to the observed concern about hallucination. The authors describe seeing more problematic outputs without filtering, and the study provides neither an error count for that behavior nor a formal human comparison of its frequency across the tested settings.

Corpus size is an explicit limit of the threshold design. The authors favor the threshold because it fits their intended production workflow. They recognize that a fixed count would provide a more direct comparison of which tool finds the most useful examples when each receives the same allowance. Their proposed follow-up would hold the count equal across the filtered settings, extending the logic of the random comparisons to all the tools. It would investigate a different property of the scorers while preserving the practical relevance of the threshold experiment.

The cutoff itself is an open issue. The authors choose 72.5 empirically and ask how an appropriate value could be selected automatically. They also ask whether it should vary with domain as well as language. The paper calibrates different raw scores by direction, which addresses a mapping between each scorer and the chosen human rating. Whether different domains should have different effective quality standards remains to be investigated. A multi-domain initial pool makes that question relevant to how the cutoff would be used, since some types of material may be easier to judge or more valuable to retain than others.

The authors raise several further questions about what the tools detect. They ask whether the filters respond equally well to deficiencies in fluency and adequacy, and whether some classes of error are easier for them to identify than others. They also ask whether outcomes would carry between domains such as life sciences and leisure and hospitality, and what biases filtering might introduce. The paper’s tests establish performance on the given examples and datasets. A breakdown by error category or by more specific domain would be needed to answer these questions directly.

One proposed training experiment would use all available pairs initially and then apply fine-tuning on a cleaner subset. Fine-tuning means continuing training from the system already trained on the larger corpus. The authors suggest this because the full corpus has advantages in some tests, while cleaner data is appealing when target text contains undesirable additions. Their comparison trains separate systems on full or selected corpora. The sequential procedure is a research question prompted by those results, and the paper reports no result for it.

Limits that follow from the setup

The reviewed pairs are selected partly at random and partly because they are extreme by length, length ratio or tool score. This is a sensible way to expose the evaluation to cases a simple random review might rarely encounter. It also affects how the resulting statistics can be read. The reviewed sample represents a deliberately mixed set of cases. Its Pearson correlations and error measures describe agreement on that set. They cannot directly establish the prevalence of any type of noise in the original corpus, or how accurately the scores would calibrate over a representative sample of all production pairs.

The inclusion of score extremes is especially consequential for linear calibration. Pairing human judgments with very high and very low scores gives the fit information about separation across a broad range. The accept-or-reject decision, however, is made around a particular point on that range. Behavior immediately around that point can matter disproportionately to which sentences survive. The paper reports the global fit and the resulting cutoff, without a separate estimate of calibration accuracy near the boundary or a comparison across alternative cutoffs. A high overall fit may coexist with uncertain decisions for pairs close to the threshold.

The authors’ quality ratings are designed for this training application. Penalizing target spelling errors while accepting source spelling errors gives the scale a specific interpretation. A different workflow might treat such a pair differently, perhaps because it wishes to curate text in both languages as clean text. The study gives evidence for human agreement under the instructions used here. Carrying the same raw cutoffs into another collection would assume a similar relationship between the tool scores, human judgments and desired outputs, which the paper does not test.

The comparison also concerns particular implementations. Marian uses company translation engines already available for the language directions, while the other tools use public components. This matters when interpreting the preference for Marian or MUSE. The result covers the configuration available to the authors, including whatever information the existing translation engines bring to scoring these pairs. A different engine used with Marian Scorer would change the source of the likelihood evidence. The study does not compare alternative Marian engines or establish a context-independent ordering of likelihood scoring and representation-based scoring.

Details of the numerical procedure are given at different levels of precision. The paper provides the normalization formulas for tool scores and the resulting cutoffs. It gives the key training architecture and states that settings are held fixed, while leaving the results tied to the described corpus and components. For interpretation, the exposed counts and thresholds establish what was compared. They are insufficient on their own to reconstruct exactly which individual sentence pairs survived each filter, how much overlap the subsets had or how their vocabulary and domain composition differed.

The in-domain test set follows the candidate corpus distribution, and the out-of-domain test is news. That pair of evaluations shows a meaningful change in result when the evaluation material changes. It leaves ample room for other domains to have other orderings. An in-domain aggregate from a corpus covering multiple domains also does not tell a reader whether the filter improved every type of material within that corpus. A good overall score can arise from different patterns of performance across the kinds of sentences included.

The observation that the fewer-pair Marian setting wins on one test therefore has a precise scope. Under that training configuration and evaluation, its selected subset produces a better score than both the full draw and a same-size random subset. The experiment leaves open whether such an advantage would persist at another cutoff, with a different draw, across repeated training runs or for another domain. Similarly, the advantage of the full corpus on Japanese news leaves open which part of its added material contributes. Taken together, the results locate situations in which selection helps and situations in which keeping all the data performs better, without attributing those outcomes to removal of any particular error type.

What came after

No later citing work is documented for this comparison. The paper ends with proposed tests of fixed-size selection, repeated training, broader human review and full-corpus training followed by fine-tuning on cleaner data. Those proposals frame the question its results leave open. A filter changes both the examples available to the translation system and the amount of text from which it learns. The reported experiments show the joint effect in a working selection procedure, with the equal-size random comparisons showing how the choice of examples can matter differently across test domains.

Cite

Cite as Fred Bane and Anna Zaretskaya. 2021. Selecting the best data filtering method for NMT training. Proceedings of Machine Translation Summit XVIII: Users and Providers Track.

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

@inproceedings{bane2021selecting,
  title = {{Selecting the best data filtering method for NMT training}},
  author = {Fred Bane and Anna Zaretskaya},
  booktitle = {Proceedings of Machine Translation Summit XVIII: Users and Providers Track},
  year = {2021},
  url = {https://aclanthology.org/2021.mtsummit-up.9/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bane-2021-selecting-best-data-filtering-method/