Elamur Research

A hybrid pipeline of rules and machine learning to filter web-crawled parallel corpora

Paper · 2018 · Eduard Barbu and Verginica Barbu Mititelu

Summary

A web crawl can supply a great deal of bilingual text, but a pair of sentences placed side by side is only a candidate translation. The sentences may be in the wrong languages, differ in what they say, or consist largely of material such as a web address. The authors study how to turn a noisy collection of English–German pairs into training data for machine translation. In the WMT Parallel Corpus Filtering task, teams had to select subsets of 10 million and 100 million words from a collection whose English side contained one billion words. The organizers judged the selections by training translation systems on them and evaluating their translations.

The pipeline first uses hard rules to set aside short pairs, pairs in the wrong languages, and pairs whose lengths differ too much according to a sentence-alignment score. It then uses logistic regression, a machine learning classifier that assigns a probability to the positive class, to rank the remaining pairs. That class comes from an automatic labeling procedure. The authors take a random sample of surviving pairs and label each according to whether its supplied Hunalign score exceeds 0.9. The classifier receives the alignment score itself alongside other evidence, including whether the two sentences contain similar entities and how fluent each side appears in its own language.

After classification, rules lower the scores of pairs with suspect digits, numbers, web addresses, or tags. The authors also use a similarity check on the English sentences to promote diversity in the 10 million word selection. These stages address different decisions. A hard rule determines whether a pair can proceed to classification, the classifier gives retained pairs a graded score, and later rules change which of those pairs receive priority within a word budget.

A manual review of the training pairs gives the automatic labels a balanced accuracy of 0.83. For pairs labeled positive by the heuristic, precision is 0.93. For pairs labeled negative, it is 0.63. This evaluation concerns the labels used to train the classifier. The shared task evaluates the completed selection pipeline through the performance of translation systems trained on its output. Across the subset sizes and translation systems, the submission ranks in the range 22 - 31 among 48 submissions. The two evaluations establish how closely the labeling shortcut agreed with a human on the training sample and where the resulting pipeline placed in the competition.

Deep dive: A hybrid pipeline of rules and machine learning to filter web-crawled parallel corpora

A rule-based filter and a logistic regression classifier rank noisy English–German web translations for machine translation training. · about 35 minutes to read

The problem and its context

A large collection of candidate translations

A parallel corpus pairs text in one language with text intended to express the same content in another. In this task the source side is English and the target side is German. The paper calls each source–target pair a translation unit. The term describes how the data are organized. Whether the German segment actually translates the English one is precisely what the filter has to assess. A usable collection depends on the quality of those correspondences because a translation system learns from the text it is given on both sides.

Web crawling makes bilingual material available at a scale that changes the selection problem. The English side of the shared-task pool contained one billion words, while the task specified much smaller word budgets for the outputs. Teams had to decide which parts of the pool deserved those budgets. A pair can be unsuitable for several reasons. The most immediate ones involve the text itself, such as being too short for the authors’ procedure or being written in an unexpected language. Harder cases arise when the sentences are grammatical and concern the same subject, yet one side conveys information that the other lacks. The latter cases require evidence about the relationship between the sentences.

Filtering also has to serve a purpose beyond identifying individual mistakes. A system looking for correct sentence pairs can rank examples by how convincing each pair appears in isolation. A system building a training collection has to consider what the chosen pairs collectively contain. Closely related English sentences can occupy space that could have been used for materially different examples. A genuine translation can also belong to a narrow type of writing whose vocabulary and syntax have limited relevance to other material. The paper addresses repetition directly in the smaller selection and raises the question of domain suitability after reviewing the training sample.

The organizers used downstream translation quality to judge the selected data. In this design, the corpus is an input to a translation system, and the sentences that system produces are what receive the final evaluation score. A collection therefore succeeds insofar as it helps a translation system on the organizers’ test material. The submission can rank a pair highly because it appears accurate, but whether using that pair helps translation is a separate question. This distinction underlies the paper’s decision to report a human comparison for the labeling procedure and rely on the shared task for evaluation of the selected corpora.

What the authors adapt from translation memory cleaning

The authors connect the task to translation memory cleaning and translation quality estimation. A translation memory is a collection of existing translations organized so that source text can be associated with previously translated text. Cleaning it involves finding suspect units among entries already presented as bilingual pairs. In that respect, a translation memory and the web corpus pose a similar problem. The input supplies candidate pairings, and the procedure has to decide how much trust each deserves.

In discussing prior work, the authors point to a survey of systems for detecting false units in translation memories. They also describe a successful cleaning approach that learned from several kinds of evidence. Its features covered translation quality, grammatical errors, fluency, and word choice. This precedent helps explain why their own system examines both correspondence and the quality of each segment. A sentence can look natural in isolation while being paired with unrelated text. Conversely, the two sides can look like translations while displaying defects that make the pair a poor choice for training.

