Elamur Research

Separating Grains from the Chaff: Using Data Filtering to Improve Multilingual Translation for Low-Resourced African Languages

Paper · 2022 · Idris Abdulmumin, Michael Beukman, Jesujoba O. Alabi et al.

Summary

A collection of translations gathered from the web can be large enough to train a system and still contain many examples that teach it the wrong thing. Both sentences in a pair may be readable, yet one may describe an entirely different event. Other pairs contain text in the wrong language or strings of repeated characters. Abdulmumin and colleagues encountered these problems in the data for a WMT 2022 shared task. Their submission asks which parts of that material are worth keeping for machine translation involving low-resource languages.

The authors train a classifier to judge whether the two sentences in a proposed pair belong together. They show it genuine translations from the curated MAFAND-MT collection and examples that an existing alignment procedure scored particularly poorly in wmt22_african. The trained classifier scores the automatically aligned material, and the authors set a cutoff for keeping a pair. They then adapt the same multilingual translation system on several collections. Some contain curated translations alone, some draw on the automatic sources, and some combine the two. The evaluation covers translation both ways for each pair. French is paired with Wolof, and English is paired separately with Hausa, Igbo, Luganda, Swahili, Tswana, Yoruba, and Zulu.

The strongest results on average come from supplementing the curated translations with pairs that pass the ALBERT-xlarge filter at 0.7. The resulting system earns 16.13 average BLEU on FLORES-101 devtest and 17.93 on MAFAND-MT test. Keeping the curated data and using the much larger, minimally cleaned automatic collection gives 14.11 and 14.97, respectively. When the two sources are used separately, the filtered automatic collection leads the curated collection in average BLEU on FLORES-101 devtest, and the curated collection leads on MAFAND-MT test. The combined, filtered setting has the highest averages on both benchmarks, with exceptions when the results are read direction by direction.

Choosing a filter by its own test score would have pointed to a different classifier. ALBERT-xlarge has the lowest average F1, a measure that balances finding the labeled positives against making false positive decisions, on the authors’ classification test. Its selection nevertheless supplies the additional training pairs for their strongest reported translation system. The paper thus demonstrates the value of evaluating a filter through the translation system it helps train. Which other classifier would produce the most useful corpus remains an open comparison.

Deep dive: Separating Grains from the Chaff: Using Data Filtering to Improve Multilingual Translation for Low-Resourced African Languages

Abdulmumin and colleagues test whether filtering web-mined sentence pairs improves machine translation for low-resource African languages. · about 33 minutes to read

The problem and its context

When a pair of sentences gives the wrong instruction

A translation corpus usually presents sentences in pairs. In a good pair, the target sentence gives the translator an example of how to express the source sentence in another language. During training, that target is treated as the desired output. If the target belongs to a different source, the training procedure still treats it as an answer. A corpus can therefore look substantial when counted in rows while offering less usable evidence than its size suggests.

The paper illustrates this problem with material filed under English to Hausa. An English sentence about booking a house for a wedding is paired with text that the authors identify as being in a language other than Hausa. In another case, an instruction about hunting and a wish for the listener’s good fortune are paired with a sentence the authors identify as conveying something else. An entry about a creed has a mismatch involving a name. The source of another entry names Israel, while the target consists of repeated foreign characters. The examples span several points of failure, from the identity of the language to the meaning of the sentence.

The surface appearance of a line can settle some of these cases. A long stretch of repeated characters offers a visible reason to inspect it. A line consisting entirely of punctuation or numbers can be found with a simple rule. A sentence with ordinary spelling and plausible grammar presents a different problem. To find out whether it is a good translation example, a filter has to judge its relationship to the other sentence. Even correct identification of the languages leaves that relationship unresolved.

For the languages in the study, there is a large practical cost to rejecting all automatically assembled material. The paper places 99.2% of the supplied translation training data in its automatically aligned category. That is a figure about how the data were assembled. The examples of failure establish that real defects occur, while the category also contains the translations that made mining worthwhile in the first place. The practical challenge is to keep access to those translations while limiting the influence of faulty pairs.

The curated collection has its own characteristics. Its material is mostly news and religious text, with some examples from areas such as health, education, and technology. The quality of a translation and the relevance of its subject matter are distinct properties. A careful translation about one subject may give a system little practice with language characteristic of another. A mined source can potentially extend coverage, provided the paired sentences offer something the translator can learn. This is why the paper compares the sources separately as well as in combination.

How earlier work obtained more translation examples

The paper situates the work among efforts to make translation possible when high-quality parallel text is scarce. One approach starts from a system that has already learned from a larger body of text, then adapts it using the translation examples available for the task. This additional training is called fine-tuning. It makes a small curated collection useful as a way to direct an existing system toward a particular set of languages. The paper notes that many pretrained systems draw primarily on better-resourced languages. It also describes work that pretrains specifically on lower-resource languages or further adapts an existing multilingual system to them.

The field also had ways to enlarge the training collection itself. In back-translation, text available on one side of a translation task is translated automatically to supply the missing side. Each generated sentence can then be paired with the sentence it came from. The authors identify this strategy in earlier work by Sennrich and colleagues and describe self-learning as another way to bring material available in a single language into translation training. The generated sentence is part of the evidence the next system receives, so the quality of generation affects the usefulness of the pair. Improving Neural Machine Translation Models with Monolingual Data