The authors already had a translation memory cleaning system, part of which they adapted for the competition. Their earlier system depended on supervision and word alignment information. Supervision supplies examples with labels specifying which outcome to learn. Word alignment gives more detailed information about the correspondence between words on the two sides of a pair. The competition restricted the use of outside parallel corpora and provided limited alignment information. The earlier system’s requirements therefore shaped what had to change in the adaptation.

The authors retained the idea of learning from multiple signals and derived supervision from the alignment information available with the task. The organizers had supplied a Hunalign score for each pair. This is a sentence-level assessment. It gives the authors a reason to favor some pairs over others without requiring a detailed map of which words correspond. By turning that score into training labels, the authors could fit a classifier without using manual labels as supervision. They subsequently obtained manual judgments to see how well the automatic labels held up.

An earlier method for aligning sentences in bilingual corpora also provided a basis for comparing segment lengths. Its underlying observation is that translations tend to have related lengths. Length provides a signal even in the absence of detailed word correspondences. It leaves room for genuine translations to differ in how much space they take, which is why the authors use a normalized discrepancy and also examine other evidence. Their implementation adapts work by Gale and Church.

Why scoring matters after screening

The pipeline reflects a practical distinction between evidence strong enough for exclusion and evidence suitable for grading. The authors treat certain length and language failures as grounds for assigning a fixed low score. Once a pair clears those checks, the remaining evidence is less amenable to a simple pass or fail decision. Names, punctuation, or numbers can support a correspondence when they appear in both segments, but many legitimate translations lack these cues. Fluency can strengthen the case for a segment as training material while leaving the cross-language correspondence unresolved.

This distinction is particularly important when the output is a selection with a fixed word budget. A positive label for an individual example would give the selection procedure little guidance about which positive example to prefer. A graded score lets the authors order the candidates and apply further penalties to pairs that exhibit particular defects. For the smaller subset, they can additionally examine whether the English text resembles material they would otherwise select. The task thus involves both the plausibility of a pair and its value relative to the other choices available.

The method, step by step

From a raw pair to a selection score

The pipeline separates training from the routine scoring of candidates. For training, the authors sample pairs that have cleared the first rules, turn the supplied alignment scores into labels, and describe each pair with numerical features. Logistic regression learns from those examples. During scoring, the same kinds of numerical features go into the fitted classifier for each surviving pair. Its output is the estimated probability that the pair belongs to the positive training class.

The pipeline uses that probability as a starting point for ranking. Further rules can subtract from it when they find specific problems, such as a disagreement in the numbers on the two sides. The smaller selection has an additional check for highly similar English segments. The result is an order of preference informed by several kinds of evidence. Candidates rejected by the opening rules receive a designated low submission score, while candidates retained through that stage can still move down the order later.

From web-crawled sentence pairs to selected training text

The steps in order.

From web-crawled sentence pairs to selected training textStep 1: Screen pairs by length and detected language1. Screen pairs by length and detected languageStep 2: Label sampled survivors using Hunalign scores2. Label sampled survivors using Hunalign scoresStep 3: Compute numerical features and fit logistic regression3. Compute numerical features and fit logistic regressionStep 4: Score surviving pairs with the fitted classifier4. Score surviving pairs with the fitted classifierStep 5: Lower scores for specific bilingual or formatting defects5. Lower scores for specific bilingual or formatting defectsStep 6: Check English similarity for the smaller subset6. Check English similarity for the smaller subsetStep 7: Select pairs within the task’s word budgets7. Select pairs within the task’s word budgets

Screening length and language

The opening module inspects both segments. It excludes a pair if either side has fewer than 10 words. The rule sets a minimum amount of text for candidates that proceed to classification. The authors connect segment length to the reliability of language identification. With more text to analyze, they expect the detector to have enough information to assign the language with good precision. The cutoff also determines which short translations remain available to the system. A valid pair can be excluded simply because one of its sides falls below the stated minimum.

Cybozu supplies the language decision. For every pair it gives a language code for the source and one for the target. The expected codes are en and de, respectively. Both positions matter. Even when both expected languages occur in a pair, their assignment to the prescribed source and target sides is part of the rule. A mismatch in either position causes the pair to fail this stage. The comparison uses the detector’s decisions as evidence about the text and consequently inherits any mistakes in those decisions.

The module also checks whether the lengths of the segments are compatible. The paper calls the quantity the Church–Gale or Gale–Church score in different passages and uses a slightly modified form of the length comparison. The filter excludes a pair if its score is below −4 or above 4. This allows departures on either side of zero while setting a limit on how far either segment can dominate the other under this measure. A pair that fails a length or language check is assigned −100 in the submission.

How the length score works

The length score compares the difference between the two segment lengths with a scale based on their combined length. In plain notation, the paper’s equation is:

CG = (lₛ − l_d) / √(3.4 × (lₛ + l_d))

CG denotes the length-based alignment score. lₛ is the source segment length and l_d is the target segment length. The minus sign gives the signed length difference. The plus sign adds the lengths to give the total, 3.4 is the scaling coefficient in the paper’s equation, and × multiplies the coefficient by that total. The square-root sign applies to the product, and the slash divides the signed difference by the resulting quantity.

The sign indicates which side is longer. The size of the score depends on both the raw difference and the scale set by the combined length. A fixed difference is therefore treated differently in a pair of short segments and a pair of long ones. This makes the comparison more informative than a fixed allowance for the number of characters or words by which one segment could exceed the other. The paper defines the quantities in the equation as segment lengths and does not give further implementation detail about how those lengths are counted.

The score plays a role twice. In the screening module it acts as a hard boundary. Within that boundary, it is also an input to the classifier, where its value can contribute to the score assigned to a surviving pair. The authors explain why length deserves this qualified use. A source acronym can be spelled out in the target, making the target substantially longer even when it conveys the intended content. The relationship between lengths is evidence about alignment, while the wording on either side can explain some of the variation.

Producing training labels with Hunalign

The training sample comes from the pairs that survive the initial screening. The authors draw approximately 1700 units at random from that pool. Sampling after screening puts the classifier’s training examples in the same part of the corpus it will be asked to score. It also means that the manual review of these examples tells us about the labeling heuristic within that screened population. The pairs rejected by the hard rules are outside the sample used for that review.

For each sampled pair, the authors look up the alignment score supplied by Hunalign with the task data. A score greater than 0.9 yields a positive label. A score equal to or below 0.9 yields a negative label. The authors chose the boundary on the basis of earlier experience with the aligner. They did not derive it from the manual review, which they conduct afterwards to evaluate the shortcut. The label assigned to any sampled pair is therefore determined by the score and its position relative to the boundary.

Hunalign’s score depends partly on the English–German dictionary used by the aligner. The classifier receives the score as numerical evidence, and the labeling rule uses it as the basis for supervision. These roles are closely related. A high Hunalign score is evidence for the positive label because the rule used to create the labels says so. The other inputs allow logistic regression to grade candidate pairs using more information, but their contribution is learned from examples whose positive or negative status comes from Hunalign.

This arrangement reduces the cost of obtaining supervision for the shared task. It also gives a precise interpretation to the classifier’s probability output. Logistic regression is fitted to distinguish automatically positive from automatically negative examples. Its score estimates membership in the class defined by that training procedure. Interpreting the probability as a measure of translation quality requires the further assumption that the learned ordering corresponds to qualities that matter in an actual translation. The authors treat that connection as an expectation and examine its premise by checking the labels against a human judgment.

Recording which entities appear

The first group of numerical features concerns material that can be detected in one or both languages. The authors use entities in a broad sense here. Their inventory covers tags, URLs, email addresses, named entities, punctuation, numbers, and different patterns of capitalization. Some of these are classes of text added by the web context. Others are ordinary parts of a sentence that may retain a recognizable form in its translation. The treatment of names is related to named entity recognition, although the paper does not detail a separate recognition procedure.

The simplest features record presence or absence. A presence flag takes the value 1 when the corresponding item is present under the feature’s stated test and 0 otherwise. These values make observations about the text available to logistic regression in numerical form. Detecting an email address, for instance, shows that the pair contains an item whose appearance can provide evidence for a correspondence. A presence flag by itself says little about whether a similar item occurs on the other side or whether the two occurrences actually match.

The rationale for the group is that an item mentioned in the source often has a counterpart in the target. Numbers, tags, or addresses give the system something relatively concrete to check when they are present. Some pairs supply many such cues. Others contain ordinary text with few visible markers. The feature design allows the fitter to use a range of cues without requiring every reliable pair to furnish any one of them. It also allows the difference between merely seeing an item and seeing compatible evidence on both sides to be expressed numerically.

Measuring agreement between entities

For tags, URLs, email addresses, named entities, punctuation, and numbers, the authors compare source and target representations with cosine similarity. A vector represents the detected evidence on each side as a collection of numerical coordinates. Cosine similarity considers how closely the vectors point in the same direction. Applied here, it gives the classifier a graded measure of resemblance between the entity evidence in the English and German segments. The paper describes the comparison at the feature-vector level and leaves the exact construction of every vector unspecified.

These features differ from the flags in what they can express. A flag shows that evidence of the relevant kind occurs somewhere in the pair. A similarity value is meant to reveal whether the evidence on the two sides is compatible. The authors expect the classifier to learn what levels of similarity are typical of positively labeled examples when the evidence is present. They leave this decision to fitting, so the entity checks at this stage serve as graded inputs rather than unconditional acceptance rules.

The paper gives capitalization additional treatment through two normalized differences. One counts words that include at least one capital letter in each segment. The feature subtracts the two counts and divides the difference by their sum across the translation unit. The second calculation follows the same pattern for words consisting entirely of capital letters. In each case, the combined count gives context to the discrepancy. A difference has a different interpretation in a pair with few capitalized words and in a pair with many of them. The paper describes the ratios without specifying a convention for a pair in which the denominator is zero.