Mining parallel text from the web starts with a different kind of opportunity. Both sentences may already exist, and the job is to discover which ones correspond. The authors refer to approaches based on heuristics and approaches that represent sentences numerically so that candidates can be compared across languages. They mention CCAligned and ParaCrawl among the resources that resulted from web collection. Their examples also include a corpus derived from Wikipedia and a corpus mined from web material at large scale. WikiMatrix · CCMatrix

In either route, the process that supplies additional examples can introduce mistakes. A generated translation can lose information that is present in the original. Two sentences taken from existing documents may each be well formed and still have been associated incorrectly. The authors cite a multilingual web-corpus audit that found several classes of error and judged less than half of the material it examined to be of good quality. The paper invokes that audit to motivate scrutiny of the supplied resources, particularly for lower-resource pairs. Its own inspection identifies concrete failures in the shared-task data. Quality at a Glance

What a filter could already look for

The idea of selecting parallel training data predates this submission. The paper refers to earlier WMT tasks on corpus filtering and to research in which smaller, better collections supported stronger translation than larger, noisier collections. An existing corpus could be made more useful by identifying examples that deserved to stay. Much of the technical question was how to make that decision at a scale where reviewing every candidate was impractical.

One approach described in the paper represents each sentence as a vector and compares the two vectors with cosine similarity. A vector is a list of numerical features, and cosine similarity compares their directions. For this purpose, representations of sentences in different languages have to be useful in a common space. The approach supplies a numerical estimate of how closely related the sentences are. The paper also describes a filtering procedure based on a cutoff applied to LASER alignment scores. LASER provides sentence representations intended for comparisons across languages. Massively Multilingual Sentence Embeddings for Zero-Shot Cross-Lingual Transfer and Beyond

Other approaches use the output of an existing translator as evidence. One of the studies discussed in the paper first creates back-translations and then uses sentence-level BLEU to retain candidates with sufficient overlap. Another procedure translates material away from its original language and back again, then compares the resulting text with the starting sentence. Such a comparison offers evidence about how much of the original survived the process. Its outcome also depends on the systems that carry out the intermediate translations and the measure used to compare the texts.

Abdulmumin and colleagues give the existing alignment score a role in preparing training examples. An unusually low score supplies a reason to put a pair in the negative class. Genuine pairs from a curated collection supply the other class. The authors can then fit a classifier to read the actual sentence pair and use its output to make the final acceptance decision. This design takes advantage of an existing signal where it is easy to use, at the bottom of a ranking, and tests whether a decision rule learned from that signal and curated examples can prepare useful translation data.

The constrained shared task gives the study a specific frame. The authors work with the data supplied for the track and choose a subset of the task’s languages because of resource constraints. They are deciding how to prepare a collection they have already received. Mining a new corpus and generating new translations are routes discussed in the background. The experiment itself concerns selection among existing pairs and the effects of that selection on adaptation.

The method, step by step

Prepare the two streams of training material

The authors begin by inspecting the supplied data and separating the sources according to how they were prepared. Their label True Parallel denotes the manually curated material. MAFAND-MT is in this group, as are Tanzil, bible-uedin, and QED. The appendix gives additional sources by language pair. The distinction is useful because MAFAND-MT has a special role in teaching the filter, while the larger group of curated resources is available as direct supervision for the translator.

The automatic side includes datasets assembled through alignment, including material processed using LASER. It encompasses wmt22_african, WebCrawl African, CCAligned, and CCMatrix, among other sources. A source’s placement in this group determines how it is handled in the experiments. Its individual pairs still vary in quality, which is the reason to score them. The group supplies both the material from which the authors construct negative classification examples and the much broader collection on which they use the trained filter.

The first cleanup is a heuristic, a rule based on an observable property of the text. The authors remove lines consisting exclusively of numbers, punctuation, or a mixture of the two. Deciding that a candidate matches this pattern requires no estimate of whether the two sides express the same meaning. The rule can therefore do a narrow job directly, before the authors use a learned procedure for the more general question of alignment. The broad automatic corpus used as a translation baseline has already received this basic cleanup.

Preparing a selected corpus for multilingual translation

The steps in order.

Preparing a selected corpus for multilingual translationStep 1: Group the supplied corpora by provenance1. Group the supplied corpora by provenanceStep 2: Drop digit-and-punctuation-only lines2. Drop digit-and-punctuation-only linesStep 3: Label curated MAFAND-MT pairs positive3. Label curated MAFAND-MT pairs positiveStep 4: Label low-scoring wmt22_african pairs negative4. Label low-scoring wmt22_african pairs negativeStep 5: Fit a filter for each language pair5. Fit a filter for each language pairStep 6: Apply a score cutoff to automatic pairs6. Apply a score cutoff to automatic pairsStep 7: Join the accepted and curated bitext7. Join the accepted and curated bitextStep 8: Fine-tune M2M-100 on the combined corpus8. Fine-tune M2M-100 on the combined corpus

Give the classifier examples it can learn from

The filter is trained through binary text classification. The input is a candidate pairing, and the desired answer belongs to one of two classes. A positive is a pair the authors treat as a genuine translation. A negative is a pair they treat as an unsuitable alignment. The source and target texts are both in view when the decision is made. This is the operation the authors need for filtering because the quality of a candidate depends on the connection between the two texts.

For positives, the authors use the training, development, and test portions of MAFAND-MT. The curated set supplies pairs for which there is a direct reason to trust the correspondence. It also supplies the split structure. Positive examples from the training portion teach the classifier, those from the development portion are available during optimization, and those from the test portion are used to measure its performance. The use of this particular corpus for positive labels is more specific than the use of curated material in the translation experiments.