The two capitalization features capture related but distinct observations. The broader count responds to any word containing a capital letter. The narrower count focuses on wholly capitalized words. Both extend the corresponding presence information by expressing imbalance between the languages. Since the languages can use capitalization differently, the features provide evidence that the classifier can weigh alongside alignment and fluency. They leave room for a pair to score well even when a capitalization pattern occurs more often on one side.

Describing alignment likelihood

The next group includes language agreement, the normalized length score, and Hunalign’s score. In the feature description, the language input takes the value 1 if the detected source and target codes agree with the stated languages and 0 otherwise. This expresses the expected bilingual configuration in a form the classifier can receive. The earlier module already rejects pairs for a language mismatch. If that rule and the feature use the same detector outputs as described, language agreement will be fixed among survivors. Its inclusion in the feature list therefore gives no basis for assuming that it distinguishes pairs in the learned stage.

The length input can still vary among survivors. Being within the allowed bounds only establishes that a discrepancy is small enough to avoid immediate rejection. The classifier receives the actual score and can respond to differences within the admissible range. The authors expect the learner to use this evidence in distinguishing the automatically labeled classes. The acronym example shows why any such distinction remains dependent on the rest of the evidence.

Hunalign’s score supplies a more direct alignment judgment in addition to the length heuristic. The classifier can see the numerical score even though the training labels retain only the result of applying a threshold to it. In principle, pairs on the same side of the boundary can receive different classification probabilities. The probability can respond both to their different Hunalign scores and to other feature values. The paper reports the design of this scoring stage and evaluates the labels it learns from. It does not report learned coefficients or a comparison showing how much pair ordering changes when the other inputs are added.

Estimating fluency in each language

A parallel pair can have visible correspondences and still contain awkward, damaged, or otherwise improbable text. The authors represent fluency through perplexity, computed separately for the English and German segments with KenLM. Perplexity measures how surprising a sequence is under probabilities learned from text. A sequence composed of more expected wording tends to have a lower value. The feature supplies a measure of how familiar a segment’s wording looks from evidence in its own language.

The authors train the fluency estimators on data from the WMT 2018 German–English news translation task, following the shared task’s guidance on the training material. They remove the Paracrawl parallel corpus and use Cybozu to discard sentences whose detected languages do not match the language of the collection being assembled. After this preparation, the English fluency training corpus contains 5.802.775 sentences and 126.831.658 words. The German corpus contains 5.673.375 sentences and 116.360.460 words. These counts concern the material used to estimate fluency. The much smaller sample labeled through Hunalign is the training material for logistic regression.

The English score draws on what the estimator learned from English text, and the German score draws on the equivalent evidence for German. This separates the question of whether each segment resembles fluent text from the question of whether it expresses the same content as its partner. For instance, a clean sentence about a facility can be paired with a clean sentence about where that facility is located. Both might be plausible in their own language. Looking at their wording separately cannot establish whether the extra information on one side is reflected on the other. The combination of fluency and alignment evidence gives the classifier inputs that address both aspects.

Fitting the classifier and interpreting the probability

The authors use logistic regression through scikit-learn. The algorithm learns a weight for each numerical input and combines the weighted inputs into a score. It maps that score to a probability for the positive class. In this application, every screened pair can therefore receive a graded assessment, including pairs outside the sample used to fit the classifier. The fit uses automatic labels throughout. The manual labels are collected to evaluate the quality of those labels.

The graded output lets candidates on the same side of the Hunalign threshold compete for a place in the corpus. For example, two automatically positive pairs can have different perplexities, substantially different degrees of entity agreement, or different aligner scores. Logistic regression can assign them different probabilities through the combined inputs. Whether the resulting order is better for selection than the Hunalign order alone is an empirical question. The paper’s downstream evaluation examines the full pipeline, in which the probabilities are subsequently modified.

This procedure also clarifies the type of supervision at work. The classifier learns which feature patterns accompany the positives defined by the alignment cutoff. It has no manual target telling it how to handle a particular false positive in the training sample. For a manually inaccurate sample pair marked positive by Hunalign, the error remains in the fitted labels. A graded score can reduce the practical importance of a wrong binary judgment if a suspect pair receives a lower priority when all features are considered. That possibility is part of the authors’ reasoning for using probabilities.

Penalizing suspect pairs after classification

The same-digits rule looks for the digits in the source on the target side, with room for their order to change. A source containing digits triggers the comparison. If the expected digit agreement fails, the rule subtracts 1 from the pair’s probability score. Allowing reordering matters for date conventions. The paper illustrates this with 02/01/2001 and 01/02/2001, which can express the same date under the respective month-first and day-first formats. The change in sequence alone would therefore be a poor reason to lower the rank.