For negatives, the authors order candidates from wmt22_african by their LASER alignment scores. They draw from the least convincing end of that ranking. The numbers drawn match the positive counts in the corresponding parts of the classification dataset. Thus the classifier learns from equally represented classes even though the balance of valid and invalid pairs in the automatic collection is an empirical question. Given this construction, a negative label records a decision made using the alignment signal. Some finer distinction between obviously broken, loosely related, and actually parallel low-scoring pairs would require further examination.

The authors fit the classifiers separately for the different language pairs. For instance, the training split for Tswana paired with English contains 4, 202 classification examples, and its development split contains 2, 686. The Igbo–English classification splits contain 13, 998 training examples and 3, 002 development examples. Swahili paired with English has 61, 566 training examples and 3, 672 test examples. Each number counts sentence pairs from both classes in the named split. The amount of supervised practice available to the filter therefore varies considerably by language pair, independently of the eventual size of the collection it will score.

The labels also define what it means to do well on the classification test. A good test result requires recognizing held-out examples of curated MAFAND-MT translations and avoiding positive decisions on the designated low-score negatives. This gives the experiment a repeatable comparison across classifiers. The subsequent application is broader. The classifier must score automatic examples spanning the rest of the alignment ranking and drawn from sources beyond the corpus that supplied the negative examples.

Convert a pair of sentences into a score

The authors compare three classifier variants. The first two use ALBERT-base and ALBERT-xlarge. The paper gives prior performance on language tasks and economical use of parameters among BERT-derived systems as reasons for choosing the ALBERT family. The third variant uses AfroXLMR-base. The authors chose it because its preparation included African languages and because this kind of prior adaptation had shown value for tasks involving those languages. These are reasons for testing the starting points. Their usefulness for choosing translation data is a separate empirical question.

The classifier reads both sentences using a Transformer. The authors take the resulting hidden representation at the special [CLS] token as the input to a linear layer. That representation is a vector computed while processing the pair. The layer learns to combine the vector’s entries into a single real-valued output. In conventional notation, the operation described in the paper is

z = w · h + b

Here z is the output score before conversion to a probability scale. The vector h is the representation at [CLS], and w gives the learned weight for each of its entries. The dot · denotes the sum of the products of matching entries. The term b is the learned bias, added to that sum, and = gives the value assigned to the score.

The paper describes using a sigmoid at inference. Its effect is to map the score to the interval between 0.0 and 1.0 while preserving the ordering of scores. The conventional expression for the transformation is

p = 1 / (1 + exp(−z))

Here p is the positive-class score on the probability scale, and z is the previous layer’s output. The function exp is the natural exponential, and −z is the negated score. The constant 1 in the numerator and the sum in the denominator scale the result into the stated interval. The slash denotes division, and the parentheses group the denominator and the argument of the exponential. A larger z produces a larger p. The authors interpret the resulting score as indicating how likely the pair is to consist of translations.

During training, the authors optimize binary cross-entropy. Expressed in terms of the probability corresponding to the classifier’s score, the loss for a pair is

ℓ = −[y ln(p) + (1 − y) ln(1 − p)]

The symbol ℓ denotes the loss, y is the assigned label, and p is the positive-class probability. The label is represented by the unit value for positives and zero for negatives. The symbol 1 is the unit value, 1 − y is the complementary label weight, and 1 − p is the probability assigned to the negative class. The function ln takes the natural logarithm. Juxtaposed terms are multiplied, the plus sign adds the class contributions, and the minus sign outside the brackets makes the resulting penalty non-negative. For a positive example the loss grows as the classifier gives less probability to the positive class. For a negative example it grows as the classifier gives less probability to the negative class.

This training procedure adapts the classifier’s treatment of the sentence pair to the labeled examples for that language pair. The development split guides optimization, and the test split gives the reported classification result. The authors use the resulting pair scores to handle candidates at a scale far beyond their supervised classification sets. The cutoff can be changed at that stage without changing the sentence representation or refitting the classification layer.

Apply the cutoff and form the translation corpora

At inference, the authors score the automatically aligned pairs and report what is kept at cutoffs of 0.5 and 0.7. For a given classifier, moving the cutoff up requires stronger positive evidence according to the same scoring rule. Pairs that pass the higher cutoff are eligible at the lower one as well. A more demanding cutoff limits how much automatic material enters the translation corpus. Whether that leads to a better translator depends on what was removed and what evidence the remaining pairs still provide.

The authors record the number of pairs each filter keeps. They also look at overlap because a count alone says little about which examples survive. Two classifiers can return collections of similar size yet disagree on many of the pairs. They can also vary substantially in the sizes of their selections while still sharing a substantial collection. These measurements describe different aspects of how the scoring rule changes the corpus. The findings from them matter even for classifiers whose selections were counted without being carried through the reported translation comparisons.

For translation, the selected pairs can be used by themselves or appended to the curated material. In the combined setup, the filter is deciding which mined pairs to admit as a supplement. The curated translations remain available in their own right, including the curated resources beyond the MAFAND-MT examples used to teach the classifier. The paper’s primary system uses this combined setup with the higher ALBERT-xlarge cutoff.