The same-numbers rule addresses cases in which digit agreement can be accidental. A collection of digit characters can agree even while the numbers they form differ. The rule expects numbers in the source to appear in the target, with their order allowed to vary. The authors describe subtracting 1 when a pair happens to satisfy the digit check but fails the number check. The two tests capture distinct aspects of numerical correspondence. The digit rule accommodates changes in presentation, and the number rule looks at the larger units whose values are being conveyed.

The URL rule considers how much ordinary text accompanies a web address. When the address is longer than the portion of ordinary text in either segment, the rule subtracts 1. A long address can be a strong sign that two segments share recognizable material while leaving little natural text for a translation system to learn from. This rule expresses a preference about usefulness in addition to any judgment about whether the segments correspond. It works by changing rank, so the penalty and the available alternatives determine how far down the selection order a pair moves.

The tag rule checks whether tags on the two sides agree. The expectation is that the same tags will occur when the segments translate each other. A failure subtracts 1. This is a more direct use of tags than the feature supplied to logistic regression. In classification, similarity between tag representations is one piece of evidence among many. In reranking, a tag disagreement triggers a specified decrement. A pair with an otherwise favorable score can therefore lose priority because its markup does not correspond in the expected way.

Once these rules operate, the scores serve as ranking values. A quantity obtained by subtracting 1 from a probability can fall outside the range of probabilities. This matters for how the stages are interpreted. The logistic regression output has a probability meaning relative to the automatically defined classes. The value after penalty rules expresses how the authors want to order candidates once particular defects have been taken into account. The purpose of subtraction is to change that order sufficiently for the word-limited selection.

Promoting variety in the smaller selection

The authors add a diversity check for the 10 million word subset. They compare English segments with cosine similarity and retain pairs for this selection under a similarity threshold of 0.85. The comparison uses English text from different translation units. In contrast, the cosine features used in the classifier compare entity evidence across the two languages within the same unit. One comparison informs a judgment about a pair’s correspondence. The other is intended to limit overlap among pairs competing for the smaller budget.

For the diversity comparison, the authors use scikit-learn’s TfidfVectorizer, which represents text through TF-IDF. A segment is represented by weighted terms, with the weights reflecting how strongly a term characterizes that segment relative to the text collection. Cosine similarity applied to those representations captures overlap in their weighted vocabulary. A high value flags English sentences with similar lexical content, giving the selection procedure a way to control repetition beyond exact textual matches.

The computation has a practical restriction. The authors could not build a similarity matrix covering all units on their server. They therefore limited the matrices to 30,000 lines. The paper describes the threshold and the computational restriction without specifying all the details of how comparisons across matrices affect the selection. The diversity check should consequently be understood as a procedure carried out within that stated computation, with the 0.85 rule applied to the similarities the authors calculated.

The resulting pipeline can favor a high-scoring unit while declining to place another very similar one in the smaller selection. This distinction is especially relevant after ranking because multiple versions of a sentence might all exhibit the properties rewarded by the classifier and the later rules. The score estimates the desirability of each pair in isolation. The similarity check considers its resemblance to other English text under consideration. The authors make the core implementation, the manually labeled sample, and the Python script for their in-house evaluation publicly available.

Experiments and results

The candidate pool and the task budgets

The starting web corpus contains 104.002.521 translation units. After the initial filtering rules, 11.030.014 units remain. Those surviving pairs contain 269.949.547 English words and 241.984.520 German words. The unit counts describe bilingual pairs, while the word counts describe the volume of material on each side. The retained corpus is the pool from which the authors select their submissions for the 10 million and 100 million word budgets. The paper gives the effect of the opening rules as a combined reduction in the candidate pool.

That change in size provides a measure of what the first module does operationally. It assigns the fixed rejection score to a large part of the original collection and passes a smaller pool to the classifier. The counts do not show which check was responsible for more exclusions, because the paper reports the outcome for the rules together. They also do not indicate how many of the excluded pairs would have been useful in training. The subsequent manual evaluation looks at examples drawn from the remaining pool.

The organizers use the same task budgets to compare submissions. Each team’s selections become training data for a statistical translation system based on Moses and a neural translation system based on Marian. Statistical and neural translation provide different training and evaluation conditions for the submitted corpora. The paper reports that the organizers score translations on multiple undisclosed sets. It directs readers to the shared-task findings for the official results table and details of task preparation and other participants’ approaches.

The in-house comparison with human judgments

The authors ask a non-native speaker of German to review the sample already labeled by Hunalign. The annotator assigns 1 to an accurate translation unit and 0 to an inaccurate one. This linguistic annotation becomes the reference against which the automatic procedure is measured. Because the same pairs carry both kinds of labels, the authors can count exactly where the threshold agrees with the human and where it makes errors. All the reported in-house metrics concern that label comparison on the training sample.