It helps to distinguish the tasks performed at the two stages. The filter has both a source sentence and a possible target in front of it, and it outputs a score. The translator receives a source and must generate the target. Improvements in the pair judgment matter to the second task through the collection of examples they make available. A classifier can help a translator by excluding bad training signals, by preserving useful examples, or through the combination of those outcomes.

Adapt a common multilingual translator

The translation experiments start from M2M-100 with 418M parameters. It was already trained for multilingual translation and had encountered each of the selected languages during pretraining. The authors adapt it for the chosen pairs using each of the competing training preparations. This common starting point is central to the comparisons. The question is how the prepared corpus changes translation from a system that already has some experience of the languages. The implementation uses fairseq.

The text is converted to the units the translation system processes using the tokenizer that comes with M2M-100. In subword tokenization, the representation can use pieces smaller than whole words. The same tokenizer is applied across the competing data preparations. The implementation used here is SentencePiece.

The authors specify a translation batch size of 2, 048 tokens, a training sentence-length limit of 1, 024, and dropout of 0.3. A token is a unit of the representation, so a token budget for a batch describes the quantity of text units processed together. Dropout reduces dependence on particular internal signals by suppressing some of them during training. The sentence limit belongs to the translation setup. The paper separately identifies 128 as the current sentence length used for the classifier when discussing a possible extension.

The translation optimizer is Adam. The paper gives these settings for the decay of its gradient statistics.

β₁ = 0.9

Here β₁ is Adam’s decay setting for the first-moment estimate, which tracks gradients. The subscript identifies the first moment, and the number on the right of = is the setting used to carry information forward in that estimate.

β₂ = 0.998

Here β₂ is the decay setting for the second-moment estimate, which tracks squared gradients. The subscript identifies the second moment, and 0.998 is the setting used in the translation experiments.

The specified learning rate is 5e − 5, with 2, 500 warmup updates. Warmup is the opening period over which the optimizer brings the rate up to its intended level. The authors use cross-entropy for the output prediction task, with a label-smoothing value of 0.2. Smoothing spreads some of the target probability across alternative predictions during training. Runs are capped at 1, 000, 000 updates.

To guide translation training, the authors combine the development material of FLORES-101 and MAFAND-MT for the selected pairs. A checkpoint is a saved state of the translator during training. The development evaluation lets them choose among such states using BLEU as implemented by SacreBLEU. The test scores are then reported separately for the benchmarks. The paper also makes the implementation for the shared-task submission available under the repository name WMT22-MasaKhane.

Experiments and results

What changes from one comparison to the next

The experiments cover translation in both directions for 8 language pairs. The pair-level counts in the paper give a sense of how different the training situations are within this one multilingual setup. Before filtering, the appendix lists 2, 131 curated and 6, 086, 509 automatically aligned pairs for English with Tswana. For English with Igbo it lists 11, 204 curated and 511, 588 automatically aligned pairs. Tswana has the smaller curated inventory in that comparison and the larger automatic inventory. As a result, there can be very different amounts of material available to the classifier and very different amounts of curated material to fall back on.

The elementary cleanup leaves most of the data in place. For English with Zulu, the authors report that 2.4% of the original material consisted exclusively of digits or punctuation. The post-heuristic inventory for that pair is 4,142,146 and the retained share is 97.6%. English with Igbo has 520,544 pairs in the post-heuristic inventory, listed as 99.6% of the original. These counts put the heuristic’s role in perspective. It addresses a well-defined defect while leaving the overwhelming share of the material available to be judged through other means.

The authors establish three translation baselines. Clean-only training uses the curated group. Noisy-only training uses the automatically aligned group after the simple cleanup. The combined baseline puts those two collections together. The experiments then introduce a selected automatic collection. The translation tables give a filtered-only setting using ALBERT-xlarge at 0.7 and two settings that add an ALBERT-xlarge selection to the curated data, at 0.5 and 0.7. Each comparison has a counterpart that clarifies it. Noisy only is the most direct baseline for filtered only. Clean plus noisy is the corresponding baseline for the combined, filtered setting. Clean only provides a reference for whether an automatic supplement helps at all.

Both local benchmarks are held apart in the translation tables. The split from the Wikipedia-derived benchmark is devtest, while the other is the test split of MAFAND-MT. They supply different sets of inputs and corresponding reference translations. The WMT organizers’ results represent another test, with comparisons limited to the submitted configurations. FLORES-101

How the scores should be read

For classifier evaluation, the paper reports F1 at 0.5. Precision in this context is the share of predicted positive examples carrying a positive test label. Recall is the share of the labeled positives the classifier identifies. F1 combines them so that strong performance requires doing well on both. These calculations use the held-out classification examples assembled from curated translations and low-LASER pairs. The count of accepted candidates in the automatic corpus serves a different purpose. It describes the size of the output of filtering, whether or not its individual decisions have been checked.

The translation metrics compare a generated text with a reference translation. BLEU measures overlap in sequences of tokens and includes a penalty for outputs that are too short. The character-level metric measures overlap in sequences of characters, balancing the coverage of reference material and the match of the generated material. Since the units of comparison differ, the two measures can rank training settings differently. The paper uses BLEU for choosing checkpoints and reports both BLEU and chrF on its local tests.

Scores are reported by direction and as averages across the evaluated tasks. A single pair contributes a direction into the African language and a direction out of it. The averages help assess the overall multilingual submission. Scores by direction can answer a narrower question, such as whether an English-to-Luganda system benefits from adding selected data. This distinction is consequential here because the configuration that leads the means can give way to another configuration in an individual column.

How much material the filters admit

AfroXLMR-base obtains 95.1 average test F1 at 0.5. At the same cutoff, ALBERT-base obtains 92.9, and ALBERT-xlarge obtains 88.2. The spread includes markedly different results on particular pairs. For Swahili with English, the test F1 scores are 94.6 for AfroXLMR-base, 89.6 for ALBERT-base, and 63.7 for ALBERT-xlarge. On Luganda with English, the corresponding scores are 95.4, 94.7, and 96.3. The highest average thus comes from a classifier that leads in many, with exceptions among the individual language pairs.

When the classifiers are applied to the automatic material, their numerical cutoffs can have substantially different effects. At 0.7 for English with Swahili, ALBERT-xlarge keeps 1, 638, 528 pairs and AfroXLMR-base keeps 5, 064, 365. Their selections at 0.5 for that pair number 3, 263, 429 and 6, 139, 327, respectively. The operating point matters within each filter, and the identity of the filter matters even with the operating point held fixed.

Although the authors characterize ALBERT-xlarge as the strictest overall, the English–Swahili example goes in a different direction from some other cases. At 0.7 for French with Wolof, ALBERT-xlarge retains 41, 283 pairs, AfroXLMR-base retains 5, 189, and ALBERT-base retains 4, 365. The same ALBERT variant can therefore be comparatively selective for one pair and admit considerably more than its counterparts for another. A general description of how much a filter keeps needs the pair-level counts to show where it applies.

Agreement is limited as well. The authors report 668,633 automatic pairs selected by all three classifiers at 0.5 and 331,208 selected by all three at 0.7. These are common selections, so the counts give the size of the material that would survive if all classifiers had to accept it. The paper uses the figures as an analysis of overlap. The translation experiments establish how a particular classifier’s selection works in training, leaving the usefulness of a consensus corpus for a separate test.

FLORES-101 devtest

On FLORES-101 devtest, the automatic sources already make a substantial contribution before the classifier is used. The noisy-only configuration averages 13.95 BLEU, and clean-only training averages 11.37. Adding the curated material to the broad automatic collection produces 14.11. The benchmark therefore gives a case in which the automatic collection, even with just the preliminary cleanup, serves the translator better on average BLEU than the curated group by itself.

Selection improves on those configurations. The ALBERT-xlarge collection at 0.7 yields 15.45 average BLEU when used on its own. With the curated corpus added, the same selection yields 16.13. The mixture based on the 0.5 cutoff achieves 16.03. The leading settings thus use both sources, and the better of the two averages comes with the cutoff that admits fewer mined examples.

Mean BLEU on FLORES-101 devtest by training corpus

Combining curated translations with the stricter automatic selection gives the highest mean.

Mean BLEU on FLORES-101 devtest by training corpusCurated corpus: 11.37Curated corpus11.37Automatic corpus after basic cleanup: 13.95Automatic corpus after basic cleanup13.95Curated and broad automatic corpora: 14.11Curated and broad automatic corpora14.11ALBERT-xlarge selection at 0.7: 15.45ALBERT-xlarge selection at 0.715.45Curated plus ALBERT-xlarge at 0.5: 16.03Curated plus ALBERT-xlarge at 0.516.03Curated plus ALBERT-xlarge at 0.7 (this paper): 16.13Curated plus ALBERT-xlarge at 0.7 (thispaper)16.13
The numbers
System or settingBLEU
Curated corpus11.37
Automatic corpus after basic cleanup13.95
Curated and broad automatic corpora14.11
ALBERT-xlarge selection at 0.715.45
Curated plus ALBERT-xlarge at 0.516.03
Curated plus ALBERT-xlarge at 0.7 (this paper)16.13

The chrF averages show the importance of specifying the metric when comparing the component collections. On FLORES-101 devtest, the curated corpus alone scores 41.83 chrF, ahead of the noisier collection alone at 35.89. The broad combination gives 36.79 and the filtered-only configuration gives 40.41. The mixture at 0.5 records 42.42 and the mixture at 0.7 records 43.18. The primary configuration leads on both metrics. For the question of which collection is better by itself, the chrF ranking gives more weight to the performance of the curated corpus than the BLEU ranking does.

The individual directions include cases where the broader automatic collection is especially helpful and cases where consolidation is harder. For English to Hausa on FLORES-101 devtest, the curated corpus gives 9.30 BLEU, the broad mixture gives 15.34, and the mixture with the higher filter cutoff gives 16.55. Here the automatic sources are already valuable and selection preserves enough of that value to improve the result further. For English to Luganda, the clean-only result is 4.00 BLEU. Adding broad automatic material gives 2.40, and adding the selected material at 0.7 gives 3.45. The filtered supplement works better than the broad supplement, with the curated baseline still first among those choices.

Another kind of variation is visible for Swahili to English. The 0.5 mixture gives 34.99 BLEU on FLORES-101 devtest, ahead of the 0.7 mixture at 34.40. This direction favors keeping the additional candidates admitted at the lower cutoff. Swahili is also a pair for which the count of selected training examples changes substantially when the threshold changes. The performance result describes the effect of that corpus change on Swahili to English, while leaving open which part of the added material matters.

MAFAND-MT test