The confusion matrix retains both the direction and the number of disagreements. Among pairs predicted positive by the heuristic, 1010 are positive in the manual judgment and 67 are negative. Among pairs predicted negative, 233 are positive according to the annotator and 404 are negative. The paper describes the class distribution as imbalanced, with 27 percent negative examples. This matters for interpreting the metrics because the ability to identify the two classes can differ and the classes contribute unequal numbers of examples.

The larger count of missed human positives appears in the group receiving automatic negative labels. Those are pairs for which the Hunalign score fell on the negative side of the boundary even though the annotator judged the translation accurate. In the other direction, an automatic positive could pass the alignment boundary while failing human review. Precision and recall distinguish these views of the same predictions. Precision asks how often an assigned label is right. Recall asks how often pairs that belong to a class according to the annotator receive that class from the heuristic.

Precision, recall, and balanced accuracy

For the positive class, precision is 0.93 and recall is 0.81 on the manually checked training pairs. The precision figure describes the reliability of the heuristic’s positive labels. The recall figure describes the share of human-positive pairs identified by the heuristic. A filter can have reassuring positive precision while still overlooking many usable examples. These figures show both aspects of the particular cutoff the authors adopted.

For the negative class, precision is 0.63 and recall is 0.86 on the same sample. Negative precision describes how often an automatic negative is confirmed by the human judgment. Negative recall describes how often a human-negative pair receives a negative label from the heuristic. The combination explains how automatic negatives can be relatively unreliable even though many of the pairs that the human rejects are caught. The automatically negative group contains the 233 units that the annotator would accept alongside the 404 confirmed negatives.

The paper reports F1 separately for the classes. F1 combines precision and recall so that each affects the result. For the positive class the reported F1 is 0.87, and for the negative class it is 0.73. The figures compare the two label decisions made by the same fixed-threshold heuristic. They also make the direction of the imbalance in label reliability easier to see than a single pooled measure would.

Hunalign label settings on the manually checked training sample, F1 by class

The cutoff gives stronger combined precision and recall for the positive class.

Hunalign label settings on the manually checked training sample, F1 by classNegative label: 0.73Negative label0.73Positive label (this paper): 0.87Positive label (this paper)0.87
The numbers
System or settingF1
Negative label0.73
Positive label (this paper)0.87

Balanced accuracy is 0.83 for the automatic annotations relative to the manual ones. Balanced accuracy gives the recall of each class equal weight, making the result informative even when one class is more frequent. The authors take the result as support for the use of the Hunalign threshold to generate supervision. The class-specific measures show what that support consists of. Automatic positives agree with the human judgment more frequently than automatic negatives do, and the review identifies errors in both directions.

These measurements are made on the sample used to train logistic regression, but the method being measured is the rule that generated the labels. Calling 0.83 the accuracy of the fitted classifier on a test set would change both the procedure and the population to which the number refers. The threshold was applied to the sample, the manual labels were obtained for those same examples, and the reported comparison uses their agreement. The paper does not present a separate held-out set of human labels for evaluating the probability scores.

Evaluation through the resulting translation systems

The shared task uses BLEU to score translations produced by the systems trained on the submissions. BLEU compares the wording of system outputs with reference translations through matching sequences. Here the important point is where it is measured. BLEU evaluates translations made after training on the selected text. The intermediate pair scores and manual labels influence the submissions in various ways, while the official performance criterion concerns the output of Moses or Marian trained with the selected corpus.

There were 48 submissions. The authors’ system ranked between 22nd and 31st, with its position varying according to the corpus budget and the translation system used to evaluate it. The paper gives that range without mapping each position to its particular configuration or reporting the absolute BLEU values in its own results. The rank describes the performance of the submitted method relative to other submissions under the official evaluation. It leaves the size of the BLEU differences between submissions unspecified.

The human labels are the reference for the in-house comparison. The submissions and common translation evaluation supply the comparison for the official task. The paper does not report a separate baseline made by selecting pairs directly on Hunalign scores, or an evaluation of a selection made with the opening rules alone. Its two kinds of measurements therefore answer different questions. The label results describe the reliability of a shortcut for obtaining training examples. The official ranks describe the downstream performance of the full system incorporating the learned scorer, subsequent penalties, and the diversity procedure where applied.

What the ablations show

The paper reports no component ablations and instead analyzes the automatic labels through class-level metrics, a confusion matrix, contrasting examples, and observations from the manual review.

What the language pairs reveal about the cutoff

One example that the heuristic and the annotator both accept concerns machinery used for processing substances. Across the English and German sides, the subject matter and the list of technical functions correspond. The example makes the aim of the threshold concrete. A high Hunalign score can identify a usable translation in specialized prose, even though the details of the wording and sentence structure differ between languages. The judgment rests on the two segments conveying the corresponding content.

The example of a mistaken automatic positive concerns a swimming pool, a gym, and a combination of indoor and outdoor activities. Those common details give the two segments a clear topical relationship. The German text adds that rooms are located next to the facilities. The paired English text does not convey that location statement. Both examples exceed the same Hunalign threshold, and the annotator’s judgments distinguish them. The comparison illustrates how strong alignment evidence can coexist with a mismatch in what the sentences say.

This matters for the later stages. A pair with partially overlapping content can look convincing to several mechanisms at once. Shared names or numbers could provide evidence of correspondence where they occur. Plausible phrasing on each side could support favorable fluency scores. Neither property settles whether everything stated in one segment has an equivalent in the other. The examples identify a kind of discrepancy that survives the labeling threshold. They give no direct measurement of whether the trained classifier or the reranking rules lower the score of that particular pair.

What the error counts say about supervision

The confusion matrix shows why conclusions about the automatic labels need to account for which class the heuristic assigns. The abundant confirmed positives support the authors’ view that the Hunalign cutoff produces many reasonable positive examples. The automatically negative group also includes a substantial set of units the human regards as accurate. For logistic regression, such examples present mixed evidence: their texts may contain properties associated with good translations while their training labels place them in the other class.

The authors suggest that grading can mitigate annotation errors if the predicted probabilities correlate with actual unit quality. For selection, an automatically negative training decision and a low probability at scoring time have different functions. The label is a training target. The probability orders candidates and may put some imperfect yet useful pairs ahead of less useful ones. Whether the score corrects particular label errors would require comparing probabilities with independent human judgments or comparing selections constructed from different scoring procedures. The paper’s documented label comparison tests the quality of the supervision on the sampled pairs.

The same evidence also leaves the influence of each feature unresolved. A classifier trained on labels defined by Hunalign and given the Hunalign score can learn an ordering that owes much to that input. Entity agreement or fluency can plausibly reorder some pairs, but the paper gives neither an alternative fit without Hunalign nor an official comparison of otherwise identical systems with individual feature groups removed. The observed agreement with human annotation quantifies the starting signal available for supervision. It provides no numerical estimate of how much additional information the fitted combination contributes.

What the selected examples say about usefulness

During manual review the authors encounter sentences that translate the main content of their partners while adding material on one side. These cases expose a difference between sentence-level accuracy and potential usefulness for translation. A binary judgment has to assign the whole pair to a class. A training procedure can still receive useful correspondences from a pair whose coverage is incomplete. Conversely, the unmatched part can make that pair undesirable if the selection has enough accurately matched alternatives. The paper treats the relationship between degree of accuracy and downstream usefulness as a possibility rather than estimating it for these cases.

The reviewers also find many biblical passages in the sample. The authors observe that they have distinctive vocabulary, word forms, and syntax. They consider such pairs potentially useful for similar writing and less likely to transfer well to other text. A pair can be accurate as a translation while contributing to a collection concentrated in a particular register. The diversity check may reduce lexical repetition among English segments, but the paper reports no controlled comparison relating that check to the representation of biblical material or to translation in particular domains.

The task ranks integrate all decisions made by the submission. Changes in placement across evaluation conditions show that the final position depends on how the filtered data are used and assessed. They do not identify the rule or feature group responsible for that variation. The human-labeled sample explains some of the data issues the pipeline faces, while the downstream ranks place the overall solution among the competition entries. Neither comparison isolates the contributions of the penalties or the smaller subset’s similarity check.

Limitations

Limits the authors identify

The authors describe their manually checked sample as unrepresentative of the entire collection supplied by the organizers. It is a relatively small draw from pairs that have passed the initial rules. They say that a representative evaluation would need manual annotation of many more translation units. The reported label metrics consequently characterize this training sample. In particular, the sampling procedure leaves out the cases that the language and length filters set aside, so these metrics cannot validate those rules.

They also note that translation accuracy can be a matter of partial coverage. A paired sentence can express what appears on the other side and add a further clause or other material of its own. The manually assigned binary categories compress that distinction. The authors suggest that a probabilistic ranking could help retain some imperfect units when they are useful. This depends on the scores tracking the kind of quality that matters in training, a relationship the manual label comparison does not directly test.

The biblical material supplies a second qualification to the idea of quality. These translations can be acceptable pairs in a training set while being stylistically suited to a narrow family of texts. The authors specifically point to the lexical, morphological, and syntactic traits of the passages. They expect benefits for related religious writing to transfer less readily to other types of text. The caveat concerns the distribution of the chosen material, even where the bilingual correspondence is sound.

A further stated constraint is computational. The authors cap the similarity matrices at 30,000 lines because their server could not handle a matrix covering all units. The intended diversity criterion concerns resemblance among English segments in the smaller selection. How widely a unit can be compared with others depends on how those computations are carried out. The paper establishes the size restriction and the threshold, leaving the effect of the restriction on the composition of the resulting subset unmeasured.

Limits of the human evaluation