On MAFAND-MT test, the stronger of the two single-source BLEU baselines is the curated corpus. It gives 16.79 on average, compared with 13.15 for the automatic corpus after preliminary cleanup. The broad combination gives 14.97. Adding curated examples to the automatic baseline is beneficial by this metric, yet the average works out less favorably if the point of comparison is the curated corpus. This is the benchmark on which the question of what kind of automatic supplement to use is most visible in the baseline scores.

The automatic subset selected at 0.7 has a mean of 16.08 BLEU on this test when used alone. It approaches the curated baseline and improves on the broad automatic baseline. The mixture based on the 0.5 cutoff scores 17.42, and its counterpart at 0.7 reaches 17.93. On this test, keeping the curated corpus and screening the supplement yields a result that exceeds what either component provides in isolation.

Mean BLEU on MAFAND-MT test by training corpus

The screened supplement improves the curated baseline while the broad supplement lowers its score.

Mean BLEU on MAFAND-MT test by training corpusCurated corpus: 16.79Curated corpus16.79Automatic corpus after basic cleanup: 13.15Automatic corpus after basic cleanup13.15Curated and broad automatic corpora: 14.97Curated and broad automatic corpora14.97ALBERT-xlarge selection at 0.7: 16.08ALBERT-xlarge selection at 0.716.08Curated plus ALBERT-xlarge at 0.5: 17.42Curated plus ALBERT-xlarge at 0.517.42Curated plus ALBERT-xlarge at 0.7 (this paper): 17.93Curated plus ALBERT-xlarge at 0.7 (thispaper)17.93
The numbers
System or settingBLEU
Curated corpus16.79
Automatic corpus after basic cleanup13.15
Curated and broad automatic corpora14.97
ALBERT-xlarge selection at 0.716.08
Curated plus ALBERT-xlarge at 0.517.42
Curated plus ALBERT-xlarge at 0.7 (this paper)17.93

The MAFAND-MT test ranking for chrF begins differently. The clean-only result is 36.00 on average, the noisy-only result is 36.69, and their broad combination gives 37.09. Filtering the automatic corpus and using it alone yields 39.55. The mixtures at the lower and higher cutoffs reach 40.59 and 40.98. Consequently the broader supplement has an adverse average result relative to curated data alone in BLEU, while the corresponding chrF comparison favors the supplement. The selected mixture leads whichever measure is used.

At direction level, English to Igbo gives a clear instance of the tradeoff. The curated corpus scores 20.83 BLEU on MAFAND-MT test, the broad mix scores 11.69, and the mix using the higher cutoff reaches 19.08. Restricting the supplement recovers much of the performance relative to the broad mix, with the curated corpus still yielding the best score in that direction. English to Tswana illustrates a different outcome. Its curated result is 18.64 BLEU, the broad combination scores 17.25, and the stricter selected combination reaches 24.25. In this case the selection changes which choice of training data leads the comparison.

The authors suggest that the provenance of the training examples helps explain the baseline reversal between the two benchmarks. The curated corpus includes MAFAND-MT, and the automatic sources include Wikipedia material of the kind associated with FLORES-101. Each baseline thus has a plausible advantage on the sort of text it is better placed to cover. A particularly informative part of the result is that the best combined setting leads on both benchmarks even though they favor different single sources under BLEU.

Results from the organizers

For the official test sets, the organizers report results for the authors’ primary and secondary submissions. The secondary system uses only the curated corpus. The primary adds the material admitted by ALBERT-xlarge at 0.7. Across the full set of tested directions, average BLEU is 11.9 for the secondary and 16.6 for the primary. The official character-based metric, chrF2++, averages 35.0 and 39.4, respectively.

Average chrF2++ for the submitted systems on the WMT 2022 test sets

The submission trained with curated and selected automatic pairs has the higher overall score.

Average chrF2++ for the submitted systems on the WMT 2022 test setsSecondary submission using curated bitext: 35.0Secondary submission using curatedbitext35.0Primary submission using curated and selected bitext (this paper): 39.4Primary submission using curated andselected bitext (this paper)39.4
The numbers
System or settingchrF2++
Secondary submission using curated bitext35.0
Primary submission using curated and selected bitext (this paper)39.4

The authors also report averages according to which side supplies the source sentence. The secondary and primary systems score 9.5 and 12.8 average BLEU, respectively, for translation into the African languages on the official test sets. For translation out of those languages, the corresponding results are 14.3 and 20.4. By the authors’ reading, the filtered supplement gives a larger benefit on average when the African language is the source.

There are official-test exceptions to the direction averages, too. For French to Wolof, BLEU is 4.4 for the curated submission and 1.5 for the primary. For English to Yoruba, the corresponding values are 4.2 and 3.2. In the reverse direction from Yoruba to English they are 8.8 and 14.2. This is one example where the same change in the system’s training data has opposite consequences across the two directions in the same language pair. The organizers’ test extends the evidence for the overall benefit of the primary system beyond the local evaluations, while the local tables provide the comparison with the other corpus settings.

What the ablations show

Restrict the automatic stream, with and without curated data

The comparison of noisy-only and filtered-only training changes how the automatic corpus is prepared while leaving curated translations out of both configurations. Average BLEU improves on each local benchmark once the ALBERT-xlarge filter at 0.7 is used. The cleaner result is obtained after the preliminary heuristic has already been applied to the baseline. This supports a practical conclusion about the value of going beyond the surface cleanup. A rule that catches lines without ordinary words leaves plenty of opportunity for a filter that examines relationships between sentences.

The combined configurations ask what happens when the translation system already has the curated corpus. The paper can compare adding a wide assortment of automatic pairs against admitting only pairs selected by the classifier. The loss in MAFAND-MT average BLEU from adding the broad collection and the gain from adding the selected collection give the clearest version of this comparison. The source of the added examples is common to both conditions. The acceptance procedure determines how much of it enters the mixture and which pairs get included.

Taken together, the comparisons show that the benefit is measurable both in the automatic corpus on its own and in its use as a supplement. The tests change the size and membership of the corpus together. They therefore estimate the benefit of adopting the specific curated or filtered collections as prepared by the authors. The separate contributions of a lower noise rate, a different mix of topics, or a different amount of text remain unresolved.

Restore the curated corpus

The study also compares the stricter filtered-only configuration with the combination of that selection and the curated data. This comparison keeps the selected automatic contribution fixed and adds the curated contribution. The mixture improves the average on both local tests, in BLEU as well as chrF. The selected automatic pairs provide enough training signal to outperform the broad automatic baseline, and the curated resource still contributes useful evidence when it is returned to the corpus.

This comparison involves a different use of MAFAND-MT from its use in constructing the filter. Curated examples have already been used to fit the classifier in both conditions. The change here gives the translator access to the curated training material directly. The results therefore concern the added benefit of direct translation examples once the filtering decision has been made. They leave the filter’s own dependence on the availability and amount of curated positive examples unmeasured.

The shift between FLORES-101 and MAFAND-MT also changes how this ablation should be interpreted. The selected corpus alone leads the curated corpus alone by BLEU on FLORES-101 devtest. The reverse ordering holds on MAFAND-MT test. The authors’ explanation in terms of training and test domains makes sense of why neither component has a uniform advantage. The consistent advantage of adding curated data to the selection is the experimental observation. The explanation of which kinds of text in the combination supply that advantage is still an interpretation.

Demand a higher classifier score

At 0.5 and 0.7, the mixed systems share the same classifier family, the same curated data, and the same translation starting point. The cutoff controls which additional automatic candidates appear in the 0.5 corpus. Average BLEU and chrF are higher at 0.7 on both local tests. This is direct evidence for the higher cutoff among the two tested versions of the mixture.

The choice also affects the amount of data that survives, with effects that vary across pairs. For English with Zulu, ALBERT-xlarge admits 613, 483 pairs at 0.5 and 302, 951 at 0.7. For French with Wolof the corresponding corpus counts are 49, 926 and 41, 283. The step in the score requirement thus changes each component of the multilingual corpus according to its own score distribution. A common cutoff does not impose a common amount of filtering on the data.

The translation scores suggest why a result for the common mixture leaves scope for different choices by direction. The higher cutoff leads for English to Zulu on FLORES-101 devtest, with 15.50 BLEU versus 14.97 for the lower cutoff. English to Swahili on MAFAND-MT test gives 27.80 at the higher cutoff and 27.89 at the lower one. These comparisons support a decision for the multilingual average under the reported setup. Establishing a separate best operating point for each direction would require more tests, including settings beyond those used in the paper.

Compare the classifiers on the jobs they actually perform

ALBERT-xlarge has the lowest mean F1 in the paper’s classifier evaluation, and its selected corpus yields the strongest reported translation results. This is an apparent mismatch between two measurements with different inputs. The F1 comparison concerns the class decisions on the constructed test set at 0.5. The strongest translation configuration uses its scores to select broad automatic material at 0.7, then combines that material with curated training examples. One experiment favors a classifier’s ability to distinguish the labeled groups. The other favors a completed corpus by the quality of the translations it supports.

The paper gives clues about how a discrepancy can arise. The classifiers keep noticeably different amounts of automatic data and agree on a limited group of pairs. The authors suggest that they may use different features, especially ALBERT-xlarge and AfroXLMR-base. Score scales may also differ across classifiers or language pairs. The overlap and retention figures establish differences in acceptance decisions. Further inspection would be needed to identify the features involved or to establish which of the disagreements favors a genuine translation.

Crucially, the classifiers’ full ranking by translation usefulness is open. The authors give an F1 result and retention counts for each classifier. The main translation comparisons carry through the ALBERT-xlarge selections. This is enough to establish that a classifier with a comparatively low diagnostic score can still prepare a successful training set. The performance of translation systems trained with the other selections remains a separate experiment.

Look at the language that receives the translation

In their analysis, the authors observe that BLEU is frequently lower when the African language is the output language. They highlight scarcity of parallel examples for Luganda, Wolof, and Yoruba as relevant context, and note that Igbo is an exception to the association they describe between the number of pairs and the pattern of scores. The official results show a related pattern in the average benefit of filtering, which is larger when translating from the African languages.

These observations are comparisons of results within the multilingual evaluation. A direction changes the source and the language of the output and reference, even for the same pairing of languages. The scores show which tasks the system finds difficult by the reported metric and which tasks benefit under a corpus change. Inferring a cause for the direction asymmetry would require evidence about the language-specific errors and training coverage. The comparison already makes clear why a pair-level description of the amount of data is insufficient to predict the two translation results.

Limitations

Limits identified by the authors

The authors attribute their language selection to resource constraints. Their experiment therefore covers a subset of the constrained task and a single pretrained translator whose prior training covered the languages they selected. They identify expansion to more languages as a way to evaluate generalizability. The dataset sizes, relationships between languages, and prior coverage all belong to the setting in which the current claims were tested.