The manual evaluation uses a single annotator, described as a non-native speaker of German. The paper reports no independent second judgment or agreement measure for the sample. That leaves uncertainty about how consistently another annotator would decide difficult cases, particularly those involving an extra statement, subtle differences in meaning, or specialized writing. The documented annotations provide a reference for comparing the heuristic with human judgment under this procedure. They give no measure of how stable that reference would be across evaluators.

A further constraint follows from the timing of the manual review. The authors assess the labels used for training on the same pairs to which they were assigned. This is suitable for asking whether the training targets are plausible. It does not provide held-out human evidence that the classifier generalizes or that its probabilities are calibrated against translation correctness. A person can agree with the threshold on many pairs while the fitted scorer still behaves differently in unfamiliar parts of the remaining corpus.

The class distribution also conditions the interpretation. In the reviewed sample negative examples account for 27 percent according to the paper. Precision depends on the mix of pairs being judged. If another part of the collection has a different mix of accurate and inaccurate candidates, the reliability of an automatic positive or negative could change. Balanced accuracy gives equal emphasis to class recall within the reviewed sample, which addresses one issue raised by the imbalance. It does not compensate for the sample’s restricted coverage of the original crawl.

Limits of what the pipeline comparison establishes

Hunalign serves as both a feature and the source of the labels. This makes the procedure easy to supervise under the task constraints, but it limits what can be inferred about independence from the aligner. The classifier fits targets that encode a decision made directly from one of its inputs. A downstream improvement attributable to fluency or entity agreement would need evidence from alternative selections constructed with other parts of the procedure held fixed. Without a direct comparison with a Hunalign-only selection, the official rank cannot isolate such an improvement.

The hard rules similarly combine different judgments about suitability. A very short genuine translation and a mismatched pair can both be removed. A large length discrepancy can come from an acronym expanded on one side, and a language detector can misclassify a segment. The paper’s reported counts establish how many pairs pass the combined filter. A manual review that includes rejected pairs, or rule-by-rule downstream comparisons, would be needed to establish the costs and benefits of the individual exclusions.

The post-classification rules introduce different uncertainties. Exact agreement in digits, numbers, or tags can be a strong cue when a pair also has good linguistic correspondence. The rules express fixed expectations about how these features should carry over when the text is translated. The paper gives no separate measurements of how often each penalty fires, how often it affects an otherwise good unit, or how many selected words would change without it. The threshold for English similarity has the same evidential limit. Its purpose and implementation are described, while its effect on the official score is left unresolved.

Finally, the range 22 - 31 is a relative outcome for 48 submissions under the specified WMT conditions. It cannot establish a BLEU margin or show which configuration accounts for either end of the reported range. The translation setup concerns English–German web data and the supplied training and evaluation conditions. The evidence leaves open how the same features, cutoffs, and penalties would behave for other language pairs, sources, or word budgets. In particular, the paper notes that the Hunalign score depends on the dictionary in use, so the value of that input and of the supervision derived from it are tied to the available alignment evidence.

What came after

The relevant account is the WMT 2018 shared-task findings on parallel corpus filtering. It appeared in the same proceedings and serves as the shared task’s comparative report. The authors refer readers to it for details on how the task was prepared, a table of the official results, and an overview of the systems that took part. Its relationship to the hybrid pipeline is through the competition. The pipeline paper explains how the authors select data and audit their automatic labels, while the findings situate the submission among approaches evaluated under the common task.

The shared-task account takes the comparison to the level that matters for the competition. A submission can derive a score for each candidate pair using its own procedure, but the resulting selections are judged by training translation systems and evaluating what they produce. That setup provides a common basis for comparing a pipeline built from hard rules, learned scores, and reranking with the other systems in the task. The report supplies the official context for the placement range given in the pipeline paper, including the distinctions between corpus budgets and translation systems that a single reported range compresses.

The connection is an evaluation and survey of the submitted approach. The paper identifies the findings as the place to see how the approach performed within the wider exercise and how the other entries tackled the filtering problem. It gives no evidence of a subsequent implementation that adopted the Hunalign labeling rule, repeated the feature design, or built on the smaller subset’s diversity check. The documented follow-through is the shared evaluation of filtered data through translation quality, alongside the authors’ local measurement of how well their automatic supervision agreed with the manual judgments.

Cite

Cite as Eduard Barbu and Verginica Barbu Mititelu. 2018. A hybrid pipeline of rules and machine learning to filter web-crawled parallel corpora. Proceedings of the Third Conference on Machine Translation: Shared Task Papers.

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

@inproceedings{barbu2018hybrid,
  title = {{A hybrid pipeline of rules and machine learning to filter web-crawled parallel corpora}},
  author = {Eduard Barbu and Verginica Barbu Mititelu},
  booktitle = {Proceedings of the Third Conference on Machine Translation: Shared Task Papers},
  year = {2018},
  doi = {10.18653/v1/w18-6474},
  url = {https://doi.org/10.18653/v1/w18-6474}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/barbu-2018-hybrid-pipeline-rules-machine-learning/