The classifier is fitted separately for each pair. The authors propose a multilingual classifier that could learn from the classification examples of several languages together. The current classifiers start from pretrained representations, but their supervised adaptation is pair-specific. A jointly trained classifier would test whether common evidence about alignment learned from one pair can support decisions on another, including where the curated training examples are few.

The paper calls for a more detailed investigation of how the threshold affects BLEU. Its current translation results compare the reported operating points, with the most extensive cutoff comparison available for the mixture that includes clean data. The authors also want to inspect the selected examples in more depth. The aggregate evidence shows that the selected collection is useful. An examination of the pairs might establish which errors are most frequently avoided and what kinds of useful text are more likely to survive.

The authors identify several extensions they would pursue with more computation. These include training the classifiers for more epochs, exploring other pretrained starting points or quality cutoffs, and extending the classifier’s current sentence length of 128. They also identify the translation experiments with AfroXLMR and ALBERT-base selections as future work. That last limitation is especially relevant to the inference about F1. The documented result concerns the adequacy of ALBERT-xlarge for downstream training despite its average classification rank. Determining which classifier is best for translation needs the corresponding training runs.

Limits suggested by the experimental design

The strongest claim supported by the classifier test concerns the particular positive and negative groups used to build it. The positives come from curated MAFAND-MT, and the negatives come from the bottom of the wmt22_african LASER ranking. A classifier can potentially distinguish these groups using cues about source, topic, or presentation as well as the actual equivalence of the sentences. Some incidental cues may be useful for filtering. A cue that detects text in the wrong language, for example, would frequently lead to a sensible rejection. A cue that is specific to the formatting of curated news could behave differently on valid material from another source. The study leaves the relative contribution of such cues undetermined.

Likewise, the sigmoid puts the classifier scores on a probability scale while the constructed test supplies a balanced set of labels. The distribution of true translations in the automatic collection is unknown from that construction. To read an individual score as a calibrated probability for the corpus would require evidence that examples assigned similar scores actually have a matching frequency of valid translations in that corpus. The paper offers original error examples, classification F1, corpus counts, and downstream scores. Together these address whether the procedure is practical, with the frequency of correct acceptances and correct rejections across the full corpus still open.

The translation comparisons also leave room for several explanations of the effect of selection. Reducing the corpus changes how much training material is available. It also changes which topics, sources, and kinds of sentence are represented. The comparison that keeps the curated material fixed changes all of these properties within the automatic supplement. An equally sized sample chosen independently of the classifier would help measure how much is gained by selecting particular pairs. A comparison that held domain proportions fixed would help test the explanation based on the fit between training and evaluation material. The paper demonstrates the effect of the preparations it actually compares.

The two uses of MAFAND-MT deserve care in interpreting independence. Its named splits provide positive examples for evaluating the classifier as well as development and test material for translation. Within the classification procedure the authors distinguish which split supplies training examples and which supplies test examples. The two tasks then ask different things of their inputs, because one judges a pair and the other generates the second sentence. The account leaves the extent of any duplicates or near duplicates across the numerous training and evaluation sources unspecified. The results are best understood as comparisons in the shared-task setup, where related sources are part of the setting.

Finally, the translation tables give point scores. They establish the numerical order observed for those systems on those references. The stability of close results across repeated training runs is unclear because the paper gives no repeat-run variation or uncertainty estimates. BLEU and chrF also describe reference overlap at different levels, as the reversals among the baselines demonstrate. A corpus preparation can improve both aggregate scores while still producing weaker outcomes for some directions. Establishing which translation errors improved would require a description of the generated outputs beyond the aggregate metrics.

What came after

Subsequent use of the method remains undocumented. The paper itself points toward testing a classifier shared across languages, evaluating a broader range of cutoffs, and examining what kinds of pairs survive selection. It also leaves open a direct downstream comparison among the classifier variants. Training the same translator on their respective selections would show whether the choices favored by the classification test also supply the most useful automatic training material. As published, the work establishes that a supervised filter can turn a broad, noisy collection into an effective supplement for curated African-language translation data.

Cite

Cite as Idris Abdulmumin, Michael Beukman, Jesujoba O. Alabi, Chris Emezue, Everlyn Asiko, Tosin Adewumi, Shamsuddeen Hassan Muhammad, Mofetoluwa Adeyemi, Oreen Yousuf, Sahib Singh and Tajuddeen Rabiu Gwadabe. 2022. Separating Grains from the Chaff: Using Data Filtering to Improve Multilingual Translation for Low-Resourced African Languages. Proceedings of the Seventh Conference on Machine Translation (WMT).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2022.wmt-1.98

@inproceedings{abdulmumin2022separating,
  title = {{Separating Grains from the Chaff: Using Data Filtering to Improve Multilingual Translation for Low-Resourced African Languages}},
  author = {Idris Abdulmumin, Michael Beukman, Jesujoba O. Alabi, Chris Emezue, Everlyn Asiko, Tosin Adewumi, Shamsuddeen Hassan Muhammad, Mofetoluwa Adeyemi, Oreen Yousuf, Sahib Singh and Tajuddeen Rabiu Gwadabe},
  booktitle = {Proceedings of the Seventh Conference on Machine Translation (WMT)},
  year = {2022},
  doi = {10.18653/v1/2022.wmt-1.98},
  url = {https://doi.org/10.18653/v1/2022.wmt-1.98}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/abdulmumin-2022-separating-grains-chaff-data-filtering/